diff options
Diffstat (limited to 'data/en_us/eas/2021-07-01/api-docs.php')
| -rw-r--r-- | data/en_us/eas/2021-07-01/api-docs.php | 22732 |
1 files changed, 10521 insertions, 12211 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 index 4d4e510..c80a4a8 100644 --- a/data/en_us/eas/2021-07-01/api-docs.php +++ b/data/en_us/eas/2021-07-01/api-docs.php @@ -1,1805 +1,529 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'eas', - 'version' => '2021-07-01', - ], + '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', + 'CreateService', 'CreateServiceAutoScaler', 'CreateServiceCronScaler', 'CreateServiceInstanceToken', 'DescribeGroupEndpoints', 'DescribeServiceEndpoints', 'CloneService', 'ScaleService', 'UpdateServiceVersion', 'DeleteServiceLabel', 'DeleteServiceInstances', 'ListServices', 'UpdateServiceAutoScaler', 'UpdateServiceCronScaler', 'UpdateServiceInstance', 'DescribeService', 'DescribeServiceAutoScaler', 'DescribeServiceCronScaler', 'DescribeServiceEvent', 'DescribeSpotDiscountHistory', + 'ListServiceInstances', 'ListServiceVersions', 'ListGroups', 'DescribeMachineSpec', 'CreateServiceRollout', 'DescribeServiceRollout', 'DeleteServiceRollout', 'UpdateServiceRollout', 'CreateFaultInjection', 'DeleteFaultInjection', 'ListServiceInstanceFaultInjectionInfo', ], + 'type' => 'directory', + 'title' => 'Service', ], [ - 'id' => 360831, - 'title' => null, + 'children' => ['ListVirtualResource', 'DescribeVirtualResource', 'CreateResource', 'CreateResourceInstances', 'DeleteResourceInstanceLabel', 'MigrateResourceInstance', 'UpdateResourceInstance', 'DescribeResource', 'ListResourceInstances', 'ListResourceInstanceWorker', 'ListResources', 'ListResourceServices'], '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', - ], + 'title' => 'Resource group', ], [ - 'id' => 360857, - 'title' => null, + 'children' => ['ListBenchmarkTask'], 'type' => 'directory', - 'children' => [ - 'CreateBenchmarkTask', - 'DeleteBenchmarkTask', - 'DescribeBenchmarkTask', - 'DescribeBenchmarkTaskReport', - 'ListBenchmarkTask', - 'StartBenchmarkTask', - 'StopBenchmarkTask', - 'UpdateBenchmarkTask', - ], + 'title' => 'Stress testing task', ], [ - 'id' => 360866, - 'title' => null, + 'children' => ['CreateGateway', 'DeleteGatewayLabel', 'UpdateGatewayLabel', 'ListGatewayDomains', 'ListGateway', 'DescribeGateway', 'UpdateGateway', 'CreateGatewayIntranetLinkedVpc', 'ListGatewayIntranetLinkedVpc', 'ListGatewayIntranetLinkedVpcPeer'], 'type' => 'directory', - 'children' => [ - 'DeleteGatewayLabel', - 'UpdateGatewayLabel', - 'DetachGatewayDomain', - 'AttachGatewayDomain', - 'ListGatewayDomains', - 'ListGateway', - 'ListAclPolicy', - 'DeleteAclPolicy', - 'CreateAclPolicy', - 'CreateGateway', - 'DescribeGateway', - 'UpdateGateway', - 'CreateGatewayIntranetLinkedVpc', - 'ListGatewayIntranetLinkedVpc', - 'ListGatewayIntranetSupportedZone', - 'ListGatewayIntranetSupportedZone', - 'DeleteGatewayIntranetLinkedVpc', - 'DeleteGateway', - 'ListGatewayIntranetLinkedVpcPeer', - 'CreateGatewayIntranetLinkedVpcPeer', - 'DeleteGatewayIntranetLinkedVpcPeer', - ], + 'title' => 'Dedicated gateway', ], [ - 'id' => 360887, - 'title' => null, + 'children' => ['ListTenantAddons', 'CreateConfig', 'DeleteConfig', 'DescribeRegions', 'ListConfigs', 'UpdateConfig'], 'type' => 'directory', + 'title' => 'Other', + ], + [ 'children' => [ - 'DescribeRegions', - 'ReinstallTenantAddon', - 'ListServiceInstanceFaultInjectionInfo', - 'CreateFaultInjection', - 'DeleteFaultInjection', - 'ListTenantAddons', + 'AttachGatewayDomain', 'CommitService', 'CreateAclPolicy', 'CreateAppService', 'CreateBenchmarkTask', 'CreateGatewayIntranetLinkedVpcPeer', 'CreateGroup', 'CreateResourceLog', 'CreateServiceMirror', 'CreateVirtualResource', 'DeleteAclPolicy', 'DeleteBenchmarkTask', 'DeleteGateway', 'DeleteGatewayIntranetLinkedVpc', 'DeleteGatewayIntranetLinkedVpcPeer', 'DeleteGroup', 'DeleteResource', 'DeleteResourceDLink', 'DeleteResourceInstances', 'DeleteResourceLog', + 'DeleteService', 'DeleteServiceAutoScaler', 'DeleteServiceCronScaler', 'DeleteServiceMirror', 'DeleteVirtualResource', 'DescribeBenchmarkTask', 'DescribeBenchmarkTaskReport', 'DescribeGroup', 'DescribeResourceDLink', 'DescribeResourceLog', 'DescribeServiceDiagnosis', 'DescribeServiceInstanceDiagnosis', 'DescribeServiceLog', 'DescribeServiceMirror', 'DescribeServiceSignedUrl', 'DetachGatewayDomain', 'DevelopService', 'ListAclPolicy', 'ListGatewayIntranetSupportedZone', 'ListServiceContainers', + 'ReinstallTenantAddon', 'ReleaseService', 'RestartService', 'StartBenchmarkTask', 'StartService', 'StopBenchmarkTask', 'StopService', 'UpdateAppService', 'UpdateBenchmarkTask', 'UpdateGroup', 'UpdateResource', 'UpdateResourceDLink', 'UpdateResourceInstanceLabel', 'UpdateService', 'UpdateServiceLabel', 'UpdateServiceMirror', 'UpdateServiceSafetyLock', 'UpdateVirtualResource', ], + 'title' => 'Others', + 'type' => 'directory', ], ], 'components' => [ 'schemas' => [ 'ContainerInfo' => [ 'title' => '', - 'description' => 'The response parameters.'."\n", - 'visibility' => 'public', + 'description' => 'The container information of the instance.', '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', - ], + 'Name' => ['title' => '', 'description' => 'The container name.', 'type' => 'string', 'example' => 'worker0'], + 'Image' => ['title' => '', 'description' => 'The image.', 'type' => 'string', 'example' => 'registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320'], + 'Port' => ['title' => '', 'description' => 'The port.', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'], + 'RestartCount' => ['title' => '', 'description' => 'The number of restarts.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], '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', + 'description' => 'Indicates whether the health check is passed.', + 'enumValueTitles' => ['true' => '是', 'false' => '否'], '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', - ], - ], + 'CurrentStatus' => ['title' => '', 'description' => 'The current status. Valid values:'."\n" + .'- Waiting: waiting'."\n" + .'- Running: running'."\n" + .'- Terminated: terminated.', 'type' => 'string', 'example' => 'Waiting'], + 'CurrentReaon' => ['title' => '', 'description' => 'The reason for the current status.', 'type' => 'string', 'example' => 'PodInitializing'], + 'CurrentTimestamp' => ['title' => '', 'description' => 'The time when the current status occurred.', 'type' => 'string', 'example' => '2022-03-21T06:17:57Z'], + 'LastStatus' => ['title' => '', 'description' => 'The previous status. Valid values:'."\n" + .'- Waiting: waiting'."\n" + .'- Running: running'."\n" + .'- Terminated: terminated.', 'type' => 'string', 'example' => 'Terminated'], + 'LastReason' => ['title' => '', 'description' => 'The reason for the previous status.', 'type' => 'string', 'example' => 'Error'], + 'LastTimestamp' => ['title' => '', 'description' => 'The time when the previous status occurred.', 'type' => 'string', 'example' => '2022-03-21T05:17:57Z'], + ], + 'example' => '', ], 'Group' => [ 'title' => '', - 'description' => 'The service group.'."\n", - 'visibility' => 'public', + 'description' => 'The service group.', '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' => [ + 'Name' => ['title' => '', 'description' => 'The name of the service group.', 'type' => 'string', 'example' => 'foo'], + 'ClusterId' => ['title' => '', 'description' => 'The region in which the service group resides.', 'type' => 'string', 'example' => 'cn-shanghai'], + 'CreateTime' => ['title' => '', 'description' => 'The time when the service group was created. The time is in UTC.', 'type' => 'string', 'example' => '2020-05-19T14:19:42Z'], + 'UpdateTime' => ['title' => '', 'description' => 'The time when the service group was last updated. The time is in UTC.', 'type' => 'string', 'example' => '2021-01-29T11:13:20Z'], + 'QueueService' => ['title' => '', 'description' => 'The queue services contained in the service group.', 'type' => 'string', 'example' => 'qservice'], + 'InternetEndpoint' => ['title' => '', 'description' => 'The public endpoint of the service group.', 'type' => 'string', 'example' => 'http://1110*****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group'], + 'IntranetEndpoint' => ['title' => '', 'description' => 'The internal endpoint of the service group.', 'type' => 'string', 'example' => 'http://1110*****.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group'], + 'AccessToken' => ['title' => '', 'description' => 'The access token for the traffic entry of the service group.', 'type' => 'string', 'example' => 'MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********'], + 'TrafficMode' => [ 'title' => '', - 'description' => 'The public endpoint of the service group.'."\n", - 'visibility' => 'public', + 'description' => 'The traffic mode.', + 'enumValueTitles' => ['auto' => '根据实例数量自动分配流量', 'customized' => '自定义流量分配'], 'type' => 'string', - 'example' => 'http://1110*****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group', - 'backendName' => 'InternetEndpoint', + 'example' => 'auto', ], - 'IntranetEndpoint' => [ + 'Network' => [ + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'VSwitchId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'SecurityGroupId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'GatewayId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', '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', + 'example' => '', ], - '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' => '', + 'ParentUid' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'CallerUid' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Labels' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LabelKey' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'LabelValue' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], - 'example' => 'auto', - 'backendName' => 'TrafficMode', + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], 'Instance' => [ - 'title' => 'A short description of struct', - 'description' => 'The response parameters.'."\n", - 'visibility' => 'public', + 'title' => '', + 'description' => 'A short description of struct', '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', - ], + 'HostIP' => ['title' => '', 'description' => 'The IP address of the instance\'s host.', 'type' => 'string', 'example' => '11.0.XX.XX'], + 'HostName' => ['title' => '', 'description' => 'The name of the instance\'s host.', 'type' => 'string', 'example' => 'smart-scene-cls-854dbdc99d-****'], + 'InnerIP' => ['title' => '', 'description' => 'The internal IP address of the instance.', 'type' => 'string', 'example' => '172.17.0.17'], + 'InstanceName' => ['title' => '', 'description' => 'The name of the instance.', 'type' => 'string', 'example' => 'foo-5fc8946767-v****'], + 'InstancePort' => ['title' => '', 'description' => 'The network port of the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'], 'LastState' => [ 'title' => '', - 'description' => 'The last state of the instance.'."\n", - 'visibility' => 'public', + 'description' => 'The status of the instance when it last exited.', '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', + 'items' => ['description' => 'The details of the status.', 'type' => 'object', 'title' => '', 'example' => '[]'], + 'example' => '', ], + 'Namespace' => ['title' => '', 'description' => 'The namespace of the instance.', 'type' => 'string', 'example' => 'foo'], + 'Reason' => ['title' => '', 'description' => 'The identifier for the current status of the instance.', 'type' => 'string', 'example' => 'RUNNING'], + 'RestartCount' => ['title' => '', 'description' => 'The number of times the instance has been restarted.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], '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', + 'description' => 'The status of the instance.', + 'enumValueTitles' => ['Terminating' => '结束中', 'Succeeded' => '成功结束', 'Unknown' => '未知', 'Failed' => '失败结束', 'Running' => '运行中', 'Pending' => '等待中'], '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', + 'TotalProcesses' => ['title' => '', 'description' => 'The total number of processes for the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ReadyProcesses' => ['title' => '', 'description' => 'The number of processes that have started in the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'StartAt' => ['title' => '', 'description' => 'The start time of the instance. (Deprecated. Use StartTime instead.)', 'type' => 'string', 'deprecated' => true, 'example' => '2021-05-27T09:46:05Z'], + 'Role' => ['title' => '', 'description' => 'The server role of the instance. Valid values include Queue, DataLoader, and Standard.', 'type' => 'string', 'example' => 'Standard'], + 'ResourceType' => ['title' => '', 'description' => 'The type of the resource group to which the instance belongs. Valid values include PublicResource and PrivateResource.', 'type' => 'string', 'example' => 'PublicResource'], + 'TenantInstanceIP' => ['title' => '', 'description' => 'The IP address of the instance in the dedicated network.', 'type' => 'string', 'example' => '192.168.xx.xx'], + 'TenantHostIP' => ['title' => '', 'description' => 'The IP address of the host in the dedicated network.', 'type' => 'string', 'example' => '192.168.xx.xx'], + 'IsSpot' => ['title' => '', 'description' => 'Indicates whether the instance is a spot instance.', 'type' => 'boolean', 'example' => 'false'], + 'CurrentAmount' => ['title' => '', 'description' => 'The current hourly price of the spot instance.', 'type' => 'number', 'format' => 'float', 'example' => '0.444'], + 'OriginalAmount' => ['title' => '', 'description' => 'The original price of the spot instance before discounts.', 'type' => 'number', 'format' => 'float', 'example' => '2.2'], + 'Isolated' => ['title' => '', 'description' => 'Indicates whether the instance accepts traffic.', 'type' => 'boolean', 'example' => 'false'], + 'Zone' => ['title' => '', 'description' => 'The zone where the instance is located.', 'type' => 'string', 'example' => 'cn-shanghai-a'], + 'ExternalIP' => ['title' => '', 'description' => 'The IP address of the instance in your VPC.', 'type' => 'string', 'example' => '192.168.1.100'], + 'ExternalInstancePort' => ['title' => '', 'description' => 'The port number of the instance in your VPC.', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'], + 'StartTime' => ['title' => '', 'description' => 'The start time of the instance.', 'type' => 'string', 'example' => '2021-05-27T09:46:05Z'], + 'InstanceType' => ['title' => '', 'description' => 'The instance type.', 'type' => 'string', 'example' => 'ecs.c7.large'], + 'IsLatest' => [ + 'description' => 'Indicates whether the instance is running the latest version.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], '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', + 'example' => 'true', ], - 'Isolated' => [ - 'title' => '', - 'description' => 'Indicates whether the instance is isolated.'."\n", - 'visibility' => 'public', + 'Detached' => [ + 'description' => 'Indicates whether the instance is removed from active service rotation.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], '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', + 'example' => 'false', ], - 'InstanceType' => [ + 'IsReplica' => [ + 'description' => 'Indicates whether the instance is a replica.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], + 'type' => 'boolean', 'title' => '', - 'description' => 'The instance specification.'."\n", - 'visibility' => 'Public', - 'type' => 'string', - 'example' => 'ecs.c7.large', - 'backendName' => 'InstanceType', + 'example' => 'false', ], + 'ReplicaName' => ['description' => 'The name of the replica.', 'type' => 'string', 'title' => '', 'example' => 'xwq-sglang-dist-7dff0'], + 'CreateTime' => ['description' => 'The creation time of the instance.', 'type' => 'string', 'title' => '', 'example' => '2021-05-27T09:46:05Z'], ], + 'example' => '', ], 'Resource' => [ 'title' => 'A short description of struct', - 'description' => 'A short description of struct'."\n", - 'visibility' => 'public', + 'description' => 'Contains the configuration and status information for a resource group.', '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', + 'ResourceId' => ['title' => '资源组ID', 'description' => 'The unique identifier of the resource group.', 'type' => 'string', 'example' => 'eas-r-asdasdasd'], + 'ResourceName' => ['title' => '资源组名字', 'description' => 'The name of the resource group.', 'type' => 'string', 'example' => 'iot'], + 'ResourceType' => ['title' => '资源组类型', 'description' => 'The type of the resource group. Valid values:'."\n" + ."\n" + .'- `Dedicated`: A dedicated resource group.'."\n" + ."\n" + .'- `SelfManaged`: A self-managed resource group.', 'type' => 'string', 'example' => 'Dedicated'], + 'ClusterId' => ['title' => '资源组所在的集群', 'description' => 'The ID of the cluster where the resource group is located.', 'type' => 'string', 'example' => 'cn-shanghai'], + 'CreateTime' => ['title' => '资源组创建时间', 'description' => 'The time the resource group was created, in ISO 8601 format.', 'type' => 'string', 'example' => '2019-02-26T17:52:49Z'], + 'UpdateTime' => ['title' => '资源组更新时间', 'description' => 'The time the resource group was last updated, in ISO 8601 format.', 'type' => 'string', 'example' => '2019-02-26T19:52:49Z'], + 'InstanceCount' => ['title' => '资源组实例个数', 'description' => 'The total number of instances (prepaid and postpaid) in the resource group.', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], + 'PrePaidInstanceCount' => ['title' => '资源组预付费实例个数', 'description' => 'The number of prepaid instances.', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'PostPaidInstanceCount' => ['title' => '资源组按量付费实例个数', 'description' => 'The number of postpaid instances.', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'CpuCount' => ['title' => '资源组CPU数量', 'description' => 'The total number of CPU cores in the resource group.', 'type' => 'integer', 'format' => 'int32', 'example' => '64'], + 'GpuCount' => ['title' => '资源组GPU个数', 'description' => 'The total number of GPUs in the resource group.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Memory' => ['title' => '资源组总内存,单位为 MB', 'description' => 'The total memory of the resource group, in MB.', 'type' => 'integer', 'example' => '8192', 'format' => 'int32'], + 'CpuUsed' => ['title' => '资源组已使用 CPU 核数', 'description' => 'The number of used CPU cores in the resource group.', 'type' => 'integer', 'example' => '8', 'format' => 'int32'], + 'GpuUsed' => ['title' => '资源组已使用 GPU 数', 'description' => 'The number of used GPUs in the resource group.', 'type' => 'number', 'example' => '1', 'format' => 'float'], + 'MemoryUsed' => ['title' => '资源组已使用内存,单位为 MB', 'description' => 'The amount of used memory in the resource group, in MB.', 'type' => 'integer', 'example' => '2048', 'format' => 'int32'], + 'Status' => ['title' => '资源组的状态', 'description' => 'The status of the resource group.', 'type' => 'string', 'example' => 'ResourceReady'], + 'Message' => ['title' => '资源组摘要信息', 'description' => 'The latest status message for the resource group.', 'type' => 'string', 'example' => 'Resource is ready'], + 'ExtraData' => ['title' => '资源组自定义数据', 'description' => 'Additional information.', 'type' => 'object', 'example' => '{}'], + 'Vendor' => [ + 'title' => '资源组机器来源', + 'description' => 'The provider of the compute instances in the resource group, such as ECS.', + 'enumValueTitles' => ['ECS' => 'ECS', 'BareMetal' => 'BareMetal'], 'type' => 'string', - 'example' => '2019-02-26T17:52:49Z', - 'backendName' => 'CreateTime', + 'example' => 'ECS', + 'enum' => ['ECS', 'BareMetal'], ], - 'UpdateTime' => [ + 'Features' => [ + 'type' => 'array', + 'items' => ['description' => 'A supported feature. Currently, only `GpuShare` (GPU sharing) is a valid value.', 'type' => 'string', 'title' => '', 'example' => 'GpuShare'], + 'description' => 'The features supported by the resource group.', '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', + 'example' => '', ], - 'Status' => [ - 'title' => '', - 'description' => 'The status of the resource group.'."\n", - 'visibility' => 'public', + 'InstanceMaxAllocatableMemory' => ['description' => 'The maximum allocatable memory per node in the resource group.', 'type' => 'integer', 'title' => '', 'example' => '2048', 'format' => 'int32'], + 'InstanceMaxAllocatableGPU' => ['description' => 'The maximum number of allocatable GPUs per node.', 'type' => 'number', 'title' => '', 'example' => '2', 'format' => 'float'], + 'InstanceMaxAllocatableCPU' => ['description' => 'The maximum number of allocatable CPU cores per node.', 'type' => 'integer', 'title' => '', 'example' => '16', 'format' => 'int32'], + 'UsageMode' => [ + 'description' => 'The usage mode of the resource group.', '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', - ], + 'example' => 'inference', + 'enumValueTitles' => ['inference' => '推理服务资源组', 'sandbox' => '沙箱资源组'], ], + 'ServiceCount' => ['description' => 'The number of services deployed in the resource group.', 'type' => 'integer', 'title' => '', 'example' => '1', 'format' => 'int32'], ], + 'example' => '', ], 'ResourceInstance' => [ 'title' => 'A short description of struct', - 'description' => 'A short description of struct'."\n", - 'visibility' => 'public', + 'description' => 'A short description of struct', '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', - ], + 'InstanceId' => ['title' => '实例ID', 'description' => 'The instance ID.', 'type' => 'string', 'example' => 'eas-i-1800z74n30kao****'], + 'InstanceName' => ['title' => '实例名称', 'description' => 'The instance name.', 'type' => 'string', 'example' => 'eas01122713204*****'], + 'InstanceIp' => ['title' => '实例IP', 'description' => 'The IP address of the instance.', 'type' => 'string', 'example' => '11.227.XX.XX'], 'InstanceStatus' => [ - 'title' => '', - 'description' => 'The instance status.'."\n" - ."\n" - .'Valid values:'."\n" - ."\n" - .'* Ready-SchedulingDisabled'."\n" - .'* Ready'."\n" - .'* NotReady'."\n", - 'visibility' => 'public', + 'title' => '实例状态', + 'description' => 'The status of the instance.', + 'enumValueTitles' => ['Ready-SchedulingDisabled' => '', 'Ready' => '', 'NotReady' => ''], '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', ], + 'InstancePhase' => [ + 'description' => 'The lifecycle phase of the instance.', + 'type' => 'string', + 'title' => '', + 'example' => 'succeeded', + 'enumValueTitles' => ['waiting' => 'waiting', 'operating' => 'operating', 'failed' => 'failed', 'succeeded' => 'succeeded'], + ], + 'InstanceCpuCount' => ['title' => '实例的Cpu个数', 'description' => 'The number of CPUs for the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], + 'InstanceGpuCount' => ['title' => '实例的Gpu个数', 'description' => 'The number of GPUs for the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'InstanceMemory' => ['title' => '实例的内存大小', 'description' => 'The memory size of the instance.', 'type' => 'string', 'example' => '8192M'], + 'InstanceSystemDiskSize' => ['title' => '实例的系统盘大小', 'description' => 'The system disk size of the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'InstanceGpuMemory' => ['title' => '实例的显存大小', 'description' => 'The VRAM size of the instance.', 'type' => 'string', 'example' => '0G'], + 'InstanceUsedCpu' => ['title' => '实例已使用的CPU数量', 'description' => 'The number of CPUs in use.', 'type' => 'number', 'format' => 'float', 'example' => '2.4'], + 'InstanceUsedGpu' => ['title' => '实例已使用的GPU数量', 'description' => 'The number of GPUs in use.', 'type' => 'number', 'format' => 'float', 'example' => '0'], + 'InstanceUsedMemory' => ['title' => '实例已使用的内存大小', 'description' => 'The amount of memory in use.', 'type' => 'string', 'example' => '1000M'], + 'InstanceType' => ['title' => '实例的机型', 'description' => 'The instance type.', 'type' => 'string', 'example' => 'ecs.s6-c1m2.xlarge'], + 'CreateTime' => ['title' => '实例的创建时间', 'description' => 'The time when the instance was created.', 'type' => 'string', 'example' => '2020-07-05T22:51:32Z'], + 'ChargeType' => ['title' => '实例的计费类型', 'description' => 'The billing method for the instance.', 'type' => 'string', 'example' => 'PrePaid'], + 'ExpiredTime' => ['title' => '实例过期时间', 'description' => 'The time when the instance expires.', 'type' => 'string', 'example' => '2020-08-05T22:51:32Z'], + 'AutoRenewal' => ['title' => '实例是否自动续费', 'description' => 'Indicates whether auto-renewal is enabled for the instance.', 'type' => 'boolean', 'example' => 'false'], + 'Arch' => ['title' => '实例系统架构', 'description' => 'The system architecture of the instance.', 'type' => 'string', 'example' => 'arm64'], + 'Region' => ['title' => '实例所属区域', 'description' => 'The region of the instance.', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'Zone' => ['title' => '实例所属可用区', 'description' => 'The zone of the instance.', 'type' => 'string', 'example' => 'cn-hangzhou-b'], + 'ResourceId' => ['title' => '实例所属资源组ID', 'description' => 'The ID of the resource group to which the instance belongs.', 'type' => 'string', 'example' => 'eas-r-xxxxx'], + 'InstanceTenantIp' => ['title' => '实例专属网络IP', 'description' => 'The IP address of the instance in a dedicated network.', 'type' => 'string', 'example' => '192.168.XX.XX'], + 'InstanceUsedGpuMemory' => ['title' => '实例已使用的显存大小', 'description' => 'The amount of VRAM in use.', 'type' => 'string', 'example' => '470M'], 'Labels' => [ - 'title' => '', - 'description' => 'The instance tags.'."\n", - 'visibility' => 'Public', + 'title' => '实例标签', + 'description' => 'The labels of the instance.', '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', - ], + 'LabelKey' => ['title' => '实例标签键', 'description' => 'The label key.', 'type' => 'string', 'example' => 'key'], + 'LabelValue' => ['title' => '实例标签值', 'description' => 'The label value.', 'type' => 'string', 'example' => 'value'], ], - 'extendType' => 'true', 'description' => '', + 'title' => '', + 'example' => '', ], - 'backendName' => 'Labels', + 'example' => '', ], + 'LastCordonOperator' => ['title' => '最后一次停止调度操作人。', 'description' => 'The operator who performed the last cordon.', 'type' => 'string', 'example' => '24340xxxxxxxx'], + 'LastCordonReason' => ['title' => '最后一次停止调度操作原因。', 'description' => 'The reason for the last cordon.', 'type' => 'string', 'example' => 'operating'], ], + 'example' => '', ], 'ResourceInstanceWorker' => [ 'title' => 'A short description of struct', - 'description' => 'A short description of struct'."\n", - 'visibility' => 'public', + 'description' => 'Describes a worker instance within a service, including its status and resource allocation.', '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', - ], + 'Name' => ['title' => 'pod名', 'description' => 'The name of the service instance.', 'type' => 'string', 'example' => 'test-india-5bbbfdbc98-****'], + 'ServiceName' => ['title' => '服务名', 'description' => 'The name of the service.', 'type' => 'string', 'example' => 'test-in****'], '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', + 'title' => 'pod状态', + 'description' => 'The status of the instance.', + 'enumValueTitles' => ['Terminating' => '', 'Succeeded' => '', 'Unknown' => '', 'Failed' => '', 'Running' => '', 'Pending' => ''], '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', ], + 'Ready' => ['title' => '是否ready', 'description' => 'Indicates whether the instance is ready.', 'type' => 'boolean', 'example' => 'true'], + 'CpuRequest' => ['title' => 'CpuRequest', 'description' => 'The number of CPU cores requested.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'GpuRequest' => ['title' => 'GpuRequest', 'description' => 'The number of GPUs requested.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'MemoryRquest' => ['title' => 'MemoryRquest', 'description' => 'The requested memory.', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'CpuLimit' => ['title' => 'CpuLimit', 'description' => 'The CPU core limit.', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'GpuLimit' => ['title' => 'GpuLimit', 'description' => 'The GPU limit.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'MemoryLimit' => ['title' => 'MemoryLimit', 'description' => 'The memory limit.', 'type' => 'integer', 'format' => 'int64', 'example' => '400'], + 'RestartCount' => ['title' => 'RestartCount', 'description' => 'The number of times the instance has been restarted.', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'StartTime' => ['title' => 'StartTime', 'description' => 'The start time of the instance, in UTC (ISO 8601 format).', 'type' => 'string', 'example' => '2021-05-09T09:56:19Z'], ], + 'example' => '', ], 'Service' => [ 'title' => 'A short description of struct', - 'description' => 'The service details.'."\n", - 'visibility' => 'public', + 'description' => 'The details of the service.', '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', - ], + 'RequestId' => ['title' => '请求ID', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82********'], + 'Region' => ['title' => '服务所在的区域', 'description' => 'The region where the service is deployed.', 'type' => 'string', 'example' => 'cn-shanghai'], + 'CallerUid' => ['title' => '服务创建账号的UID', 'description' => 'The UID of the account that created the service.', 'type' => 'string', 'example' => '20123*******'], + 'ParentUid' => ['title' => '服务创建账号的主账号UID', 'description' => 'The UID of the primary account used to create the service.', 'type' => 'string', 'example' => '11234*******'], + 'CurrentVersion' => ['title' => '当前运行的模型版本', 'description' => 'The current version of the running model.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Cpu' => ['title' => '每个实例申请的cpu', 'description' => 'The number of CPU cores requested for each instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Gpu' => ['title' => '每个实例申请的gpu', 'description' => 'The number of GPUs requested for each instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Image' => ['title' => '服务的数据镜像', 'description' => 'The image used by the service.', 'type' => 'string', 'example' => 'registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320'], + 'PendingInstance' => ['title' => '被挂起的服务的实例个数', 'description' => 'The number of pending instances for the service.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'RunningInstance' => ['title' => '正在运行的服务的实例个数', 'description' => 'The number of running instances of the service.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'TotalInstance' => ['title' => '服务的所有实例总个数', 'description' => 'The total number of instances for the service.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'InternetEndpoint' => ['title' => '服务的公网endpoint', 'description' => 'The internet endpoint of the service. This field is returned only by the `DescribeService` operation.', 'type' => 'string', 'example' => 'http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo'], + 'IntranetEndpoint' => ['title' => '服务内网endpoint', 'description' => 'The intranet endpoint of the service. This field is returned only by the `DescribeService` operation.', 'type' => 'string', 'example' => 'http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo'], + 'LatestVersion' => ['title' => '服务最新版本号', 'description' => 'The latest version of the service.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Memory' => ['title' => '每个worker需要的内存大小,单位为M', 'description' => 'The amount of memory requested for each instance, in MB.', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'], + 'Message' => ['title' => '服务的摘要信息', 'description' => 'A message that provides information about the service status.', 'type' => 'string', 'example' => 'Service start successfully'], + 'Namespace' => ['title' => '服务所在的命名空间', 'description' => 'The namespace where the service is located.', 'type' => 'string', 'example' => 'echo'], + 'Reason' => ['title' => '服务的状态信息', 'description' => 'The reason for the service status.', 'type' => 'string', 'example' => 'RUNNING'], + 'Resource' => ['title' => '服务所在的资源组', 'description' => 'The resource group to which the service belongs.', 'type' => 'string', 'example' => 'eas-r-xxxxxxx'], + 'ResourceAlias' => ['title' => '服务所在的资源组别名', 'description' => 'The alias of the resource group to which the service belongs.', 'type' => 'string', 'example' => 'my_resource'], + 'ServiceConfig' => ['title' => '服务的配置信息', 'description' => 'The configuration of the service.', '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"}'], + 'ServiceName' => ['title' => '服务的名字', 'description' => 'The name of the service.', 'type' => 'string', 'example' => 'echo'], + 'ServiceGroup' => ['title' => '服务所在分组', 'description' => 'The group to which the service belongs.', 'type' => 'string', 'example' => 'my_group'], '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', + 'title' => '服务的状态', + 'description' => 'The status of the service.', 'enumValueTitles' => [ - 'Creating' => '', - 'Deploying' => '', - 'Stopped' => '', - 'Failed' => '', - 'Updating' => '', - 'Stopping' => '', - 'Waiting' => '', - 'HotUpdate' => '', - 'Starting' => '', - 'DeleteFailed' => '', - 'Running' => '', - 'Scaling' => '', - 'Pending' => '', - 'Deleting' => '', + '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', + 'example' => 'Running', ], - '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', + 'CreateTime' => ['title' => '服务的创建时间', 'description' => 'The time when the service was created, in RFC 3339 format (UTC).', 'type' => 'string', 'example' => '2021-01-29T11:13:20Z'], + 'UpdateTime' => ['title' => '服务的更新时间', 'description' => 'The time when the service was last updated, in RFC 3339 format (UTC).', 'type' => 'string', 'example' => '2021-01-29T11:13:20Z'], + 'Weight' => ['title' => '服务灰度发布的权重值', 'description' => 'The traffic weight for the canary release of the service.', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'ServiceId' => ['title' => '服务ID', 'description' => 'The unique ID of the service.', 'type' => 'string', 'example' => 'eas-m-xxasdat'], + 'ServiceUid' => ['title' => '服务ID,同ServiceId', 'description' => 'The service ID. This value is the same as `ServiceId`.', 'type' => 'string', 'example' => 'eas-m-xxasdat'."\n"], + 'AccessToken' => ['title' => '服务的请求Token', 'description' => 'The access token for the service.', 'type' => 'string', 'example' => 'MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********'], + 'Source' => ['title' => '服务的部署来源', 'description' => 'The deployment source of the service.', 'type' => 'string', 'example' => 'dsw'], + 'ExtraData' => ['title' => '服务的额外信息', 'description' => 'Additional information about the service.', 'type' => 'string', 'example' => '{"blue_green_services":["test","testxxxx"]}'], + 'Role' => ['title' => '服务角色', 'description' => 'The role of the service.', 'type' => 'string', 'example' => 'Queue'], + 'RoleAttrs' => ['title' => '服务角色额外属性', 'description' => 'Additional attributes of the service role. This field is returned only by the `DescribeService` operation.', 'type' => 'string', 'example' => '{"ApproxMaxLength":null,"Length":null,"MaxPayloadBytes":null}'], + 'SafetyLock' => [ + 'title' => '服务安全锁', + 'description' => 'The safety lock status of the service.', + 'enumValueTitles' => ['all' => '', 'dangerous' => '', 'none' => ''], 'type' => 'string', - 'example' => 'http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo'."\n", - 'backendName' => 'SecondaryInternetEndpoint', + 'example' => 'dangerous', + 'enum' => ['none', 'dangerous', 'all'], ], + 'SecondaryInternetEndpoint' => ['title' => '异步服务同步请求的公网Endpoint', 'description' => 'The internet endpoint for synchronous requests to an asynchronous service. This field is returned only by the `DescribeService` operation.', 'type' => 'string', 'example' => 'http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo'."\n"], + 'SecondaryIntranetEndpoint' => ['title' => '异步服务同步请求的内网Endpoint', 'description' => 'The intranet endpoint for synchronous requests to an asynchronous service. This field is returned only by the `DescribeService` operation.', 'type' => 'string', 'example' => 'http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo'."\n"], 'Labels' => [ - 'title' => '', - 'description' => 'The labels.'."\n", - 'visibility' => 'public', + 'title' => '服务标签列表', + 'description' => 'The labels of the service.', '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', - ], + 'LabelKey' => ['title' => '服务标签键', 'description' => 'The key of the service label.', 'type' => 'string', 'example' => 'key1'], + 'LabelValue' => ['title' => '服务标签值', 'description' => 'The value of the service label.', 'type' => 'string', 'example' => 'value1'], ], - 'extendType' => 'true', 'description' => '', + 'title' => '', + 'example' => '', ], - 'backendName' => 'Labels', + 'example' => '', ], - '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', + 'WorkspaceId' => ['title' => '服务所属工作空间ID', 'description' => 'The ID of the workspace to which the service belongs.', 'type' => 'string', 'example' => '123445'], + 'AppType' => ['title' => '应用服务类型', 'description' => 'The application type of the service.', 'type' => 'string', 'example' => 'LLM'], + 'AppConfig' => ['title' => '应用服务配置信息', 'description' => 'The application configuration for the service.', 'type' => 'string', 'example' => '{"ModelStorage":"oss"}'], + 'AppSpecName' => ['title' => '应用服务规格名称', 'description' => 'The application specification name for the service.', 'type' => 'string', 'example' => 'llama_7b_fp16'], + 'AppVersion' => ['title' => '应用服务版本', 'description' => 'The application version of the service.', 'type' => 'string', 'example' => 'v1'], + 'TrafficState' => [ + 'title' => '流量状态', + 'description' => 'The traffic state of the service.', + 'enumValueTitles' => ['standalone' => 'standalone', 'grouping' => 'grouping'], 'type' => 'string', - 'example' => 'http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo'."\n", - 'backendName' => 'SecondaryIntranetEndpoint', + 'example' => 'standalone', ], - 'PendingInstance' => [ + 'QuotaId' => ['description' => 'The quota ID of the service. This field is returned only for services that are deployed on a Lingjun resource quota.', 'type' => 'string', 'example' => 'quotaxxxxx', 'title' => ''], + 'Gateway' => ['description' => 'The ID of the dedicated gateway for the service. This field is returned only for services that are bound to a dedicated gateway.', 'type' => 'string', 'example' => 'gw-xxxxxx', 'title' => ''], + 'GPUMemory' => ['description' => 'The amount of GPU memory requested for each instance when GPU sharing is enabled.', 'type' => 'integer', 'title' => '', 'example' => '20', 'format' => 'int32'], + 'GPUCorePercentage' => ['description' => 'The percentage of GPU computing power requested for each instance when GPU sharing is enabled.', 'type' => 'integer', 'title' => '', 'example' => '50', 'format' => 'int32'], + 'ResourceBurstable' => [ + 'description' => 'Indicates whether a burstable resource pool is enabled for the service.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], + 'type' => 'boolean', 'title' => '', - 'description' => 'The number of instances for the pending service.'."\n", - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - 'backendName' => 'PendingInstance', + 'example' => 'true', ], - 'LatestVersion' => [ + 'CronscalerEnabled' => [ + 'description' => 'Indicates whether scheduled scaling is enabled for the service.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], + 'type' => 'boolean', 'title' => '', - 'description' => 'The latest version of the service.'."\n", - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - 'backendName' => 'LatestVersion', + 'example' => 'true', ], - 'ServiceName' => [ + 'AutoscalerEnabled' => [ + 'description' => 'Indicates whether auto scaling is enabled for the service.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], + 'type' => 'boolean', 'title' => '', - 'description' => 'The service name.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'echo', - 'backendName' => 'ServiceName', + 'example' => 'true', ], - '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', + 'InstanceCountInResource' => [ + 'type' => 'object', + 'properties' => [ + 'Public' => ['description' => 'The number of instances that use public resource groups.', 'type' => 'integer', 'title' => '', 'example' => '10', 'format' => 'int32'], + 'Dedicated' => ['description' => 'The number of instances that use dedicated or self-managed resource groups.', 'type' => 'integer', 'title' => '', 'example' => '10', 'format' => 'int32'], + 'Quota' => ['description' => 'The number of instances that use a Lingjun quota.', 'type' => 'integer', 'title' => '', 'example' => '10', 'format' => 'int32'], ], - ], - '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' => [ + 'description' => 'A breakdown of the instance count by resource type.', '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', + 'example' => '', ], + 'WorkloadType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], ], 'apis' => [ - 'CreateService' => [ - 'summary' => 'Creates a model service in Elastic Algorithm Service (EAS).', - 'path' => '/api/v2/services', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + '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' => 'create', - 'abilityTreeCode' => '37002', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '241083', + 'abilityTreeNodes' => ['FEATURElearnMC2VJP'], ], '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' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The region where the private gateway resides.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - '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' => '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\\&Env=online) operation.'."\n", 'type' => 'string', 'required' => true, 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], ], [ - 'name' => 'Labels', + 'name' => 'CustomDomain', 'in' => 'query', 'style' => 'json', 'schema' => [ - 'description' => 'The custom label.'."\n", + 'description' => 'The custom domain name information.'."\n", 'type' => 'object', - 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - 'description' => 'The label.'."\n", - 'example' => '{"key":"value"}', + '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', + 'title' => '', + ], + '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', 'title' => ''], + 'Domain' => ['description' => 'The custom domain name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'test.com', 'title' => ''], ], - ], - ], - [ - 'name' => 'WorkspaceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The workspace ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '123456', + 'required' => true, + 'title' => '', + 'example' => '', ], ], ], @@ -1807,256 +531,91 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The data returned.'."\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.****', - ], + '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\\&Env=online) operation.'."\n", 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], + 'Message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'Successfully update custom endpoint for gateway gw-1uhcqmsc7x22******'."\n", 'title' => ''], ], + 'example' => '', ], ], - 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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], ], - 'schemes' => [ - 'http', - 'https', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AttachGatewayDomain'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:AttachGatewayDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + ], + 'CloneService' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/clone', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + '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' => '服务所在区域', - 'description' => 'The ID of the region where the service is deployed.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The cluster ID.', 'type' => 'string', 'required' => true, 'title' => '', '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', - ], + 'schema' => ['description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'foo'], ], [ 'name' => 'body', 'in' => 'body', + 'schema' => ['description' => 'The request body. For more information, see [CreateService](~~412086~~).', 'type' => 'string', 'title' => '', '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' => [ - 'description' => 'The request body.'."\n", + 'title' => '', + 'description' => 'The label of the service to be cloned.', '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, + 'additionalProperties' => ['description' => 'The custom service label.', 'type' => 'string', 'example' => '{"key":"value"}'."\n", 'title' => ''], + 'example' => '', ], ], ], @@ -2064,141 +623,75 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', '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]', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'ServiceId' => ['description' => 'The service ID.', 'type' => 'string', 'title' => '', 'example' => 'eas-m-r9knx7n9guf2p*****'], + 'ServiceName' => ['description' => 'The service name.', 'type' => 'string', 'title' => '', 'example' => 'foo'], + 'Status' => ['description' => 'The service status.', 'type' => 'string', 'title' => '', 'example' => 'Creating'], + 'InternetEndpoint' => ['description' => 'The public endpoint of the service.', 'type' => 'string', 'title' => '', 'example' => 'http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo'], + 'IntranetEndpoint' => ['description' => 'The private endpoint of the service.', 'type' => 'string', 'title' => '', 'example' => 'http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo'], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'CloneService', + 'summary' => 'Clones a service.', + 'changeSet' => [ + ['createdAt' => '2024-08-19T02:57:21.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CloneService'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CloneService', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + '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"}]', + ], + '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', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '123919', - 'abilityTreeNodes' => [ - 'FEATURElearnZ3WNW7', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '161122', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'title' => '服务所在区域', - 'description' => 'The region ID of the service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['title' => '', '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' => 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, - ], + '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' => [ @@ -2208,120 +701,91 @@ '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', - ], + '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'], ], + 'example' => '', ], ], ], - '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" - .''."\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', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Success\\"\\n}","type":"json"}]', + 'title' => 'CommitService', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CommitService'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:CommitService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + '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' => [ - 'title' => '服务所在区域', - 'description' => 'The ID of the region where the service is deployed.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The region ID of the private gateway.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-wulanchabu', 'title' => ''], ], [ - 'name' => 'ServiceName', + 'name' => 'GatewayId', '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', - ], + '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******', 'title' => ''], ], [ - 'name' => 'body', - 'in' => 'body', + '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****', 'title' => ''], + ], + [ + 'name' => 'AclPolicyList', + 'in' => 'query', '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, + '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', 'title' => ''], + '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', 'title' => ''], ], + 'required' => false, + 'title' => '', + 'example' => '', ], - 'required' => false, + 'required' => true, + 'title' => '', + 'example' => '', ], ], ], @@ -2332,71 +796,68 @@ '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%]', - ], + '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******', 'title' => ''], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Successfully add acl policy for gateway', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + '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', + 'changeSet' => [ + ['createdAt' => '2024-10-11T02:05:46.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAclPolicy'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateAclPolicy', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], ], ], ], ], - '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', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The workspace ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '123456', - ], + 'schema' => ['description' => 'The workspace ID.'."\n", 'type' => 'string', 'required' => false, 'example' => '12****', 'title' => ''], ], [ 'name' => 'QuotaId', 'in' => 'query', - 'schema' => [ - 'description' => 'The quota ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'abcdef', - ], + 'schema' => ['description' => 'The quota ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'abcdef', 'title' => ''], ], [ 'name' => 'body', @@ -2406,12 +867,7 @@ 'description' => 'The request body.'."\n", 'type' => 'object', 'properties' => [ - 'ServiceName' => [ - 'description' => 'The service name.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'foo', - ], + 'ServiceName' => ['description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], 'AppType' => [ 'description' => 'The application service type.'."\n" ."\n" @@ -2426,63 +882,46 @@ .' <!-- -->'."\n", 'type' => 'string', 'required' => true, - 'enumValueTitles' => [ - 'LLM' => 'LLM', - ], + 'enumValueTitles' => ['LLM' => 'LLM'], 'example' => 'LLM', + 'title' => '', ], - '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', - ], + 'AppVersion' => ['description' => 'The application version.'."\n", 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], + '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', 'title' => ''], + 'Replicas' => ['description' => 'The number of instances.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'title' => ''], '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.', - ], + 'additionalProperties' => ['type' => 'any', 'example' => ' { "ModelStorage": "oss", "OssPath": "oss://examplebucket/xxxx/" }', '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.', 'title' => ''], + 'title' => '', + 'example' => '', ], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -2493,250 +932,73 @@ '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.****', - ], + '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', 'title' => ''], + 'ServiceName' => ['description' => 'The service name.'."\n", 'type' => 'string', 'example' => 'foo', 'title' => ''], + 'Status' => ['description' => 'The service state.'."\n", 'type' => 'string', 'example' => 'Creating', 'title' => ''], + 'Region' => ['description' => 'The region ID of the service.'."\n", 'type' => 'string', 'example' => 'cn-shanghai', 'title' => ''], + 'InternetEndpoint' => ['description' => 'The public endpoint of the service.'."\n", 'type' => 'string', 'example' => 'http://pai-eas.cn-shanghai.****', 'title' => ''], + 'IntranetEndpoint' => ['description' => 'The internal endpoint of the service.'."\n", 'type' => 'string', 'example' => 'http://pai-eas-vpc.cn-shanghai.****', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + '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' => [], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAppService'], ], ], - 'consumes' => [], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '254853', - 'abilityTreeNodes' => [ - 'FEATURElearn6PC7M4', - ], - 'autoTest' => true, - 'tenantRelevance' => 'tenant', - ], - 'parameters' => [ + 'ramActions' => [ [ - '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' => '', - ], - ], + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateAppService', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], - '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', - ], + 'CreateBenchmarkTask' => [ + 'summary' => 'Creates a stress testing task.', + 'path' => '/api/v2/benchmark-tasks', + 'methods' => ['post'], + 'schemes' => ['http', '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', - ], + 'systemTags' => [], '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', - ], + '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" + .'}', 'title' => ''], ], ], 'responses' => [ @@ -2746,371 +1008,370 @@ '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', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82********', 'title' => ''], + 'TaskName' => ['description' => 'The name of the stress testing task.'."\n", 'type' => 'string', 'example' => 'benchmark-larec-test-1076', 'title' => ''], + 'Region' => ['description' => 'The ID of the region where the stress testing task is performed.'."\n", 'type' => 'string', 'example' => 'cn-shanghai', 'title' => ''], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Benchmark task [foo] is Creating', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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.|', + 'changeSet' => [ + ['createdAt' => '2022-08-30T11:20:04.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2022-05-27T03:23:01.000Z', 'description' => 'OpenAPI offline'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateBenchmarkTask'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:CreateBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/*'], + ], + ], + ], ], + ], + 'CreateConfig' => [ + 'summary' => 'Creates a single dynamic parameter in a specified service.', + 'path' => '/api/v2/configs/{ClusterId}/{ConfigType}/{Name}/{ConfigKey}', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', + 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region in which the service resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region where the service is located.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ServiceName', + 'name' => 'ConfigType', 'in' => 'path', - 'schema' => [ - 'description' => 'The service name.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'foo', - ], + 'schema' => ['description' => 'The configuration type. Currently, only `service` is supported.', 'type' => 'string', 'required' => false, 'example' => 'service', 'title' => ''], ], [ - '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' => 'Name', + 'in' => 'path', + 'schema' => ['description' => 'The service name.', 'type' => 'string', 'required' => false, 'example' => 'my_llm_service', 'title' => ''], ], [ - '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' => 'ConfigKey', + 'in' => 'path', + 'schema' => ['description' => 'The dynamic parameter name. It can contain letters, digits, periods (.), underscores (\\_), hyphens (-), and forward slashes (/). The maximum length is 100 characters.', 'type' => 'string', 'required' => false, 'example' => 'rate_limit', 'title' => ''], ], [ - 'name' => 'Internal', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => 'Specifies whether to use the VPC connection.'."\n", - 'type' => 'boolean', + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => 'The dynamic parameter value.', 'type' => 'string', 'required' => false, 'example' => '{"model": "gpt-4"}', 'title' => ''], + ], + 'description' => 'The request body.', 'required' => false, - 'example' => 'false', + 'title' => '', + 'example' => '', ], ], ], '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*******', - ], + 'Key' => ['description' => 'The dynamic parameter name.', 'type' => 'string', 'example' => 'model-config', 'title' => ''], + 'Value' => ['description' => 'The dynamic parameter value.', 'type' => 'string', 'example' => '{"model": "gpt-4"}', 'title' => ''], + 'CreatedAt' => ['description' => 'The creation time.', 'type' => 'string', 'example' => '2024-01-01T00:00:00Z', 'title' => ''], + 'UpdatedAt' => ['description' => 'The update time.', 'type' => 'string', 'example' => '2024-01-01T00:00:00Z', 'title' => ''], ], + 'title' => '', + 'description' => 'The response body.', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'CreateConfig', + 'description' => '## Description'."\n" + ."\n" + .'- This API creates a new dynamic parameter by sending a POST request to a specified path.'."\n" + ."\n" + .'- The dynamic parameter name (`ConfigKey`) can contain letters, digits, periods (.), underscores (\\_), hyphens (-), and forward slashes (/). The maximum length is 100 characters.'."\n" + ."\n" + .'- The request body must include the dynamic parameter value (`Value`).'."\n" + ."\n" + .'- If successful, the API returns the new dynamic parameter\'s name (`Key`), value (`Value`), creation time, and update time.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - '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', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Key\\": \\"model-config\\",\\n \\"Value\\": \\"{\\\\\\"model\\\\\\": \\\\\\"gpt-4\\\\\\"}\\",\\n \\"CreatedAt\\": \\"2024-01-01T00:00:00Z\\",\\n \\"UpdatedAt\\": \\"2024-01-01T00:00:00Z\\"\\n}","type":"json"}]', ], - 'CloneService' => [ - 'summary' => 'Clones a service.', - 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/clone', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateFaultInjection' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'produces' => ['application/json'], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'none', - 'chargeType' => 'paid', - 'abilityTreeCode' => '217114', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'title' => '集群Id', - 'description' => 'The cluster ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['type' => 'string', 'required' => true, 'description' => 'The region where the private gateway is located.', 'title' => '', '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', - ], + 'schema' => ['type' => 'string', 'required' => true, 'description' => 'The name of the service. For more information about how to view the service name, see [ListServices](~~412109~~).', 'title' => '', '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' => 'InstanceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'description' => 'The name of the service instance. For more information about how to view the instance name, see [ListServiceInstances](~~412108~~).', 'title' => '', 'example' => 'foo-69xxxx4f4-5w9r9'], ], [ - 'name' => 'Labels', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', '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", - ], + 'properties' => [ + 'FaultType' => [ + 'type' => 'string', + 'description' => 'The fault type.'."\n" + .'Device faults: 1. CPU full load fault. 2. Memory load fault. 3. Network fault. 4. Disk read/write fault. 5. Disk fill fault.', + 'required' => false, + 'enumValueTitles' => ['MemLoadTask' => 'Memory stress', 'CpuFullloadTask' => 'CPU full load', 'NetworkTask' => 'Network fault', 'DiskFillTask' => 'Disk stress'], + 'title' => '', + 'example' => 'CpuFullloadTask', + ], + 'FaultArgs' => ['type' => 'any', 'description' => 'The parameters for each fault type are described as follows:'."\n" + ."\n" + .'1. CpuFullloadTask (CPU full load fault)'."\n" + .' `{ "FaultType": "CpuFullloadTask", "FaultArgs": { "FaultAction": "fullload", "CpuPercent": 50 } }`'."\n" + ."\n" + .'2. MemLoadTask (Memory load fault)'."\n" + .' `{ "FaultType": "MemLoadTask", "FaultArgs": { "FaultAction": "load", "MemPercent": 80 } }`'."\n" + ."\n" + .'3. NetworkTask (Network fault)'."\n" + .' 3.a. NetworkDelayAction (Network delay)'."\n" + .' `{ "FaultType": "NetworkTask", "FaultArgs": { "FaultAction": "delay", "Time": 3000, "Offset": 100 } }`'."\n" + .' 3.b. NetworkCorruptAction (Network packet corruption)'."\n" + .' `{ "FaultType": "NetworkTask", "FaultArgs": { "FaultAction": "corrupt", "Percent": 50 } }`'."\n" + .' 3.c. NetworkLossAction (Network packet loss)'."\n" + .' `{ "FaultType": "NetworkTask", "FaultArgs": { "FaultAction": "loss", "Percent": 30 } }`'."\n" + ."\n" + .'4. DiskBurnTask (Disk read/write fault)'."\n" + .' `{ "FaultType": "DiskBurnTask", "FaultArgs": { "FaultAction": "burn", "Read": true, "Write": true, "Size": 100 } }`'."\n" + ."\n" + .'5. DiskFillTask (Disk fill fault)'."\n" + .' `{ "FaultType": "DiskFillTask", "FaultArgs": { "FaultAction": "fill", "Percent": 80 } }`', 'required' => false, 'title' => '', 'example' => '{'."\n" + .' "FaultType": "DiskFillTask",'."\n" + .' "FaultArgs": {'."\n" + .' "FaultAction": "fill",'."\n" + .' "Percent": 80'."\n" + .' }'."\n" + .'}'."\n"], + ], + 'description' => 'The request body. For information about key request parameters, see **Table 1. Request body parameters** and **Table 2. metadata parameters** below. For more information about parameter settings, see [Parameter description for service models](~~450525~~).', + 'required' => false, + 'title' => '', + 'example' => '', ], ], ], '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', - ], + 'RequestId' => ['type' => 'string', 'title' => '', 'description' => 'The ID of the request.', 'example' => '40325405-579C-4D82***'], + 'Message' => ['type' => 'string', 'description' => 'The message returned for the request.', 'title' => '', 'example' => 'Addon prometheus_discovery is successfully reinstalled'], ], + 'title' => '', + 'description' => 'The response schema.', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'CreateFaultInjection', + 'summary' => 'Creates a fault injection task.', + 'description' => '**Before you use this operation, make sure that you understand the billing methods and [pricing](~~144261~~) of Elastic Algorithm Service (EAS).**', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - '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', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Addon prometheus_discovery is successfully reinstalled\\"\\n}","type":"json"}]', ], - 'DeleteService' => [ - 'summary' => 'Deletes a service.', - 'path' => '/api/v2/services/{ClusterId}/{ServiceName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateGateway' => [ + 'path' => '/api/v2/gateways', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '191840', + 'abilityTreeNodes' => ['FEATURElearn6PC7M4'], ], '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' => 'ResourceName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the resource group. For more information, see the ResourceName field that is returned by the [ListResources](~~412133~~) operation when ResourceType is SelfManaged.', 'type' => 'string', 'required' => false, 'example' => 'eas-r-4gt8twzwllfo******', 'title' => ''], ], [ - 'name' => 'ServiceName', - 'in' => 'path', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', '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', + 'description' => 'The request body.', + 'type' => 'object', + 'properties' => [ + 'InstanceType' => ['description' => 'The instance type of the private gateway. Valid values:'."\n" + ."\n" + .'- 2c4g'."\n" + ."\n" + .'- 4c8g'."\n" + ."\n" + .'- 8c16g'."\n" + ."\n" + .'- 16c32g', 'type' => 'string', 'required' => false, 'example' => '2c4g', 'title' => ''], + 'EnableIntranet' => [ + 'description' => 'Specifies whether to enable internal network access. The default value is true.', + 'type' => 'boolean', + 'required' => false, + 'enumValueTitles' => ['true' => 'Enable', 'false' => 'Disable'], + 'example' => 'true', + 'title' => '', + ], + 'EnableInternet' => [ + 'description' => 'Specifies whether to enable public network access. The default value is false.', + 'type' => 'boolean', + 'required' => false, + 'enumValueTitles' => ['true' => 'Enable', 'false' => 'Disable'], + 'example' => 'false', + 'title' => '', + ], + 'Name' => ['description' => 'The alias of the private gateway.', 'type' => 'string', 'required' => false, 'example' => 'mygateway1', 'title' => ''], + 'Replicas' => ['description' => 'The number of nodes for the private gateway.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''], + 'ChargeType' => ['description' => 'The billing method. Valid values:'."\n" + ."\n" + .'- PrePaid: subscription.'."\n" + ."\n" + .'- PostPaid: pay-as-you-go.', 'type' => 'string', 'required' => false, 'example' => 'PostPaid', 'title' => ''], + 'AutoRenewal' => ['description' => 'Specifies whether to enable auto-renewal. Valid values:'."\n" + ."\n" + .'- false (default): Auto-renewal is disabled.'."\n" + ."\n" + .'- true: Auto-renewal is enabled.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], + 'GatewayType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -3118,373 +1379,200 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response.', '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', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'GatewayId' => ['description' => 'The ID of the private gateway.', 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], + 'ClusterId' => ['description' => 'The region where the private gateway resides.', 'type' => 'string', 'example' => 'cn-wulanchabu', 'title' => ''], + 'Message' => ['description' => 'The message returned for the request.', 'type' => 'string', 'example' => 'Successfully create gateway for user-managed resource', 'title' => ''], ], + 'example' => '', ], ], - 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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'CreateGateway', + 'summary' => 'Creates a gateway.', + 'changeSet' => [ + ['createdAt' => '2024-10-11T02:03:42.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-07-31T09:23:25.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGateway'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateGateway', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/*'], + ], + ], + ], ], + '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"}]', + ], + 'CreateGatewayIntranetLinkedVpc' => [ + 'summary' => 'Creates an internal endpoint for a private gateway.', + 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '167565', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'operationType' => 'create', + 'riskType' => 'high', + 'chargeType' => 'paid', + 'abilityTreeCode' => '192211', + 'abilityTreeNodes' => ['FEATURElearnMC2VJP'], ], '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', - ], + 'schema' => ['description' => 'The region where the private gateway is located.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-wulanchabu'], ], [ - 'name' => 'ServiceName', + 'name' => 'GatewayId', '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', - ], + 'schema' => ['description' => 'The ID of the private gateway. For more information, see the private\\_gateway\\_id field in the response of the [ListResources](~~412133~~) operation.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'gw-1uhcqmsc7x22******'], ], [ - 'name' => 'Keys', + 'name' => 'VpcId', '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, - ], + 'schema' => ['description' => 'The ID of the virtual private cloud (VPC). For more information, see [DescribeVpcs](~~448581~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'vpc-uf66uio7md****'], ], [ - 'name' => 'LabelKeys', + 'name' => 'VSwitchId', 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - 'required' => false, - ], + 'schema' => ['description' => 'The ID of the virtual switch. For more information, see [DescribeVpcs](~~448581~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'vsw-8vbqn2at0kljjxxxx****'], ], - ], - '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' => 'EnableAuthoritativeDns', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'description' => 'Specifies whether to enable authoritative DNS parsing. The default value is false.', 'required' => false, 'title' => '', 'example' => 'true'], ], [ - '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' => 'AccountId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'description' => 'The ID of the Alibaba Cloud account to which the VPC belongs.', 'required' => false, 'title' => '', 'example' => '19*****10'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response.', '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', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'GatewayId' => ['description' => 'The ID of the private gateway.', 'type' => 'string', 'title' => '', 'example' => 'gw-1uhcqmsc7x22******'], + 'Message' => ['description' => 'The message returned for the request.', 'type' => 'string', 'title' => '', 'example' => 'Successfully add intranet linked vpc for gateway'], ], + 'example' => '', ], ], - 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', + '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', + 'description' => '**Make sure that you understand the billing methods and [pricing](~~144261~~) of Elastic Algorithm Service (EAS) before you use this operation.**', + 'changeSet' => [ + ['createdAt' => '2025-04-22T09:35:38.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2025-03-13T07:44:56.000Z', 'description' => 'Request parameters changed'], ], - 'security' => [ - [ - 'AK' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGatewayIntranetLinkedVpc'], ], ], - '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', - ], - ], + 'ramActions' => [ [ - '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', - ], + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateGatewayIntranetLinkedVpc', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], ], ], ], ], - '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', - ], + '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' => [], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '39632', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '245608', + 'abilityTreeNodes' => ['FEATURElearnMC2VJP'], ], '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', - ], + 'schema' => ['description' => 'The region where the private gateway resides.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cn-wulanchabu', 'title' => ''], ], [ - 'name' => 'ServiceName', + 'name' => 'GatewayId', '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', - ], + '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******', 'title' => ''], ], [ - 'name' => 'InstanceList', + 'name' => 'VpcId', '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', - ], + 'schema' => ['description' => 'The VPC ID. To obtain the VPC ID, see [ListGatewayIntranetLinkedVpc](~~2621223~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'vpc-2zetuli9ws0qgjd******', 'title' => ''], ], [ - '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', + 'name' => 'PeerVpcs', 'in' => 'query', + 'style' => 'json', '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', + '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****', 'title' => ''], + 'Region' => ['description' => 'The region where the VPC peer resides.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], 'required' => false, - 'example' => 'worker0', - ], - ], - [ - 'name' => 'IsReplica', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', + 'title' => '', + 'example' => '', ], ], ], @@ -3492,185 +1580,266 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The data returned.'."\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', - ], + '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******', 'title' => ''], + 'Message' => ['description' => 'The message that is returned.'."\n", 'type' => 'string', 'example' => 'Successfully add intranet linked vpc Peer for gateway', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGatewayIntranetLinkedVpcPeer'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateGatewayIntranetLinkedVpcPeer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateGroup' => [ + 'summary' => 'Creates a service group.', + 'path' => '/api/v2/groups', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + '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', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', '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', + 'description' => 'The request body.', + 'type' => 'object', + 'properties' => [ + 'Name' => ['description' => 'The name of the group.', 'type' => 'string', 'required' => false, 'example' => 'foo', 'title' => ''], + 'WorkSpaceId' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => false, 'example' => '12xx34', 'title' => ''], + 'Network' => [ + 'description' => 'The virtual private cloud (VPC) configuration.', + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['description' => 'The VPC ID.', 'type' => 'string', 'required' => false, 'example' => 'vpc-bp1xxxxxx0qrykjr9b', 'title' => ''], + 'VSwitchId' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1xxxxxxwmssgq28gye8', 'title' => ''], + 'SecurityGroupId' => ['description' => 'The security group ID.', 'type' => 'string', 'required' => false, 'example' => 'sg-584xxxxxx7h08llvoww5tv5gl', 'title' => ''], + 'GatewayId' => ['description' => 'The dedicated gateway ID.', 'type' => 'string', 'required' => false, 'example' => 'gw-248xxxxxxvlkhtbrda', 'title' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'Labels' => [ + 'description' => 'The user-defined labels.', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['description' => '按{"key":"value"}格式填写。Value 可为 null 或空字符,代表只按 Key 过滤,Value 可为任意值。', 'type' => 'string', 'example' => '{"key1":"value1","key2":null}'."\n", 'title' => ''], + 'title' => '', + 'example' => '', + ], + ], + 'required' => false, + 'title' => '', + 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'title' => '', + 'description' => 'The response.', '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%]', - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'Create service group foo successfully', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Create a service group', + 'description' => '**Before you use this operation, make sure that you fully understand the billing of Elastic Algorithm Service (EAS) and its [pricing](~~144261~~).**.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Create service group foo successfully\\"\\n}","type":"json"}]', + ], + 'CreateResource' => [ + 'summary' => 'Create a new resource group.', + 'path' => '/api/v2/resources', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '37044', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'operationType' => 'create', + 'riskType' => 'high', + 'chargeType' => 'paid', + 'abilityTreeCode' => '37055', + '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. 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', + 'style' => 'json', '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', + 'description' => 'The request body.', + 'type' => 'object', + 'properties' => [ + 'EcsInstanceType' => ['description' => 'The ECS instance type.'."\n" + ."\n" + .'> This parameter is required when `ResourceType` is set to `Dedicated`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ecs.c6.8xlarge'], + 'SystemDiskSize' => ['description' => 'The size of the system disk, in GiB. The value must be between 200 and 2,000. If unspecified, the default is 200 GiB.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '2000', 'minimum' => '200', 'example' => '200', 'default' => '200', 'title' => '', 'required' => false], + 'EcsInstanceCount' => ['description' => 'The number of instances.'."\n" + ."\n" + .'> This parameter is required when `ResourceType` is set to `Dedicated`.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '5'], + 'ChargeType' => [ + 'description' => 'The billing method. Valid values:'."\n" + ."\n" + .'- `PrePaid`: subscription.'."\n" + ."\n" + .'- `PostPaid`: pay-as-you-go.'."\n" + ."\n" + .'> This parameter is required when `ResourceType` is set to `Dedicated`.', + 'enumValueTitles' => ['PostPaid' => '', 'PrePaid' => ''], + 'type' => 'string', + 'required' => false, + 'enum' => ['PrePaid', 'PostPaid'], + 'title' => '', + 'example' => 'PostPaid', + ], + 'AutoRenewal' => ['description' => 'Specifies whether to enable auto-renewal. Valid values:'."\n" + ."\n" + .'- `false` (default): Auto-renewal is disabled.'."\n" + ."\n" + .'- `true`: Auto-renewal is enabled.', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'false'], + 'Zone' => ['description' => 'The zone in which to create the instance.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai-f', 'title' => ''], + 'ResourceType' => [ + 'description' => 'The type of the resource group. Valid values:'."\n" + ."\n" + .'- `Dedicated`: a dedicated resource group.'."\n" + ."\n" + .'- `SelfManaged`: a self-managed resource group.'."\n" + ."\n" + .'> You must be whitelisted to use self-managed resource groups.', + 'enumValueTitles' => ['SelfManaged' => '', 'Dedicated' => ''], + 'type' => 'string', + 'required' => false, + 'example' => 'Dedicated', + 'title' => '', + ], + 'SelfManagedResourceOptions' => [ + 'description' => 'The configuration options for the self-managed resource group.', + 'type' => 'object', + 'properties' => [ + 'ExternalClusterId' => ['description' => 'The ID of the self-managed cluster.', 'type' => 'string', 'required' => false, 'example' => 'cf0386f250f2545689ca7fdd1cd******', 'title' => ''], + 'RoleName' => ['description' => 'The name of the RAM role that grants PAI-EAS the required permissions.', 'type' => 'string', 'required' => false, 'example' => 'clusterrole', 'title' => ''], + 'NodeMatchLabels' => [ + 'description' => 'The node labels to match, specified as key-value pairs.', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['description' => 'A key-value pair for a node label.', 'type' => 'string', 'example' => '"key1": "value1"', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'NodeTolerations' => [ + 'description' => 'A list of tolerations for node taints.', + 'type' => 'array', + 'items' => [ + 'description' => 'A toleration for a node taint.', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The key of the toleration.', 'type' => 'string', 'required' => false, 'example' => 'key1', 'title' => ''], + 'value' => ['description' => 'The toleration value.', 'type' => 'string', 'required' => false, 'example' => 'value1', 'title' => ''], + 'operator' => [ + 'description' => 'The toleration operator, which defines the relationship between the key and value.', + 'enumValueTitles' => ['Equal' => '', 'Exists' => ''], + 'type' => 'string', + 'required' => false, + 'example' => 'Equal', + 'title' => '', + ], + 'effect' => [ + 'description' => 'The effect of the toleration.', + 'enumValueTitles' => ['PreferNoSchedule' => '', 'NoSchedule' => '', 'NoExecute' => ''], + 'type' => 'string', + 'required' => false, + 'example' => 'NoSchedule', + 'title' => '', + ], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'Labels' => [ + 'description' => 'The user-defined labels.', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['description' => 'A key-value pair for a label.', 'type' => 'string', 'example' => '{"key":"value"}', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'ResourceName' => ['description' => 'The name of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'MyResource', 'title' => ''], + 'UsageMode' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], 'required' => false, - 'example' => '{ "name": "foo", "model_path": "http://path/to/model.tar.gz", "processor": "tensorflow_cpu", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 } }', + 'title' => '', + 'example' => '', ], ], ], @@ -3678,111 +1847,135 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response schema.', '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]', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'ResourceId' => ['description' => 'The resource group ID.', 'type' => 'string', 'title' => '', 'example' => 'eas-r-h7lcw24dyqztwxxxxxx'], + 'ResourceName' => ['description' => 'The name of the resource group.', 'type' => 'string', 'title' => '', 'example' => 'MyResource'], + 'ClusterId' => ['description' => 'The ID of the cluster that contains the resource group.', 'type' => 'string', 'title' => '', 'example' => 'cn-shanghai'], + 'OwnerUid' => ['description' => 'The UID of the resource group owner.', 'type' => 'string', 'title' => '', 'example' => '14401087478****'], + 'InstanceIds' => [ + 'description' => 'The instance IDs.', + 'type' => 'array', + 'items' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'eas-i-xxxxx', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], 400 => [], - 403 => [], - 409 => [], + [], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => 'CreateResource', + 'description' => '**Before calling this API, make sure you understand the billing method and [pricing](~~144261~~) of Elastic Algorithm Service (EAS).**', + 'changeSet' => [ + ['createdAt' => '2025-04-23T09:31:21.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2025-02-05T11:06:38.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-08-25T09:36:16.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-08-24T06:58:18.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-04-24T10:27:33.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2023-04-18T04:39:25.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ['createdAt' => '2023-03-07T09:21:57.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ['createdAt' => '2021-11-12T01:49:40.000Z', 'description' => 'Request parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResource'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + ], + 'CreateResourceInstances' => [ + 'summary' => 'Creates machine 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', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '167564', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'operationType' => 'create', + 'riskType' => 'high', + 'chargeType' => 'paid', + 'abilityTreeCode' => '39655', + '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', - ], + 'schema' => ['description' => 'The ID of the cluster where the resource group is located.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], ], [ - 'name' => 'ServiceName', + 'name' => 'ResourceId', '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', - ], + 'schema' => ['description' => 'The ID of the resource group. For more information, see [ListResources](~~412133~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'eas-r-asdasdasd'], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'title' => '请求Body', - 'description' => 'The request body.'."\n", + 'description' => 'The request body.', 'type' => 'object', 'properties' => [ + 'EcsInstanceType' => ['description' => 'The instance type. This corresponds to an ECS instance type.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ecs.s6-c1m2.xlarge'], + 'SystemDiskSize' => ['description' => 'The size of the system disk, in GiB. The value must be between 200 and 2,000. If you do not configure this parameter, the default value is 200 GiB.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2000', 'minimum' => '200', 'example' => '200', 'default' => '200', 'title' => ''], + 'EcsInstanceCount' => ['description' => 'The number of new instances to create. The value must be between 1 and 100.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'title' => '', 'example' => '5'], + 'ChargeType' => [ + 'description' => 'The billing method. Valid values:'."\n" + ."\n" + .'- PrePaid: subscription.'."\n" + ."\n" + .'- PostPaid: pay-as-you-go.', + 'enumValueTitles' => ['PostPaid' => 'pay-as-you-go', 'PrePaid' => 'subscription'], + 'type' => 'string', + 'required' => true, + 'enum' => ['PrePaid', 'PostPaid'], + 'title' => '', + 'example' => 'PrePaid', + ], + 'UserData' => ['description' => 'The custom user data. This parameter is not currently used.', 'type' => 'string', 'deprecated' => true, 'title' => '', 'required' => false, 'example' => 'x112223333'], + 'AutoRenewal' => ['description' => 'Specifies whether to enable auto-renewal. Valid values:'."\n" + ."\n" + .'- false (default): Auto-renewal is disabled.'."\n" + ."\n" + .'- true: Auto-renewal is enabled.', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'false'], + 'Zone' => ['description' => 'The zone where the instance belongs.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai-f', 'title' => ''], 'Labels' => [ - 'title' => '自定义服务标签', - 'description' => 'The custom service tags.'."\n", + 'description' => 'The user-defined tags.', 'type' => 'object', - 'required' => true, - 'additionalProperties' => [ - 'title' => '标签对象', - 'description' => 'The custom service tag.'."\n", - 'type' => 'string', - 'example' => '{"key":"value"}', - ], + 'required' => false, + 'additionalProperties' => ['description' => 'The tag.', 'type' => 'string', 'example' => '{"key":"value"}', 'title' => ''], + 'title' => '', + 'example' => '', ], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -3790,41 +1983,57 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'Schema of Response', '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.', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'InstanceIds' => [ + 'description' => 'A list of machine instance IDs.', + 'type' => 'array', + 'items' => ['description' => 'The machine instance ID.', 'type' => 'string', 'example' => 'eas-i-xxxxxx', 'title' => ''], + 'title' => '', + 'example' => '', ], + 'Message' => ['description' => 'The message returned for a successful operation.', 'type' => 'string', 'example' => 'Create 5 new ecs instance(s) in resource [eas-r-asdasdasd] successfully', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'CreateResourceInstances', + 'description' => '**Before you call this operation, make sure that you understand the billing methods and **[**pricing**](~~144261~~)** of Elastic Algorithm Service (EAS).**', + 'changeSet' => [ + ['createdAt' => '2025-04-23T09:31:21.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2025-02-05T11:06:38.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-04-24T10:27:33.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2023-04-18T04:39:25.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ['createdAt' => '2023-03-07T09:21:57.000Z', 'description' => 'Request parameters changed, Response parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResourceInstances'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateResourceInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'ResourceInstance', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + ], + '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' => [], @@ -3833,33 +2042,35 @@ 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '37048', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '39659', + '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', - ], + 'schema' => ['description' => 'The ID of the region to which the resource group belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'ServiceName', + '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****', 'title' => ''], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', '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', + 'description' => 'The request body.'."\n", + 'type' => 'object', + 'properties' => [ + 'ProjectName' => ['title' => '', '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' => '', '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, + 'title' => '', + 'example' => '', ], ], ], @@ -3870,147 +2081,178 @@ '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', - ], + '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.', 'title' => ''], ], + 'example' => '', ], ], - 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', + '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', + 'changeSet' => [ + ['createdAt' => '2024-07-19T09:17:13.000Z', 'description' => 'Request parameters changed'], ], - 'security' => [ - [ - 'AK' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResourceLog'], ], ], - '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', - ], - ], + 'ramActions' => [ [ - '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]', - ], + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateResourceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], ], ], ], - 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', - ], + 'CreateService' => [ + 'summary' => 'Creates a model service in Elastic Algorithm Service (EAS).', + 'path' => '/api/v2/services', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'create', + 'abilityTreeCode' => '37002', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ - 'name' => 'ClusterId', - 'in' => 'path', + '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' => 'Image deployment service:'."\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" + .'image deploymentAI-Web application:'."\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" + .'model+processor deployment service:'."\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" + .'}', 'title' => ''], + ], + [ + 'name' => 'Develop', + 'in' => 'query', 'schema' => [ - 'title' => '服务所在区域。', - 'description' => 'The ID of the region in which the service resides.'."\n", + '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' => true, - 'example' => 'cn-shanghai', + 'required' => false, + 'enumValueTitles' => ['true' => 'true', 'false' => ''], + 'example' => 'true', ], ], [ - 'name' => 'ServiceName', - 'in' => 'path', + 'name' => 'Labels', + 'in' => 'query', + 'style' => 'json', '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', + 'description' => 'The custom label.'."\n", + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string', 'description' => 'The label.'."\n", 'example' => '{"key":"value"}', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['description' => 'The workspace ID.'."\n", 'type' => 'string', 'required' => false, 'example' => '123456', 'title' => ''], + ], ], 'responses' => [ 200 => [ @@ -4019,38 +2261,78 @@ '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', - ], + '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', 'title' => ''], + 'ServiceName' => ['description' => 'The name of the created service.'."\n", 'type' => 'string', 'example' => 'yourname', 'title' => ''], + 'Status' => ['description' => 'The service state.'."\n", 'type' => 'string', 'example' => 'Creating', 'title' => ''], + 'Region' => ['description' => 'The region ID of the created service.'."\n", 'type' => 'string', 'example' => 'cn-shanghai', 'title' => ''], + 'InternetEndpoint' => ['description' => 'The public endpoint of the created service.'."\n", 'type' => 'string', 'example' => 'http://pai-eas.vpc.cn-shanghai.****', 'title' => ''], + 'IntranetEndpoint' => ['description' => 'The internal endpoint of the created service.'."\n", 'type' => 'string', 'example' => 'http://pai-eas.cn-shanghai.****', 'title' => ''], ], + 'example' => '', ], ], + 400 => [], + 403 => [], + 409 => [], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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|', + 'changeSet' => [ + ['createdAt' => '2023-09-01T08:10:26.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ['createdAt' => '2023-01-05T03:16:19.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2023-01-04T03:35:34.000Z', 'description' => 'Request parameters changed'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Service is restarting\\"\\n}","type":"json"}]', - 'title' => 'RestartService', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateService'], + ], + ], + 'ramActions' => [], ], - 'UpdateServiceAutoScaler' => [ - 'summary' => 'Updates the Autoscaler configurations of a service.', + 'CreateServiceAutoScaler' => [ + 'summary' => 'Enables the Autoscaler feature and creates an Autoscaler controller for a service.', 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/autoscaler', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4058,148 +2340,103 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - ], + 'systemTags' => ['operationType' => 'create'], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The ID of the region where the service is deployed.', 'type' => 'string', 'required' => true, 'title' => '', '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', - ], + 'schema' => ['description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'foo'], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => 'The request body.'."\n", + 'description' => 'The request body.', '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', - ], + 'min' => ['description' => 'The minimum number of instances in the service.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'title' => '', 'example' => '2'], + 'max' => ['description' => 'The maximum number of instances in the service. The value of max must be greater than the value of min.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'title' => '', 'example' => '8'], 'scaleStrategies' => [ - 'description' => 'The auto scaling policies.'."\n", + 'description' => 'The service for which the metric is specified. If you do not set this parameter, the current service is specified by default.', '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', - ], + '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" + ."\n" + .'- cpu: the cpu utilization.'."\n" + ."\n" + .'- gpu\\[util]: gpu utilization.', 'type' => 'string', 'required' => true, 'example' => 'qps', 'title' => ''], + '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" + ."\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" + ."\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', 'title' => ''], + 'service' => ['description' => 'The service for which the metric is specified. If you do not set this parameter, the current service is specified by default.', 'type' => 'string', 'required' => false, 'example' => 'demo_svc', 'title' => ''], ], 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => true, + 'title' => '', + 'example' => '', ], 'behavior' => [ - 'description' => 'The Autoscaler operation.'."\n", + 'description' => 'The Autoscaler operation.', 'type' => 'object', 'properties' => [ 'scaleUp' => [ - 'description' => 'The scale-out operation.'."\n", + 'description' => 'The scale-out operation.', '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', - ], + '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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''], ], 'required' => false, + 'title' => '', + 'example' => '', ], 'scaleDown' => [ - 'description' => 'The scale-in operation.'."\n", + 'description' => 'The scale-in operation.', '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', - ], + '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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '300', 'title' => ''], ], 'required' => false, + 'title' => '', + 'example' => '', ], 'onZero' => [ - 'description' => 'The operation that reduces the number of instances to 0.'."\n", + 'description' => 'The operation that reduces the number of instances to 0.', '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', - ], + '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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '600', 'title' => ''], + 'scaleUpActivationReplicas' => ['description' => 'The number of instances that you want to create at a time if the number of instances is 0. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -4207,139 +2444,115 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', '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', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Succeed to auto scale service [foo]', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'title' => 'CreateServiceAutoScaler', + 'changeSet' => [ + ['createdAt' => '2023-05-17T07:24:04.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-09-16T08:39:20.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-09-16T08:39:20.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-08-05T06:41:48.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateServiceAutoScaler'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateServiceAutoScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to auto scale service [foo]\\"\\n}","type":"json"}]', + ], + 'CreateServiceCronScaler' => [ + 'summary' => 'Creates a scheduled auto scaling rule for a service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/cronscaler', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATURElearnZ3WNW7', - ], + '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', - ], + 'schema' => ['description' => 'The region of the service.', 'type' => 'string', 'required' => true, 'title' => '', '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', - ], + 'schema' => ['description' => 'The service name. For more information, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'foo'], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => 'The request body.'."\n", + 'description' => 'The request body.', 'type' => 'object', 'properties' => [ 'ScaleJobs' => [ - 'title' => '定时伸缩任务描述', - 'description' => 'The description of the CronHPA job.'."\n", + 'title' => '', + 'description' => 'The scheduled scaling tasks.', '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', - ], + 'TargetSize' => ['description' => 'The target number of instances for the scaling task.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'title' => '', 'example' => '1'], + 'Schedule' => ['description' => 'The cron expression that specifies when to run the scaling task. For more information about how to configure a cron expression, see the **Cron expressions** section.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '0 18 * * * *'], + 'Name' => ['description' => 'The name of the scheduled auto-scaling task.', 'type' => 'string', 'required' => false, 'example' => 'scale-job-1', 'title' => ''], + 'TimeZone' => ['description' => 'The time zone for the scheduled scaling task.', 'type' => 'string', 'required' => false, 'example' => 'Asia/Shanghai', 'title' => ''], ], 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => true, + 'example' => '', ], '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", + 'title' => '', + 'description' => 'A list of cron expressions for dates to exclude.', '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", - ], + 'items' => ['description' => 'A cron expression. For more information about how to configure a cron expression, see the **Cron expressions** section.', 'type' => 'string', 'required' => false, 'example' => '* * * * * 0,6', 'title' => ''], 'required' => false, + 'example' => '', ], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -4347,198 +2560,189 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response body.', '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', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The response message.', 'type' => 'string', 'title' => '', 'example' => 'Create cron scaler for service [foo] successfully'], ], + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Update cron scaler for service [foo] successfully\\"\\n}","type":"json"}]', - 'title' => 'UpdateServiceCronScaler', + 'title' => 'CreateServiceCronScaler', 'requestParamsDescription' => '### Cron expressions'."\n" ."\n" - .''."\n" + .'!\\[image]\\(../images/p1064364.png" width="403)'."\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" + .'| Field | Allowed values | Allowed special characters |'."\n" + .'| ------------ | --------------- | -------------------------- |'."\n" + .'| Second | 0-59 | \\* / , - |'."\n" + .'| Minute | 0-59 | \\* / , - |'."\n" + .'| Hour | 0-23 | \\* / , - |'."\n" + .'| Day of month | 1-31 | \\* / , - |'."\n" + .'| Month | 1-12 or JAN-DEC | \\* / , - |'."\n" + .'| Day of week | 0-6 or SUN-SAT | \\* / , - |'."\n" ."\n" - .'#### Descriptions of special characters'."\n" + .'#### 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" + .'**Asterisk (\\*)** An asterisk (\\*) represents all possible values. For example, 0 0 0 1 \\* \\* specifies 00:00 on the first day of every 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" + .'**Hyphen (-)** A hyphen (-) specifies a range of values. For example, 0 0 12-14 \\* \\* \\* specifies 12:00, 13:00, and 14:00 every 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" + .'**Comma (,)** A comma (,) specifies a list of values. For example, 0 0 12,14 \\* \\* \\* specifies 12:00 and 14:00 every 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', + .'**Slash (/)** A slash (/) specifies an interval. For example, 0 \\*/15 \\* \\* \\* \\* specifies the 0th, 15th, 30th, and 45th minute of every hour. You can also use a slash (/) with a hyphen (-). For example, 0 5-40/15 \\* \\* \\* \\* specifies every 15 minutes from the 5th minute to the 40th minute of every hour. The valid time points are 0:05, 0:20, and 0:35.', + 'changeSet' => [ + ['createdAt' => '2022-02-22T03:55:39.000Z', 'description' => 'OpenAPI offline'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateServiceCronScaler'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateServiceCronScaler', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Create cron scaler for service [foo] successfully\\"\\n}","type":"json"}]', + ], + 'CreateServiceInstanceToken' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/token', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => [], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '161121', - 'abilityTreeNodes' => [ - 'FEATURElearnO4KXYN', - ], + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '134138', + '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', - ], + 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ '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', - ], + 'schema' => ['description' => 'Service name.', 'type' => 'string', 'required' => true, 'example' => 'deepseekv3_3', 'title' => ''], ], [ - 'name' => 'Exit', + 'name' => 'InstanceName', + 'in' => 'path', + 'schema' => ['description' => 'Service instance name.', 'type' => 'string', 'required' => true, 'example' => 'deepseekv3-3-7b56869574-44nq9', 'title' => ''], + ], + [ + 'name' => 'WorkerName', + 'in' => 'query', + 'schema' => ['description' => 'Name of the service worker. Call the ListServiceContainers operation to get the worker name.', 'type' => 'string', 'required' => false, 'example' => 'worker0', 'title' => ''], + ], + [ + 'name' => 'ActionType', 'in' => 'query', 'schema' => [ - 'title' => '是否退出开发模式', - 'description' => 'Specifies whether to exit development mode. Valid values:'."\n" + 'description' => 'Type of URL to return. Valid values:'."\n" ."\n" - .'* true: exits development mode.'."\n" - .'* false (default): enters development mode.'."\n", + .'- **WorkBench**: Log on to the container using Workbench.', + 'enumValueTitles' => ['WorkBench' => 'WorkBench'], 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'true' => '', - 'false' => '', - ], - 'example' => 'true', + 'example' => 'WorkBench', + 'title' => '', ], ], ], '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', - ], + 'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'title' => '', 'example' => '40325405-579C-4D82****'], + 'Token' => ['description' => 'This parameter is not used.', 'type' => 'string', 'example' => '***', 'title' => ''], + 'Url' => ['description' => 'This parameter is not used.', 'type' => 'string', 'example' => '***', 'title' => ''], + 'WorkbenchUrl' => ['description' => 'URL for logging on to the container using Workbench.', 'type' => 'string', 'example' => 'https://ecs-workbench-disposable.aliyun.com/account/disposable/login/sst/180535184*******/uc2vx*****', 'title' => ''], + 'StreamlogUrl' => ['description' => 'This parameter is not used.', 'type' => 'string', 'example' => '***', 'title' => ''], ], + 'title' => '', + 'description' => 'Response schema.', + 'example' => '', ], ], ], - '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', + 'title' => 'CreateServiceInstanceToken', + 'summary' => 'Call this operation to obtain a token and a WebSocket URL for logging on to a container.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Token\\": \\"***\\",\\n \\"Url\\": \\"***\\",\\n \\"WorkbenchUrl\\": \\"https://ecs-workbench-disposable.aliyun.com/account/disposable/login/sst/180535184*******/uc2vx*****\\",\\n \\"StreamlogUrl\\": \\"***\\"\\n}","type":"json"}]', + ], + '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' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '161122', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], - ], + 'systemTags' => ['operationType' => 'create'], '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', - ], + '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' => '服务名。', - 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n", - 'type' => 'string', + 'description' => 'The request body.'."\n", + 'type' => 'object', + 'properties' => [ + 'Ratio' => ['title' => '', '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', 'title' => ''], + 'required' => false, + 'example' => '', + ], + ], 'required' => false, - 'example' => 'foo', + 'title' => '', + 'example' => '', ], ], ], @@ -4549,186 +2753,205 @@ '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', - ], + '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-shanghai], ratio [70%]', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateServiceMirror'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateServiceMirror', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + 'CreateServiceRollout' => [ + 'summary' => 'Creates a service rollout.', + 'description' => '## Usage notes'."\n" + ."\n" + .'- **Mutually exclusive strategies**: You can use either the `Partition` or the `Batch` strategy, but not both.'."\n" + ."\n" + .'- **Request rate limit**: Up to 100 requests per second.'."\n" + ."\n" + .'- **Authorization**: This operation requires the `eas:CreateServiceRollout` permission.'."\n" + ."\n" + .'- **ARN**: `acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}`.'."\n" + ."\n" + .'- **Pause a rollout**: To pause the service rollout, set the `Paused` parameter to `true`. You can then resume or cancel the rollout by calling the `UpdateServiceRollout` operation.'."\n" + ."\n" + .'- **Monitoring and rollback**: Monitor service metrics during the service rollout to promptly identify and resolve issues. To perform a rollback, you can adjust the `Partition` value or delete the rollout strategy.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/rollout', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + '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', - ], + 'schema' => ['description' => 'The region ID where the service is deployed. Call the `ListServices` operation to view a list of available regions.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ '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', - ], + 'schema' => ['description' => 'The name of the service to update. The name must be unique within the region. Call the `DescribeService` operation to get service details.', 'type' => 'string', 'required' => true, 'example' => 'my-service', 'title' => ''], ], [ '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', + 'Partition' => [ + 'type' => 'object', + 'properties' => [ + 'Partition' => ['description' => 'The number of instances to update to the new version.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''], + ], + 'description' => 'The configuration for the Partition strategy.', 'required' => false, - 'example' => '30', + 'title' => '', + 'example' => '', ], - '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', + 'Batch' => [ + 'type' => 'object', + 'properties' => [ + 'BatchSize' => ['description' => 'The number of instances to update in each batch.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''], + 'Interval' => ['description' => 'The wait interval after each batch completes.', 'type' => 'string', 'required' => false, 'example' => '5m', 'title' => ''], ], + 'description' => 'The configuration for the Batch strategy.', 'required' => false, + 'title' => '', + 'example' => '', ], + 'Paused' => ['description' => 'Specifies whether to pause the rollout.', 'type' => 'boolean', 'required' => false, 'example' => 'False', 'title' => ''], ], + 'description' => 'The request body.', 'required' => false, + 'title' => '', + 'example' => '', ], ], ], 'responses' => [ 200 => [ + 'description' => '成功响应', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response body.', '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%]', - ], + 'RequestId' => ['description' => 'The unique request ID. Use this ID for troubleshooting and traceability.', 'type' => 'string', 'example' => '40325405-579C-4D82****'."\n", 'title' => ''], + 'Message' => ['description' => 'A message that indicates the result of the operation.', 'type' => 'string', 'example' => 'Rollout created successfully', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'CreateServiceRollout', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\\\n\\",\\n \\"Message\\": \\"Rollout created successfully\\"\\n}","type":"json"}]', + ], + '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' => 'update', + 'operationType' => 'create', + 'abilityTreeCode' => '238222', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], + 'tenantRelevance' => 'publicInformation', ], '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", + 'description' => 'The request parameters.'."\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', + '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' => '', 'description' => 'The region in which the resource resides.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'], + 'InstanceType' => ['title' => '', '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' => '', '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' => '', '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, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'example' => '', ], + 'VirtualResourceName' => ['title' => '', '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', 'title' => ''], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -4736,107 +2959,98 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + '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****', - ], - 'Message' => [ - 'description' => 'The returned message.'."\n", - 'type' => 'string', - 'example' => 'Service [foo] in region [cn-shanghai] is starting', - ], + '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', 'title' => ''], + 'VirtualResourceId' => ['title' => '', 'description' => 'The ID of the virtual resource group.'."\n", 'type' => 'string', 'example' => 'eas-vr-npovr28onap1xxxxxx'], ], + 'example' => '', ], ], - 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', + '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', + 'changeSet' => [ + ['createdAt' => '2025-01-21T08:56:51.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateVirtualResource'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/*'], + ], + ], + ], ], + ], + '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' => [], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '161176', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '225607', + 'abilityTreeNodes' => ['FEATURElearn6PC7M4'], ], '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', - ], + 'schema' => ['title' => '', 'description' => 'The region ID of the private gateway.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-wulanchabu'], ], [ - 'name' => 'ServiceName', + 'name' => 'GatewayId', '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', - ], + 'schema' => ['title' => '', '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' => 'body', - 'in' => 'body', + '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****', 'title' => ''], + ], + [ + 'name' => 'AclPolicyList', + 'in' => 'query', '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', - ], + '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', 'title' => ''], + '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', 'title' => ''], ], + 'required' => false, + 'title' => '', + 'example' => '', ], 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -4847,118 +3061,59 @@ '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', - ], + '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', 'title' => ''], + 'GatewayId' => ['description' => 'The private gateway ID.'."\n", 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAclPolicy'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteAclPolicy', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], ], + ], + 'DeleteBenchmarkTask' => [ + 'summary' => 'Deletes a stress testing task.', + 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '200711', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], - ], + 'systemTags' => [], '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', - ], + 'schema' => ['description' => 'The ID of the region where the stress testing task is performed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'InstanceName', + 'name' => 'TaskName', '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', - ], + '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', 'title' => ''], ], ], 'responses' => [ @@ -4968,373 +3123,197 @@ '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', - ], + 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82****', 'title' => ''], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Benchmark task [benchmark-test-service-234c] is Deleting', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Benchmark task [benchmark-test-service-234c] is Deleting\\"\\n}","type":"json"}]', + 'title' => 'DeleteBenchmarkTask', + 'changeSet' => [ + ['createdAt' => '2022-05-27T03:23:01.000Z', 'description' => 'OpenAPI offline'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteBenchmarkTask'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:DeleteBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], + ], + ], ], + ], + 'DeleteConfig' => [ + 'path' => '/api/v2/configs/{ClusterId}/{ConfigType}/{Name}/{ConfigKey}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'delete', 'riskType' => 'none', - 'chargeType' => 'paid', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => '**region ID**<br>The region ID. Although this parameter is named `ClusterId`, it requires the region ID.<br>', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ServiceName', + 'name' => 'ConfigType', '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', - ], + 'schema' => ['description' => '**configuration type**<br>The only supported value is `service`.<br>', 'type' => 'string', 'required' => false, 'example' => 'service', 'title' => ''], ], [ - 'name' => 'QuotaId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The quota ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'abcdef', - ], + 'name' => 'Name', + 'in' => 'path', + 'schema' => ['description' => '**service name**<br>The name of the service that contains the configuration.<br>', 'type' => 'string', 'required' => false, 'example' => 'my-llm-service', 'title' => ''], ], [ - '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, - ], + 'name' => 'ConfigKey', + 'in' => 'path', + 'schema' => ['description' => '**configuration key**<br>The key of the dynamic parameter to delete.<br>', 'type' => 'string', 'required' => false, 'example' => 'rate_limit', 'title' => ''], ], ], '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', - ], + 'message' => ['description' => 'A message indicating the operation result.', 'type' => 'string', 'example' => 'Successfully deleted 1 configs', 'title' => ''], + 'deleted' => ['description' => 'The number of configurations deleted.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], ], + 'title' => '', + 'description' => 'The response body.', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'DeleteConfig', + 'summary' => 'Deletes a single dynamic parameter for a specified service.', + 'description' => '## Request'."\n" + ."\n" + .'This API deletes a specific configuration by its region ID, configuration type, service name, and configuration key. Ensure all parameter values are accurate to avoid accidentally deleting critical configurations.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Success\\"\\n}","type":"json"}]', - 'title' => 'UpdateAppService', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"message\\": \\"Successfully deleted 1 configs\\",\\n \\"deleted\\": 1\\n}","type":"json"}]', ], - 'UpdateGroup' => [ - 'summary' => 'Updates the specific fields of a service group.', - 'path' => '/api/v2/groups/{ClusterId}/{GroupName}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'DeleteFaultInjection' => [ + 'summary' => 'Deletes a fault injection task.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults/{FaultType}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '260902', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], + 'autoTest' => false, + 'notSupportAutoTestReason' => '编排过于复杂', + 'tenantRelevance' => 'tenant', ], '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', - ], + 'schema' => ['type' => 'string', 'description' => 'The region where the private gateway is located.', 'required' => false, 'title' => '', 'example' => 'cn-shanghai'], ], [ - 'name' => 'GroupName', + 'name' => 'ServiceName', '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', - ], + 'schema' => ['type' => 'string', 'description' => 'The service name. For more information, see [ListServices](~~412109~~).', 'required' => false, 'title' => '', '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, - ], + 'name' => 'InstanceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'description' => 'The name of the service instance. For more information, see [ListServiceInstances](~~412108~~).', 'required' => false, 'title' => '', 'example' => 'echo-da290ac8-7fckm'], + ], + [ + 'name' => 'FaultType', + 'in' => 'path', + 'schema' => ['type' => 'string', 'description' => 'The type of the fault injection task. Supported fault types include CPU full load, memory payload, network, disk read/write hang, and disk fill.', 'required' => false, 'title' => '', 'example' => 'CpuFullloadTask'], ], ], '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****', - ], + 'RequestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => '40325405-579C-4D82****'], + 'Message' => ['type' => 'string', 'description' => 'A message that indicates the result of the operation.', 'title' => '', 'example' => 'Successfully delete acl policy for gateway'], ], + 'title' => '', + 'description' => 'The response schema.', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'DeleteFaultInjection', + 'description' => '**Before you use this operation, make sure that you understand the billing methods and [pricing](~~144261~~) of Elastic Algorithm Service (EAS).**', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\"\\n}","type":"json"}]', - 'title' => 'UpdateGroup', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Successfully delete acl policy for gateway\\"\\n}","type":"json"}]', ], - 'ReleaseService' => [ - 'summary' => 'Switch the traffic state or weight of the service.', - 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/release', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + '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' => 'update', - 'abilityTreeCode' => '37054', - 'abilityTreeNodes' => [ - 'FEATURElearnO4KXYN', - ], - ], + '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', - ], + 'schema' => ['description' => 'The region ID of the private gateway.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-wulanchabu', 'title' => ''], ], [ - 'name' => 'ServiceName', + 'name' => 'GatewayId', '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, - ], + 'schema' => ['description' => 'The private gateway ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], ], ], 'responses' => [ @@ -5344,123 +3323,168 @@ '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]', - ], + '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******', 'title' => ''], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Gateway gw-1uhcqmsc7x22****** is deleted', 'title' => ''], ], + 'example' => '', ], ], - 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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteGateway'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteGateway', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '37005', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], - ], + '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', - ], + 'schema' => ['title' => '', 'description' => 'The region ID of the private gateway.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-wulanchabu'], ], [ - 'name' => 'ServiceName', + 'name' => 'GatewayId', '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', - ], + 'schema' => ['title' => '', '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****', 'title' => ''], + ], + [ + 'name' => 'VSwitchId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the vSwitch.'."\n", 'type' => 'string', 'required' => false, 'example' => 'vsw-8vbqn2at0kljjxxxx****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => 'The details about the service.'."\n", - '$ref' => '#/components/schemas/Service', + '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', 'title' => ''], + 'GatewayId' => ['description' => 'The private gateway ID.'."\n", 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], + ], + 'example' => '', ], ], - 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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteGatewayIntranetLinkedVpc'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteGatewayIntranetLinkedVpc', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'delete', + 'abilityTreeCode' => '245615', + 'abilityTreeNodes' => ['FEATURElearnMC2VJP'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The region where the private gateway resides.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cn-wulanchabu', 'title' => ''], ], [ - 'name' => 'ServiceName', + '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******', 'title' => ''], + ], + [ + '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******', 'title' => ''], + ], + [ + 'name' => 'PeerVpcs', + 'in' => 'query', + 'style' => 'json', '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', + '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****', 'title' => ''], + 'Region' => ['description' => 'The region where the VPC peer resides.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -5468,158 +3492,86 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The data returned.'."\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', - ], - ], - ], - ], + '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******', 'title' => ''], + 'Message' => ['description' => 'The message that is returned.'."\n", 'type' => 'string', 'example' => 'Successfully delete intranet linked vpc Peer for gateway', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], ], - 'schemes' => [ - 'http', - 'https', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteGatewayIntranetLinkedVpcPeer'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteGatewayIntranetLinkedVpcPeer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + ], + 'DeleteGatewayLabel' => [ + 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/label', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '123960', - 'abilityTreeNodes' => [ - 'FEATURElearnZ3WNW7', - ], + 'operationType' => 'delete', + 'riskType' => 'high', + 'chargeType' => 'free', + 'abilityTreeCode' => '167565', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The ID of the region where the gateway is located.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ServiceName', + 'name' => 'GatewayId', 'in' => 'path', + 'schema' => ['description' => 'The ID of the gateway.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'gw-1uhcqmsc7x22******'], + ], + [ + 'name' => 'LabelKeys', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n", - 'type' => 'string', + 'type' => 'array', + 'items' => ['description' => 'The key of a label.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'key1'], 'required' => true, - 'example' => 'foo', + 'title' => '', + 'description' => 'The keys of the labels that you want to delete.', + 'example' => '', ], ], ], @@ -5628,240 +3580,116 @@ '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', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The returned message.', 'type' => 'string', 'title' => '', 'example' => 'Succeed to delete gateway labels.'], ], - 'description' => '', + 'title' => '', + 'description' => 'The response schema.', + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'DeleteGatewayLabel', + 'summary' => 'Deletes gateway labels.', + 'description' => '**Before you call this operation, ensure you understand the billing methods and [pricing](~~144261~~) for Elastic Algorithm Service (EAS).**', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to delete gateway labels.\\"\\n}","type":"json"}]', + ], + 'DeleteGroup' => [ + 'path' => '/api/v2/groups/{ClusterId}/{GroupName}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '181894', - 'abilityTreeNodes' => [ - 'FEATURElearnO4KXYN', - ], + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], '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', - ], + 'schema' => ['description' => 'The ID of the region to which the service group belongs.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'ServiceName', + 'name' => 'GroupName', 'in' => 'path', + 'schema' => ['description' => 'The name of the service group.', 'type' => 'string', 'required' => false, 'example' => 'foo', 'title' => ''], + ], + [ + 'name' => 'CascadeDelete', + 'in' => 'query', 'schema' => [ - 'description' => 'The service name.'."\n", + 'description' => 'Specifies whether to perform a cascade delete. If enabled, deleting the service group automatically deletes all services within the service group. This feature is disabled by default.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'type' => 'string', - 'required' => true, - 'example' => 'foo', + 'required' => false, + 'example' => 'false', + 'title' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'title' => '', + 'description' => 'The response.', '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.', - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82********'], + 'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'Delete service group foo successfully'."\n", 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Delete a service group', + 'summary' => 'Deletes a service group.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - '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', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82********\\",\\n \\"Message\\": \\"Delete service group foo successfully\\\\n\\"\\n}","type":"json"}]', ], - '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', - ], + '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' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '181910', - 'abilityTreeNodes' => [ - 'FEATURElearnO4KXYN', - ], - ], + '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.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'foo', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region to which the resource group belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'InstanceName', + 'name' => 'ResourceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The name of the instance that runs the service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'foo-69xxxx4f4-5w9r9', - ], + 'schema' => ['title' => '', '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' => [ @@ -5871,215 +3699,59 @@ '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.', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82-9624-EC2B1779****'], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Resource [eas-r-asdasdasd****] is deleted.', 'title' => ''], ], + 'example' => '', ], ], + 404 => [], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResource'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'consumes' => [], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'delete'], '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', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region to which the resource group belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'ServiceName', + 'name' => 'ResourceId', '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', - ], + 'schema' => ['title' => '', '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' => [ @@ -6089,290 +3761,177 @@ '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', - ], + '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', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Network interfaces are deleting\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + 'title' => 'DeleteResourceDLink', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceDLink'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteResourceDLink', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + ], + 'DeleteResourceInstanceLabel' => [ + 'summary' => 'Deletes instance tags from a resource group.', + 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/label', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'operationType' => 'read', + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '152928', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'abilityTreeCode' => '260412', + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], ], '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', - ], + 'schema' => ['description' => 'The region ID of the resource group.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'ServiceName', + 'name' => 'ResourceId', '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', - ], + 'schema' => ['description' => 'The ID of the resource group. To query the resource group ID, see [ListResources](~~412133~~).', 'type' => 'string', 'required' => true, 'example' => 'eas-r-h7lcw24dyqztwxxxxxx', 'title' => ''], ], [ - 'name' => 'StartTime', + 'name' => 'InstanceIds', 'in' => 'query', + 'style' => 'simple', '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', + 'description' => 'The machine instance IDs.', + 'type' => 'array', + 'items' => ['description' => 'The machine instance IDs.', 'type' => 'string', 'required' => false, 'example' => 'eas-i-xxxxx', 'title' => ''], 'required' => false, - 'example' => '2006-01-02 15:04:05', + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'EndTime', + 'name' => 'AllInstances', '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', - ], + 'schema' => ['description' => 'Specifies whether the operation takes effect on all instances in the resource group. If this parameter is set to true, the InstanceIds parameter does not take effect.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], ], [ - 'name' => 'EventType', + 'name' => 'Keys', 'in' => 'query', + 'style' => 'simple', 'schema' => [ - 'description' => 'The event type. Valid values:'."\n" - ."\n" - .'* Normal'."\n" - .'* Warning'."\n", - 'type' => 'string', + 'description' => 'The tags to delete. (Deprecated. Use LabelKeys instead.).', + 'type' => 'array', + 'items' => ['description' => 'The tag key to delete.', 'type' => 'string', 'required' => false, 'example' => 'key', 'title' => ''], + 'deprecated' => true, 'required' => false, - 'enumValueTitles' => [ - 'Warning' => 'Warning', - 'Normal' => 'Normal', - ], - 'example' => 'Normal', + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'InstanceName', + 'name' => 'LabelKeys', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'description' => 'The instance name. For more information about how to obtain the instance name, see [ListServiceInstances](~~412108~~).'."\n", - 'type' => 'string', + 'description' => 'The tags to delete.', + 'type' => 'array', + 'items' => ['description' => 'The tag key to delete.', 'type' => 'string', 'required' => false, 'example' => 'key', 'title' => ''], 'required' => false, - 'example' => 'echo-test-784xxxx85d-hhnd8', + 'title' => '', + 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'title' => '', + 'description' => 'Schema of Response', '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', - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82********'], + 'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'success', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82********\\",\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]', + 'title' => 'Delete resource group machine instance tags', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceInstanceLabel'], + ], ], - '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', + 'ramActions' => [], ], - 'DescribeServiceMirror' => [ - 'summary' => 'Queries details about the traffic mirroring settings of a service.', - 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/mirror', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + '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' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'delete', + 'abilityTreeCode' => '37103', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], ], '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', - ], + 'schema' => ['description' => 'The ID of the region to which the resource group belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'ServiceName', + 'name' => 'ResourceId', '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', - ], + '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****', 'title' => ''], + ], + [ + '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', 'title' => ''], + ], + [ + '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', 'title' => ''], ], ], 'responses' => [ @@ -6382,149 +3941,120 @@ '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', - ], + '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-01122713****,eas-i-01122713**** are deleting', 'title' => ''], ], + 'example' => '', ], ], + 404 => [], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceInstances'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteResourceInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'ResourceInstance', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '154833', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], - ], + 'systemTags' => ['operationType' => 'delete'], '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', - ], + 'schema' => ['description' => 'The ID of the region to which the resource group belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'GroupName', + 'name' => 'ResourceId', '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', - ], + '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-asdas****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => 'The details of the service group.'."\n", - '$ref' => '#/components/schemas/Group', + '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-asdas****] is deleting', 'title' => ''], + ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceLog'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteResourceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + ], + 'DeleteService' => [ + 'summary' => 'Deletes a service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '183027', - 'abilityTreeNodes' => [ - 'FEATURElearnPKQVPS', - ], - ], + 'systemTags' => ['operationType' => 'delete'], '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' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - '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', - ], + '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', 'title' => ''], ], ], 'responses' => [ @@ -6534,679 +4064,377 @@ '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', - ], - ], - ], - ], + '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', 'title' => ''], ], + 'example' => '', ], ], + 404 => [], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteService'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteService', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'operationType' => 'read', + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATURElearn6PC7M4', - ], - ], + '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', - ], + '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', - ], + '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' => 'PageSize', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '每页的大小(默认为100)', - 'description' => 'The number of entries per page. Default value: 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', + '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', 'title' => ''], + ], + 'example' => '', ], ], - [ - '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', - ], + 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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceAutoScaler'], ], + ], + 'ramActions' => [ [ - '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' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceAutoScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], ], - 'example' => 'PublicResource', - ], - ], - [ - 'name' => 'InstanceType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance type.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.c7.large', ], ], + ], + ], + 'DeleteServiceCronScaler' => [ + 'summary' => 'Disables the Cronscaler feature for a service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/cronscaler', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'InstanceStatus', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance state.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Running', - ], + 'AK' => [], ], + ], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete'], + 'parameters' => [ [ - 'name' => 'InstanceIP', - 'in' => 'query', - 'schema' => [ - 'description' => 'The IP address of the instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '10.224.xx.xx', - ], + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'InstanceName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance name.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'foo-bdc5xxxx-8l7rk', - ], + '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', 'title' => ''], ], - [ - 'name' => 'HostIP', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The IP address of the server where the instance resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '10.224.xx.xx', + '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', 'title' => ''], + ], + 'example' => '', ], ], - [ - 'name' => 'IsSpot', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether the instance is a preemptible instance.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Cronscaler for service [foo] deleted successfully\\"\\n}","type":"json"}]', + 'title' => 'DeleteServiceCronScaler', + 'changeSet' => [ + ['createdAt' => '2022-02-22T03:55:39.000Z', 'description' => 'OpenAPI offline'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceCronScaler'], ], + ], + 'ramActions' => [ [ - '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' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceCronScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], ], - 'example' => 'Queue', ], ], + ], + ], + 'DeleteServiceInstances' => [ + 'summary' => 'Restarts specified instances of a service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - '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', - ], + 'AK' => [], ], + ], + 'consumes' => [], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '39632', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], + ], + 'parameters' => [ [ - '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' => 'ClusterId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The region where the service is located.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'MemberType', - 'in' => 'query', - 'allowEmptyValue' => true, - 'schema' => [ - 'type' => 'string', - ], + 'name' => 'ServiceName', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The name of the service. For more information, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'example' => 'foo'], ], [ - 'name' => 'ListReplica', + 'name' => 'InstanceList', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - ], + 'schema' => ['title' => '', 'description' => 'The instances to restart. Separate multiple instance names with a comma (,). For more information, see [ListServiceInstances](~~412108~~).', 'type' => 'string', 'required' => false, 'example' => 'foo-rdsbxxxx,foo-rdsaxxxx'], ], [ - 'name' => 'ReplicaName', + 'name' => 'SoftRestart', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['description' => 'Specifies whether to restart only the container process without rebuilding the instance. The default value is false.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'], ], [ - 'name' => 'QuotaId', + 'name' => 'Container', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['description' => 'The name of the container in which to restart the process. This parameter is valid only when \\`SoftRestart\\` is set to \\`true\\`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'worker0'], ], [ - 'name' => 'Resource', + 'name' => 'IsReplica', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'boolean', 'description' => 'Specifies whether the instance is a replica.', 'title' => '', 'required' => false, 'example' => 'false'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response body.', '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', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The response message.', 'type' => 'string', 'title' => '', 'example' => 'Instance(s) [foo-rdsb,foo-rdsa] for service [foo] in region [cn-shanghai] was deleted successfully'], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'DeleteServiceInstances', + 'description' => '**Before you call this operation, make sure that you understand the billing methods and **[**pricing**](~~144261~~)** of Elastic Algorithm Service (EAS).**', + 'changeSet' => [ + ['createdAt' => '2023-06-06T06:07:00.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceInstances'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + 'DeleteServiceLabel' => [ + 'summary' => 'Deletes a service label.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/label', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', + 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '152269', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'abilityTreeCode' => '167565', + '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', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region where the service is located.', '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' => 'test_oss', - ], + 'schema' => ['title' => '', 'description' => 'The service name. For more information, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'example' => 'foo'], ], [ - 'name' => 'PageNumber', + 'name' => 'Keys', 'in' => 'query', + 'style' => 'simple', 'schema' => [ - 'title' => '请求的页码(默认为1)', - 'description' => 'The page number. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', + 'title' => '', + 'description' => 'The keys of the service labels that you want to delete. This parameter is deprecated. Use the LabelKeys parameter instead.', + 'type' => 'array', + 'items' => ['title' => '', 'description' => 'The key of a service label.', 'type' => 'string', 'required' => false, 'example' => 'key1,key2'], 'required' => false, - 'example' => '1', + 'deprecated' => true, + 'example' => '', ], ], [ - 'name' => 'PageSize', + 'name' => 'LabelKeys', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '每页的大小(默认为100)', - 'description' => 'The number of entries per page. Default value: 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => 'The key of a service label.', 'required' => false, 'title' => '', 'example' => 'key1'], 'required' => false, - 'example' => '10', + 'description' => 'The keys of the service labels that you want to delete.', + 'title' => '', + 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'The returned data.', '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" - .'}', - ], - ], - ], - ], + 'RequestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['title' => '', 'description' => 'The returned message.', 'type' => 'string', 'example' => 'Succeed to delete service [service_from_zxxx] labels.'], ], - 'description' => '', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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', + 'changeSet' => [ + ['createdAt' => '2023-08-09T02:08:59.000Z', 'description' => 'Response parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceLabel'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceLabel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + 'DeleteServiceMirror' => [ + 'summary' => 'Disables the traffic mirroring feature for a service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/mirror', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '172666', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], - ], + 'systemTags' => ['operationType' => 'delete'], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + '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' => [ - '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', - ], + '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' => [ @@ -7216,770 +4444,773 @@ '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', - ], - ], + '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%]', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceMirror'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceMirror', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + 'DeleteServiceRollout' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/rollout', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '37031', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], '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' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the region where the service is deployed.'."\n" + ."\n" + .'- Type: `string`'."\n" + ."\n" + .'- Required: Yes'."\n" + ."\n" + .'- Description: The ID of the region where the service is located.'."\n" + ."\n" + .'- Example: `cn-shanghai`', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'title' => '请求的页码(默认为1)', - 'description' => 'The page number. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'name' => 'ServiceName', + 'in' => 'path', + 'schema' => ['description' => 'The name of the service.'."\n" + ."\n" + .'- Type: `string`'."\n" + ."\n" + .'- Required: Yes'."\n" + ."\n" + .'- Description: The name of the service from which to delete the rollout policy.'."\n" + ."\n" + .'- Example: `my-service`', 'type' => 'string', 'required' => true, 'example' => 'my-service', 'title' => ''], ], - [ - 'name' => 'PageSize', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '每页的大小(默认为100)', - 'description' => 'The number of entries per page. Default value: 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '100', + 'description' => 'The response body.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The unique ID of the request. Use this ID for troubleshooting.'."\n" + ."\n" + .'- Type: `string`'."\n" + ."\n" + .'- Description: The unique identifier for the request. Use this ID to troubleshoot and track issues.'."\n" + ."\n" + .'- Example: `40325405-579C-4D82-9B4F-8A7C6D5E4F3A`', 'type' => 'string', 'example' => '40325405-579C-4D82****', 'title' => ''], + 'Message' => ['description' => 'A message indicating the result of the request.'."\n" + ."\n" + .'- Type: `string`'."\n" + ."\n" + .'- Description: The message that describes the result of the request.'."\n" + ."\n" + .'- Example value: `Rollout deleted successfully`', 'type' => 'string', 'example' => 'Rollout deleted successfully', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'DeleteServiceRollout', + 'summary' => 'Deletes a service rollout.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Rollout deleted successfully\\"\\n}","type":"json"}]', + ], + 'DeleteVirtualResource' => [ + 'summary' => 'Deletes a virtual resource group that contains no resources or instances.', + 'path' => '/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ [ - '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', - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '238260', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ [ - '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' => 'ClusterId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The ID of the region to which the virtual resource group belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - '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' => 'VirtualResourceId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The ID of the virtual resource group.'."\n", 'type' => 'string', 'required' => true, 'example' => 'eas-vr-npovr28onap1xxxxxx'], ], - [ - 'name' => 'Label', - 'in' => 'query', - 'style' => 'json', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The tag that is used to filter services.'."\n", + 'title' => 'Schema of Response', + 'description' => 'The data returned.'."\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}', + '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'], ], + 'example' => '', ], ], - [ - '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', - ], + ], + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteVirtualResource'], ], + ], + 'ramActions' => [ [ - 'name' => 'ServiceName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The service name.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'echo_test', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/{#VirtualResourceId}'], + ], ], ], + ], + ], + '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' => [ [ - 'name' => 'ServiceUid', - 'in' => 'query', - 'schema' => [ - 'description' => 'The user ID (UID) of the service.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'eas-m-c9iw3yitxxxx', - ], + 'AK' => [], ], + ], + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ [ - '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' => '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', 'title' => ''], ], [ - 'name' => 'WorkspaceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The workspace ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '123456', - ], + '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', 'title' => ''], ], - [ - 'name' => 'QuotaId', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The quota ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'quota12345', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82****', 'title' => ''], + 'TaskName' => ['description' => 'The name of the stress testing task.'."\n", 'type' => 'string', 'example' => 'benchmark-larec-test-ae70', 'title' => ''], + 'TaskId' => ['description' => 'The ID of the stress testing task.'."\n", 'type' => 'string', 'example' => 'eas-b-gv4y86u****', 'title' => ''], + 'ServiceName' => ['description' => 'The name of the service that you want to test.'."\n", 'type' => 'string', 'example' => 'foo', 'title' => ''], + 'Token' => ['description' => 'The token for authentication when a stress testing task is created.'."\n", 'type' => 'string', 'example' => '6062787a-9301****', 'title' => ''], + 'CallerUid' => ['description' => 'The ID of the operation caller.'."\n", 'type' => 'string', 'example' => '1640133467****', 'title' => ''], + 'ParentUid' => ['description' => 'The ID of the Alibaba Cloud account that is used to call the operation.'."\n", 'type' => 'string', 'example' => '1029728669****', 'title' => ''], + 'DesiredAgent' => ['description' => 'The number of instances that you want to test.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '4', 'title' => ''], + 'AvailableAgent' => ['description' => 'The number of instances that you can test.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '4', 'title' => ''], + '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', + 'title' => '', + ], + 'Reason' => ['description' => 'The event or reason that causes the current state of the stress testing task.'."\n", 'type' => 'string', 'example' => 'RUNNING', 'title' => ''], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Benchmar task is Running', 'title' => ''], + 'Endpoint' => ['description' => 'The endpoint of the service gateway.'."\n", 'type' => 'string', 'example' => '192342311234.pai-eas.cn-chengdu.aliyuncs.com', 'title' => ''], + ], + 'example' => '', ], ], - [ - 'name' => 'Gateway', - 'in' => 'query', - 'schema' => [ - 'description' => 'The private gateway ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'gw-1uhcqmsc7x22******', - ], + ], + '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', + 'changeSet' => [ + ['createdAt' => '2022-11-02T09:46:23.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2022-05-27T03:23:01.000Z', 'description' => 'OpenAPI offline'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBenchmarkTask'], ], + ], + 'ramActions' => [ [ - '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', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], ], - 'example' => 'LLMGateway', ], ], + ], + ], + 'DescribeBenchmarkTaskReport' => [ + 'summary' => 'Queries the report of a stress testing task.', + 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}/report', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'ResourceType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'AK' => [], ], + ], + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ [ - 'name' => 'IncludeNoWorkspace', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - ], + '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', 'title' => ''], ], [ - 'name' => 'ResourceAliasName', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + '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', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'ReportType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['description' => 'The report type of the stress testing task. Valid values: RAW and Report.'."\n", 'type' => 'string', 'required' => false, 'example' => 'report', 'title' => ''], ], - [ - 'name' => 'ResourceBurstable', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'type' => 'boolean', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82********', 'title' => ''], + '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', 'title' => ''], + '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" + .' }', 'title' => ''], + ], + 'example' => '', ], ], + ], + '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', + 'changeSet' => [ + ['createdAt' => '2022-11-02T09:46:23.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ['createdAt' => '2022-05-27T03:20:08.000Z', 'description' => 'OpenAPI offline'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBenchmarkTaskReport'], + ], + ], + 'ramActions' => [ [ - 'name' => 'CronscalerEnabled', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeBenchmarkTaskReport', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], ], ], + ], + ], + 'DescribeGateway' => [ + 'summary' => 'Queries the details of a dedicated gateway.', + 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'AutoscalerEnabled', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '191846', + 'abilityTreeNodes' => ['FEATURElearn6PC7M4'], + ], + 'parameters' => [ [ - 'name' => 'TrafficState', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The region where the dedicated gateway resides.', 'type' => 'string', 'required' => true, 'example' => 'cn-wulanchabu', 'title' => ''], ], [ - 'name' => 'CallerUid', - 'in' => 'query', - 'schema' => [ - 'title' => '服务创建账号的 UID', - 'type' => 'string', - 'example' => '19989224166xxxxxxx', - ], + 'name' => 'GatewayId', + 'in' => 'path', + 'schema' => ['description' => 'The dedicated gateway ID. To obtain the dedicated gateway ID, refer to the private_gateway_id field in the response of the [ListResources](~~412133~~) operation.', 'type' => 'string', 'required' => true, 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'title' => '', + 'description' => 'The response.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The request ID.'."\n", + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'GatewayId' => ['title' => '', 'description' => 'The dedicated gateway ID.', 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******'], + 'GatewayName' => ['description' => 'The alias of the dedicated gateway.', 'type' => 'string', 'example' => 'mygateway1', 'title' => ''], + 'CreateTime' => ['title' => '', 'description' => 'The time when the dedicated gateway was created. The time is in UTC.', 'type' => 'string', 'example' => '2020-05-19T14:19:42Z'], + 'UpdateTime' => ['title' => '', 'description' => 'The time when the dedicated gateway was last updated. The time is in UTC.', 'type' => 'string', 'example' => '2021-02-24T11:52:17Z'], + 'IntranetDomain' => ['title' => '', 'description' => 'The internal access domain name.', 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******-1801786532******-vpc.cn-wulanchabu.pai-eas.aliyuncs.com'], + 'InternetEnabled' => ['description' => 'Indicates whether public network access is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'InternetDomain' => ['title' => '', 'description' => 'The public network access domain name.', 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******-1801786532******.cn-wulanchabu.pai-eas.aliyuncs.com'], + 'InstanceType' => [ + 'title' => '', + 'description' => 'The instance type used by the dedicated gateway.', + 'enumValueTitles' => ['8c16g' => '8c16g', '4c8g' => '4c8g', '2c4g' => '2c4g', '16c32g' => '16c32g'], 'type' => 'string', - 'example' => '40325405-579C-4D82****', + 'example' => '2c4g', ], - 'Services' => [ - 'description' => 'The services.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The service.'."\n", - '$ref' => '#/components/schemas/Service', - ], + 'Status' => [ + 'title' => '', + 'description' => 'The status of the dedicated gateway.', + 'enumValueTitles' => ['Creating' => 'Creating.', 'Stopped' => 'Stopped.', 'Failed' => 'Failed.', 'Running' => 'Running.', 'Deleted' => 'Deleted.', 'Deleting' => 'Deleting.', 'Waiting' => 'Waiting.'], + 'type' => 'string', + 'example' => 'Running', ], - 'PageNumber' => [ - 'description' => 'The page number.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'ExternalClusterId' => ['description' => 'The self-managed cluster ID.', 'type' => 'string', 'example' => 'c935eadf284c14c2da57a2a13ad6******', 'title' => ''], + 'Replicas' => ['description' => 'The number of nodes in the dedicated gateway.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'IsDefault' => ['description' => 'Indicates whether the dedicated gateway is the default one.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'InternetStatus' => [ + 'description' => 'The status of public network access enablement or disablement.', + 'enumValueTitles' => ['Creating' => 'Public network access is being enabled.', 'Failed' => 'Public network access failed to be enabled or deleted.', 'Running' => 'Public network access is running.', 'Deleted' => 'Public network access is deleted.', 'Deleting' => 'Public network access is being deleted.'], + 'type' => 'string', + 'example' => 'Running', + 'title' => '', ], - 'PageSize' => [ - 'description' => 'The number of entries per page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', + 'SSLRedirectionEnabled' => ['description' => 'Indicates whether HTTP-to-HTTPS redirection is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'ChargeType' => [ + 'description' => 'The billing method.', + 'enumValueTitles' => ['PrePaid(预付费)' => 'PrePaid (subscription).', 'PostPaid(后付费)' => 'PostPaid (pay-as-you-go).'], + 'type' => 'string', + 'example' => 'PrePaid', + 'title' => '', ], - 'TotalCount' => [ - 'description' => 'The total number of entries returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', + 'IntranetEnabled' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''], + 'Labels' => [ + 'title' => '', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'LabelKey' => ['title' => '', 'type' => 'string', 'example' => 'key1', 'description' => ''], + 'LabelValue' => ['title' => '', 'type' => 'string', 'example' => 'value1', 'description' => ''], + ], + 'description' => '', + 'example' => '', + ], + 'description' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Query dedicated gateway details', + 'changeSet' => [ + ['createdAt' => '2025-06-13T01:48:17.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2024-11-28T05:35:59.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2024-07-31T09:23:25.000Z', 'description' => 'Response parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeGateway'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeGateway', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], ], + '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\\": false,\\n \\"Labels\\": [\\n {\\n \\"LabelKey\\": \\"key1\\",\\n \\"LabelValue\\": \\"value1\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'DescribeGroup' => [ + 'path' => '/api/v2/groups/{ClusterId}/{GroupName}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [], - 'produces' => [], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '153481', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'abilityTreeCode' => '154833', + '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' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the region to which the service group belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'title' => '页码数,默认1', - 'description' => 'The page number. Default value: 1.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], + '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', 'title' => ''], ], - [ - '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', - ], + ], + 'responses' => [ + 200 => [ + 'schema' => ['description' => 'The details of the service group.'."\n", '$ref' => '#/components/schemas/Group', 'title' => '', 'example' => ''], ], + ], + 'title' => 'DescribeGroup', + 'summary' => 'Queries the information about a service group.', + 'changeSet' => [ + ['createdAt' => '2022-09-27T03:16:08.000Z', 'description' => 'OpenAPI offline'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeGroup'], + ], + ], + 'ramActions' => [ [ - 'name' => 'WorkspaceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The workspace ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '123***', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Name\\": \\"foo\\",\\n \\"ClusterId\\": \\"cn-shanghai\\",\\n \\"CreateTime\\": \\"2020-05-19T14:19:42Z\\",\\n \\"UpdateTime\\": \\"2021-01-29T11:13:20Z\\",\\n \\"QueueService\\": \\"qservice\\",\\n \\"InternetEndpoint\\": \\"http://1110*****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group\\",\\n \\"IntranetEndpoint\\": \\"http://1110*****.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group\\",\\n \\"AccessToken\\": \\"MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********\\",\\n \\"TrafficMode\\": \\"auto\\"\\n}","type":"json"}]', + ], + 'DescribeGroupEndpoints' => [ + 'summary' => 'Obtains a list of endpoints of service groups.', + 'path' => '/api/v2/groups/{ClusterId}/{GroupName}/endpoints', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'TrafficMode', - 'in' => 'query', - 'schema' => [ - 'title' => '流量分配方式筛选', - 'type' => 'string', - ], + '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' => 'Sort', - 'in' => 'query', - 'schema' => [ - 'title' => '排序字段', - 'type' => 'string', - ], + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'Order', - 'in' => 'query', - 'schema' => [ - 'title' => '排序顺序', - 'type' => 'string', - ], + 'name' => 'GroupName', + 'in' => 'path', + 'schema' => ['description' => 'The service group name. For more information about how to obtain the service group name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'example' => 'xx_test_group', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', '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", + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '890772EF-3AD6-129A-8E15-8F349C944783'], + 'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'Execution succeeded.', 'title' => ''], + 'AccessToken' => ['description' => 'The service token.', 'type' => 'string', 'example' => 'Nzc5N2FhNTM4OTQ0YzBmYTIy****ZTUxN2NkYjg4MTJmMWQxZmY1****', 'title' => ''], + 'Endpoints' => [ + 'description' => 'The endpoints of the service group.', 'type' => 'array', 'items' => [ - 'description' => 'The information about the service group.'."\n", - '$ref' => '#/components/schemas/Group', + 'type' => 'object', + 'properties' => [ + 'EndpointType' => ['description' => 'The service endpoint type. Valid values:'."\n" + ."\n" + .'- DefaultGateway: the shared gateway.'."\n" + ."\n" + .'- PrivateGateway: the dedicated gateway.'."\n" + ."\n" + .'- Nlb: Associate the service with the Network Load Balancer (NLB) instance.'."\n" + ."\n" + .'- Nacos: Associate the service with the Nacos instance.', 'type' => 'string', 'example' => 'PrivateGateway', 'title' => ''], + '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" + ."\n" + .'- If you set EndpointType to PrivateGateway, the value of this parameter is the ID of the dedicated gateway.'."\n" + ."\n" + .'- If you set EndpointType to Nlb, the value of this parameter is the ID of the NLB instance.'."\n" + ."\n" + .'- If you set EndpointType to Nacos, the value of this parameter is the ID of the Nacos instance.', 'type' => 'string', 'example' => 'gw-26340kjxjx8l3r****', 'title' => ''], + 'PathType' => ['description' => 'The path type. Valid values:'."\n" + ."\n" + .'- Group: the path of the service group.', 'type' => 'string', 'example' => 'Group', 'title' => ''], + 'IntranetEndpoints' => [ + 'description' => 'The full endpoint.', + 'type' => 'array', + 'items' => ['description' => 'The full endpoint.', 'type' => 'string', 'example' => 'http://gw-26340kjxjx8l3r****-vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/xx_test_group', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'InternetEndpoints' => [ + 'description' => 'The full endpoint.', + 'type' => 'array', + 'items' => ['description' => 'The full endpoint.', 'type' => 'string', 'example' => 'http://gw-26340kjxjx8l3r****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/xx_test_group', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'Port' => ['description' => 'The port number. This parameter takes effect only when you associate the service with an NLB or Nacos instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '8080', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], - ], - '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', + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"890772EF-3AD6-129A-8E15-8F349C944783\\",\\n \\"Message\\": \\"Execution succeeded.\\",\\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', + 'changeSet' => [ + ['createdAt' => '2025-04-01T03:54:07.000Z', 'description' => 'Response parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeGroupEndpoints'], + ], + ], + 'ramActions' => [], + 'translator' => 'manual', ], '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', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [], - 'produces' => [ - 'application/json', - ], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ @@ -7987,9 +5218,7 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '146280', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ @@ -7997,14 +5226,24 @@ 'name' => 'ResourceType', 'in' => 'query', 'schema' => [ + 'description' => 'The resource type. The default value is \\`Public\\`.', + 'enumValueTitles' => ['Public' => 'public resource group', 'Dedicated' => 'dedicated resource group'], 'type' => 'string', + 'required' => false, + 'example' => 'Public', + 'title' => '', ], ], [ 'name' => 'ChargeType', 'in' => 'query', 'schema' => [ + 'description' => 'The billing method. The default value is \\`PostPaid\\`.', + 'enumValueTitles' => ['PostPaid' => 'pay-as-you-go', 'PrePaid' => 'subscription'], 'type' => 'string', + 'required' => false, + 'example' => 'PostPaid', + 'title' => '', ], ], [ @@ -8012,16 +5251,13 @@ 'in' => 'query', 'style' => 'simple', 'schema' => [ - 'description' => 'This parameter is deprecated.'."\n", + 'description' => 'This parameter is deprecated.', 'type' => 'array', - 'items' => [ - 'description' => 'This parameter is deprecated.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '', - ], + 'items' => ['description' => 'This parameter is deprecated.', 'type' => 'string', 'required' => false, 'example' => '无需填写', 'title' => ''], 'deprecated' => true, 'required' => false, + 'title' => '', + 'example' => 'No input required', ], ], ], @@ -8029,1339 +5265,1069 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response'."\n", + 'description' => 'The response schema.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '40325405-579C-4D82***', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', '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", + 'description' => 'The supported combinations of CPU and memory values for deployment.', 'type' => 'array', 'items' => [ - 'description' => 'The value. Example:'."\n" + 'description' => 'A list of supported combinations.'."\n" + .'For example:'."\n" ."\n" - .' {"CPU":1,"Memory":[1000,2000,4000]}'."\n" + .'```'."\n" + .'{"CPU":1,"Memory":[1000,2000,4000]}'."\n" + .'```'."\n" ."\n" - .'The value indicates that the memory size can be 1000, 2000, or 4000 when one CPU core is specified.'."\n", + .'This indicates that if you set CPU to 1 core, you can set Memory to 1000, 2000, or 4000.', 'type' => 'object', 'properties' => [ - 'CPU' => [ - 'description' => 'Valid values:'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], + 'CPU' => ['description' => 'The valid values for the number of CPU cores.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], 'Memory' => [ - 'description' => 'The optional values for memory when CPU is set to a specific value as above.'."\n", + 'description' => 'The valid memory values for the specified number of CPU cores.', 'type' => 'array', - 'items' => [ - 'description' => 'The optional value for memory.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1000', - ], + 'items' => ['description' => 'A list of valid memory values.', 'type' => 'integer', 'format' => 'int32', 'example' => '1000', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], 'InstanceMetas' => [ - 'description' => 'The instance types when the resources are specified.'."\n", + 'description' => 'A list of available instance types for deployment.', 'type' => 'array', 'items' => [ - 'description' => 'The information about the instance type.'."\n", + 'description' => 'The information about an available instance type.', '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', - ], + 'CPU' => ['description' => 'The number of CPU cores of the instance type.', 'type' => 'integer', 'format' => 'int32', 'example' => '32', 'title' => ''], + 'Memory' => ['description' => 'The memory size of the instance type, in GB.', 'type' => 'number', 'format' => 'float', 'example' => '188', 'title' => ''], + 'GPU' => ['description' => 'The GPU model of the instance type. This field is not returned for non-GPU instance types.', 'type' => 'string', 'example' => 'GU30', 'title' => ''], + 'GPUAmount' => ['description' => 'The number of GPUs in the instance type.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'GPUMemory' => ['description' => 'The GPU memory size of the instance type, in GB.', 'type' => 'number', 'format' => 'float', 'example' => '24', 'title' => ''], + 'InstanceType' => ['description' => 'The instance type name.', 'type' => 'string', 'example' => 'ml.gu7i.c32m188.1-gu30', 'title' => ''], + 'SpotDiscount' => ['description' => 'The current lowest discount for a spot instance with a 1-hour protection period. A value of 0.1 indicates a 90% discount. If this field is not returned, the instance type does not support spot instances.', 'type' => 'number', 'format' => 'float', 'example' => '0.12', 'title' => ''], + 'NonProtectSpotDiscount' => ['description' => 'The minimum discount currently offered for a spot instance in no-protection mode. A value of 0.1 indicates a 90% discount. If this field is not returned, the instance type does not support spot instances.', 'type' => 'number', 'format' => 'float', 'example' => '0.1', 'title' => ''], + 'IsAvailable' => ['description' => 'Indicates whether the instance type is currently available.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'Vendor' => [ - 'description' => 'The source of the instance type.'."\n" - ."\n" - .'Valid values:'."\n" - ."\n" - .'* ECS'."\n" - .'* BareMetal'."\n" - .'* Lingjun'."\n", + 'description' => 'The source of the instance type.', + 'enumValueTitles' => ['ECS' => 'ECS', 'BareMetal' => 'bare metal compute cluster', 'Lingjun' => 'Lingjun AI Computing Service cluster'], 'type' => 'string', - 'enumValueTitles' => [ - 'ECS' => 'ECS', - 'BareMetal' => '', - 'Lingjun' => '', - ], 'example' => 'ECS', + 'title' => '', ], 'StockStatus' => [ - 'description' => 'The inventory status of the instance type.'."\n" - ."\n" - .'Valid values:'."\n" - ."\n" - .'* WithStock'."\n" - .'* ClosedWithStock'."\n" - .'* NoStock'."\n", + 'description' => 'The inventory status of the instance type.', + 'enumValueTitles' => ['WithStock' => 'In stock', 'ClosedWithStock' => 'Low stock', 'NoStock' => 'Out of stock'], 'type' => 'string', - 'enumValueTitles' => [ - 'WithStock' => '', - 'ClosedWithStock' => '', - 'NoStock' => '', - ], 'example' => 'WithStock', + 'title' => '', ], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'DescribeMachineSpec', + 'summary' => 'Returns a list of available machine specifications.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMachineSpec'], + ], ], + 'ramActions' => [], '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', + 'translator' => 'manual', ], - 'UpdateVirtualResource' => [ - 'summary' => 'Updates the information about a virtual resource group.', - 'path' => '/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'DescribeRegions' => [ + 'summary' => 'Queries available regions.', + 'path' => '/api/v2/regions', + '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' => '133892', + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], + ], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Regions' => [ + 'title' => '', + 'description' => 'The available regions.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'title' => '', 'example' => 'cn-shanghai'], + 'RegionName' => ['description' => 'The region name.', 'type' => 'string', 'example' => '华东 2(上海)', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'title' => 'DescribeRegions', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'], + ], ], - 'produces' => [ - 'application/json', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Regions\\": [\\n {\\n \\"RegionId\\": \\"cn-shanghai\\",\\n \\"RegionName\\": \\"华东 2(上海)\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'DescribeResource' => [ + 'summary' => 'Retrieves the details of a resource group.', + 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '238299', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], - 'tenantRelevance' => 'tenant', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '37069', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], ], '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', - ], + 'schema' => ['description' => 'The ID of the cluster that contains the resource group.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'VirtualResourceId', + 'name' => 'ResourceId', 'in' => 'path', - 'schema' => [ - 'title' => '虚拟资源的ID', - 'description' => 'The ID of the virtual resource group.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n", - ], + 'schema' => ['description' => 'The ID of the resource group. Call [ListResources](~~412133~~) to obtain this ID.', 'type' => 'string', 'required' => true, 'example' => 'eas-r-asdasdasd', 'title' => ''], ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The request parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'Resources' => [ - 'title' => '虚拟资源所包含的资源列表,如果指定,将会覆盖先前的数据', - 'description' => 'The resources in the virtual resource group.'."\n" + 'description' => 'The details of the resource group.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '902976F2-6FAF-5404-8A4D-6CC223***', 'title' => ''], + 'ResourceId' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'eas-r-glkfpsxuw57x1h*****', 'title' => ''], + 'ResourceName' => ['description' => 'The name of the resource group.', 'type' => 'string', 'example' => 'my-resouce****', 'title' => ''], + 'ClusterId' => ['description' => 'The ID of the cluster that contains the resource group.', 'type' => 'string', 'example' => 'cn-beijing', 'title' => ''], + 'CreateTime' => ['description' => 'The time the resource group was created.', 'type' => 'string', 'example' => '2020-05-19T14:19:42Z', 'title' => ''], + 'UpdateTime' => ['description' => 'The time the resource group was last updated.', 'type' => 'string', 'example' => '2021-02-24T11:52:17Z', 'title' => ''], + 'OwnerUid' => ['description' => 'The ID of the resource group owner.', 'type' => 'string', 'example' => '14401087478****', 'title' => ''], + 'InstanceCount' => ['description' => 'The total number of instances in the resource group.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''], + 'PrePaidInstanceCount' => ['description' => 'The total number of subscription instances in the resource group.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PostPaidInstanceCount' => ['description' => 'The total number of pay-as-you-go instances in the resource group.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'ServiceCount' => ['description' => 'The number of services deployed in the resource group.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'CpuCount' => ['description' => 'The total number of CPU cores.', 'type' => 'integer', 'format' => 'int32', 'example' => '16', 'title' => ''], + 'GpuCount' => ['description' => 'The total number of GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''], + 'Memory' => ['description' => 'The total memory size, in MB.', 'type' => 'integer', 'format' => 'int32', 'example' => '8192', 'title' => ''], + 'CpuUsed' => ['description' => 'The number of CPU cores in use.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''], + 'GpuUsed' => ['description' => 'The number of GPUs in use.', 'type' => 'number', 'format' => 'float', 'example' => '2', 'title' => ''], + 'MemoryUsed' => ['description' => 'The amount of memory in use, in MB.', 'type' => 'integer', 'format' => 'int32', 'example' => '2048', 'title' => ''], + 'Status' => ['description' => 'The status of the resource group.', 'type' => 'string', 'example' => 'ResourceReady', 'title' => ''], + 'Message' => ['description' => 'A message that provides details about the status of the resource group.', 'type' => 'string', 'example' => 'Resource is ready', 'title' => ''], + 'ExtraData' => ['description' => 'Additional information, such as the VPC connection status and the SLS log status.', '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":""}', 'title' => ''], + 'ResourceType' => [ + 'description' => 'The type of the resource group. Valid values:'."\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, + .'- `Dedicated`: a dedicated resource group.'."\n" + ."\n" + .'- `SelfManaged`: a self-managed resource group.', + 'enumValueTitles' => ['SelfManaged' => 'SelfManaged', 'Dedicated' => 'Dedicated'], + 'type' => 'string', + 'example' => 'Dedicated', + 'title' => '', ], - 'VirtualResourceName' => [ - 'title' => '虚拟资源的名称,如果不指定,默认和虚拟资源的ID相同', - 'description' => 'The new name of the virtual resource group.'."\n", + 'UsageMode' => [ + 'description' => 'The usage mode of the resource group.', + 'enumValueTitles' => ['inference' => 'A resource group for inference services.', 'sandbox' => 'A resource group for sandboxes.'], 'type' => 'string', - 'required' => false, - 'example' => 'NewMyVirtualResource', + 'example' => 'inference', + 'title' => '', ], - 'DisableSpotProtectionPeriod' => [ - 'description' => 'Specifies whether to disable the retention period of preemptible instances.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', + 'InstanceMaxAllocatableMemory' => ['description' => 'The maximum amount of memory that can be allocated to a single instance in the resource group, in MB.', 'type' => 'integer', 'format' => 'int32', 'example' => '2048', 'title' => ''], + 'Features' => [ + 'type' => 'array', + 'items' => ['description' => 'A feature that the resource group supports. Currently, only `GpuShare` (GPU sharing) is supported.', 'type' => 'string', 'example' => 'GpuShare', 'title' => ''], + 'description' => 'The features that the resource group supports.', + 'title' => '', + 'example' => '', ], + 'InstanceMaxAllocatableGPU' => ['description' => 'The maximum number of GPUs that can be allocated to a single instance in the resource group.', 'type' => 'number', 'format' => 'float', 'example' => '2', 'title' => ''], + 'InstanceMaxAllocatableCPU' => ['description' => 'The maximum number of CPU cores that can be allocated to a single instance in the resource group.', 'type' => 'integer', 'format' => 'int32', 'example' => '16', 'title' => ''], ], - 'required' => false, + 'title' => '', + 'example' => '', ], ], ], + 'responseDemo' => '[{"errorExample":"","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 \\"ServiceCount\\": \\"1\\",\\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 \\"UsageMode\\": \\"inference\\",\\n \\"InstanceMaxAllocatableMemory\\": 2048,\\n \\"Features\\": [\\n \\"GpuShare\\"\\n ],\\n \\"InstanceMaxAllocatableGPU\\": 2,\\n \\"InstanceMaxAllocatableCPU\\": 16\\n}","type":"json"}]', + 'title' => 'DescribeResource', + 'changeSet' => [ + ['createdAt' => '2025-07-16T06:03:56.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2024-12-10T08:41:41.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2023-08-24T06:58:18.000Z', 'description' => 'Response parameters changed, Response parameters changed'], + ['createdAt' => '2021-11-12T01:49:40.000Z', 'description' => 'Response parameters changed, Response parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeResource'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + ], + ], + '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' => '', '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' => '', '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 data returned.'."\n", + '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 returned message.'."\n", - 'type' => 'string', - 'example' => 'Successfully updated virtual resource eas-vr-npovr28onap1xxxxxx', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'VpcId' => ['title' => '', 'description' => 'The ID of the VPC that is directly connected.'."\n", 'type' => 'string', 'example' => 'vpc-uf66uio7m****1'], + 'VSwitchId' => ['title' => '', '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' => '', + '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"]', 'title' => ''], + 'example' => '', ], + 'DestinationCIDRs' => ['title' => '', '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' => '172.16.0.0/16'], ], + 'example' => '', ], ], + 404 => [], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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', + 'changeSet' => [ + ['createdAt' => '2021-11-12T01:49:39.000Z', 'description' => 'Response parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeResourceDLink'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeResourceDLink', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'consumes' => [ - 'application/json', + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ + [ + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['title' => '', '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' => '', '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-asdas****'], + ], + ], + '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' => '', 'description' => 'The Log Service project that is associated with the resource group.'."\n", 'type' => 'string', 'example' => 'eas-r-asdasdasd-sls'], + 'LogStore' => ['title' => '', 'description' => 'The Logstore of Log Service.'."\n", 'type' => 'string', 'example' => 'access_log'], + 'Message' => ['title' => '', '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'], + ], + 'example' => '', + ], + ], ], - 'produces' => [ - 'application/json', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeResourceLog'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeResourceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + ], + ], + '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' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '238285', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], - 'tenantRelevance' => 'tenant', + 'operationType' => 'get', + 'abilityTreeCode' => '37005', + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], ], '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' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the region where the service is deployed.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - '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' => 'ServiceName', + 'in' => 'path', + 'schema' => ['description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => ['description' => 'The details about the service.', '$ref' => '#/components/schemas/Service', 'title' => '', 'example' => ''], ], + 404 => [], + ], + 'title' => 'DescribeService', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeService'], + ], + ], + 'ramActions' => [ [ - '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", + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ServiceGroup\\": \\"my_group\\",\\n \\"Memory\\": 1024,\\n \\"Cpu\\": 1,\\n \\"Image\\": \\"registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320\\",\\n \\"Gpu\\": 0,\\n \\"TotalInstance\\": 1,\\n \\"AccessToken\\": \\"MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********\\",\\n \\"ResourceBurstable\\": true,\\n \\"InternetEndpoint\\": \\"http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo\\",\\n \\"ResourceAlias\\": \\"my_resource\\",\\n \\"Status\\": \\"Running\\",\\n \\"TrafficState\\": \\"standalone\\",\\n \\"RequestId\\": \\"40325405-579C-4D82********\\",\\n \\"Resource\\": \\"eas-r-xxxxxxx\\",\\n \\"SecondaryInternetEndpoint\\": \\"http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\\\\n\\",\\n \\"Labels\\": [\\n {\\n \\"LabelValue\\": \\"value1\\",\\n \\"LabelKey\\": \\"key1\\"\\n }\\n ],\\n \\"Namespace\\": \\"echo\\",\\n \\"Weight\\": 100,\\n \\"Role\\": \\"Queue\\",\\n \\"SecondaryIntranetEndpoint\\": \\"http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\\\\n\\",\\n \\"PendingInstance\\": 0,\\n \\"ServiceName\\": \\"echo\\",\\n \\"SafetyLock\\": \\"dangerous\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"AppType\\": \\"LLM\\",\\n \\"InstanceCountInResource\\": {\\n \\"Quota\\": 10,\\n \\"Public\\": 10,\\n \\"Dedicated\\": 10\\n },\\n \\"IntranetEndpoint\\": \\"http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo\\",\\n \\"QuotaId\\": \\"quotaxxxxx\\",\\n \\"Message\\": \\"Service start successfully\\",\\n \\"CurrentVersion\\": 1,\\n \\"RunningInstance\\": 1,\\n \\"WorkspaceId\\": \\"123445\\",\\n \\"CallerUid\\": \\"20123*******\\",\\n \\"Reason\\": \\"RUNNING\\",\\n \\"Source\\": \\"dsw\\",\\n \\"ServiceId\\": \\"eas-m-xxasdat\\",\\n \\"AppVersion\\": \\"v1\\",\\n \\"CronscalerEnabled\\": true,\\n \\"ServiceConfig\\": \\"{\\\\\\"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\\\\\\"}\\",\\n \\"Gateway\\": \\"gw-xxxxxx\\",\\n \\"AppSpecName\\": \\"llama_7b_fp16\\",\\n \\"GPUCorePercentage\\": 50,\\n \\"GPUMemory\\": 20,\\n \\"AppConfig\\": \\"{\\\\\\"ModelStorage\\\\\\":\\\\\\"oss\\\\\\"}\\",\\n \\"CreateTime\\": \\"2021-01-29T11:13:20Z\\",\\n \\"AutoscalerEnabled\\": true,\\n \\"ExtraData\\": \\"{\\\\\\"blue_green_services\\\\\\":[\\\\\\"test\\\\\\",\\\\\\"testxxxx\\\\\\"]}\\",\\n \\"LatestVersion\\": 1,\\n \\"UpdateTime\\": \\"2021-01-29T11:13:20Z\\",\\n \\"ServiceUid\\": \\"eas-m-xxasdat\\\\n\\",\\n \\"ParentUid\\": \\"11234*******\\",\\n \\"RoleAttrs\\": \\"{\\\\\\"ApproxMaxLength\\\\\\":null,\\\\\\"Length\\\\\\":null,\\\\\\"MaxPayloadBytes\\\\\\":null}\\"\\n}","type":"json"}]', + ], + 'DescribeServiceAutoScaler' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/autoscaler', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'VirtualResourceName', - 'in' => 'query', - 'schema' => [ - 'title' => '虚拟资源的名称,如果指定,将会返回名称相近的虚拟资源的信息', - 'description' => 'The name of the virtual resource group.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'MyVirtualResource', - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ [ - 'name' => 'Sort', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The region ID of the service.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'Order', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'name' => 'ServiceName', + 'in' => 'path', + 'schema' => ['description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'example' => 'echo', 'title' => ''], ], ], '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', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'ServiceName' => ['description' => 'The service name.', 'type' => 'string', 'example' => 'foo', 'title' => ''], + 'MinReplica' => ['description' => 'The minimum number of instances in the service.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'MaxReplica' => ['description' => 'The maximum number of instances in the service.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''], + 'Behavior' => ['description' => 'The additional information about the Autoscaler policy, such as the interval of triggering Autoscaler.', 'type' => 'object', 'example' => '{'."\n" + .' "behavior": {'."\n" + .' "scaleDown": {'."\n" + .' "stabilizationWindowSeconds": 150'."\n" + .' }'."\n" + .' }'."\n" + .'}', 'title' => ''], + 'ScaleStrategies' => [ + 'description' => 'The auto scaling policies.', + '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" + ."\n" + .'- CPU: the CPU utilization.', 'type' => 'string', 'example' => 'QPS', 'title' => ''], + '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" + ."\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.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + 'service' => ['description' => 'The service for which the metric is specified. If you do not set this parameter, the current service is specified by default.', 'type' => 'string', 'example' => 'demo_svc', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], - 'VirtualResources' => [ - 'title' => '虚拟资源列表', - 'description' => 'The virtual resource groups.'."\n", + 'CurrentMetrics' => [ + 'description' => 'The metrics.', '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', - ], + 'metricName' => ['description' => 'The metric name. Valid values:'."\n" + ."\n" + .'- QPS'."\n" + ."\n" + .'- CPU', 'type' => 'string', 'example' => 'QPS', 'title' => ''], + 'value' => ['description' => 'The metric value.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + 'service' => ['description' => 'The service for which the metric is specified.', 'type' => 'string', 'example' => 'demo_svc', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => 'DescribeServiceAutoScaler', + 'summary' => 'Queries information about the Autoscaler configurations of a service.', + 'changeSet' => [ + ['createdAt' => '2022-09-16T08:39:20.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2022-09-16T08:39:20.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2022-08-05T06:41:48.000Z', 'description' => 'Response parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceAutoScaler'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceAutoScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + ], + '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' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '238272', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], - 'tenantRelevance' => 'tenant', + 'abilityTreeCode' => '123960', + 'abilityTreeNodes' => ['FEATURElearnZ3WNW7'], ], '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', - ], + 'schema' => ['description' => 'The region ID of the service.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'VirtualResourceId', + 'name' => 'ServiceName', 'in' => 'path', - 'schema' => [ - 'title' => '虚拟资源的ID', - 'description' => 'The ID of the virtual resource group.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n", - ], + 'schema' => ['description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], ], ], '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****', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****', 'title' => ''], + 'ServiceName' => ['description' => 'The service name.', 'type' => 'string', 'example' => 'foo', 'title' => ''], + '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.', + 'type' => 'array', + 'items' => ['description' => 'The cron expression.', 'type' => 'string', 'example' => '* * * * * 0,6'."\n", 'title' => ''], + 'title' => '', + 'example' => '', ], - 'Resources' => [ - 'title' => '虚拟资源所包含的资源列表', - 'description' => 'The list of resources in the virtual resource group.'."\n", + 'ScaleJobs' => [ + 'description' => 'The CronHPA jobs.', '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", - ], + 'Schedule' => ['description' => 'The cron expression that is used to configure the execution time of the CronHPA job.', 'type' => 'string', 'example' => '0 18 * * * *', 'title' => ''], + 'TargetSize' => ['description' => 'The number of instances that you expect to configure for the CronHPA job.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Name' => ['description' => 'The name of the CronHPA job.', 'type' => 'string', 'example' => 'scale-job-1', 'title' => ''], + 'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => '"cron hpa job scale-jobs-0 executed successfully. current replicas:3, desired replicas:2."', 'title' => ''], + 'State' => ['description' => 'The status of the most recent CronHPA job.', 'type' => 'string', 'example' => 'Succeed', 'title' => ''], + 'LastProbeTime' => ['description' => 'The time when the most recent CronHPA job ran. The time is displayed in UTC.', 'type' => 'string', 'example' => '2022-02-24T06:31:00Z', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the most recent CronHPA job was created. The time is displayed in UTC.', 'type' => 'string', 'example' => '2020-06-24T02:11:30Z', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], - ], - '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', - ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => 'DescribeServiceCronScaler', + 'changeSet' => [ + ['createdAt' => '2024-07-19T09:17:13.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-02-22T03:55:39.000Z', 'description' => 'OpenAPI offline'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceCronScaler'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceCronScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + '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"}]', + ], + 'DescribeServiceDiagnosis' => [ + 'summary' => 'Queries the diagnostics details of a service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/diagnosis', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '238260', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], - 'tenantRelevance' => 'tenant', + 'operationType' => 'get', + 'abilityTreeCode' => '181894', + 'abilityTreeNodes' => ['FEATURElearnO4KXYN'], ], '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', - ], + 'schema' => ['description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'VirtualResourceId', + 'name' => 'ServiceName', 'in' => 'path', - 'schema' => [ - 'title' => '虚拟资源的ID', - 'description' => 'The ID of the virtual resource group.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'eas-vr-npovr28onap1xxxxxx', - ], + 'schema' => ['description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The data returned.'."\n", + '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' => [ + '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.', 'title' => ''], + '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.', 'title' => ''], + 'title' => '', + 'example' => '', + ], + '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.', 'title' => ''], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], 'title' => '', - 'description' => 'The information about the operation result.'."\n", - 'type' => 'string', - 'example' => 'Successfully deleted virtual resource eas-vr-npovr28onap1xxxxxx', + 'example' => '', ], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceDiagnosis'], + ], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceDiagnosis', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], - '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', - ], + 'DescribeServiceEndpoints' => [ + 'summary' => 'Retrieves a list of service endpoints.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/endpoints', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => [], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '238222', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], - 'tenantRelevance' => 'publicInformation', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '251429', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], + 'autoTest' => true, + 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'ServiceName', + 'in' => 'path', + 'schema' => ['description' => 'The service name. For more information, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'example' => 'service_name', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The request parameters.'."\n", + 'title' => 'Schema of Response', + 'description' => 'The response.', 'type' => 'object', 'properties' => [ - 'Resources' => [ - 'title' => '虚拟资源所包含的资源列表', - 'description' => 'The resources in the virtual resource group.'."\n", + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '739998B5-FB39-12A3-8323-0FA340317298'], + 'Message' => ['description' => 'The message returned.', 'type' => 'string', 'example' => 'Execution succeeded.', 'title' => ''], + 'AccessToken' => ['description' => 'The service token.', 'type' => 'string', 'example' => 'Nzc5N2FhN****TQ0YzBmYTIyN2MxZTUxN2NkYjg4MTJmMWQxZmY1****', 'title' => ''], + 'Endpoints' => [ + 'description' => 'The list of service endpoints.', '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', + 'EndpointType' => ['description' => 'The connection type of the service endpoint. Valid values:'."\n" + ."\n" + .'- DefaultGateway: The service is connected using a shared gateway.'."\n" + ."\n" + .'- PrivateGateway: The service is connected using a dedicated gateway.'."\n" + ."\n" + .'- Nlb: The service is attached to a Network Load Balancer (NLB) instance.'."\n" + ."\n" + .'- Nacos: The service is attached to a Nacos instance.', 'type' => 'string', 'example' => 'Nlb', 'title' => ''], + 'BackendId' => ['description' => 'The ID of the backend service. The value of this parameter varies based on the value of EndpointType:'."\n" + ."\n" + .'- If EndpointType is DefaultGateway, this parameter is set to default.'."\n" + ."\n" + .'- If EndpointType is PrivateGateway, this parameter is the ID of the dedicated gateway.'."\n" + ."\n" + .'- If EndpointType is Nlb, this parameter is the ID of the NLB instance.'."\n" + ."\n" + .'- If EndpointType is Nacos, this parameter is the ID of the Nacos instance.', 'type' => 'string', 'example' => 'nlb-5q4sp7u6oorkha****', 'title' => ''], + 'PathType' => ['description' => 'The type of the endpoint. Valid values:'."\n" + ."\n" + .'- Group: The endpoint of an audience group.'."\n" + ."\n" + .'- Service: The endpoint of a service.', 'type' => 'string', 'example' => 'Service', 'title' => ''], + 'IntranetEndpoints' => [ + 'description' => 'The list of internal endpoints.', + 'type' => 'array', + 'items' => ['description' => 'The internal endpoint.', 'type' => 'string', 'example' => 'nlb-5q4sp7u6oor****jvv.cn-hangzhou.nlb.aliyuncs.com', 'title' => ''], + 'title' => '', + 'example' => '', ], - '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', + 'InternetEndpoints' => [ + 'description' => 'The list of internet-facing endpoints.', + 'type' => 'array', + 'items' => ['description' => 'The internet-facing endpoint.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'title' => '', + 'example' => '', ], + 'Port' => ['description' => 'The port number. This parameter is returned only when the service is attached to an NLB or Nacos instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '9090', 'title' => ''], ], - 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], - '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', + 'title' => '', + 'example' => '', ], ], - 'required' => false, + 'example' => '', ], ], ], - '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\\": \\"739998B5-FB39-12A3-8323-0FA340317298\\",\\n \\"Message\\": \\"Execution succeeded.\\",\\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', + 'changeSet' => [ + ['createdAt' => '2025-04-01T03:54:07.000Z', 'description' => 'Response parameters changed'], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceEndpoints'], + ], ], - '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', + 'ramActions' => [], + 'translator' => 'manual', ], - 'CreateResource' => [ - 'summary' => 'Creates a resource group.', - 'path' => '/api/v2/resources', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeServiceEvent' => [ + 'summary' => 'Queries recent deployment events for a specified service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/events', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'high', - 'chargeType' => 'paid', - 'abilityTreeCode' => '37055', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '152928', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => ['description' => 'The page number to return. Default value: 1.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of events to return per page. Default value: 100.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '20'], + ], + [ + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The region ID of the service.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], + ], + [ + 'name' => 'ServiceName', + 'in' => 'path', + 'schema' => ['description' => 'The name of the service. To obtain this name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'foo'], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time of the query range, in UTC. The default value is 7 days ago.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '2006-01-02 15:04:05'], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time of the query range, in UTC. The default value is the current time.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '2006-01-02 15:04:05'], + ], + [ + 'name' => 'EventType', + 'in' => 'query', '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', - ], - ], + 'description' => 'The event type. Valid values:'."\n" + ."\n" + .'- Normal: a normal event.'."\n" + ."\n" + .'- Warning: a warning event.', + 'enumValueTitles' => ['Warning' => 'Warning', 'Normal' => 'Normal'], + 'type' => 'string', 'required' => false, + 'example' => 'Normal', + 'title' => '', ], ], + [ + 'name' => 'InstanceName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the service instance. To obtain this name, see [ListServiceInstances](~~412108~~).', 'type' => 'string', 'required' => false, 'example' => 'echo-test-784xxxx85d-hhnd8', 'title' => ''], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response'."\n", + 'description' => 'The returned data.', '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", + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3D491C94-6239-5318-B4B4-799D859***'], + 'Events' => [ + 'description' => 'The list of events.', 'type' => 'array', 'items' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => 'eas-i-xxxxx', + 'description' => 'The event details.', + 'type' => 'object', + 'properties' => [ + 'Type' => ['description' => 'The event type. Valid values:'."\n" + ."\n" + .'- Normal: a normal event.'."\n" + ."\n" + .'- Warning: a warning event.', 'type' => 'string', 'example' => 'Normal', 'title' => ''], + 'Reason' => ['description' => 'The reason for the event, which indicates a change in the service status.', 'type' => 'string', 'example' => 'Updating', 'title' => ''], + 'Message' => ['description' => 'The event message, which is a JSON-formatted string.', 'type' => 'string', 'example' => '{\\"versionId\\":1,\\"message\\":\\"Stage scale complete\\",\\"availableInstance\\":1,\\"unavailableInstance\\":0}', 'title' => ''], + 'Time' => ['description' => 'The time when the event occurred, in UTC.', 'type' => 'string', 'example' => '2022-04-09 06:30:00', 'title' => ''], + 'Resource' => ['description' => 'The resource type. Valid values:'."\n" + ."\n" + .'- Service: a service.'."\n" + ."\n" + .'- Pod: a service instance.', 'type' => 'string', 'example' => 'Service', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], + 'TotalCount' => ['description' => 'The total count of events.', 'type' => 'integer', 'format' => 'int64', 'example' => '29', 'title' => ''], + 'TotalPageNum' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int64', 'example' => '12', 'title' => ''], + 'PageNum' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], ], + 'example' => '', ], ], - 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', + '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 \\"Resource\\": \\"Service\\"\\n }\\n ],\\n \\"TotalCount\\": 29,\\n \\"TotalPageNum\\": 12,\\n \\"PageNum\\": 1\\n}","type":"json"}]', + 'title' => 'DescribeServiceEvent', + 'changeSet' => [ + ['createdAt' => '2023-03-31T08:41:55.000Z', 'description' => 'Request parameters changed, Response parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceEvent'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceEvent', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + ], + ], + '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' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'high', - 'chargeType' => 'paid', - 'abilityTreeCode' => '39655', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '181910', + 'abilityTreeNodes' => ['FEATURElearnO4KXYN'], ], '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', - ], + 'schema' => ['description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'ServiceName', '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', - ], + 'schema' => ['description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], ], [ - '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, - ], + 'name' => 'InstanceName', + 'in' => 'path', + 'schema' => ['description' => 'The name of the instance that runs the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'foo-69xxxx4f4-5w9r9', 'title' => ''], ], ], 'responses' => [ @@ -9371,102 +6337,152 @@ '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', + '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.', 'title' => ''], + '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.', 'title' => ''], + 'title' => '', + 'example' => '', + ], + '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.', 'title' => ''], + 'title' => '', + 'example' => '', + ], ], - ], - 'Message' => [ - 'description' => 'The returned message.'."\n", - 'type' => 'string', - 'example' => 'Create 5 new ecs instance(s) in resource [eas-r-asdasdasd] successfully', + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceInstanceDiagnosis'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceInstanceDiagnosis', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'operationType' => 'write', + 'consumes' => [], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '39659', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The page number. Default value: 1.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '', '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' => '', '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 to which the resource group belongs.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'ServiceName', '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', - ], + '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', 'title' => ''], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', + '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', 'title' => ''], + ], + [ + 'name' => 'ContainerName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the container that runs the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'worker0', 'title' => ''], + ], + [ + 'name' => 'Previous', + 'in' => 'query', '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', - ], - ], + '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', + 'title' => '', ], ], ], @@ -9477,66 +6493,70 @@ '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.', + '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', 'title' => ''], + 'example' => '', ], + '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'], ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [ + ['createdAt' => '2023-05-09T06:45:33.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-03-10T02:57:45.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceLog'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + ], + ], + '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' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - ], + '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', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'ResourceId', + 'name' => 'ServiceName', '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', - ], + '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' => [ @@ -9546,469 +6566,484 @@ '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.', - ], + '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' => '', 'description' => 'The percentage of traffic that you want to mirror. Valid values: 0 to 100.'."\n", 'type' => 'string', 'example' => '50'], ], + 'example' => '', ], ], - 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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceMirror'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceMirror', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + 'DescribeServiceRollout' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/rollout', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], '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', - ], + 'schema' => ['description' => 'The region ID where the service is deployed.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'ServiceName', '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', - ], + 'schema' => ['description' => 'The name of the service.', 'type' => 'string', 'required' => false, 'example' => 'foo', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response body.', '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', + 'RequestId' => ['description' => 'The request ID. This ID is unique to each request and is used for troubleshooting.', 'type' => 'string', 'example' => '40325405-579C-4D82****', 'title' => ''], + 'Rollout' => [ + 'type' => 'object', + 'properties' => [ + 'Strategy' => [ + 'type' => 'object', + 'properties' => [ + 'Partition' => [ + 'type' => 'object', + 'properties' => [ + 'Partition' => ['description' => 'Specifies the number or percentage of old replicas to keep. For example, a value of `50%` indicates that 50% of the old replicas are retained.', 'type' => 'string', 'example' => '50%', 'title' => ''], + ], + 'title' => '', + 'description' => 'The configuration for a canary release. This object is returned only when the canary release strategy is used.', + 'example' => '', + ], + 'Batch' => [ + 'type' => 'object', + 'properties' => [ + 'BatchSize' => ['description' => 'The number or percentage of replicas to update in each batch.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'Interval' => ['description' => 'The time to wait between batches.', 'type' => 'string', 'title' => '', 'example' => '5m'], + ], + 'title' => '', + 'description' => 'The configuration for a batch release. This object is returned only when the batch release strategy is used.', + 'example' => '', + ], + ], + 'title' => '', + 'description' => 'The rollout strategy configuration. This object contains the parameters for a canary release or batch release.', + 'example' => '', + ], + 'Status' => [ + 'type' => 'object', + 'properties' => [ + 'Phase' => [ + 'description' => 'The current release phase. Valid values:'."\n" + ."\n" + .'- `Pending`: The rollout is waiting to start.'."\n" + ."\n" + .'- `Running`: The rollout is in progress.'."\n" + ."\n" + .'- `Paused`: The rollout is paused.'."\n" + ."\n" + .'- `Completed`: The rollout is complete.'."\n" + ."\n" + .'- `Failed`: The rollout has failed.', + 'type' => 'string', + 'example' => 'Running', + 'enum' => ['Pending', 'Running', 'Paused', 'Completed', 'Failed'], + 'title' => '', + ], + 'TotalReplicas' => ['description' => 'The total number of desired replicas for the service.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'UpdatedReplicas' => ['description' => 'The number of replicas updated to the new revision.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'CurrentRevision' => ['description' => 'The identifier for the currently running revision.', 'type' => 'string', 'example' => 'service-abc123-v1', 'title' => ''], + 'UpdateRevision' => ['description' => 'The identifier for the target revision.', 'type' => 'string', 'example' => 'service-abc123-v2', 'title' => ''], + 'NextBatchStartTime' => ['description' => 'The scheduled start time for the next batch.', 'type' => 'string', 'example' => '2026/05/08 16:10:56', 'title' => ''], + ], + 'title' => '', + 'description' => 'The current progress and phase of the rollout.', + 'example' => '', + ], + ], + 'title' => '', + 'description' => 'Details of the service rollout, including the rollout strategy (`Strategy`) and execution status (`Status`).', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'DescribeServiceRollout', + 'summary' => 'Retrieves the details of a service rollout.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Rollout\\": {\\n \\"Strategy\\": {\\n \\"Partition\\": {\\n \\"Partition\\": \\"50%\\"\\n },\\n \\"Batch\\": {\\n \\"BatchSize\\": \\"1\\",\\n \\"Interval\\": \\"5m\\"\\n }\\n },\\n \\"Status\\": {\\n \\"Phase\\": \\"Running\\",\\n \\"TotalReplicas\\": 10,\\n \\"UpdatedReplicas\\": 5,\\n \\"CurrentRevision\\": \\"service-abc123-v1\\",\\n \\"UpdateRevision\\": \\"service-abc123-v2\\",\\n \\"NextBatchStartTime\\": \\"2026/05/08 16:10:56\\"\\n }\\n }\\n}","type":"json"}]', + ], + 'DescribeServiceSignedUrl' => [ + 'summary' => 'Obtains the logon-free URL of the service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/signed_url', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '37103', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'], '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', - ], + 'schema' => ['description' => 'The region in which the service resides.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'ServiceName', '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', - ], + 'schema' => ['description' => 'The service name.'."\n", 'type' => 'string', 'required' => false, 'example' => 'foo', 'title' => ''], ], [ - 'name' => 'InstanceList', + 'name' => 'Type', '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", + 'description' => 'The page type.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'* webview'."\n" + .'* monitor'."\n", 'type' => 'string', 'required' => false, - 'example' => 'eas-i-xxxxxxx,eas-i-xxxxxxx', + 'enumValueTitles' => ['webview' => 'webview', 'monitor' => 'monitor'], + 'example' => 'webview', + 'title' => '', ], ], [ - 'name' => 'AllFailed', + 'name' => 'Expire', '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', - ], + 'schema' => ['description' => 'The period of time for which the URL expires.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '43200', 'title' => ''], + ], + [ + 'name' => 'Internal', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to use the VPC connection.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + '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****', - ], - 'Message' => [ - 'description' => 'The returned message.'."\n", - 'type' => 'string', - 'example' => 'Instances eas-i-011227132046,eas-i-011227132046 are deleting', - ], + '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*******', 'title' => ''], ], + 'example' => '', ], ], - 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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceSignedUrl'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceSignedUrl', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'operationType' => 'write', + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '183027', + 'abilityTreeNodes' => ['FEATURElearnPKQVPS'], ], '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' => 'InstanceType', + 'in' => 'query', + 'schema' => ['description' => 'The type of the Elastic Algorithm Service (EAS) instance.', 'type' => 'string', 'required' => true, 'example' => 'ecs.c6.4xlarge', 'title' => ''], ], [ - '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' => '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.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', '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', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82***'], + 'SpotDiscounts' => [ + 'description' => 'The discount for the preemptible instance.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ZoneId' => ['description' => 'The zone ID.', 'type' => 'string', 'example' => 'cn-hangzhou-i', 'title' => ''], + 'SpotDiscount' => ['description' => 'The discount for the preemptible instance. For example, 0.1 represents a 90% discount.', 'type' => 'string', 'example' => '0.1', 'title' => ''], + 'Timestamp' => ['description' => 'The time when the discount is available. The time must be in UTC.', 'type' => 'string', 'example' => '2024-04-10T10:00:00Z', 'title' => ''], + 'InstanceType' => ['description' => 'The type of the ECS instance.', 'type' => 'string', 'example' => 'ecs.c7.large', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'DescribeSpotDiscountHistory', + 'changeSet' => [ + ['createdAt' => '2024-07-19T09:17:14.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSpotDiscountHistory'], + ], ], + 'ramActions' => [], + '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"}]', + ], + 'DescribeVirtualResource' => [ + 'summary' => 'Queries the details of a virtual resource group.', + 'path' => '/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '260412', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'abilityTreeCode' => '238272', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], + 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the resource group.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['title' => '', 'description' => 'The region where the virtual resource group is located.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'ResourceId', + 'name' => 'VirtualResourceId', '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', - ], - ], + 'schema' => ['title' => '', 'description' => 'The ID of the virtual resource group.', 'type' => 'string', 'required' => true, 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n"], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The details of the virtual resource group.', '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', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Resources' => [ + 'title' => '', + 'description' => 'The list of resources in the virtual resource group.', + 'type' => 'array', + 'items' => [ + 'description' => 'The details of the resource.', + 'type' => 'object', + 'properties' => [ + 'Region' => ['title' => '', 'description' => 'The region where the resource is located.', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'Priority' => ['title' => '', 'description' => 'The scheduling priority of the resource. A larger value indicates a higher priority.', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'InstanceType' => ['title' => '', 'description' => 'The instance type of the public resource group.', 'type' => 'string', 'example' => 'ecs.s6-c1m2.xlarge'."\n"], + 'QuotaId' => ['title' => '', 'description' => 'The ID of the Lingjun resource quota.', 'type' => 'string', 'example' => 'quota185lqxxxxxx'."\n"], + 'SpotPriceLimit' => ['title' => '', 'description' => 'The maximum price for a spot instance in the public resource group.', 'type' => 'number', 'format' => 'float', 'example' => '10.05'], + 'ResourceId' => ['title' => '', 'description' => 'The ID of the dedicated resource group.', 'type' => 'string', 'example' => 'eas-r-g55ieatgg3buxxxxxx'."\n"], + ], + 'title' => '', + 'example' => '', + ], + 'example' => '', + ], + 'CreateTime' => ['title' => '', 'description' => 'The time when the virtual resource group was created.', 'type' => 'string', 'example' => '2024-10-16T17:52:49Z'."\n"], + 'UpdateTime' => ['title' => '', 'description' => 'The time when the virtual resource group was last updated.', 'type' => 'string', 'example' => '2024-10-16T19:52:49Z'."\n"], + 'VirtualResourceId' => ['title' => '', 'description' => 'The ID of the virtual resource group.', 'type' => 'string', 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n"], + 'VirtualResourceName' => ['title' => '', 'description' => 'The name of the virtual resource group.', 'type' => 'string', 'example' => 'MyVirtualResource'."\n"], + 'ServiceCount' => ['description' => 'The number of deployed services.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'DisableSpotProtectionPeriod' => ['description' => 'Indicates whether the protection period for spot instances is disabled.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'Features' => [ + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => 'The specific attributes that the virtual resource group supports. Currently, only GpuShare (GPU sharing) is supported.', 'title' => '', 'example' => 'GpuShare'], + 'description' => 'The collection of features for the virtual resource group. This identifies the attributes that the resource group supports.', + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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', + 'changeSet' => [ + ['createdAt' => '2025-07-16T06:03:56.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2025-01-21T08:56:51.000Z', 'description' => 'Response parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeVirtualResource'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/{#VirtualResourceId}'], + ], + ], + ], ], + ], + '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', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '227413', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '243555', + 'abilityTreeNodes' => ['FEATURElearnMC2VJP'], ], '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', - ], + 'schema' => ['description' => 'The region where the private gateway resides.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'GatewayId', 'in' => 'path', - 'schema' => [ - 'description' => 'The resource group ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'eas-r-asdasdasd****', - ], + '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\\&Env=online) operation.'."\n", 'type' => 'string', 'required' => true, 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], ], [ - 'name' => 'body', - 'in' => 'body', + 'name' => 'CustomDomain', + 'in' => 'query', 'style' => 'json', 'schema' => [ - 'description' => 'The request body.'."\n", + 'description' => 'The custom domain name information.'."\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' => [ + 'description' => 'The domain name type.'."\n" + ."\n" + .'Valid value:'."\n" + ."\n" + .'* intranet: internal network.'."\n" + .'* internet: public network.'."\n", 'type' => 'string', 'required' => true, - 'example' => 'eas-r-asdasdasd****', - ], - 'MigrateToHybrid' => [ - 'type' => 'boolean', + 'enumValueTitles' => ['intranet' => '', 'internet' => ''], + 'example' => 'intranet', + 'title' => '', ], + 'Domain' => ['description' => 'The custom domain name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'test.com', 'title' => ''], ], - 'required' => false, + 'required' => true, + 'title' => '', + 'example' => '', ], ], ], @@ -10016,135 +7051,87 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The data returned.'."\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\']', - ], - ], + '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\\&Env=online) operation.'."\n", 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], + 'Message' => ['description' => 'The message that is returned.'."\n", 'type' => 'string', 'example' => 'Successfully delete custom endpoint for gateway gw-1uhcqmsc7x22******'."\n", 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetachGatewayDomain'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DetachGatewayDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + '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', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '260413', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'abilityTreeCode' => '161121', + 'abilityTreeNodes' => ['FEATURElearnO4KXYN'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'ResourceId', + 'name' => 'ServiceName', 'in' => 'path', - 'schema' => [ - 'description' => 'The resource group ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'eas-r-asdasdasd', - ], + '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' => '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', + 'name' => 'Exit', '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", - ], - ], - ], + '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', ], ], ], @@ -10155,405 +7142,528 @@ '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', - ], + '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'], ], + 'example' => '', ], ], ], - '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', + 'title' => 'DevelopService', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DevelopService'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:DevelopService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'list', + 'abilityTreeCode' => '225605', + 'abilityTreeNodes' => ['FEATURElearn6PC7M4'], ], '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', - ], + 'schema' => ['description' => 'The region where the private gateway resides.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-wulanchabu', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'GatewayId', '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', - ], + '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******', 'title' => ''], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', + '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****', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The request body.'."\n", + 'title' => 'Schema of Response', + 'description' => 'The response parameters.'."\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.', + '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******', 'title' => ''], + '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' => '0.0.0.0/0', 'title' => ''], + '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', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], - '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', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + '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****', 'title' => ''], + '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' => '0.0.0.0/0'."\n", 'title' => ''], + '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' => 'default', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'required' => false, + 'title' => '', + 'example' => '', ], - 'required' => false, ], + 'title' => '', + 'example' => '', ], - 'required' => false, + 'title' => '', + 'example' => '', ], ], - 'required' => false, + 'example' => '', + ], + ], + ], + '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', + 'changeSet' => [ + ['createdAt' => '2024-10-11T02:05:47.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-09-02T02:23:45.000Z', 'description' => 'Response parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAclPolicy'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListAclPolicy', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], ], ], ], + ], + 'ListBenchmarkTask' => [ + 'summary' => 'Lists all deployed stress testing tasks.', + '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 filter used to query tasks. If you specify this parameter, the system returns tasks whose names or associated service names match the filter value.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'test_bench'], + ], + [ + 'name' => 'Sort', + 'in' => 'query', + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + [ + '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, 'title' => '', 'example' => 'test_bench_srv'], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + [ + 'name' => 'ModelId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + [ + 'name' => 'RequestMethod', + 'in' => 'query', + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number. Pages start from page 1. Default value: 1.'."\n", 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The name of the Elastic Algorithm Service (EAS) service that corresponds to the stress testing task. For more information about how to query the service name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '10'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response.', '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', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '40325405-579C-4D82****'], + 'Tasks' => [ + 'description' => 'The list of tasks.', + 'type' => 'array', + 'items' => [ + 'description' => 'The task details.', + 'type' => 'object', + 'properties' => [ + 'TaskName' => ['description' => 'The name of the stress testing task.', 'type' => 'string', 'title' => '', 'example' => 'benchmark-larec-test-1076'], + 'TaskId' => ['description' => 'The ID of the stress testing task.', 'type' => 'string', 'title' => '', 'example' => 'eas-b-gv4y86uvgt****i'], + 'ServiceName' => ['description' => 'The name of the service to be stress tested.', 'type' => 'string', 'title' => '', 'example' => 'test_quota'], + 'Region' => ['description' => 'The region where the stress testing task is located.', 'type' => 'string', 'title' => '', 'example' => 'cn-shanghai'], + 'AvailableAgent' => ['description' => 'The number of available stress testing instances.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '2'], + 'Status' => [ + 'description' => 'The status of the stress testing task.', + 'type' => 'string', + 'enumValueTitles' => ['Creating' => 'Creating', 'Starting' => 'Starting', 'DeleteFailed' => 'DeleteFailed', 'Running' => 'Running', 'Stopping' => 'Stopping', 'Error' => 'Error', 'Updating' => 'Updating', 'Deleting' => 'Deleting', 'CreateFailed' => 'CreateFailed'], + 'title' => '', + 'example' => 'Running', + ], + 'Message' => ['description' => 'A summary of the task.', 'type' => 'string', 'title' => '', 'example' => 'Benchmark task [benchmark-larec-test-1076] is Running'], + 'CreateTime' => ['description' => 'The time when the stress testing task was created.', 'type' => 'string', 'title' => '', 'example' => '2020-02-04T02:43:15Z'], + 'UpdateTime' => ['description' => 'The time when the stress testing task was last updated.', 'type' => 'string', 'title' => '', 'example' => '2020-06-24T03:11:30Z'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'TotalCount' => ['description' => 'The total number of tasks.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'PageNumber' => ['description' => 'The page number of the returned list of tasks.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'PageSize' => ['description' => 'The number of tasks to return on each page.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '20'], ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [ + ['createdAt' => '2022-11-30T08:37:24.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-11-02T09:46:23.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ['createdAt' => '2022-05-27T03:23:01.000Z', 'description' => 'OpenAPI offline'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListBenchmarkTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/*'], + ], + ], + ], ], + ], + 'ListConfigs' => [ + 'path' => '/api/v2/configs/{ClusterId}/{ConfigType}/{Name}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], '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', - ], + 'schema' => ['description' => '**The service region.** (Required)', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'ConfigType', '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', - ], + 'schema' => ['description' => '**The configuration type.** (Required) Only `service` is supported.', 'type' => 'string', 'required' => false, 'example' => 'service', 'title' => ''], ], [ - '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, - ], + 'name' => 'Name', + 'in' => 'path', + 'schema' => ['description' => '**The service name.** (Required)', 'type' => 'string', 'required' => false, 'example' => 'my-llm-service', 'title' => ''], + ], + [ + 'name' => 'Page', + 'in' => 'query', + 'schema' => ['description' => '**The page number.** Default: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => '**The number of entries per page.** Default: 100. Maximum: 200.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''], ], ], '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', + 'Type' => ['description' => 'The configuration type.', 'type' => 'string', 'example' => 'Service', 'title' => ''], + 'Name' => ['description' => 'The service name.', 'type' => 'string', 'example' => 'my-service', 'title' => ''], + 'Configs' => [ + 'description' => 'The list of dynamic parameters.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The name of the dynamic parameter.', 'type' => 'string', 'example' => 'rate_limit', 'title' => ''], + 'Value' => ['description' => 'The value of the dynamic parameter.', 'type' => 'string', 'example' => '100', 'title' => ''], + 'CreatedAt' => ['description' => 'The time when the dynamic parameter was created, in UTC and ISO 8601 format.', 'type' => 'string', 'example' => '2024-01-01T10:00:00Z', 'title' => ''], + 'UpdatedAt' => ['description' => 'The time when the dynamic parameter was last updated, in UTC and ISO 8601 format.', 'type' => 'string', 'example' => '2024-01-01T10:00:00Z', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '[{"Key": "rate_limit", "Value": "{\\"limit\\": 100}", "CreatedAt": "2024-01-15T10:30:00Z", "UpdatedAt": "2024-01-15T10:30:00Z"}]', + 'title' => '', ], + 'Page' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries on the current page.', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''], + 'Total' => ['description' => 'The total number of entries found.', 'type' => 'integer', 'format' => 'int64', 'example' => '150', 'title' => ''], + 'HasMore' => ['description' => 'Indicates if more entries are available. `true` if more entries exist; otherwise, `false`.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'description' => 'The response structure.', + 'example' => '', ], ], - 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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'ListConfigs', + 'summary' => 'Retrieves a list of dynamic parameters for a specified service.', + 'description' => '## Description'."\n" + ."\n" + .'- `ClusterId` specifies the service\'s region.'."\n" + ."\n" + .'- `ConfigType` specifies the configuration type. Only `service` is supported.'."\n" + ."\n" + .'- `Name` specifies the service name.'."\n" + ."\n" + .'- Use the `Page` and `PageSize` parameters to paginate the results.'."\n" + ."\n" + .'- The response contains the details of the dynamic parameters and pagination information.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Type\\": \\"Service\\",\\n \\"Name\\": \\"my-service\\",\\n \\"Configs\\": [\\n {\\n \\"Key\\": \\"rate_limit\\",\\n \\"Value\\": \\"100\\",\\n \\"CreatedAt\\": \\"2024-01-01T10:00:00Z\\",\\n \\"UpdatedAt\\": \\"2024-01-01T10:00:00Z\\"\\n }\\n ],\\n \\"Page\\": 1,\\n \\"PageSize\\": 100,\\n \\"Total\\": 150,\\n \\"HasMore\\": true\\n}","type":"json"}]', + ], + 'ListGateway' => [ + 'summary' => 'Lists private gateways.', + 'path' => '/api/v2/gateways', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '155033', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], + 'abilityTreeCode' => '192662', + 'abilityTreeNodes' => ['FEATURElearn6PC7M4'], ], 'parameters' => [ [ - 'name' => 'ClusterId', - 'in' => 'path', + 'name' => 'GatewayId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the private gateway. You can obtain the ID from the private\\_gateway\\_id field in the response of the ListResources operation.', 'type' => 'string', 'required' => false, 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number of the gateway list to return. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of gateways to return on each page. The default value is 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''], + ], + [ + 'name' => 'GatewayName', + 'in' => 'query', + 'schema' => ['description' => 'The alias of the private gateway.', 'type' => 'string', 'required' => false, 'example' => 'mygateway1', 'title' => ''], + ], + [ + 'name' => 'ResourceName', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the resource group. You can obtain the ID from the ResourceId field in the response of the [ListResources](~~412133~~) operation.', 'type' => 'string', 'required' => false, 'example' => 'eas-r-4gt8twzwllfo******', 'title' => ''], + ], + [ + 'name' => 'InternetEnabled', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to enable access over the public network.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => ['description' => 'The status of the gateway.', 'type' => 'string', 'required' => false, 'example' => 'Running', 'title' => ''], + ], + [ + 'name' => 'ChargeType', + 'in' => 'query', 'schema' => [ - 'title' => '实例所属集群', - 'description' => 'The ID of the region to which the instance belongs.'."\n", + 'description' => 'The billing method.', + 'enumValueTitles' => ['PostPaid' => 'Pay-as-you-go', 'PrePaid' => 'Subscription'], 'type' => 'string', - 'required' => true, - 'example' => 'cn-beijing', + 'required' => false, + 'example' => 'PrePaid', + 'title' => '', ], ], [ - 'name' => 'ResourceId', - 'in' => 'path', + 'name' => 'Sort', + 'in' => 'query', '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", + 'description' => 'The field to sort by.', + 'enumValueTitles' => ['Status' => 'Status', 'ChargeType' => 'Billing method', 'CreateTime' => 'Creation time', 'UpdateTime' => 'Update time', 'InternetEnabled' => 'Public network access', 'GatewayType' => 'Gateway type', 'GatewayName' => 'Gateway name'], 'type' => 'string', - 'required' => true, - 'example' => 'eas-r-asdasdasd', + 'required' => false, + 'example' => 'CreateTime', + 'title' => '', ], ], [ - 'name' => 'InstanceId', - 'in' => 'path', + 'name' => 'Order', + 'in' => 'query', 'schema' => [ - 'title' => '实例Id', - 'description' => 'The instance ID. For more information about how to query the instance ID, see [ListResourceInstances](~~412129~~).'."\n", + 'description' => 'The sort order.', + 'enumValueTitles' => ['asc' => 'Ascending', 'desc' => 'Descending'], 'type' => 'string', - 'required' => true, - 'example' => 'eas-i-asdasdasd', + 'required' => false, + 'example' => 'asc', + 'title' => '', ], ], [ - 'name' => 'body', - 'in' => 'body', + 'name' => 'GatewayType', + 'in' => 'query', + 'schema' => [ + 'description' => 'The type of the gateway.', + 'enumValueTitles' => ['FullyManaged' => 'Fully-managed dedicated gateway', 'Application' => 'Application dedicated gateway'], + 'type' => 'string', + 'required' => false, + 'example' => 'Application', + 'title' => '', + ], + ], + [ + 'name' => 'Label', + 'in' => 'query', '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, - ], - ], + 'additionalProperties' => ['description' => 'The tag to filter by, in {"key":"value"} format. You can set the value to null or an empty string to filter only by the key.', 'type' => 'string', 'example' => '{"key1":"value1","key2":null}', 'title' => ''], + 'title' => '', + 'description' => 'Filter by tag.', 'required' => false, + 'example' => '', ], ], ], @@ -10561,428 +7671,435 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The returned result.', '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", + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Gateways' => [ + 'description' => 'The list of private gateways.', + 'type' => 'array', + 'items' => [ + 'description' => 'The details of the private gateway.', + 'type' => 'object', + 'properties' => [ + 'GatewayId' => ['description' => 'The ID of the private gateway.', 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], + 'GatewayName' => ['description' => 'The alias of the private gateway.', 'type' => 'string', 'example' => 'mygateway1', 'title' => ''], + 'InstanceType' => ['description' => 'The instance type used by the private gateway.', 'type' => 'string', 'example' => '2c4g', 'title' => ''], + 'IntranetDomain' => ['description' => 'The internal network endpoint.', 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******-1801786532******-vpc.cn-wulanchabu.pai-eas.aliyuncs.com', 'title' => ''], + 'InternetEnabled' => ['description' => 'Indicates whether public network access is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'InternetDomain' => ['description' => 'The public network endpoint.', 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******-1801786532******.cn-wulanchabu.pai-eas.aliyuncs.com', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the private gateway was created. The time is in UTC.', 'type' => 'string', 'example' => '2020-05-19T14:19:42Z', 'title' => ''], + 'UpdateTime' => ['description' => 'The time when the private gateway was last updated. The time is in UTC.', 'type' => 'string', 'example' => '2021-02-24T11:52:17Z', 'title' => ''], + 'Status' => [ + 'description' => 'The status of the private gateway.', + 'enumValueTitles' => ['Creating' => 'The gateway is being created.', 'Stopped' => 'The gateway is stopped.', 'Failed' => 'The gateway has failed.', 'Running' => 'The gateway is running.', 'Deleted' => 'The gateway is deleted.', 'Deleting' => 'The gateway is being deleted.', 'Waiting' => 'The gateway is waiting.'], + 'type' => 'string', + 'example' => 'Running', + 'title' => '', + ], + 'Replicas' => ['description' => 'The number of nodes for the private gateway.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'IsDefault' => ['description' => 'Indicates whether it is the default private gateway.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'ChargeType' => ['description' => 'The billing method. Valid values:'."\n" + ."\n" + .'- PrePaid: Subscription.'."\n" + ."\n" + .'- PostPaid: Pay-as-you-go.', 'type' => 'string', 'example' => 'PostPaid', 'title' => ''], + 'SSLRedirectionEnabled' => ['description' => 'Indicates whether HTTP to HTTPS redirection is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'IntranetEnabled' => ['description' => 'Indicates whether internal network access is enabled.', 'type' => 'boolean', 'title' => '', 'example' => ''], + 'Labels' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LabelKey' => ['description' => 'The key of the gateway tag.', 'type' => 'string', 'example' => 'key1', 'title' => ''], + 'LabelValue' => ['description' => 'The value of the gateway tag.', 'type' => 'string', 'example' => 'value1', 'title' => ''], + ], + 'description' => 'The gateway tag object.', + 'title' => '', + 'example' => '', + ], + 'description' => 'The list of gateway tags.', + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'PageNumber' => ['description' => 'The page number of the returned page.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of gateways.', 'type' => 'integer', 'format' => 'int64', 'example' => '5', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + '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\\": false,\\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', + 'changeSet' => [ + ['createdAt' => '2024-11-28T05:35:59.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2024-10-11T02:05:06.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGateway'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListGateway', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListGatewayDomains' => [ + 'summary' => 'Lists the custom domain names for 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' => 'get', + 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '37069', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], + 'abilityTreeCode' => '245872', + 'abilityTreeNodes' => ['FEATURElearnMC2VJP'], ], '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', - ], + 'schema' => ['description' => 'The region where the private gateway is located.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], ], [ - 'name' => 'ResourceId', + 'name' => 'GatewayId', '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', - ], + 'schema' => ['description' => 'The ID of the private gateway. To get this ID, see the GatewayId field in the response from the [ListGateway](https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ\\&Env=online) API operation.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'gw-1uhcqmsc7x22******'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => 'The response parameters.'."\n", + 'title' => 'Schema of Response', + 'description' => 'The returned results.', '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' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The message returned for the request.', 'type' => 'string', 'title' => '', 'example' => 'Successfully get custom domains'], + 'CustomDomains' => [ + 'description' => 'The list of custom domain names.', 'type' => 'array', 'items' => [ - 'type' => 'string', + 'description' => 'The details of the custom domain name.', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => 'The type of the domain name.', + 'type' => 'string', + 'enumValueTitles' => ['intranet' => 'internal same-region endpoint', 'internet' => 'public domain name'], + 'title' => '', + 'example' => 'intranet', + ], + 'CertificateId' => ['description' => 'The ID of the SSL certificate attached to the domain name. To obtain the certificate ID, upload or purchase a certificate in the [Digital Certificate Management Service](https://yundunnext.console.aliyun.com/?spm=5176.2020520163.console-base_help.2.4b3baJixaJixOc\\&p=cas) console.', 'type' => 'string', 'title' => '', 'example' => '1473**25'], + 'Domain' => ['description' => 'The custom domain name.', 'type' => 'string', 'title' => '', 'example' => 'test.com'], + 'CertificateName' => ['type' => 'string', 'description' => 'The name of the SSL certificate.', 'title' => '', 'example' => 'cert-9955038'], + 'CertificateStartDate' => ['type' => 'string', 'description' => 'The issuance date of the certificate.', 'title' => '', 'example' => '2018-07-13'], + 'CertificateEndDate' => ['type' => 'string', 'description' => 'The expiration date of the certificate.', 'title' => '', 'example' => '2023-10-25'], + 'CreateTime' => ['type' => 'string', 'description' => 'The time when the domain name was created.', 'title' => '', 'example' => '2020-05-19T14:19:42Z'], + 'UpdateTime' => ['type' => 'string', 'description' => 'The time when the domain name was last updated.', 'title' => '', 'example' => '2021-05-19T14:19:42Z'], + 'CertificateStatus' => [ + 'type' => 'string', + 'description' => 'The status of the domain name.', + 'enumValueTitles' => ['Succeeded' => 'The operation was successful.', 'Failed' => 'The operation failed.', 'Attaching' => 'The certificate is being attached.', 'Deleting' => 'The domain name is being deleted.'], + 'title' => '', + 'example' => 'Succeeded', + ], + ], + 'title' => '', + 'example' => '', ], - ], - 'InstanceMaxAllocatableGPU' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'InstanceMaxAllocatableCPU' => [ - 'type' => 'integer', - 'format' => 'int32', + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [ + ['createdAt' => '2025-06-13T01:48:17.000Z', 'description' => 'Response parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGatewayDomains'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListGatewayDomains', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListGatewayIntranetLinkedVpc' => [ + 'summary' => 'Lists the internal access 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' => 'get', + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '192205', + 'abilityTreeNodes' => ['FEATURElearnMC2VJP'], ], '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', - ], + 'schema' => ['description' => 'The region ID of the private gateway.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ResourceId', + 'name' => 'GatewayId', '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', - ], + 'schema' => ['description' => 'The ID of the private gateway. To obtain the ID, see the private\\_gateway\\_id field in the response of the [ListResources](~~412133~~) operation.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'gw-1uhcqmsc7x22******'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response.', '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", + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'GatewayId' => ['description' => 'The ID of the private gateway.', 'type' => 'string', 'title' => '', 'example' => 'gw-1uhcqmsc7x22******'], + 'IntranetLinkedVpcList' => [ + 'description' => 'The list of internal access endpoints.', 'type' => 'array', 'items' => [ - 'description' => 'The ID of the secondary vSwitch.'."\n", - 'type' => 'string', - 'example' => '[" vsw-8ersw98sgmlgkxxxxxx", " vsw-4dsgg2at0kljjxxxxxxxx"]', + 'description' => 'An internal access endpoint.', + 'type' => 'object', + 'properties' => [ + 'Ip' => ['description' => 'The IP address.', 'type' => 'string', 'title' => '', 'example' => '192.168.10.11'], + 'Status' => [ + 'description' => 'The status. Valid values:'."\n" + ."\n" + .'- Creating: The endpoint is being created.'."\n" + ."\n" + .'- Running: The endpoint is running.', + 'type' => 'string', + 'enumValueTitles' => ['Creating' => 'Creating', 'Running' => 'Running'], + 'title' => '', + 'example' => 'Running', + ], + 'VpcId' => ['description' => 'The ID of the virtual private cloud (VPC).', 'type' => 'string', 'title' => '', 'example' => 'vpc-2zetuli9ws0qgjd******'], + 'VSwitchId' => ['description' => 'The ID of the virtual switch.', 'type' => 'string', 'title' => '', 'example' => 'vsw-8vb2qjoiio6m9pg******'], + 'SecurityGroupId' => ['description' => 'The ID of the security group.', 'type' => 'string', 'title' => '', 'example' => 'sg-2ze4pgstgszvgq******'], + 'AuthoritativeDnsEnabled' => ['type' => 'boolean', 'description' => 'Indicates whether authoritative DNS resolution is enabled. Default value: false.', 'title' => '', 'example' => 'true'], + 'AccountId' => ['type' => 'string', 'description' => 'The ID of the Alibaba Cloud account that owns the VPC.', 'title' => '', 'example' => '161*******66'], + ], + 'title' => '', + 'example' => '', ], - ], - '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', + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], - 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', + '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', + 'description' => '**Before you call this operation, make sure that you understand the billing methods and [pricing](~~144261~~) of Elastic Algorithm Service (EAS).**', + 'changeSet' => [ + ['createdAt' => '2025-04-22T09:35:38.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2025-03-13T07:44:56.000Z', 'description' => 'Response parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGatewayIntranetLinkedVpc'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListGatewayIntranetLinkedVpc', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + ], + ], + 'ListGatewayIntranetLinkedVpcPeer' => [ + 'summary' => 'Lists the VPC peering connections for a gateway\'s private network endpoint.', + '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' => 'get', + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '245616', + 'abilityTreeNodes' => ['FEATURElearnMC2VJP'], ], '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', - ], + 'schema' => ['description' => 'The region where the private gateway is located.', 'type' => 'string', 'required' => false, 'example' => 'cn-wulanchabu', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'GatewayId', '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', - ], + 'schema' => ['description' => 'The ID of the private gateway. For more information, see [ListGateway](~~2841911~~).', 'type' => 'string', 'required' => false, 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], + ], + [ + 'name' => 'VpcId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the attached virtual private cloud (VPC). For more information, see [ListGatewayIntranetLinkedVpc](~~2621223~~).'."\n" + ."\n" + .'- Specify a VPC ID to query only the VPC peers for that VPC.'."\n" + ."\n" + .'- If you do not specify a VPC ID, all VPC peers are returned.', 'type' => 'string', 'required' => false, 'example' => 'vpc-2zetuli9ws0qgjd******', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response.', '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', + 'requestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'GatewayId' => ['description' => 'The private gateway ID.', 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], + 'PeerVpcList' => [ + 'description' => 'A list of peer VPCs.', + 'type' => 'array', + 'items' => [ + 'description' => 'A list of peer VPCs.', + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['description' => 'The VPC ID.', 'type' => 'string', 'example' => 'vpc-2zetuli9ws0qgjd******', 'title' => ''], + 'PeerVpcs' => [ + 'description' => 'A list of peer VPC IDs.', + 'type' => 'array', + 'items' => [ + 'description' => 'A list of peer VPC IDs.', + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['description' => 'The ID of the peer VPC.', 'type' => 'string', 'example' => 'vpc-uf66uio7md****', 'title' => ''], + 'Region' => ['description' => 'The region where the peer VPC is located.', 'type' => 'string', 'example' => 'cn-shanghai', 'title' => ''], + 'Status' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'title' => 'ListGatewayIntranetLinkedVpcPeer', + 'changeSet' => [ + ['createdAt' => '2025-06-13T01:48:17.000Z', 'description' => 'Response parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGatewayIntranetLinkedVpcPeer'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListGatewayIntranetLinkedVpcPeer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + '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"}]', + ], + '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' => [], @@ -10994,431 +8111,196 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '37095', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'abilityTreeCode' => '249662', + 'abilityTreeNodes' => ['FEATURElearnMC2VJP'], + 'autoTest' => true, + 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ - 'name' => 'ClusterId', + 'name' => 'GatewayId', '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', - ], + '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\\&Env=online) operation.'."\n", 'type' => 'string', 'required' => false, 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'ClusterId', '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', - ], + 'schema' => ['description' => 'The region ID of the private gateway.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cn-wulanchabu', 'title' => ''], ], - [ - 'name' => 'ChargeType', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ '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' => '', + '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', 'title' => ''], + 'title' => '', + 'example' => '', + ], ], - 'example' => 'PrePaid', + 'example' => '', ], ], - [ - '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', - ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Zones\\": [\\n \\"cn-hangzhou-a\\"\\n ]\\n}","type":"json"}]', + 'title' => 'ListGatewayIntranetSupportedZone', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGatewayIntranetSupportedZone'], ], + ], + 'ramActions' => [ [ - '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', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListGatewayIntranetSupportedZone', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + ], + 'ListGroups' => [ + 'summary' => 'Lists created service groups.', + 'path' => '/api/v2/groups', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'InstanceName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance name.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'e-xxxx***', - ], + 'AK' => [], ], + ], + 'consumes' => [], + 'produces' => [], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '153481', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], + ], + 'parameters' => [ [ - 'name' => 'InstanceId', + 'name' => 'PageSize', '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****', - ], + 'schema' => ['title' => '', 'description' => 'The number of service groups to display on each page in a paged query. Settings for paging default to 100.', 'type' => 'string', 'required' => false, 'example' => '20'], ], [ - 'name' => 'InstanceIP', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'description' => 'The IP address of the instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '10.224.xx.xx', - ], + 'schema' => ['title' => '', 'description' => 'The current page number of the service group list. Default value: 1.', 'type' => 'string', 'required' => false, 'example' => '1'], ], [ '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', - ], + 'schema' => ['title' => '', 'description' => 'The filter name. Fuzzy match is supported.', 'type' => 'string', 'required' => false, 'example' => 'foo'], ], [ - 'name' => 'InstanceStatus', + 'name' => 'WorkspaceId', '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', - ], + 'schema' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => false, 'example' => '123***', 'title' => ''], ], [ - 'name' => 'Label', + 'name' => 'TrafficMode', '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", - ], - ], + 'schema' => ['title' => '', 'description' => 'The traffic allocation method used to filter service groups.', 'type' => 'string', 'required' => false, 'example' => 'auto'], ], [ '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', - ], + 'schema' => ['title' => '', 'description' => 'The field by which to sort the results.', 'type' => 'string', 'required' => false, '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', - ], + 'schema' => ['title' => '', 'description' => 'The sort order of the results.', 'type' => 'string', 'required' => false, 'example' => 'desc'], ], [ - 'name' => 'Zone', + 'name' => 'Labels', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'description' => 'The user-defined labels.', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['description' => '按{"key":"value"}格式填写。Value 可为 null 或空字符,代表只按 Key 过滤,Value 可为任意值。', 'type' => 'string', 'example' => '{"key1":"value1","key2":null}'."\n", 'title' => ''], + 'title' => '', + 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'title' => '', + 'description' => 'The response.', '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", + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Groups' => [ + 'description' => 'The list of service groups.', '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', + 'items' => ['description' => 'The service group information.', '$ref' => '#/components/schemas/Group', 'title' => '', 'example' => ''], + 'title' => '', + 'example' => '', ], + 'PageSize' => ['description' => 'The number of groups displayed per page.', 'type' => 'integer', 'format' => 'int64', 'example' => '20', 'title' => ''], + 'PageNumber' => ['description' => 'The current page number of the returned group list.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of service groups.', 'type' => 'integer', 'format' => 'int64', 'example' => '5', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Groups\\": [\\n {\\n \\"Name\\": \\"foo\\",\\n \\"ClusterId\\": \\"cn-shanghai\\",\\n \\"CreateTime\\": \\"2020-05-19T14:19:42Z\\",\\n \\"UpdateTime\\": \\"2021-01-29T11:13:20Z\\",\\n \\"QueueService\\": \\"qservice\\",\\n \\"InternetEndpoint\\": \\"http://1110*****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group\\",\\n \\"IntranetEndpoint\\": \\"http://1110*****.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group\\",\\n \\"AccessToken\\": \\"MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********\\",\\n \\"TrafficMode\\": \\"auto\\",\\n \\"Network\\": {\\n \\"VpcId\\": \\"\\",\\n \\"VSwitchId\\": \\"\\",\\n \\"SecurityGroupId\\": \\"\\",\\n \\"GatewayId\\": \\"\\"\\n },\\n \\"ParentUid\\": \\"\\",\\n \\"CallerUid\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"LabelKey\\": \\"\\",\\n \\"LabelValue\\": \\"\\"\\n }\\n ]\\n }\\n ],\\n \\"PageSize\\": 20,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 5\\n}","type":"json"}]', + 'title' => 'List service groups', + 'changeSet' => [ + ['createdAt' => '2023-09-01T08:10:25.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-09-27T03:16:08.000Z', 'description' => 'OpenAPI offline'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGroups'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListGroups', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 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.', + 'summary' => 'Lists the service workers of a resource instance.', 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/instance/{InstanceName}/workers', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ @@ -11426,107 +8308,97 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '37099', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - 'FEATURElearnN5R68Z', - ], + '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', - ], + 'schema' => ['description' => 'The ID of the cluster where the resource group is located.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ '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', - ], + 'schema' => ['description' => 'The ID of the resource group. For more information, see [ListResources](~~412133~~).', 'type' => 'string', 'required' => true, 'example' => 'eas-r-adfabas', 'title' => ''], ], [ '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', - ], + 'schema' => ['description' => 'The name of the instance in the resource group. For more information, see [ListResourceInstances](~~412129~~). The instance name is the value of the HostName parameter in the response.', 'type' => 'string', 'required' => true, 'example' => 'cne10', 'title' => ''], ], [ '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', - ], + 'schema' => ['description' => 'The page number. The value starts from 1. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries per page. Default value: 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => 'The number of entries to return on each page. The default value is 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''], ], [ 'name' => 'WorkerName', 'in' => 'query', - 'schema' => [ - 'description' => 'The worker name.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test-fd95xxxxx-xxxxxx ', - ], + 'schema' => ['description' => 'The name of the worker instance.', 'type' => 'string', 'required' => false, 'example' => 'test-fd95xxxxx-xxxxxx ', 'title' => ''], ], [ 'name' => 'Status', 'in' => 'query', 'schema' => [ + 'description' => 'The status of the worker instance.', + 'enumValueTitles' => ['Terminating' => 'Terminating', 'Stopped' => 'Stopped', 'Failed' => 'Failed', 'Running' => 'Running', 'Waiting' => 'Waiting'], 'type' => 'string', + 'required' => false, + 'example' => 'Running', + 'title' => '', ], ], [ 'name' => 'Order', 'in' => 'query', 'schema' => [ + 'description' => 'The sort order.'."\n" + ."\n" + .'- Asc: ascending order.'."\n" + ."\n" + .'- Desc: descending order.', + 'enumValueTitles' => ['Asc' => 'Asc', 'Desc' => 'Desc'], 'type' => 'string', + 'required' => false, + 'example' => 'Desc', + 'title' => '', ], ], [ 'name' => 'Sort', 'in' => 'query', 'schema' => [ + 'description' => 'The field to sort by.', + 'enumValueTitles' => [ + 'Status' => 'Status', 'MemoryLimit' => 'MemoryLimit', 'Ready' => 'Ready', 'CpuLimit' => 'CpuLimit', 'ServiceName' => 'ServiceName', 'Restarts' => 'Restarts', 'StartTime' => 'StartTime', 'MemoryRequest' => 'MemoryRequest', 'GpuLimit' => 'GpuLimit', 'GpuRequest' => 'GpuRequest', + 'CpuRequest' => 'CpuRequest', 'Name' => 'Name', + ], 'type' => 'string', + 'required' => false, + 'example' => 'CreateTime', + 'title' => '', ], ], [ 'name' => 'ServiceName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['description' => 'The service name.', 'type' => 'string', 'required' => false, 'example' => 'echo', 'title' => ''], ], [ 'name' => 'Ready', 'in' => 'query', 'schema' => [ + 'description' => 'Indicates whether the health check passed.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'title' => '', ], ], ], @@ -11534,63 +8406,54 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '40325405-579C-4D82****', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], 'Pods' => [ - 'title' => 'pod列表', - 'description' => 'The workers.'."\n", + 'title' => '', + 'description' => 'The list of workers.', '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', + 'items' => ['description' => 'The worker information.', '$ref' => '#/components/schemas/ResourceInstanceWorker', 'title' => '', 'example' => ''], + 'example' => '', ], + 'PageNumber' => ['description' => 'The returned page number.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '20'], + 'TotalCount' => ['description' => 'The total number of workers.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], ], + 'example' => '', ], ], 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', + 'changeSet' => [ + ['createdAt' => '2025-01-21T08:56:51.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceInstanceWorker'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListResourceInstanceWorker', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Pods\\": [\\n {\\n \\"Name\\": \\"test-india-5bbbfdbc98-****\\",\\n \\"ServiceName\\": \\"test-in****\\",\\n \\"Status\\": \\"Running\\",\\n \\"Ready\\": true,\\n \\"CpuRequest\\": 1,\\n \\"GpuRequest\\": 0,\\n \\"MemoryRquest\\": 200,\\n \\"CpuLimit\\": 2,\\n \\"GpuLimit\\": 0,\\n \\"MemoryLimit\\": 400,\\n \\"RestartCount\\": 3,\\n \\"StartTime\\": \\"2021-05-09T09:56:19Z\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1\\n}","type":"json"}]', + ], + 'ListResourceInstances' => [ + 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/instances', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -11600,188 +8463,179 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '37092', - 'abilityTreeNodes' => [ - 'FEATURElearnRPDTZG', - ], + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '37095', + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], ], 'parameters' => [ [ - 'name' => 'PageNumber', + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the region where the resource group is located.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], + ], + [ + 'name' => 'ResourceId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the resource group. For more information, see [ListResources](~~412133~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'iot'], + ], + [ + 'name' => 'ChargeType', 'in' => 'query', 'schema' => [ - 'title' => '请求的页码(默认为1)', - 'description' => 'The page number. Pages start from page 1. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', + 'description' => 'Filters instances by billing method. Valid values:'."\n" + ."\n" + .'- PrePaid: subscription.'."\n" + ."\n" + .'- PostPaid: pay-as-you-go.', + 'enumValueTitles' => ['PostPaid' => 'pay-as-you-go', 'PrePaid' => 'subscription'], + 'type' => 'string', 'required' => false, - 'example' => '1', + 'title' => '', + 'example' => 'PrePaid', ], ], [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number. The value starts from 1. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'title' => '', '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', - ], + 'schema' => ['description' => 'The number of instances to return on each page. Default value: 100.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '20'], ], [ - 'name' => 'ResourceName', + 'name' => 'InstanceName', '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', - ], + 'schema' => ['description' => 'Filter by instance name.', 'type' => 'string', 'required' => false, 'example' => 'e-xxxx***', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'InstanceId', + 'in' => 'query', + 'schema' => ['description' => 'Filter by instance ID. For more information, see [ListResourceInstances](~~412129~~).', 'type' => 'string', 'required' => false, 'example' => 'i-bp1jd6x3uots****a', 'title' => ''], + ], + [ + 'name' => 'InstanceIP', + 'in' => 'query', + 'schema' => ['description' => 'The IP address of the instance.', 'type' => 'string', 'required' => false, 'example' => '10.224.xx.xx', 'title' => ''], + ], + [ + 'name' => 'Filter', + 'in' => 'query', + 'schema' => ['description' => 'A keyword for the search. You can search by instance ID or IP address.', 'type' => 'string', 'required' => false, 'example' => '10.224.xx.xx', 'title' => ''], + ], + [ + 'name' => 'InstanceStatus', '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", + 'description' => 'The status of the instance.', + 'enumValueTitles' => ['Ready-SchedulingDisabled' => 'The instance is available but cannot be scheduled.', 'Ready' => 'Running', 'NotReady' => 'Not ready', 'Stopped' => 'Stopped', 'NotReady-SchedulingDisabled' => 'The instance is unavailable and cannot be scheduled.', 'Attaching' => 'Starting', 'Deleting' => 'Deleting', 'CreateFailed' => 'Creation failed'], 'type' => 'string', 'required' => false, - 'example' => 'eas-r-h7lcw24dyqztwxxxxxx', + 'example' => 'Ready', + 'title' => '', ], ], [ - 'name' => 'ResourceType', + 'name' => 'Label', 'in' => 'query', + 'style' => 'json', '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', + 'description' => 'Filter by label.', + 'type' => 'object', 'required' => false, - 'enumValueTitles' => [ - 'SelfManaged' => 'SelfManaged', - 'Dedicated' => 'Dedicated', - ], - 'example' => 'Dedicated', + 'additionalProperties' => ['description' => 'Enter the label in the \\`{"key":"value"}\\` format. The value can be \\`null\\` or an empty string. This lets you filter by key only, regardless of the value.', 'type' => 'string', 'example' => '{"key1":"value1","key2":null}', 'title' => ''], + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'ResourceStatus', + 'name' => 'Sort', 'in' => 'query', 'schema' => [ - 'description' => 'The resource group status.'."\n", + 'description' => 'The sort field.', + 'enumValueTitles' => ['CreateTime' => 'Creation time', 'MemoryUsed' => 'Memory usage', 'GpuUsed' => 'GPU usage', 'ExpireTime' => 'Expiration time', 'CpuUsed' => 'CPU utilization'], 'type' => 'string', 'required' => false, - 'example' => 'ResourceReady', + 'example' => 'CreateTime', + 'title' => '', ], ], [ 'name' => 'Order', 'in' => 'query', 'schema' => [ - 'description' => 'The sorting order. Valid values:'."\n" - ."\n" - .'* Desc'."\n" - .'* Asc'."\n", + 'description' => 'The sort order.', + 'enumValueTitles' => ['asc' => 'Ascending', 'desc' => 'Descending'], 'type' => 'string', 'required' => false, - 'example' => 'Desc', + 'example' => 'desc', + 'title' => '', ], ], [ - 'name' => 'Sort', + 'name' => 'Zone', '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', - ], + 'schema' => ['description' => 'The zone of the instance.', 'type' => 'string', 'required' => false, 'example' => 'J', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response.', '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", + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Instances' => [ + 'description' => 'The list of instances.', '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', + 'items' => ['description' => 'The instance information.', '$ref' => '#/components/schemas/ResourceInstance', 'title' => '', 'example' => ''], + 'title' => '', + 'example' => '', ], + 'PageNumber' => ['description' => 'The page number of the returned list of instances.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of instances returned on each page.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of instances.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], ], + 'example' => '', ], ], + 404 => [], ], - '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', + 'title' => 'ListResourceInstances', + 'summary' => 'Lists the instances in a specified dedicated resource group.', + 'changeSet' => [ + ['createdAt' => '2025-02-05T11:06:38.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-05-06T09:55:12.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-11-29T06:25:29.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2021-11-12T01:49:39.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceInstances'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListResourceInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Instances\\": [\\n {\\n \\"InstanceId\\": \\"eas-i-1800z74n30kao****\\",\\n \\"InstanceName\\": \\"eas01122713204*****\\",\\n \\"InstanceIp\\": \\"11.227.XX.XX\\",\\n \\"InstanceStatus\\": \\"Ready\\",\\n \\"InstancePhase\\": \\"\\",\\n \\"InstanceCpuCount\\": 4,\\n \\"InstanceGpuCount\\": 0,\\n \\"InstanceMemory\\": \\"8192M\\",\\n \\"InstanceSystemDiskSize\\": 200,\\n \\"InstanceGpuMemory\\": \\"0G\\",\\n \\"InstanceUsedCpu\\": 2.4,\\n \\"InstanceUsedGpu\\": 0,\\n \\"InstanceUsedMemory\\": \\"1000M\\",\\n \\"InstanceType\\": \\"ecs.s6-c1m2.xlarge\\",\\n \\"CreateTime\\": \\"2020-07-05T22:51:32Z\\",\\n \\"ChargeType\\": \\"PrePaid\\",\\n \\"ExpiredTime\\": \\"2020-08-05T22:51:32Z\\",\\n \\"AutoRenewal\\": false,\\n \\"Arch\\": \\"arm64\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Zone\\": \\"cn-hangzhou-b\\",\\n \\"ResourceId\\": \\"eas-r-xxxxx\\",\\n \\"InstanceTenantIp\\": \\"192.168.XX.XX\\",\\n \\"InstanceUsedGpuMemory\\": \\"470M\\",\\n \\"Labels\\": [\\n {\\n \\"LabelKey\\": \\"key\\",\\n \\"LabelValue\\": \\"value\\"\\n }\\n ],\\n \\"LastCordonOperator\\": \\"\\",\\n \\"LastCordonReason\\": \\"\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 2\\n}","type":"json"}]', ], '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', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -11792,151 +8646,179 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '37100', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + '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', - ], + 'schema' => ['description' => 'The ID of the region to which the resource group belongs.', 'type' => 'string', 'required' => true, 'title' => '', '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', - ], + 'schema' => ['description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).', 'type' => 'string', 'required' => true, 'title' => '', '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', - ], + 'schema' => ['description' => 'The page number. Pages start from page 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'title' => '', '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', - ], + 'schema' => ['description' => 'The number of entries per page. Default value: 100.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '20'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '40325405-579C-4D82****', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], 'Services' => [ - 'description' => 'The services.'."\n", + 'description' => 'The services.', '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', + 'items' => ['description' => 'The summary information about the service.', '$ref' => '#/components/schemas/Service', 'title' => '', 'example' => ''], + 'title' => '', + 'example' => '', ], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], ], + 'example' => '', ], ], 404 => [], ], 'staticInfo' => [ - 'substitutions' => [ - 'eas::2021-07-01::ListServices', - ], + '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', + 'summary' => 'Queries a list of services that are deployed in the dedicated resource group.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceServices'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListResourceServices', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Services\\": [\\n {\\n \\"ServiceGroup\\": \\"my_group\\",\\n \\"Memory\\": 1024,\\n \\"Cpu\\": 1,\\n \\"Image\\": \\"registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320\\",\\n \\"Gpu\\": 0,\\n \\"TotalInstance\\": 1,\\n \\"AccessToken\\": \\"MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********\\",\\n \\"ResourceBurstable\\": true,\\n \\"InternetEndpoint\\": \\"http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo\\",\\n \\"ResourceAlias\\": \\"my_resource\\",\\n \\"Status\\": \\"Running\\",\\n \\"TrafficState\\": \\"standalone\\",\\n \\"RequestId\\": \\"40325405-579C-4D82********\\",\\n \\"Resource\\": \\"eas-r-xxxxxxx\\",\\n \\"SecondaryInternetEndpoint\\": \\"http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\\\\n\\",\\n \\"Labels\\": [\\n {\\n \\"LabelValue\\": \\"value1\\",\\n \\"LabelKey\\": \\"key1\\"\\n }\\n ],\\n \\"Namespace\\": \\"echo\\",\\n \\"Weight\\": 100,\\n \\"Role\\": \\"Queue\\",\\n \\"SecondaryIntranetEndpoint\\": \\"http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\\\\n\\",\\n \\"PendingInstance\\": 0,\\n \\"ServiceName\\": \\"echo\\",\\n \\"SafetyLock\\": \\"dangerous\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"AppType\\": \\"LLM\\",\\n \\"InstanceCountInResource\\": {\\n \\"Quota\\": 10,\\n \\"Public\\": 10,\\n \\"Dedicated\\": 10\\n },\\n \\"IntranetEndpoint\\": \\"http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo\\",\\n \\"QuotaId\\": \\"quotaxxxxx\\",\\n \\"Message\\": \\"Service start successfully\\",\\n \\"CurrentVersion\\": 1,\\n \\"RunningInstance\\": 1,\\n \\"WorkspaceId\\": \\"123445\\",\\n \\"CallerUid\\": \\"20123*******\\",\\n \\"Reason\\": \\"RUNNING\\",\\n \\"Source\\": \\"dsw\\",\\n \\"ServiceId\\": \\"eas-m-xxasdat\\",\\n \\"AppVersion\\": \\"v1\\",\\n \\"CronscalerEnabled\\": true,\\n \\"ServiceConfig\\": \\"{\\\\\\"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\\\\\\"}\\",\\n \\"Gateway\\": \\"gw-xxxxxx\\",\\n \\"AppSpecName\\": \\"llama_7b_fp16\\",\\n \\"GPUCorePercentage\\": 50,\\n \\"GPUMemory\\": 20,\\n \\"AppConfig\\": \\"{\\\\\\"ModelStorage\\\\\\":\\\\\\"oss\\\\\\"}\\",\\n \\"CreateTime\\": \\"2021-01-29T11:13:20Z\\",\\n \\"AutoscalerEnabled\\": true,\\n \\"ExtraData\\": \\"{\\\\\\"blue_green_services\\\\\\":[\\\\\\"test\\\\\\",\\\\\\"testxxxx\\\\\\"]}\\",\\n \\"LatestVersion\\": 1,\\n \\"UpdateTime\\": \\"2021-01-29T11:13:20Z\\",\\n \\"ServiceUid\\": \\"eas-m-xxasdat\\\\n\\",\\n \\"ParentUid\\": \\"11234*******\\",\\n \\"RoleAttrs\\": \\"{\\\\\\"ApproxMaxLength\\\\\\":null,\\\\\\"Length\\\\\\":null,\\\\\\"MaxPayloadBytes\\\\\\":null}\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 2\\n}","type":"json"}]', + ], + 'ListResources' => [ + 'summary' => 'Lists the resource groups for the current user.', + 'path' => '/api/v2/resources', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [], + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '37092', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], + ], 'parameters' => [ [ - 'name' => 'body', - 'in' => 'body', + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number. Pages start from 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page. Default value: 100.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '20'], + ], + [ + 'name' => 'ResourceName', + 'in' => 'query', + 'schema' => ['description' => 'The resource group name. The [CreateResource](~~412111~~) operation returns this name.', 'type' => 'string', 'required' => false, 'example' => 'MyResource', 'title' => ''], + ], + [ + 'name' => 'ResourceId', + 'in' => 'query', + 'schema' => ['description' => 'The resource group ID. The [CreateResource](~~412111~~) operation returns this ID.', 'type' => 'string', 'required' => false, 'example' => 'eas-r-h7lcw24dyqztwxxxxxx', 'title' => ''], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => [ + 'description' => 'The resource group type. Valid values:'."\n" + ."\n" + .'- `Dedicated`: dedicated resource group'."\n" + ."\n" + .'- `SelfManaged`: self-managed resource group', + 'enumValueTitles' => ['SelfManaged' => 'SelfManaged', 'Dedicated' => 'Dedicated'], + 'type' => 'string', + 'required' => false, + 'example' => 'Dedicated', + 'title' => '', + ], + ], + [ + 'name' => 'ResourceStatus', + 'in' => 'query', + 'schema' => ['description' => 'The resource group status.', 'type' => 'string', 'required' => false, 'example' => 'ResourceReady', 'title' => ''], + ], + [ + 'name' => 'UsageMode', + 'in' => 'query', + 'schema' => [ + 'description' => 'The usage mode of the resource group. The default value is `inference`.', + 'enumValueTitles' => ['all' => 'All resource groups', 'inference' => 'Resource groups for inference services', 'sandbox' => 'Resource groups for sandboxes'], + 'type' => 'string', + 'required' => false, + 'example' => 'inference', + 'title' => '', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => 'The sort order. Valid values:'."\n" + ."\n" + .'- `Desc`: descending order'."\n" + ."\n" + .'- `Asc`: ascending order', + 'enumValueTitles' => ['PrePaidInstanceCount' => 'PrePaidInstanceCount', 'CpuCount' => 'CpuCount', 'Memory' => 'Memory', 'CreateTime' => 'CreateTime', 'PostPaidInstanceCount' => 'PostPaidInstanceCount', 'MemoryUsed' => 'MemoryUsed', 'GpuCount' => 'GpuCount', 'GpuUsed' => 'GpuUsed', 'CpuUsed' => 'CpuUsed', 'ServiceCount' => 'ServiceCount'], + 'type' => 'string', + 'required' => false, + 'example' => 'Desc', + 'title' => '', + ], + ], + [ + 'name' => 'Sort', + 'in' => 'query', 'schema' => [ - 'description' => 'The request body. The body includes the parameters that are set to create a stress testing task.'."\n", + 'description' => 'The sort field. Timestamp fields are sorted in descending order by default.', + 'enumValueTitles' => ['PrePaidInstanceCount' => 'PrePaidInstanceCount', 'CpuCount' => 'CpuCount', 'Memory' => 'Memory', 'CreateTime' => 'CreateTime', 'PostPaidInstanceCount' => 'PostPaidInstanceCount', 'MemoryUsed' => 'MemoryUsed', 'GpuCount' => 'GpuCount', 'GpuUsed' => 'GpuUsed', 'CpuUsed' => 'CpuUsed', 'ServiceCount' => 'ServiceCount'], '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" - .'}', + 'example' => 'CreateTime', + 'title' => '', ], ], ], @@ -11944,128 +8826,84 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response body.', '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', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Resources' => [ + 'description' => 'A list of resource groups.', + 'type' => 'array', + 'items' => ['description' => 'The details of a resource group.', '$ref' => '#/components/schemas/Resource', 'title' => '', 'example' => ''], + 'title' => '', + 'example' => '', ], + 'PageNumber' => ['description' => 'The returned page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of resource groups.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Resources\\": [\\n {\\n \\"ResourceId\\": \\"eas-r-asdasdasd\\",\\n \\"ResourceName\\": \\"iot\\",\\n \\"ResourceType\\": \\"Dedicated\\",\\n \\"ClusterId\\": \\"cn-shanghai\\",\\n \\"CreateTime\\": \\"2019-02-26T17:52:49Z\\",\\n \\"UpdateTime\\": \\"2019-02-26T19:52:49Z\\",\\n \\"InstanceCount\\": 4,\\n \\"PrePaidInstanceCount\\": 2,\\n \\"PostPaidInstanceCount\\": 2,\\n \\"CpuCount\\": 64,\\n \\"GpuCount\\": 1,\\n \\"Memory\\": 8192,\\n \\"CpuUsed\\": 8,\\n \\"GpuUsed\\": 1,\\n \\"MemoryUsed\\": 2048,\\n \\"Status\\": \\"ResourceReady\\",\\n \\"Message\\": \\"Resource is ready\\",\\n \\"ExtraData\\": {},\\n \\"Vendor\\": \\"ECS\\",\\n \\"Features\\": [\\n \\"GpuShare\\"\\n ],\\n \\"InstanceMaxAllocatableMemory\\": 2048,\\n \\"InstanceMaxAllocatableGPU\\": 2,\\n \\"InstanceMaxAllocatableCPU\\": 16,\\n \\"UsageMode\\": \\"inference\\",\\n \\"ServiceCount\\": 1\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1\\n}","type":"json"}]', + 'title' => 'ListResources', + 'changeSet' => [ + ['createdAt' => '2025-01-21T08:56:51.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-08-24T06:58:18.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-11-29T06:25:29.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResources'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/*'], + ], + ], + ], ], + ], + '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' => [], + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '172666', + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], + ], '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', - ], + 'schema' => ['description' => 'The region ID of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'TaskName', + 'name' => 'ServiceName', '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', - ], + 'schema' => ['description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], + ], + [ + 'name' => 'InstanceName', + 'in' => 'path', + 'schema' => ['description' => 'The name of the instance that runs the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'foo-69xxxx4f4-5w9r9', 'title' => ''], ], ], 'responses' => [ @@ -12075,454 +8913,750 @@ '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', + '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', 'title' => ''], + 'Containers' => [ + 'description' => 'The containers of the service.'."\n", + 'type' => 'array', + 'items' => ['description' => 'The detailed information about the container.'."\n", '$ref' => '#/components/schemas/ContainerInfo', 'title' => '', 'example' => ''], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ServiceName\\": \\"foo\\",\\n \\"Containers\\": [\\n {\\n \\"Name\\": \\"worker0\\",\\n \\"Image\\": \\"registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320\\",\\n \\"Port\\": 8080,\\n \\"RestartCount\\": 0,\\n \\"Ready\\": true,\\n \\"CurrentStatus\\": \\"Waiting\\",\\n \\"CurrentReaon\\": \\"PodInitializing\\",\\n \\"CurrentTimestamp\\": \\"2022-03-21T06:17:57Z\\",\\n \\"LastStatus\\": \\"Terminated\\",\\n \\"LastReason\\": \\"Error\\",\\n \\"LastTimestamp\\": \\"2022-03-21T05:17:57Z\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => 'ListServiceContainers', + 'changeSet' => [ + ['createdAt' => '2024-07-19T09:17:13.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListServiceContainers'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListServiceContainers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + ], + ], + 'ListServiceInstanceFaultInjectionInfo' => [ + 'summary' => 'Retrieves fault injection information.', + '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' => 'The ID of the region where the stress testing task is performed.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['type' => 'string', 'required' => true, 'description' => 'The ID of the cluster where the resource group is located.', 'title' => '', 'example' => 'cn-shanghai'], ], [ - 'name' => 'TaskName', + 'name' => 'ServiceName', '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', - ], + 'schema' => ['type' => 'string', 'required' => true, 'description' => 'The service name.', 'title' => '', 'example' => 'foo'], + ], + [ + 'name' => 'InstanceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'description' => 'The name of the service instance.', 'title' => '', 'example' => 'e-xxxx***'], ], ], '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' => '', + 'RequestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => '40325405-579C-4D82****'], + 'FaultInfoList' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FaultType' => ['type' => 'string', 'description' => 'The fault type. Valid values:CpuFullloadTask: a CPU full load fault.MemLoadTask: a memory load fault.NetworkTask: a network fault.DiskBurnTask: a disk read/write fault.DiskFillTask: a disk fill fault.', 'title' => '', 'example' => 'DiskFillTask'], + 'FaultStatus' => [ + 'type' => 'object', + 'properties' => [ + 'FaultStatus' => ['type' => 'string', 'description' => 'The status of the fault. Valid values:'."\n" + ."\n" + .'1. FaultNotInjected: The task was created, but the fault was not successfully injected.'."\n" + ."\n" + .'2. FaultInjectedSuccess: The fault was successfully injected.'."\n" + ."\n" + .'3. FaultInjectedFailure: The fault injection failed. The failure may be caused by parameter errors or system issues.', 'title' => '', 'example' => 'FaultInjectedSuccess'], + 'FaultStatusMessage' => ['type' => 'string', 'description' => 'The description of the fault injection.', 'title' => '', 'example' => 'Network interface not found'], + ], + 'description' => 'The fault status.', + 'title' => '', + 'example' => '', + ], + 'FaultArgs' => ['type' => 'any', 'description' => 'The parameters for each fault type.'."\n" + ."\n" + .'1. CpuFullloadTask (CPU full load fault)'."\n" + .' `{ "FaultType": "CpuFullloadTask", "FaultArgs": { "FaultAction": "fullload", "CpuPercent": 50 } }`'."\n" + ."\n" + .'2. MemLoadTask (Memory load fault)'."\n" + .' `{ "FaultType": "MemLoadTask", "FaultArgs": { "FaultAction": "load", "MemPercent": 80 } }`'."\n" + ."\n" + .'3. NetworkTask (Network fault)'."\n" + .' 3.a. NetworkDelayAction (Network delay)'."\n" + .' `{ "FaultType": "NetworkTask", "FaultArgs": { "FaultAction": "delay", "Time": 3000, "Offset": 100 } }`'."\n" + .' 3.b. NetworkCorruptAction (Network packet corruption)'."\n" + .' `{ "FaultType": "NetworkTask", "FaultArgs": { "FaultAction": "corrupt", "Percent": 50 } }`'."\n" + .' 3.c. NetworkLossAction (Network packet loss)'."\n" + .' `{ "FaultType": "NetworkTask", "FaultArgs": { "FaultAction": "loss", "Percent": 30 } }`'."\n" + ."\n" + .'4. DiskBurnTask (Disk read/write fault)'."\n" + .' `{ "FaultType": "DiskBurnTask", "FaultArgs": { "FaultAction": "burn", "Read": true, "Write": true, "Size": 100 } }`'."\n" + ."\n" + .'5. DiskFillTask (Disk fill fault)'."\n" + .' `{ "FaultType": "DiskFillTask", "FaultArgs": { "FaultAction": "fill", "Percent": 80 } }`', 'title' => '', 'example' => '{'."\n" + .' "FaultType": "DiskBurnTask",'."\n" + .' "FaultArgs": {'."\n" + .' "FaultAction": "burn",'."\n" + .' "Read": true,'."\n" + .' "Write": true,'."\n" + .' "Size": 100'."\n" + .' }'."\n" + .'}'], + ], + 'description' => 'The information about a single injected fault.', + 'title' => '', + 'example' => '', ], - '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', + 'description' => 'A list of injected faults.', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'description' => 'The response schema.', + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'ListServiceInstanceFaultInjectionInfo', + 'description' => '**Before you call this operation, make sure that you understand the billing methods and [pricing](~~144261~~) of Elastic Algorithm Service (EAS).**', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + '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"}]', + ], + 'ListServiceInstances' => [ + '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' => ['description' => 'The ID of the region where the service is deployed.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], + ], + [ + 'name' => 'ServiceName', + 'in' => 'path', + 'schema' => ['description' => 'The service name. For more information, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'foo'], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries to return on each page. The default value is 100.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '20'], + ], + [ + 'name' => 'Filter', + 'in' => 'query', + 'schema' => ['description' => 'A keyword for the search. You can search by instance name, instance IP address, host IP address, or instance type.', 'type' => 'string', 'required' => false, 'example' => '10.118.xx.xx', 'title' => ''], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', 'schema' => [ - 'description' => 'The ID of the region where the stress testing task is performed.'."\n", + 'description' => 'The type of the resource group to which the service instance belongs.', + 'enumValueTitles' => ['PublicResource' => 'public resource group', 'DedicatedResource' => 'dedicated resource group'], 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', + 'required' => false, + 'example' => 'PublicResource', + 'title' => '', ], ], [ - 'name' => 'TaskName', - 'in' => 'path', + 'name' => 'InstanceType', + 'in' => 'query', + 'schema' => ['description' => 'The instance type.', 'type' => 'string', 'required' => false, 'example' => 'ecs.c7.large', 'title' => ''], + ], + [ + 'name' => 'InstanceStatus', + 'in' => 'query', + 'schema' => ['description' => 'The status of the service instance.', 'type' => 'string', 'required' => false, 'example' => 'Running', 'title' => ''], + ], + [ + 'name' => 'InstanceIP', + 'in' => 'query', + 'schema' => ['description' => 'The IP address of the service instance.', 'type' => 'string', 'required' => false, 'example' => '10.224.xx.xx', 'title' => ''], + ], + [ + 'name' => 'InstanceName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the service instance.', 'type' => 'string', 'required' => false, 'example' => 'foo-bdc5xxxx-8l7rk', 'title' => ''], + ], + [ + 'name' => 'HostIP', + 'in' => 'query', + 'schema' => ['description' => 'The IP address of the host where the service instance is deployed.', 'type' => 'string', 'required' => false, 'example' => '10.224.xx.xx', 'title' => ''], + ], + [ + 'name' => 'IsSpot', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether the instance is a spot instance.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], + ], + [ + 'name' => 'Role', + 'in' => 'query', '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", + 'description' => 'The role of the service.', + 'enumValueTitles' => ['DataSet' => 'dataset service', 'SDProxy' => 'Stable Diffusion proxy service', 'Standard' => 'standard prediction service', 'Queue' => 'queue service'], 'type' => 'string', - 'required' => true, - 'example' => 'benchmark-larec-test-015d', + 'required' => false, + 'example' => 'Queue', + 'title' => '', ], ], [ - 'name' => 'ReportType', + 'name' => 'Sort', + 'in' => 'query', + 'schema' => [ + 'description' => 'The field to use for sorting.', + 'enumValueTitles' => ['StartTime' => 'Creation time'], + 'type' => 'string', + 'required' => false, + 'example' => 'StartTime', + 'title' => '', + ], + ], + [ + 'name' => 'Order', 'in' => 'query', 'schema' => [ - 'description' => 'The report type of the stress testing task. Valid values: RAW and Report.'."\n", + 'description' => 'The sort order.', + 'enumValueTitles' => ['asc' => 'Ascending', 'desc' => 'Descending'], 'type' => 'string', 'required' => false, - 'example' => 'report', + 'example' => 'desc', + 'title' => '', ], ], + [ + 'name' => 'MemberType', + 'in' => 'query', + 'allowEmptyValue' => true, + 'schema' => ['description' => 'The type of the sub-service. This parameter is valid only for aggregation services.', 'type' => 'string', 'required' => false, 'example' => 'LLMDecode', 'title' => ''], + ], + [ + 'name' => 'ListReplica', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to query the list of instance replicas.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'ReplicaName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the instance replica.', 'type' => 'string', 'required' => false, 'example' => 'cbh-qwen3-a1bc-prefill-ep1tp4dp', 'title' => ''], + ], + [ + 'name' => 'QuotaId', + 'in' => 'query', + 'schema' => ['description' => 'The quota ID.', 'type' => 'string', 'required' => false, 'example' => 'quota1****'."\n", 'title' => ''], + ], + [ + 'name' => 'Resource', + 'in' => 'query', + 'schema' => ['description' => 'The resource group to which the instance belongs.', 'type' => 'string', 'required' => false, 'example' => 'eas-r-xxxxxxx', 'title' => ''], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The data returned.', '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" - .' }', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Instances' => [ + 'description' => 'The list of service instances.', + 'type' => 'array', + 'items' => ['description' => 'The service instance.', '$ref' => '#/components/schemas/Instance', 'title' => '', 'example' => ''], + 'title' => '', + 'example' => '', ], + 'PageNumber' => ['description' => 'The page number of the returned page.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of instances.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'title' => 'ListServiceInstances', + 'summary' => 'Lists the instances of a specified service.', + 'description' => '**Ensure that you understand the billing methods and [pricing](~~144261~~) of Elastic Algorithm Service (EAS) before you call this operation.**', + 'changeSet' => [ + ['createdAt' => '2023-05-06T09:55:12.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListServiceInstances'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListServiceInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Instances\\": [\\n {\\n \\"HostIP\\": \\"11.0.XX.XX\\",\\n \\"HostName\\": \\"smart-scene-cls-854dbdc99d-****\\",\\n \\"InnerIP\\": \\"172.17.0.17\\",\\n \\"InstanceName\\": \\"foo-5fc8946767-v****\\",\\n \\"InstancePort\\": 8080,\\n \\"LastState\\": [\\n []\\n ],\\n \\"Namespace\\": \\"foo\\",\\n \\"Reason\\": \\"RUNNING\\",\\n \\"RestartCount\\": 1,\\n \\"Status\\": \\"Running\\",\\n \\"TotalProcesses\\": 1,\\n \\"ReadyProcesses\\": 1,\\n \\"StartAt\\": \\"2021-05-27T09:46:05Z\\",\\n \\"Role\\": \\"Standard\\",\\n \\"ResourceType\\": \\"PublicResource\\",\\n \\"TenantInstanceIP\\": \\"192.168.xx.xx\\",\\n \\"TenantHostIP\\": \\"192.168.xx.xx\\",\\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\\": \\"2021-05-27T09:46:05Z\\",\\n \\"InstanceType\\": \\"ecs.c7.large\\",\\n \\"IsLatest\\": true,\\n \\"Detached\\": false,\\n \\"IsReplica\\": false,\\n \\"ReplicaName\\": \\"xwq-sglang-dist-7dff0\\",\\n \\"CreateTime\\": \\"2021-05-27T09:46:05Z\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1\\n}","type":"json"}]', + ], + 'ListServiceVersions' => [ + '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', - 'abilityTreeNodes' => [ - 'FEATURElearnO4KXYN', + 'abilityTreeCode' => '152269', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], + ], + 'parameters' => [ + [ + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the region in which the service resides.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'], + ], + [ + 'name' => 'ServiceName', + 'in' => 'path', + 'schema' => ['description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'test_oss'], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page. Default value: 100.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '10'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'E089D584-B6F4-50C4-9902-DA2295B7****', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '166', 'title' => ''], + 'Versions' => [ + 'description' => 'The historical versions of the service.', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'BuildTime' => ['description' => 'The time when the service version was created. The time is displayed in UTC.', 'type' => 'string', 'example' => '2022-08-29T22:02:14Z', 'title' => ''], + 'ImageAvailable' => ['description' => 'Indicates whether the image is available. Valid values:'."\n" + ."\n" + .'- true: The image is available.'."\n" + ."\n" + .'- false: The image is unavailable.'."\n" + ."\n" + .'- unknown: The availability of the image is unknown.', 'type' => 'string', 'example' => 'true', 'title' => ''], + 'ImageId' => ['description' => 'The image ID.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''], + 'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Service is Running', 'title' => ''], + 'ServiceRunnable' => ['description' => 'Indicates whether Elastic Algorithm service (EAS) is activated. Valid values:'."\n" + ."\n" + .'- true: EAS is activated.'."\n" + ."\n" + .'- false: EAS is not activated.'."\n" + ."\n" + .'- unknown: The activation of EAS is unknown.', 'type' => 'string', 'example' => 'true', 'title' => ''], + 'ServiceConfig' => ['description' => 'The service deployment configurations. This parameter is returned only if the service is deployed by using a custom image.', 'type' => 'string', 'example' => '{'."\n" + .' "metadata": {'."\n" + .' "cpu": 1,'."\n" + .' "instance": 1,'."\n" + .' "memory": 1024'."\n" + .' },'."\n" + .' "name": "echo"'."\n" + .'}', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], ], ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'ListServiceVersions', + 'summary' => 'Queries the information about the historical versions of a service.', + 'changeSet' => [ + ['createdAt' => '2024-01-23T13:07:03.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2022-09-05T08:14:49.000Z', 'description' => 'OpenAPI offline'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListServiceVersions'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListServiceVersions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + ], + '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"}]', + ], + 'ListServices' => [ + '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' => ['description' => 'The sort field. By default, results are sorted by timestamp in descending order.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'CreateTime'], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => ['description' => 'The sort order. Valid values:'."\n" + ."\n" + .'- `desc` (default): descending.'."\n" + ."\n" + .'- `asc`: ascending.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'asc'], + ], + [ 'name' => 'Filter', 'in' => 'query', + 'schema' => ['description' => 'The keyword for a fuzzy search. This parameter supports fuzzy searches by service name only.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'foo'], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number of the results to return. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of services to return per page. The default value is 100.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '100'], + ], + [ + 'name' => 'GroupName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the service group. To learn how to obtain this name, see [ListServices](~~412109~~).', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'foo'], + ], + [ + 'name' => 'ParentServiceUid', + 'in' => 'query', + 'schema' => ['description' => 'The UID of the primary service. This parameter applies to member services in a service group.', 'type' => 'string', 'required' => false, 'example' => 'eas-m-ijafy3c8cxxxx', 'title' => ''], + ], + [ + 'name' => 'ServiceType', + '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", + 'description' => 'The service type. Valid values:'."\n" + ."\n" + .'- Async'."\n" + ."\n" + .'- Standard'."\n" + ."\n" + .'- Queue'."\n" + ."\n" + .'- LLM'."\n" + ."\n" + .'- RAG'."\n" + ."\n" + .'- Serverless'."\n" + ."\n" + .'- LLMGatewayService'."\n" + ."\n" + .'- OfflineTask'."\n" + ."\n" + .'- SDCluster'."\n" + ."\n" + .'- ScalableJob'."\n" + ."\n" + .'- ScalableJobService'."\n" + ."\n" + .'- AssistantJob', + 'enumValueTitles' => ['Async' => 'asynchronous service', 'Standard' => 'standard deployment', 'OfflineTask' => 'offline task', 'Proxima' => 'Proxima'], 'type' => 'string', 'required' => false, - 'example' => 'test_bench', + 'example' => 'Standard', + 'title' => '', ], ], [ - 'name' => 'Sort', + 'name' => 'Label', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'description' => 'Filters services by label.', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['description' => 'Specify the label in the `{"key":"value"}` format. If the value is `null` or an empty string, the system filters by key only.', 'type' => 'string', 'example' => '{"key1":"value1","key2":null}', 'title' => ''], + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'Order', + 'name' => 'ServiceStatus', 'in' => 'query', 'schema' => [ + 'description' => 'The status of the service.', + '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', + ], 'type' => 'string', + 'required' => false, + 'example' => 'Running', + 'title' => '', ], ], [ 'name' => 'ServiceName', 'in' => 'query', + 'schema' => ['description' => 'The service name.', 'type' => 'string', 'required' => false, 'example' => 'echo_test', 'title' => ''], + ], + [ + 'name' => 'ServiceUid', + 'in' => 'query', + 'schema' => ['description' => 'The service UID.', 'type' => 'string', 'required' => false, 'example' => 'eas-m-c9iw3yitxxxx', 'title' => ''], + ], + [ + 'name' => 'ResourceName', + 'in' => 'query', + 'schema' => ['description' => 'The name or ID of the service\'s resource group.', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'eas-r-hd0qwy8cxxxx', 'title' => ''], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => false, 'example' => '1234**', 'title' => ''], + ], + [ + 'name' => 'QuotaId', + 'in' => 'query', + 'schema' => ['description' => 'The quota ID.', 'type' => 'string', 'required' => false, 'example' => 'quota1****', 'title' => ''], + ], + [ + 'name' => 'Gateway', + 'in' => 'query', + 'schema' => ['description' => 'The private gateway ID.', 'type' => 'string', 'required' => false, 'example' => 'gw-1uhcqmsc7x22******', 'title' => ''], + ], + [ + 'name' => 'Role', + '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", + 'description' => 'The service role.', + 'enumValueTitles' => ['DataLoader' => 'DataLoader', 'FrontEnd' => 'FrontEnd', 'DataSet' => 'DataSet', 'SDProxy' => 'SDProxy', 'LLMScheduler' => 'LLMScheduler', 'ScalableJob' => 'ScalableJob', 'LLMGateway' => 'LLMGateway', 'Job' => 'Job', 'Queue' => 'Queue'], 'type' => 'string', 'required' => false, - 'example' => 'test_bench_srv', + 'example' => 'LLMGateway', + 'title' => '', ], ], [ - 'name' => 'Status', + 'name' => 'ResourceType', 'in' => 'query', 'schema' => [ + 'description' => 'The type of resource the service uses. Valid values:'."\n" + ."\n" + .'- PublicResource'."\n" + ."\n" + .'- DedicatedResource'."\n" + ."\n" + .'- Lingjun'."\n" + ."\n" + .'- SelfManagedLingjun', + 'enumValueTitles' => ['Lingjun' => 'Lingjun resource quota', 'PublicResource' => 'public resource group', 'DedicatedResource' => 'dedicated resource group', 'SelfManagedLingjun' => 'Self-managed Lingjun resource group'], 'type' => 'string', + 'required' => false, + 'example' => 'PublicResource', + 'title' => '', ], ], [ - 'name' => 'ModelId', + 'name' => 'IncludeNoWorkspace', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to include services that do not belong to any workspace. The default value is true.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'ResourceAliasName', + 'in' => 'query', + 'schema' => ['description' => 'The custom name of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'example', 'title' => ''], + ], + [ + 'name' => 'ResourceId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the resource group. To learn how to query for this ID, see [ListResources](~~412133~~).', 'type' => 'string', 'required' => false, 'example' => 'eas-r-asdas****', 'title' => ''], + ], + [ + 'name' => 'ResourceBurstable', 'in' => 'query', 'schema' => [ - 'type' => 'string', + 'description' => 'Specifies whether to enable a burstable resource pool for the service.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'title' => '', ], ], [ - 'name' => 'RequestMethod', + 'name' => 'CronscalerEnabled', 'in' => 'query', 'schema' => [ - 'type' => 'string', + 'description' => 'Specifies whether to enable scheduled auto scaling for the service.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'title' => '', ], ], [ - 'name' => 'PageNumber', + 'name' => 'AutoscalerEnabled', 'in' => 'query', 'schema' => [ - 'description' => 'The page number. Pages start from page 1. Default value: 1.'."\n", - 'type' => 'string', + 'description' => 'Specifies whether to enable Auto Scaling for the service.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], + 'type' => 'boolean', 'required' => false, - 'example' => '1', + 'example' => 'true', + 'title' => '', ], ], [ - 'name' => 'PageSize', + 'name' => 'TrafficState', 'in' => 'query', 'schema' => [ - 'description' => 'The number of entries per page. Default value: 100.'."\n", + 'description' => 'Specifies whether the service accepts group traffic. This parameter applies only to services within a service group.', + 'enumValueTitles' => ['standalone' => 'No', 'grouping' => 'Yes'], 'type' => 'string', 'required' => false, - 'example' => '10', + 'example' => 'grouping', + 'title' => '', + ], + ], + [ + 'name' => 'CallerUid', + 'in' => 'query', + 'schema' => ['description' => 'The UID of the account that created the service.', 'type' => 'string', 'example' => '19989224166xxxxxxx', 'title' => '', 'required' => false], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'allowEmptyValue' => true, + 'schema' => [ + 'type' => 'string', + 'example' => 'PUBLIC', + 'enum' => ['PUBLIC', 'PRIVATE'], + 'description' => '', + 'title' => '', ], ], ], @@ -12530,279 +9664,219 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '40325405-579C-4D82****', - ], - 'Tasks' => [ - 'description' => 'The stress testing tasks.'."\n", + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Services' => [ + 'description' => 'The list of services.', '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', + 'items' => ['description' => 'A service instance.', '$ref' => '#/components/schemas/Service', 'title' => '', 'example' => ''], + 'title' => '', + 'example' => '', ], + 'PageNumber' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of services per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of services.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'ListServices', + 'summary' => 'Lists services.', + 'changeSet' => [ + ['createdAt' => '2025-07-16T02:48:58.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2025-04-27T12:13:04.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2025-04-08T11:07:16.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2025-03-13T09:35:48.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-10-08T11:20:54.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-07-31T09:23:24.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-01-23T13:07:03.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-09-01T08:10:25.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-05-06T09:55:12.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ['createdAt' => '2022-12-27T01:55:08.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-12-05T04:32:27.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-09-27T03:16:08.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2021-09-16T08:07:33.000Z', 'description' => 'Request parameters changed'], ], - 'security' => [ - [ - 'AK' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListServices'], ], ], - 'deprecated' => false, - 'systemTags' => [], - 'parameters' => [ + 'ramActions' => [ [ - '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', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListServices', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Services\\": [\\n {\\n \\"RequestId\\": \\"40325405-579C-4D82********\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"CallerUid\\": \\"20123*******\\",\\n \\"ParentUid\\": \\"11234*******\\",\\n \\"CurrentVersion\\": 1,\\n \\"Cpu\\": 1,\\n \\"Gpu\\": 0,\\n \\"Image\\": \\"registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320\\",\\n \\"PendingInstance\\": 0,\\n \\"RunningInstance\\": 1,\\n \\"TotalInstance\\": 1,\\n \\"InternetEndpoint\\": \\"http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo\\",\\n \\"IntranetEndpoint\\": \\"http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo\\",\\n \\"LatestVersion\\": 1,\\n \\"Memory\\": 1024,\\n \\"Message\\": \\"Service start successfully\\",\\n \\"Namespace\\": \\"echo\\",\\n \\"Reason\\": \\"RUNNING\\",\\n \\"Resource\\": \\"eas-r-xxxxxxx\\",\\n \\"ResourceAlias\\": \\"my_resource\\",\\n \\"ServiceConfig\\": \\"{\\\\\\"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\\\\\\"}\\",\\n \\"ServiceName\\": \\"echo\\",\\n \\"ServiceGroup\\": \\"my_group\\",\\n \\"Status\\": \\"Running\\",\\n \\"CreateTime\\": \\"2021-01-29T11:13:20Z\\",\\n \\"UpdateTime\\": \\"2021-01-29T11:13:20Z\\",\\n \\"Weight\\": 100,\\n \\"ServiceId\\": \\"eas-m-xxasdat\\",\\n \\"ServiceUid\\": \\"eas-m-xxasdat\\\\n\\",\\n \\"AccessToken\\": \\"MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********\\",\\n \\"Source\\": \\"dsw\\",\\n \\"ExtraData\\": \\"{\\\\\\"blue_green_services\\\\\\":[\\\\\\"test\\\\\\",\\\\\\"testxxxx\\\\\\"]}\\",\\n \\"Role\\": \\"Queue\\",\\n \\"RoleAttrs\\": \\"{\\\\\\"ApproxMaxLength\\\\\\":null,\\\\\\"Length\\\\\\":null,\\\\\\"MaxPayloadBytes\\\\\\":null}\\",\\n \\"SafetyLock\\": \\"dangerous\\",\\n \\"SecondaryInternetEndpoint\\": \\"http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\\\\n\\",\\n \\"SecondaryIntranetEndpoint\\": \\"http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\\\\n\\",\\n \\"Labels\\": [\\n {\\n \\"LabelKey\\": \\"key1\\",\\n \\"LabelValue\\": \\"value1\\"\\n }\\n ],\\n \\"WorkspaceId\\": \\"123445\\",\\n \\"AppType\\": \\"LLM\\",\\n \\"AppConfig\\": \\"{\\\\\\"ModelStorage\\\\\\":\\\\\\"oss\\\\\\"}\\",\\n \\"AppSpecName\\": \\"llama_7b_fp16\\",\\n \\"AppVersion\\": \\"v1\\",\\n \\"TrafficState\\": \\"standalone\\",\\n \\"QuotaId\\": \\"quotaxxxxx\\",\\n \\"Gateway\\": \\"gw-xxxxxx\\",\\n \\"GPUMemory\\": 20,\\n \\"GPUCorePercentage\\": 50,\\n \\"ResourceBurstable\\": true,\\n \\"CronscalerEnabled\\": true,\\n \\"AutoscalerEnabled\\": true,\\n \\"InstanceCountInResource\\": {\\n \\"Public\\": 10,\\n \\"Dedicated\\": 10,\\n \\"Quota\\": 10\\n },\\n \\"WorkloadType\\": \\"\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 100,\\n \\"TotalCount\\": 2\\n}","type":"json"}]', + ], + 'ListTenantAddons' => [ + 'path' => '/api/v2/tenantaddons', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ [ - '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', - ], + '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", + 'description' => 'The response parameters.', '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', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****', 'title' => ''], + 'Addons' => [ + 'description' => 'The information about the plug-in.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => ['description' => 'The name of the plug-in.', 'type' => 'string', 'example' => 'prometheus_discovery', 'title' => ''], + 'Attributes' => [ + 'description' => 'The attributes of the plug-in.', + 'type' => 'object', + 'additionalProperties' => ['description' => 'The description of the plug-in.', 'type' => 'string', 'example' => '{'."\n" + .' "AccessToken":"ld***.eY***.",'."\n" + .' "InternetEndpoint": "****.com/prometheus",'."\n" + .' "IntranetEndpoint": "****.vpc.com/prometheus"'."\n" + .'}', 'title' => ''], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'ListTenantAddons', + 'summary' => 'Queries a list of tenant plug-ins.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTenantAddons'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListTenantAddons', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + '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"}]', + ], + 'ListVirtualResource' => [ + 'summary' => 'Queries the 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' => [], + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '238285', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], + 'tenantRelevance' => 'tenant', + ], 'parameters' => [ [ - 'name' => 'ClusterId', - 'in' => 'path', + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number for the list of virtual resource groups. The value starts from 1. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of virtual resource groups to display on each page. The default value is 100.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => '', 'required' => false], + ], + [ + 'name' => 'VirtualResourceId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the virtual resource group.', 'type' => 'string', 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n", 'title' => '', 'required' => false], + ], + [ + 'name' => 'VirtualResourceName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the virtual resource group.', 'type' => 'string', 'example' => 'MyVirtualResource', 'title' => '', 'required' => false], + ], + [ + 'name' => 'Sort', + 'in' => 'query', 'schema' => [ - 'description' => 'The ID of the region where the stress testing task is performed.'."\n", + 'description' => 'The field that is used to sort the results. By default, the results are sorted by timestamp in descending order.', + 'enumValueTitles' => ['VirtualResourceName' => 'The name of the virtual resource.', 'CreateTime' => 'The time when the resource was created.', 'UpdateTime' => 'The time when the resource was last updated.'], 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', + 'required' => false, + 'example' => 'CreateTime', + 'title' => '', ], ], [ - 'name' => 'TaskName', - 'in' => 'path', + 'name' => 'Order', + 'in' => 'query', '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", + 'description' => 'The sorting order. Valid values:'."\n" + ."\n" + .'- Desc: Descending order.'."\n" + ."\n" + .'- Asc: Ascending order.', + 'enumValueTitles' => ['Asc' => 'Ascending order.', 'Desc' => 'Descending order.'], 'type' => 'string', - 'required' => true, - 'example' => 'benchmark-larec-test-dbe5', + 'required' => false, + 'example' => 'Desc', + 'title' => '', ], ], ], @@ -12810,76 +9884,115 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response body.', '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', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'PageNumber' => ['description' => 'The page number of the returned list of virtual resource groups.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of virtual resource groups returned on each page.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of virtual resource groups.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''], + 'VirtualResources' => [ + 'title' => '', + 'description' => 'The list of virtual resource groups.', + 'type' => 'array', + 'items' => [ + 'description' => 'The details of a virtual resource group.', + 'type' => 'object', + 'properties' => [ + 'VirtualResourceName' => ['description' => 'The name of the virtual resource group.', 'type' => 'string', 'example' => 'MyVirtualResource', 'title' => ''], + 'VirtualResourceId' => ['description' => 'The ID of the virtual resource group.', 'type' => 'string', 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n", 'title' => ''], + 'CreateTime' => ['description' => 'The time when the virtual resource group was created.', 'type' => 'string', 'example' => '2024-10-16T17:52:49Z'."\n", 'title' => ''], + 'UpdateTime' => ['description' => 'The time when the virtual resource group was last updated.', 'type' => 'string', 'example' => '2024-10-16T19:52:49Z'."\n", 'title' => ''], + 'ServiceCount' => ['description' => 'The number of deployed services.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'example' => '', ], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'ListVirtualResource', + 'changeSet' => [ + ['createdAt' => '2025-01-21T08:56:51.000Z', 'description' => 'Response parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListVirtualResource'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/*'], + ], + ], + ], + ], + '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"}]', + ], + 'MigrateResourceInstance' => [ + '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' => [], + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '227413', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], + ], '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', - ], + 'schema' => ['description' => 'The ID of the cluster where the resource group is located.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], ], [ - 'name' => 'TaskName', + 'name' => 'ResourceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The name of the stress testing task.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'benchmark-larec-test-645c', - ], + 'schema' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'eas-r-asdasdasd****'], ], [ 'name' => 'body', 'in' => 'body', + 'style' => 'json', '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', + 'description' => 'The request body.', + 'type' => 'object', + 'properties' => [ + 'InstanceIds' => [ + 'description' => 'The IDs of the instances.', + 'type' => 'array', + 'items' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '[\'eas-i-4ybm1bin7gygx67umh\', \'eas-i-iy6dfaag7qals6g4i2\']'], + 'required' => true, + 'title' => '', + 'example' => '', + ], + 'DestResourceId' => ['description' => 'The ID of the destination resource group.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'eas-r-asdasdasd****'], + 'MigrateToHybrid' => ['type' => 'boolean', 'description' => 'Specifies whether to migrate the instances to a general computing resource group. If set to true, specify the ID of the general computing resource group.', 'required' => false, 'title' => '', 'example' => 'false'], + ], 'required' => false, - 'example' => '{'."\n" - .' "base": {'."\n" - .' "qps": 200'."\n" - .' }'."\n" - .'}', + 'title' => '', + 'example' => '', ], ], ], @@ -12887,214 +10000,162 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'Schema of Response', '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', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '40325405-579C-4D82***'], + 'Message' => ['description' => 'The message returned for the request.', 'type' => 'string', 'title' => '', 'example' => 'Success'], + 'InstanceIds' => [ + 'description' => 'The IDs of the instances.', + 'type' => 'array', + 'items' => ['description' => 'The ID of the instance.', 'type' => 'string', 'title' => '', 'example' => '[\'eas-i-1l3saj0kfhz5lp6p5m\', \'eas-i-hgjztp6rsw5pmyko9n\']'], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'MigrateResourceInstance', + 'summary' => 'Migrates instances to a specified resource group.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'eas:MigrateResourceInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Success\\",\\n \\"InstanceIds\\": [\\n \\"[\'eas-i-1l3saj0kfhz5lp6p5m\', \'eas-i-hgjztp6rsw5pmyko9n\']\\"\\n ]\\n}","type":"json"}]', + ], + 'ReinstallTenantAddon' => [ + 'summary' => 'Resets tenant configurations.', + 'path' => '/api/v2/tenantaddons/{ClusterId}/{TenantAddonName}/reinstall', + 'methods' => ['put'], + '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', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '231056', + 'abilityTreeNodes' => ['FEATURElearnDNLWTG'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'title' => '网关所在区域。', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'GatewayId', + 'name' => 'TenantAddonName', '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, - ], + 'schema' => ['description' => 'The plug-in name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'prometheus_discovery', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => 'The response parameters.'."\n", 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID。', - 'description' => '', - 'type' => 'string', - 'example' => '40325405-579C-4D82****', - ], - 'Message' => [ - 'title' => '返回信息。', - 'description' => '', - 'type' => 'string', - 'example' => 'Succeed to delete gateway labels.', - ], + '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', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Addon prometheus_discovery is successfully reinstalled\\"\\n}","type":"json"}]', + 'title' => 'ReinstallTenantAddon', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ReinstallTenantAddon'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:ReinstallTenantAddon', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'riskType' => 'high', - 'chargeType' => 'free', - 'abilityTreeCode' => '167564', - 'abilityTreeNodes' => [ - 'FEATURElearnKDX12S', - ], + 'abilityTreeCode' => '37054', + 'abilityTreeNodes' => ['FEATURElearnO4KXYN'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'title' => '网关所在区域', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'GatewayId', + 'name' => 'ServiceName', 'in' => 'path', - 'schema' => [ - 'title' => '网关id', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'gw-1uhcqmsc7x22******', - ], + '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' => '', + 'description' => 'The request body.'."\n", 'type' => 'object', 'properties' => [ - 'Labels' => [ - 'title' => '自定义网关标签', - 'description' => '', - 'type' => 'object', - 'required' => true, - 'additionalProperties' => [ - 'title' => '标签对象', - 'description' => '', - 'type' => 'string', - 'example' => '{"key":"value"}', - ], + 'Weight' => ['title' => '', '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', + 'title' => '', ], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -13102,320 +10163,220 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => 'The response parameters.'."\n", '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.', - ], + '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]', 'title' => ''], ], + 'example' => '', ], ], + 400 => [], + 404 => [], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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', + 'changeSet' => [ + ['createdAt' => '2025-01-13T08:38:34.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-08-11T03:34:20.000Z', 'description' => 'Request parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ReleaseService'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:ReleaseService', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + 'RestartService' => [ + 'summary' => 'Restarts a service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/restart', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '243555', - 'abilityTreeNodes' => [ - 'FEATURElearnMC2VJP', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region where the private gateway resides.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region in which the service resides.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'GatewayId', + 'name' => 'ServiceName', '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\\&Env=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, - ], + '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', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The data returned.'."\n", + '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. 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\\&Env=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", - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['title' => '', 'description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Service is restarting'], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Service is restarting\\"\\n}","type":"json"}]', + 'title' => 'RestartService', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RestartService'], + ], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:RestartService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], - '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', - ], + 'ScaleService' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/scale', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '241083', - 'abilityTreeNodes' => [ - 'FEATURElearnMC2VJP', - ], + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region where the private gateway resides.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The ID of the region where the service is deployed.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'GatewayId', + 'name' => 'ServiceName', '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\\&Env=online) operation.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'gw-1uhcqmsc7x22******', - ], + 'schema' => ['description' => 'The service name.', 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], ], [ - 'name' => 'CustomDomain', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', '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', + 'Instance' => ['description' => 'The target number of instances.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2', 'title' => ''], + 'InstancesToDelete' => [ + 'type' => 'array', + 'items' => ['description' => 'The instance name.', 'type' => 'string', 'required' => false, 'example' => 'foo-adsx-xxxx', 'title' => ''], 'required' => false, - 'example' => '1473**25', - ], - 'Domain' => [ - 'description' => 'The custom domain name.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test.com', + 'minItems' => 0, + 'description' => 'A list of instance names to prioritize for removal during a scale-in operation.', + 'title' => '', + 'example' => '', ], ], - 'required' => true, + 'description' => 'The request body.', + 'required' => false, + 'example' => '{"Instance": 2, "InstancesToDelete": [ "foo-adsx-xxxx" ]}', + 'title' => '', ], ], ], '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\\&Env=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", - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'A message indicating the result of the operation.', 'type' => 'string', 'example' => 'Service [foo] in region [cn-shanghai] is scaling', 'title' => ''], ], + 'title' => '', + 'description' => 'The data structure of the response.', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'ScaleService', + 'summary' => 'Scales a service.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:ScaleService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], - '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', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Service [foo] in region [cn-shanghai] is scaling\\"\\n}","type":"json"}]', ], - 'ListGatewayDomains' => [ - 'summary' => 'Queries a list of custom domain names of a private gateway.', - 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/domains', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'StartBenchmarkTask' => [ + 'summary' => 'Starts a stress testing task.', + 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}/start', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '245872', - 'abilityTreeNodes' => [ - 'FEATURElearnMC2VJP', - ], - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region where the private gateway resides.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The ID of the region where the stress testing task is performed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'GatewayId', + 'name' => 'TaskName', '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\\&Env=online) operation.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'gw-1uhcqmsc7x22******', - ], + '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', 'title' => ''], ], ], 'responses' => [ @@ -13425,219 +10386,192 @@ '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', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82****', 'title' => ''], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Benchmark task [benchmark-larec-test-1076] is Starting', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Benchmark task [benchmark-larec-test-1076] is Starting\\"\\n}","type":"json"}]', + 'title' => 'StartBenchmarkTask', + 'changeSet' => [ + ['createdAt' => '2022-05-27T03:23:01.000Z', 'description' => 'OpenAPI offline'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartBenchmarkTask'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:StartBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], + ], + ], ], + ], + 'StartService' => [ + 'summary' => 'Starts a service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/start', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '192662', - 'abilityTreeNodes' => [ - 'FEATURElearn6PC7M4', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '37048', + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], ], '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' => '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' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => 'The page number. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + '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' => 'PageSize', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The number of entries per page. Default value: 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '100', + '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', 'title' => ''], + ], + 'example' => '', ], ], - [ - 'name' => 'GatewayName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The private gateway alias.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'mygateway1', - ], + 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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartService'], ], + ], + 'ramActions' => [ [ - '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******', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:StartService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], ], ], + ], + ], + 'StopBenchmarkTask' => [ + 'summary' => 'Stops a stress testing task.', + 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}/stop', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'InternetEnabled', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - ], + 'AK' => [], ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ [ - 'name' => 'Status', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + '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', 'title' => ''], ], [ - 'name' => 'ChargeType', - 'in' => 'query', + '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', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'type' => 'string', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82****', 'title' => ''], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Benchmark task [benchmark-larec-test-dbe5] is Stopping', 'title' => ''], + ], + 'example' => '', ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Benchmark task [benchmark-larec-test-dbe5] is Stopping\\"\\n}","type":"json"}]', + 'title' => 'StopBenchmarkTask', + 'changeSet' => [ + ['createdAt' => '2022-05-27T03:23:01.000Z', 'description' => 'OpenAPI offline'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopBenchmarkTask'], + ], + ], + 'ramActions' => [ [ - 'name' => 'Sort', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:StopBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], ], ], + ], + ], + 'StopService' => [ + 'summary' => 'Stops a running service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/stop', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'Order', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '37049', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], + ], + 'parameters' => [ [ - 'name' => 'GatewayType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + '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' => 'Label', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'title' => '按标签过滤。', - 'type' => 'object', - 'additionalProperties' => [ - 'title' => '按{"key":"value"}格式填写。Value 可为 null 或空字符,代表只按 Key 过滤,Value 可为任意值。', - 'type' => 'string', - 'example' => '{"key1":"value1","key2":null}', - ], - ], + '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' => [ @@ -13647,219 +10581,124 @@ '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', - ], + '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]', 'title' => ''], ], + 'example' => '', ], ], + 404 => [], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopService'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:StopService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + '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' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '225605', - 'abilityTreeNodes' => [ - 'FEATURElearn6PC7M4', - ], - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'paid'], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region where the private gateway resides.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-wulanchabu', - ], + 'schema' => ['description' => 'The region ID of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'GatewayId', + 'name' => 'ServiceName', '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******', - ], + 'schema' => ['description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], ], [ - 'name' => 'VpcId', + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['description' => 'The workspace ID.'."\n", 'type' => 'string', 'required' => false, 'example' => '1234**', 'title' => ''], + ], + [ + 'name' => 'QuotaId', 'in' => 'query', + 'schema' => ['description' => 'The quota ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'abcdef', 'title' => ''], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', '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', + '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', + 'title' => '', + ], + 'AppVersion' => ['description' => 'The application version.'."\n", 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], + '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', 'title' => ''], + 'Replicas' => ['description' => 'The number of instances. This value must be greater than 0.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + 'Config' => [ + 'description' => 'The additional configurations that are required for service deployment.'."\n", + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any', 'example' => '{ "ModelStorage": "oss", "OssPath": "oss://examplebucket/xxxx/" }', 'description' => 'The application information such as model mounting. For more information, see [CreateAppService](~~2621216~~).'."\n", 'title' => ''], + 'title' => '', + 'example' => '', + ], + ], 'required' => false, - 'example' => 'vpc-uf66uio7md****', + 'title' => '', + 'example' => '', ], ], ], @@ -13870,186 +10709,69 @@ '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', - ], - ], - ], - ], - ], - ], - ], + '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', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Success\\"\\n}","type":"json"}]', + 'title' => 'UpdateAppService', + 'changeSet' => [ + ['createdAt' => '2024-01-16T14:09:25.000Z', 'description' => 'Request parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAppService'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateAppService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateBenchmarkTask' => [ + 'summary' => 'Updates a stress testing task.', + 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '225607', - 'abilityTreeNodes' => [ - 'FEATURElearn6PC7M4', - ], - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'title' => '所在区域', - 'description' => 'The region ID of the private gateway.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-wulanchabu', - ], + 'schema' => ['description' => 'The ID of the region where the stress testing task is performed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'GatewayId', + 'name' => 'TaskName', '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****', - ], + 'schema' => ['description' => 'The name of the stress testing task.'."\n", 'type' => 'string', 'required' => true, 'example' => 'benchmark-larec-test-645c', 'title' => ''], ], [ - '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, - ], + '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" + .'}', 'title' => ''], ], ], 'responses' => [ @@ -14059,817 +10781,558 @@ '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******', - ], + 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '40325405-579C-4D82***', 'title' => ''], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'Benchmark task [benchmark-larec-test-1076] is Updating', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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.|', + 'changeSet' => [ + ['createdAt' => '2022-05-27T03:23:01.000Z', 'description' => 'OpenAPI offline'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateBenchmarkTask'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:UpdateBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], + ], + ], ], + ], + 'UpdateConfig' => [ + 'summary' => 'Updates a dynamic parameter for a specific cluster and service.', + 'path' => '/api/v2/configs/{ClusterId}/{ConfigType}/{Name}/{ConfigKey}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '225604', - 'abilityTreeNodes' => [ - 'FEATURElearn6PC7M4', - ], + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the private gateway.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-wulanchabu', - ], + 'schema' => ['description' => 'The cluster or region ID. This parameter is required. For example, `cn-hangzhou`.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'GatewayId', + 'name' => 'ConfigType', '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******', - ], + 'schema' => ['description' => 'The configuration type. This parameter is required. Currently, only `service` is supported.', 'type' => 'string', 'required' => false, 'example' => 'service', 'title' => ''], ], [ - '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' => 'Name', + 'in' => 'path', + 'schema' => ['description' => 'The service name. This parameter is required.', 'type' => 'string', 'required' => false, 'example' => 'my-llm-service', 'title' => ''], ], [ - 'name' => 'AclPolicyList', - 'in' => 'query', + 'name' => 'ConfigKey', + 'in' => 'path', + 'schema' => ['description' => 'The dynamic parameter name. This parameter is required.', 'type' => 'string', 'required' => false, 'example' => 'rate_limit', 'title' => ''], + ], + [ + 'name' => 'body', + 'in' => 'body', '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, + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => 'The new dynamic parameter value. This parameter is required.', 'type' => 'string', 'required' => false, 'example' => '200', 'title' => ''], ], - 'required' => true, + 'description' => 'The request body. This parameter is required.', + 'required' => false, + 'title' => '', + 'example' => '', ], ], ], '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', - ], + 'Key' => ['description' => 'The dynamic parameter name.', 'type' => 'string', 'example' => 'llm_gateway.route_policy', 'title' => ''], + 'Value' => ['description' => 'The dynamic parameter value.', 'type' => 'string', 'example' => '{"model": "gpt-4-turbo"}', 'title' => ''], + 'CreatedAt' => ['description' => 'The time the configuration was created.', 'type' => 'string', 'example' => '2024-01-15T10:30:00Z', 'title' => ''], + 'UpdatedAt' => ['description' => 'The time the configuration was last updated.', 'type' => 'string', 'example' => '2024-01-15T11:00:00Z', 'title' => ''], ], + 'title' => '', + 'description' => 'The response body.', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'UpdateConfig', + 'description' => '## Request'."\n" + ."\n" + .'Use this API to update a dynamic parameter by providing its `ClusterId`, `ConfigType`, `Name`, and `ConfigKey`. The request body must contain the new parameter value in the `Value` field. Ensure you provide the correct path parameters to avoid errors.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - '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', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Key\\": \\"llm_gateway.route_policy\\",\\n \\"Value\\": \\"{\\\\\\"model\\\\\\": \\\\\\"gpt-4-turbo\\\\\\"}\\",\\n \\"CreatedAt\\": \\"2024-01-15T10:30:00Z\\",\\n \\"UpdatedAt\\": \\"2024-01-15T11:00:00Z\\"\\n}","type":"json"}]', ], - 'CreateGateway' => [ - 'summary' => 'Creates a gateway.', - 'path' => '/api/v2/gateways', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateGateway' => [ + 'summary' => 'Updates a private gateway.', + 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'update', 'riskType' => 'none', - 'chargeType' => 'paid', - 'abilityTreeCode' => '191840', - 'abilityTreeNodes' => [ - 'FEATURElearn6PC7M4', - ], + 'chargeType' => 'free', + 'abilityTreeCode' => '191842', + '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", + 'description' => 'The request body.', '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', - ], + 'InstanceType' => ['title' => '', 'description' => 'The instance type of the private gateway. Valid values:'."\n" + ."\n" + .'- 2c4g'."\n" + ."\n" + .'- 4c8g'."\n" + ."\n" + .'- 8c16g'."\n" + ."\n" + .'- 16c32g', 'type' => 'string', 'required' => false, 'example' => '2c4g'], + 'Name' => ['description' => 'The alias of the private gateway.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'mygateway1'], 'EnableIntranet' => [ - 'description' => 'Specifies whether to enable private access. Default value: true.'."\n" - ."\n" - .'Valid values:'."\n" - ."\n" - .'* true'."\n" - .'* false'."\n", + 'description' => 'Specifies whether to enable intranet access. The default value is true.', 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], + 'enumValueTitles' => ['true' => 'Enables intranet access.', 'false' => 'Disables intranet access.'], + 'title' => '', 'example' => 'true', ], 'EnableInternet' => [ - 'description' => 'Specifies whether to enable Internet access. Default value: false.'."\n" - ."\n" - .'Valid values:'."\n" - ."\n" - .'* true'."\n" - .'* false'."\n", + 'description' => 'Specifies whether to enable public network access. The default value is false.', 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], + 'enumValueTitles' => ['true' => 'Enables public network access.', 'false' => 'Disables public network access.'], + 'title' => '', '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', + 'IsDefault' => ['description' => 'Specifies whether the gateway is the default private gateway.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'], + 'Replicas' => ['description' => 'The number of private gateway nodes.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '2'], + 'EnableSSLRedirection' => ['description' => 'Specifies whether to enable HTTP to HTTPS redirection. The default value is false.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'], + 'VpcId' => ['type' => 'string', 'description' => 'The VPC where the gateway resides. This parameter applies only to application-type dedicated gateways.', 'required' => false, 'title' => '', 'example' => 'vpc-bp1jkde2******3mew'], + 'VSwitchIds' => [ + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => 'The vSwitch ID.', 'required' => false, 'title' => '', 'example' => 'vsw-wz9mof1ucpr8se7******'], + 'description' => 'The list of vSwitches. This parameter applies only to application-type dedicated gateways.', 'required' => false, - ], - 'GatewayType' => [ - 'type' => 'string', + 'title' => '', + 'example' => '', ], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], + [ + 'name' => 'GatewayId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The ID of the private gateway. To obtain the ID, see the private\\_gateway\\_id field in the response of the [ListResources](~~412133~~) operation.', 'type' => 'string', 'required' => true, 'example' => 'gw-1uhcqmsc7x22******'], + ], + [ + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The region where the private gateway is located.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-wulanchabu'], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The returned result.'."\n", + 'description' => 'The response.', '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.', - ], + 'GatewayId' => ['title' => '', 'description' => 'The ID of the private gateway.', 'type' => 'string', 'example' => 'gw-1uhcqmsc7x22******'], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82***'], + 'Message' => ['description' => 'The returned message.', 'type' => 'string', 'title' => '', 'example' => 'Gateway is updated'], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + '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', + 'changeSet' => [ + ['createdAt' => '2024-11-28T05:35:59.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-07-31T09:23:25.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-11-16T09:00:07.000Z', 'description' => 'Request parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateGateway'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateGateway', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], ], + ], + 'UpdateGatewayLabel' => [ + 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/label', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', + 'operationType' => 'update', + 'riskType' => 'high', 'chargeType' => 'free', - 'abilityTreeCode' => '191846', - 'abilityTreeNodes' => [ - 'FEATURElearn6PC7M4', - ], + 'abilityTreeCode' => '167564', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the private gateway.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region where the gateway is located.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], ], [ 'name' => 'GatewayId', 'in' => 'path', + 'schema' => ['description' => 'The gateway ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'gw-1uhcqmsc7x22******'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', '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******', + 'type' => 'object', + 'properties' => [ + 'Labels' => [ + 'type' => 'object', + 'required' => true, + 'additionalProperties' => ['description' => 'A user-defined label.', 'type' => 'string', 'title' => '', 'example' => '{"key":"value"}'], + 'title' => '', + 'description' => 'The custom gateway labels.', + 'example' => '', + ], + ], + 'title' => '', + 'description' => 'The request body.', + 'required' => false, + 'example' => '', ], ], ], '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', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The returned message.', 'type' => 'string', 'title' => '', 'example' => 'Succeed to update gateway gw-1uhcqmsc7x22****** labels.'], ], + 'title' => '', + 'description' => 'Schema of Response', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'UpdateGatewayLabel', + 'summary' => 'Adds a gateway label or updates an existing one.', + 'description' => '**Before you call this operation, make sure that you understand the billing methods and [pricing](~~144261~~) of Elastic Algorithm Service (EAS).**', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - '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', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateGatewayLabel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to update gateway gw-1uhcqmsc7x22****** labels.\\"\\n}","type":"json"}]', + ], + 'UpdateGroup' => [ + 'summary' => 'Updates 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' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '191842', - 'abilityTreeNodes' => [ - 'FEATURElearn6PC7M4', - ], + 'abilityTreeCode' => '260902', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-wulanchabu', 'title' => ''], + ], + [ + 'name' => 'GroupName', + 'in' => 'path', + 'schema' => ['description' => 'The name of the service group. To obtain the group name, call ListServices.', 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], + ], + [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => 'The request parameters.'."\n", + 'description' => 'The request body.', '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", + 'TrafficMode' => [ + 'title' => '', + 'description' => 'The traffic mode. Valid values:'."\n" + .'- auto: automatically assigns weights based on the proportion of instances.'."\n" + .'- customized: distributes traffic based on custom fixed weights.', 'type' => 'string', + 'enum' => ['auto', 'customized'], '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', + 'example' => 'auto', ], - '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', + 'Network' => [ + 'description' => 'The VPC configuration.', + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['description' => 'The VPC ID.', 'type' => 'string', 'required' => false, 'example' => 'vpc-bp1xxxxxx17e0qrykjr9b', 'title' => ''], + 'VSwitchId' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1xxxxxxjeqwbo3z2pux', 'title' => ''], + 'SecurityGroupId' => ['description' => 'The security group ID.', 'type' => 'string', 'required' => false, 'example' => 'sg-uf6xxxxxxc3lysxabg72i', 'title' => ''], + 'GatewayId' => ['description' => 'The dedicated gateway ID.', 'type' => 'string', 'required' => false, 'example' => 'gw-rcgxxxxxxzytgq9zrj', 'title' => ''], ], - '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', + 'title' => '', + 'example' => '', ], - 'EnableSSLRedirection' => [ - 'description' => 'Specifies whether to enable HTTP to HTTPS redirection. Default value: false.'."\n", - 'type' => 'boolean', + 'Labels' => [ + 'description' => 'The user-defined labels.', + 'type' => 'object', 'required' => false, - 'example' => 'false', - ], - 'VpcId' => [ - 'type' => 'string', - ], - 'VSwitchIds' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['description' => '按{"key":"value"}格式填写。Value 可为 null 或空字符,代表只按 Key 过滤,Value 可为任意值。', 'type' => 'string', 'example' => '{"key1":"value1","key2":null}'."\n", 'title' => ''], + 'title' => '', + 'example' => '', ], ], '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', + 'title' => '', + 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'title' => '', + 'description' => 'The response.', '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', - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'Update service group foo successfully'."\n", 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Update service group foo successfully\\\\n\\"\\n}","type":"json"}]', + 'title' => 'Update a service group', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateGroup'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'high', - 'chargeType' => 'paid', - 'abilityTreeCode' => '192211', - 'abilityTreeNodes' => [ - 'FEATURElearnMC2VJP', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the private gateway.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region to which the resource group belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'GatewayId', + 'name' => 'ResourceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The private gateway ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'gw-1uhcqmsc7x22******', - ], + 'schema' => ['title' => '', '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' => 'VpcId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The virtual private cloud (VPC) ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'vpc-uf66uio7md****', - ], - ], - [ - 'name' => 'VSwitchId', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => 'The vSwitch ID.'."\n", - 'type' => 'string', + '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.', 'title' => ''], + 'title' => '', + 'example' => '', + ], + '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', 'title' => ''], + 'value' => ['description' => 'The key value.', 'type' => 'string', 'required' => false, 'example' => 'value1', 'title' => ''], + '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', + 'title' => '', + ], + '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', + 'title' => '', + ], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], 'required' => false, - 'example' => 'vsw-8vbqn2at0kljjxxxx****', - ], - ], - [ - 'name' => 'EnableAuthoritativeDns', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - ], - ], - [ - 'name' => 'AccountId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', + 'title' => '', + 'example' => '', ], ], ], @@ -14880,82 +11343,86 @@ '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', - ], + '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****', 'title' => ''], + 'ResourceName' => ['description' => 'The name of the resource group.'."\n", 'type' => 'string', 'example' => 'iot', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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', + 'changeSet' => [ + ['createdAt' => '2023-08-25T09:36:16.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-08-24T06:58:18.000Z', 'description' => 'Request parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResource'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#resourceId}'], + ], + ], + ], ], + ], + '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' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '192205', - 'abilityTreeNodes' => [ - 'FEATURElearnMC2VJP', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the private gateway.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region to which the resource group belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'GatewayId', + 'name' => 'ResourceId', 'in' => 'path', + 'schema' => ['title' => '', '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-w1ttszneb9n994****'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => 'The private gateway ID.'."\n", - 'type' => 'string', + 'description' => 'The request body.'."\n", + 'type' => 'object', + 'properties' => [ + 'VSwitchId' => ['title' => '', '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' => '', 'description' => 'The ID of the security group to which the Elastic Compute Service (ECS) instance belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'sg-bp149cedsfx2rfs****'], + 'VSwitchIdList' => [ + 'title' => '', + '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"]', 'title' => ''], + 'required' => false, + 'example' => '', + ], + 'DestinationCIDRs' => ['title' => '', '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' => '172.16.0.0/16'], + ], 'required' => false, - 'example' => 'gw-1uhcqmsc7x22******', + 'title' => '', + 'example' => '', ], ], ], @@ -14966,144 +11433,101 @@ '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', - ], - ], - ], - ], + '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', 'title' => ''], ], + 'example' => '', ], ], + 404 => [], + 409 => [], ], - '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', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Network interfaces are updating\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + 'title' => 'UpdateResourceDLink', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceDLink'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateResourceDLink', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + ], + 'UpdateResourceInstance' => [ + 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/instances/{InstanceId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '249662', - 'abilityTreeNodes' => [ - 'FEATURElearnMC2VJP', - ], - 'autoTest' => true, - 'tenantRelevance' => 'tenant', + 'abilityTreeCode' => '155033', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], ], 'parameters' => [ [ - 'name' => 'GatewayId', + 'name' => 'ClusterId', '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\\&Env=online) operation.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'gw-1uhcqmsc7x22******', - ], + 'schema' => ['description' => 'The region ID of the instance.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-beijing'], ], [ - 'name' => 'ClusterId', + 'name' => 'ResourceId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the resource group that contains the instance. For more information, see [ListResources](~~412133~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'eas-r-asdas****'], + ], + [ + 'name' => 'InstanceId', 'in' => 'path', + 'schema' => ['description' => 'The ID of the instance. For more information, see [ListResourceInstances](~~412129~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'eas-i-asdas****'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => 'The region ID of the private gateway.'."\n", - 'type' => 'string', + 'description' => 'The request body.', + 'type' => 'object', + 'properties' => [ + 'Action' => [ + 'description' => 'The scheduling behavior to update for the instance in the dedicated resource group. Valid values:'."\n" + ."\n" + .'- Uncordon: Allows services to be scheduled to the instance.'."\n" + ."\n" + .'- Cordon: Prevents services from being scheduled to the instance.'."\n" + ."\n" + .'- Drain: Evicts the service instances that are running on the instance.', + 'enumValueTitles' => ['Uncordon' => 'Allows services to be scheduled to the instance.', 'Cordon' => 'Prevents services from being scheduled to the instance.', 'Drain' => 'Evicts the service instances that are running on the instance.'], + 'type' => 'string', + 'required' => true, + 'title' => '', + 'example' => 'Cordon', + ], + 'NewDiskSize' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Reason' => ['type' => 'string', 'maxLength' => 200, 'description' => '', 'title' => '', 'example' => ''], + ], 'required' => false, - 'example' => 'cn-wulanchabu', + 'title' => '', + 'example' => '', ], ], ], @@ -15111,100 +11535,108 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The returned data.', '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', - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '40325405-579C-4D82****'], + 'ResourceId' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'title' => '', 'example' => 'eas-r-asdasdasd'], + 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'title' => '', 'example' => 'eas-i-asdasdasd'."\n"], ], + 'example' => '', ], ], ], - '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', + 'title' => 'UpdateResourceInstance', + 'summary' => 'Updates the scheduling status of an instance in a dedicated resource group.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceInstance'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateResourceInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ResourceId\\": \\"eas-r-asdasdasd\\",\\n \\"InstanceId\\": \\"eas-i-asdasdasd\\\\n\\"\\n}","type":"json"}]', + ], + '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', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'update', + 'abilityTreeCode' => '260413', + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'title' => '所在区域', - 'description' => 'The region ID of the private gateway.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'GatewayId', + 'name' => 'ResourceId', 'in' => 'path', - 'schema' => [ - 'title' => '网关ID', - 'description' => 'The private gateway ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'gw-1uhcqmsc7x22******', - ], + 'schema' => ['description' => 'The resource group ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'eas-r-asdasdasd', 'title' => ''], ], [ - 'name' => 'VpcId', + 'name' => 'InstanceIds', 'in' => 'query', + 'style' => 'simple', 'schema' => [ - 'description' => 'The virtual private cloud (VPC) ID.'."\n", - 'type' => 'string', + 'description' => 'The instance IDs.'."\n", + 'type' => 'array', + 'items' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'eas-i-xxxxxx', 'title' => ''], 'required' => false, - 'example' => 'vpc-uf66uio7md****', + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'VSwitchId', + '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', 'title' => ''], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => 'The ID of the vSwitch.'."\n", - 'type' => 'string', + 'description' => 'The request body.'."\n", + 'type' => 'object', + 'properties' => [ + 'Labels' => [ + 'description' => 'The custom tag.'."\n", + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string', 'example' => '{"key":"value"}'."\n", 'description' => 'The tag.'."\n", 'title' => ''], + 'title' => '', + 'example' => '', + ], + ], 'required' => false, - 'example' => 'vsw-8vbqn2at0kljjxxxx****', + 'title' => '', + 'example' => '', ], ], ], @@ -15215,78 +11647,102 @@ '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******', - ], + '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', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Success\\"\\n}","type":"json"}]', + 'title' => 'UpdateResourceInstanceLabel', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceInstanceLabel'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateResourceInstanceLabel', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateService' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '37044', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the private gateway.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'GatewayId', + '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', 'title' => ''], + ], + [ + 'name' => 'UpdateType', + 'in' => 'query', 'schema' => [ - 'description' => 'The private gateway ID.'."\n", + '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' => true, - 'example' => 'gw-1uhcqmsc7x22******', + 'required' => false, + 'enumValueTitles' => ['merge' => '', 'replace' => ''], + 'example' => 'merge', + 'title' => '', ], ], + [ + 'name' => 'MemberToUpdate', + 'in' => 'query', + 'allowEmptyValue' => true, + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + [ + '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' => '{'."\n" + .' "name": "foo",'."\n" + .' "model_path": "http://path/to/model.tar.gz",'."\n" + .' "processor": "tensorflow_cpu",'."\n" + .' "metadata": {'."\n" + .' "instance": 2,'."\n" + .' "memory": 7000,'."\n" + .' "cpu": 4'."\n" + .' }'."\n" + .'}', 'title' => ''], + ], ], 'responses' => [ 200 => [ @@ -15295,255 +11751,263 @@ '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.', - ], + 'RequestId' => ['title' => '', '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]'], ], + 'example' => '', ], ], + 400 => [], + 403 => [], + 409 => [], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'UpdateService', + 'summary' => 'Updates a model or processor of a service. If only the metadata.instance field is updated, manual scaling can be performed.', + 'requestParamsDescription' => '> For more information about the request parameters, see CreateService.'."\n", + 'changeSet' => [ + ['createdAt' => '2023-12-26T09:25:15.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-12-07T06:47:10.000Z', 'description' => 'Request parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateService'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + '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":""}]', + ], + 'UpdateServiceAutoScaler' => [ + 'summary' => 'Updates the Autoscaler configurations of a service.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/autoscaler', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '245616', - 'abilityTreeNodes' => [ - 'FEATURElearnMC2VJP', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region where the private gateway resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-wulanchabu', - ], + 'schema' => ['description' => 'The region ID of the service.', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ - 'name' => 'GatewayId', + 'name' => 'ServiceName', '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******', - ], + 'schema' => ['description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'example' => 'foo', 'title' => ''], ], [ - '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 => [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The request body.', '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", + 'min' => ['description' => 'The minimum number of instances. The value must be greater than 0.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'title' => '', 'example' => '2'], + 'max' => ['description' => 'The maximum number of instances. The value must be greater than that of the min parameter.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'title' => '', 'example' => '8'], + 'scaleStrategies' => [ + 'description' => 'The auto scaling policies.', 'type' => 'array', 'items' => [ - 'description' => 'The VPC peer.'."\n", 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'description' => 'The VPC ID.'."\n", - 'type' => 'string', - 'example' => 'vpc-2zetuli9ws0qgjd******', + '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" + ."\n" + .'- cpu: the CPU utilization.', 'type' => 'string', 'required' => true, 'example' => 'qps', 'title' => ''], + '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" + ."\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.', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '100', 'title' => ''], + 'service' => ['description' => 'The service for which the metric is specified. If you do not set this parameter, the current service is specified by default.', 'type' => 'string', 'required' => false, 'example' => 'demo_svc', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => true, + 'title' => '', + 'example' => '', + ], + 'behavior' => [ + 'description' => 'The Autoscaler operation.', + 'type' => 'object', + 'properties' => [ + 'scaleUp' => [ + 'description' => 'The scale-out operation.', + '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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''], ], - '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', - ], - ], - ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'scaleDown' => [ + 'description' => 'The scale-in operation.', + '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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '300', 'title' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'onZero' => [ + 'description' => 'The operation that reduces the number of instances to 0.', + '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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '600', 'title' => ''], + '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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], + 'required' => false, + 'title' => '', + 'example' => '', ], ], + 'required' => false, + 'title' => '', + 'example' => '', ], ], + 'required' => false, + 'title' => '', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Update auto scale for service [foo] successfully', 'title' => ''], + ], + 'example' => '', + ], + ], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'title' => 'UpdateServiceAutoScaler', + 'changeSet' => [ + ['createdAt' => '2023-05-17T07:24:04.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-09-16T08:39:20.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-09-16T08:39:20.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-08-05T06:41:48.000Z', 'description' => 'Request parameters changed'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceAutoScaler'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceAutoScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Update auto scale for service [foo] successfully\\"\\n}","type":"json"}]', + ], + 'UpdateServiceCronScaler' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/cronscaler', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '245608', - 'abilityTreeNodes' => [ - 'FEATURElearnMC2VJP', - ], + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearnZ3WNW7'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region where the private gateway resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-wulanchabu', - ], + 'schema' => ['description' => 'The ID of the region where the service is located.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], ], [ - 'name' => 'GatewayId', + 'name' => 'ServiceName', '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******', - ], + 'schema' => ['description' => 'The name of the service. For more information, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'foo'], ], [ - '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', + 'name' => 'body', + 'in' => 'body', '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', + 'description' => 'The request body.', + 'type' => 'object', + 'properties' => [ + 'ScaleJobs' => [ + 'title' => '', + 'description' => 'The scheduled scaling tasks.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TargetSize' => ['description' => 'The target number of instances for the scaling task.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'title' => '', 'example' => '2'], + 'Schedule' => ['description' => 'The cron expression that specifies when to run the scaling task. For more information about cron expressions, see the **Cron expressions** section in this topic.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '0 18 * * * *'."\n"], + 'Name' => ['description' => 'The name of the scheduled auto scaling task.', 'type' => 'string', 'required' => false, 'example' => 'scale-job-1'."\n", 'title' => ''], + 'TimeZone' => ['description' => 'The time zone for the cron expression.', 'type' => 'string', 'required' => false, 'example' => 'Asia/Shanghai', 'title' => ''], + ], 'required' => false, - 'example' => 'cn-shanghai', + 'description' => '', + 'title' => '', + 'example' => '', ], + 'required' => true, + 'example' => '', + ], + 'ExcludeDates' => [ + 'title' => '', + 'description' => 'The cron expressions for the dates to exclude from the schedule.', + 'type' => 'array', + 'items' => ['description' => 'A cron expression. For more information, see the **Cron expressions** section in this topic.', 'type' => 'string', 'required' => false, 'example' => '* * * * * 0,6'."\n", 'title' => ''], + 'required' => false, + 'example' => '', ], - 'required' => false, ], 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -15551,279 +12015,304 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The data returned.'."\n", + 'description' => 'The response body.', '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', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Update cron scaler for service [foo] successfully', 'title' => ''], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'title' => 'UpdateServiceCronScaler', + 'summary' => 'Updates the scheduled auto scaling configuration for a service.', + 'requestParamsDescription' => '### Cron expressions'."\n" + ."\n" + .'!\\[image]\\(../images/p1064363.png" width="350)'."\n" + ."\n" + .'| Name | Allowed values | Allowed special characters |'."\n" + .'| ------------ | --------------- | -------------------------- |'."\n" + .'| Second | 0-59 | \\* / , - |'."\n" + .'| Minute | 0-59 | \\* / , - |'."\n" + .'| Hour | 0-23 | \\* / , - |'."\n" + .'| Day of month | 1-31 | \\* / , - |'."\n" + .'| Month | 1-12 or JAN-DEC | \\* / , - |'."\n" + .'| Day of week | 0-6 or SUN-SAT | \\* / , - |'."\n" + ."\n" + .'#### Special characters'."\n" + ."\n" + .'**Asterisk (\\*)** An asterisk (\\*) represents all values in a field. For example, 0 0 0 1 \\* \\* means at 00:00 on the first day of every month.'."\n" + ."\n" + .'**Hyphen (-)** A hyphen (-) specifies a range of values. For example, 0 0 12-14 \\* \\* \\* means at 12:00, 13:00, and 14:00 every day.'."\n" + ."\n" + .'**Comma (,)** A comma (,) separates individual values. For example, 0 0 12,14 \\* \\* \\* means at 12:00 and 14:00 every day.'."\n" + ."\n" + .'**Slash (/)** A slash (/) specifies increments. For example, 0 \\*/15 \\* \\* \\* \\* means at 0, 15, 30, and 45 minutes past the hour. You can use a slash (/) with a hyphen (-). For example, 0 5-40/15 \\* \\* \\* \\* means every 15 minutes between 5 and 40 minutes past the hour. The task runs at 5, 20, and 35 minutes past the hour.', + 'changeSet' => [ + ['createdAt' => '2022-02-22T03:55:39.000Z', 'description' => 'OpenAPI offline'], ], - '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', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceCronScaler'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceCronScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Update cron scaler for service [foo] successfully\\"\\n}","type":"json"}]', + ], + 'UpdateServiceInstance' => [ + 'summary' => 'Updates the properties of a service instance. This operation applies only to fencing service instances.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '245615', - 'abilityTreeNodes' => [ - 'FEATURElearnMC2VJP', - ], + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '200711', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region where the private gateway resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-wulanchabu', - ], + 'schema' => ['description' => 'The region of the service.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], ], [ - 'name' => 'GatewayId', + 'name' => 'ServiceName', '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******', - ], + 'schema' => ['description' => 'The name of the service. For more information, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'foo'], ], [ - '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' => 'InstanceName', + 'in' => 'path', + 'schema' => ['description' => 'The name of the service instance. For more information, see [ListServiceInstances](~~412108~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'foo-69xxxx4f4-5w9r9'], ], [ - 'name' => 'PeerVpcs', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', '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, + 'description' => 'The request body.', + 'type' => 'object', + 'properties' => [ + 'Hibernate' => ['type' => 'boolean', 'description' => '> This parameter is for an invitational preview. It is not generally available.', 'title' => '', 'required' => false, 'example' => '0'], + 'Isolate' => ['description' => 'Specifies whether to isolate the instance. Valid values:'."\n" + ."\n" + .'- true: The instance is isolated and does not receive traffic.'."\n" + ."\n" + .'- false: The instance is not isolated and receives traffic.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'], + 'Detach' => ['type' => 'boolean', 'description' => 'Specifies whether to fence the service instance. After an instance is fenced, it is no longer managed by the VPC controller and a new instance is created. The fenced instance is reserved for troubleshooting or debugging. Note: You cannot unfence an instance. Valid values:'."\n" + ."\n" + .'- true: Fences the instance.', 'title' => '', 'required' => false, 'example' => 'true'], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], + [ + 'name' => 'IsReplica', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'description' => 'Specifies whether the instance is a replica.', 'title' => '', 'required' => false, 'example' => 'false'], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The data returned.'."\n", + 'description' => 'The response body.', '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', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'A message that indicates a successful operation.', 'type' => 'string', 'title' => '', 'example' => 'instance xxxx isolation updated to true。'], ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"instance xxxx isolation updated to true。\\"\\n}","type":"json"}]', + 'title' => 'UpdateServiceInstance', + 'description' => '**Before you call this operation, make sure that you understand the billing methods and [pricing](~~144261~~) of Elastic Algorithm Service (EAS).**', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceInstance'], + ], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], - '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', - ], + 'UpdateServiceLabel' => [ + 'summary' => 'Adds service tags or updates existing service tags.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/label', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '133892', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', + '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' => '', + '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"}'], + 'example' => '', + ], + ], + 'required' => false, + 'example' => '', + ], ], ], - 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response'."\n", + '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****', - ], - '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' => '', - ], - ], + 'RequestId' => ['title' => '', '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.'], ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [ + ['createdAt' => '2023-08-09T02:08:59.000Z', 'description' => 'Response parameters changed'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceLabel'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceLabel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + ], + ], + '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', - 'abilityTreeCode' => '231056', - 'abilityTreeNodes' => [ - 'FEATURElearnDNLWTG', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => 'The region ID of the service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'TenantAddonName', + '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 plug-in name.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prometheus_discovery', + 'description' => 'The request body.'."\n", + 'type' => 'object', + 'properties' => [ + 'Ratio' => ['title' => '', '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', 'title' => ''], + 'required' => false, + 'example' => '', + ], + ], + 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -15834,247 +12323,252 @@ '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****', - ], + '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', + 'example' => 'Traffic mirroring is updating for service [foo] in region [cn-shanghai], ratio [70%]', + 'enumValueTitles' => [], + 'title' => '', ], ], + 'example' => '', ], ], ], - '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', + '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', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceMirror'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceMirror', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + 'UpdateServiceRollout' => [ + 'summary' => 'Updates a service rollout.', + 'description' => '## Usage notes'."\n" + ."\n" + .'- **Provide at least one parameter**: Specify at least one of the `Partition`, `Batch`, or `Paused` parameters.'."\n" + ."\n" + .'- **Mutually exclusive strategies**: You cannot specify both the `Partition` and `Batch` parameters in the same request.'."\n" + ."\n" + .'- **Immediate effect**: Updates take effect immediately and affect ongoing service rollouts.'."\n" + ."\n" + .'- **Rollback**: You can perform a rollback by increasing the `Partition` value. However, this is not an automatic process, and you must manually update the service image.'."\n" + ."\n" + .'- **Pause does not affect parameters**: Pausing a rollout does not change the configured `Partition` or `Batch` parameters. It only suspends the current rollout strategy.', + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/rollout', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The region ID where the service is located.'."\n" + ."\n" + .'- Type: string'."\n" + ."\n" + .'- Required: Yes'."\n" + ."\n" + .'- Description: The ID of the region where the service is located.'."\n" + ."\n" + .'- Example: cn-shanghai', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'title' => ''], ], [ 'name' => 'ServiceName', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'foo', - ], + 'schema' => ['description' => 'The name of the service.'."\n" + ."\n" + .'- Type: string'."\n" + ."\n" + .'- Required: Yes'."\n" + ."\n" + .'- Description: The name of the service for which to update the release policy.'."\n" + ."\n" + .'- Example: my-service', 'type' => 'string', 'required' => true, 'example' => 'my-service', 'title' => ''], ], [ - 'name' => 'InstanceName', - 'in' => 'path', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'e-xxxx***', + 'type' => 'object', + 'properties' => [ + 'Partition' => [ + 'type' => 'object', + 'properties' => [ + 'Partition' => ['description' => '**Partition value**'."\n" + ."\n" + .'- Type: string'."\n" + ."\n" + .'- Required: Yes'."\n" + ."\n" + .'- Description: The partition value. This parameter specifies the number or percentage of old-version replicas to retain. It supports two formats:'."\n" + ."\n" + .' 1. An integer, such as "5", for the number of replicas.'."\n" + ."\n" + .' 2. A percentage, such as "50%", for the proportion of replicas.'."\n" + ."\n" + .' Adjustment strategy:'."\n" + ."\n" + .' - Increasing the value rolls back to the previous version by increasing the number of old-version replicas.'."\n" + ."\n" + .' - Decreasing the value continues the rollout by reducing the number of old-version replicas.'."\n" + ."\n" + .' - Setting the value to "0" or "0%" completes the rollout, replacing all old-version replicas.'."\n" + ."\n" + .'- Example: 30%', 'type' => 'string', 'example' => '30%', 'title' => '', 'required' => false], + ], + 'title' => '', + 'description' => 'The partition rollout configuration. This parameter is mutually exclusive with `Batch`.'."\n" + ."\n" + .'- Type: object'."\n" + ."\n" + .'- Required: No'."\n" + ."\n" + .'- Description: The partition rollout configuration. This parameter adjusts the parameters for the partition strategy. It is mutually exclusive with `Batch`.', + 'required' => false, + 'example' => '', + ], + 'Batch' => [ + 'type' => 'object', + 'properties' => [ + 'BatchSize' => ['description' => 'The number of replicas to update in each batch. This can be an integer or a percentage. The default is `"25%"`.', 'type' => 'string', 'example' => '25%', 'title' => '', 'required' => false], + 'Interval' => ['description' => 'The interval to wait between batches. Supported units include `s` (seconds), `m` (minutes), and `h` (hours).', 'type' => 'string', 'example' => '60s', 'title' => '', 'required' => false], + ], + 'title' => '', + 'description' => 'The batch rollout configuration. This parameter is mutually exclusive with `Partition`.'."\n" + ."\n" + .'- Type: object'."\n" + ."\n" + .'- Required: No'."\n" + ."\n" + .'- Description: The batch rollout configuration for adjusting batch policy parameters. This parameter is mutually exclusive with Partition.', + 'required' => false, + 'example' => '', + ], + 'Paused' => ['description' => 'Set to `true` to pause the rollout or `false` to resume it.', 'type' => 'boolean', 'example' => 'true', 'title' => '', 'required' => false], + ], + 'required' => false, + 'description' => 'The request body.', + 'title' => '', + 'example' => '', ], ], ], 'responses' => [ 200 => [ + 'description' => '成功响应', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => 'The response body.', '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" - .'}', - ], - ], - ], - ], + 'RequestId' => ['description' => 'A unique identifier for the request. You can use this request ID for troubleshooting and tracking.', 'type' => 'string', 'example' => '40325405-579C-4D82****', 'title' => ''], + 'Message' => ['description' => 'A message that indicates the result of the request. Possible values include:'."\n" + ."\n" + .'- "Rollout updated successfully"'."\n" + ."\n" + .'- "Rollout paused successfully"'."\n" + ."\n" + .'- "Rollout resumed successfully"', 'type' => 'string', 'example' => 'Rollout updated successfully', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'UpdateServiceRollout', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - '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"}]', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Rollout updated successfully\\"\\n}","type":"json"}]', ], - 'CreateFaultInjection' => [ - 'summary' => '创建故障注入任务', - 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + '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' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => [], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '161176', + 'abilityTreeNodes' => ['FEATURElearnN5R68Z'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The ID of the region where the service is deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-beijing', 'title' => ''], ], [ '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', - ], + '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', 'title' => ''], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => '', + 'description' => 'The request body.'."\n", 'type' => 'object', 'properties' => [ - 'FaultType' => [ - 'description' => '', + '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' => 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' => true, + 'enumValueTitles' => ['all' => '', 'dangerous' => '', 'none' => ''], + 'example' => 'dangerous', + 'enum' => ['none', 'dangerous', 'all'], + 'title' => '', ], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], ], @@ -16082,101 +12576,79 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => 'The response parameters.'."\n", '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', - ], + 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'E089D584-B6F4-50C4-9902-DA2295B7****', 'title' => ''], + 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'service safety lock updated to dangerous', 'title' => ''], ], + 'example' => '', ], ], ], - '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', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E089D584-B6F4-50C4-9902-DA2295B7****\\",\\n \\"Message\\": \\"service safety lock updated to dangerous\\"\\n}","type":"json"}]', + 'title' => 'UpdateServiceSafetyLock', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceSafetyLock'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceSafetyLock', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], ], + ], + 'UpdateServiceVersion' => [ + 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/version', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATURElearnN5R68Z', - ], - 'autoTest' => false, - 'notSupportAutoTestReason' => '编排过于复杂', - 'tenantRelevance' => 'tenant', + 'abilityTreeNodes' => ['FEATURElearnKDX12S'], ], 'parameters' => [ [ 'name' => 'ClusterId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => 'The ID of the region where the service is deployed.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-shanghai'], ], [ 'name' => 'ServiceName', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'foo', - ], + 'schema' => ['description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'echo'], ], [ - 'name' => 'InstanceName', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'echo-da290ac8-7fckm', - ], - ], - [ - 'name' => 'FaultType', - 'in' => 'path', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '', - 'type' => 'string', + 'description' => 'The request body.', + '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.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'title' => ''], + ], 'required' => false, - 'example' => 'CpuFullloadTask', + 'title' => '', + 'example' => '', ], ], ], @@ -16184,197 +12656,2035 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => 'The response parameters.', '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', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '40325405-579C-4D82****'], + 'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Service [foo] in region [cn-shanghai] is starting', 'title' => ''], ], + 'example' => '', ], ], + 400 => [], + 403 => [], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => 'UpdateServiceVersion', + 'summary' => 'Updates the version of a service or rolls back the service to a specific version.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceVersion'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Successfully delete acl policy for gateway\\"\\n}","type":"json"}]', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Service [foo] in region [cn-shanghai] is starting\\"\\n}","type":"json"}]', ], - 'ListTenantAddons' => [ - 'summary' => 'Queries a list of tenant plug-ins.', - 'path' => '/api/v2/tenantaddons', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'UpdateVirtualResource' => [ + 'summary' => 'Updates the information about a virtual resource group.', + 'path' => '/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '231065', - 'abilityTreeNodes' => [ - 'FEATURElearnDNLWTG', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '238299', + 'abilityTreeNodes' => ['FEATURElearnRPDTZG'], + 'tenantRelevance' => 'tenant', ], - 'parameters' => [], - 'responses' => [ - 200 => [ + 'parameters' => [ + [ + 'name' => 'ClusterId', + 'in' => 'path', + 'schema' => ['title' => '', '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' => '', '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' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The request 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", + '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' => [ - '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" - .'}', - ], - ], + 'Region' => ['title' => '', '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' => '', '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' => '', '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' => '', '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'], ], - 'description' => '', + 'required' => false, + 'title' => '', + 'example' => '', ], + 'required' => false, + 'example' => '', ], + 'VirtualResourceName' => ['title' => '', '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', 'title' => ''], ], + 'required' => false, + 'title' => '', + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + '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', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + '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', + 'changeSet' => [ + ['createdAt' => '2025-01-21T08:56:51.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateVirtualResource'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/{#VirtualResourceId}'], + ], + ], + ], ], - '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-zhongwei', 'regionName' => 'China (Zhongwei)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-zhongwei.aliyuncs.com', 'endpoint' => 'pai-eas.cn-zhongwei.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-zhongwei.aliyuncs.com'], + ['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'pai-eas.cn-wulanchabu.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-wulanchabu.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-beijing.aliyuncs.com', 'endpoint' => 'pai-eas.cn-beijing.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-shanghai.aliyuncs.com', 'endpoint' => 'pai-eas.cn-shanghai.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-hongkong.aliyuncs.com', 'endpoint' => 'pai-eas.cn-hongkong.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'cn-heyuan', 'regionName' => 'China (Heyuan)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-heyuan.aliyuncs.com', 'endpoint' => 'pai-eas.cn-heyuan.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-heyuan.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'pai-eas.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-zhangjiakou.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-shenzhen.aliyuncs.com', 'endpoint' => 'pai-eas.cn-shenzhen.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'ap-northeast-2', 'regionName' => 'South Korea (Seoul)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.ap-northeast-2.aliyuncs.com', 'endpoint' => 'pai-eas.ap-northeast-2.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.ap-northeast-2.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.ap-northeast-1.aliyuncs.com', 'endpoint' => 'pai-eas.ap-northeast-1.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.ap-northeast-1.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-chengdu.aliyuncs.com', 'endpoint' => 'pai-eas.cn-chengdu.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-chengdu.aliyuncs.com'], + ['regionId' => 'cn-guangzhou', 'regionName' => 'China (Guangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-guangzhou.aliyuncs.com', 'endpoint' => 'pai-eas.cn-guangzhou.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-guangzhou.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.ap-southeast-1.aliyuncs.com', 'endpoint' => 'pai-eas.ap-southeast-1.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.ap-southeast-3.aliyuncs.com', 'endpoint' => 'pai-eas.ap-southeast-3.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.ap-southeast-3.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.ap-southeast-5.aliyuncs.com', 'endpoint' => 'pai-eas.ap-southeast-5.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.ap-southeast-5.aliyuncs.com'], + ['regionId' => 'ap-southeast-7', 'regionName' => 'Thailand (Bangkok)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.ap-southeast-7.aliyuncs.com', 'endpoint' => 'pai-eas.ap-southeast-7.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.ap-southeast-7.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.cn-hangzhou.aliyuncs.com', 'endpoint' => 'pai-eas.cn-hangzhou.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'ap-southeast-8', 'regionName' => 'Malaysia (Johor)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai-eas.ap-southeast-8.aliyuncs.com', 'endpoint' => 'pai-eas.ap-southeast-8.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.ap-southeast-8.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'pai-eas.us-east-1.aliyuncs.com', 'endpoint' => 'pai-eas.us-east-1.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'us-southeast-1', 'regionName' => 'US(Atlanta)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'pai-eas.us-southeast-1.aliyuncs.com', 'endpoint' => 'pai-eas.us-southeast-1.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.us-southeast-1.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'pai-eas.us-west-1.aliyuncs.com', 'endpoint' => 'pai-eas.us-west-1.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.us-west-1.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'pai-eas.eu-central-1.aliyuncs.com', 'endpoint' => 'pai-eas.eu-central-1.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.eu-central-1.aliyuncs.com'], + ['regionId' => 'me-east-1', 'regionName' => 'UAE (Dubai)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'pai-eas.me-east-1.aliyuncs.com', 'endpoint' => 'pai-eas.me-east-1.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.me-east-1.aliyuncs.com'], + ['regionId' => 'me-central-1', 'regionName' => 'Saudi Arabia (Riyadh)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'pai-eas.me-central-1.aliyuncs.com', 'endpoint' => 'pai-eas.me-central-1.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.me-central-1.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'pai-eas.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'pai-eas.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'pai-eas-manage-vpc.cn-shanghai-finance-1.aliyuncs.com'], + ], + 'errorCodes' => [], + 'changeSet' => [ + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateResource'], + ['description' => 'Request parameters changed', 'api' => 'CreateResourceInstances'], + ['description' => 'Request parameters changed', 'api' => 'ListResourceInstances'], + ], + 'createdAt' => '2025-02-05T11:07:08.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateVirtualResource'], + ['description' => 'Response parameters changed', 'api' => 'DescribeVirtualResource'], + ['description' => 'Request parameters changed', 'api' => 'ListResourceInstanceWorker'], + ['description' => 'Request parameters changed', 'api' => 'ListResources'], + ['description' => 'Response parameters changed', 'api' => 'ListVirtualResource'], + ['description' => 'Request parameters changed', 'api' => 'UpdateVirtualResource'], + ], + 'createdAt' => '2025-01-21T08:57:07.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ReleaseService'], + ], + 'createdAt' => '2025-01-13T08:38:57.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'DescribeResource'], + ], + 'createdAt' => '2024-12-10T08:41:54.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'DescribeGateway'], + ['description' => 'Response parameters changed', 'api' => 'ListGateway'], + ['description' => 'Request parameters changed', 'api' => 'UpdateGateway'], + ], + 'createdAt' => '2024-11-28T05:36:13.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateAclPolicy'], + ['description' => 'Request parameters changed', 'api' => 'ListAclPolicy'], + ], + 'createdAt' => '2024-10-11T02:05:56.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'ListGateway'], + ], + 'createdAt' => '2024-10-11T02:05:16.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateGateway'], + ], + 'createdAt' => '2024-10-11T02:03:57.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListServices'], + ], + 'createdAt' => '2024-10-08T11:21:11.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'ListAclPolicy'], + ], + 'createdAt' => '2024-09-02T02:24:09.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CloneService'], + ], + 'createdAt' => '2024-08-19T02:57:45.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateGateway'], + ['description' => 'Response parameters changed', 'api' => 'DescribeGateway'], + ['description' => 'Request parameters changed', 'api' => 'ListServices'], + ['description' => 'Request parameters changed', 'api' => 'UpdateGateway'], + ], + 'createdAt' => '2024-07-31T09:23:38.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateResourceLog'], + ['description' => 'Request parameters changed', 'api' => 'DescribeServiceCronScaler'], + ['description' => 'Request parameters changed', 'api' => 'DescribeSpotDiscountHistory'], + ], + 'createdAt' => '2024-07-19T09:17:51.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListServices'], + ['description' => 'Response parameters changed', 'api' => 'ListServiceVersions'], + ], + 'createdAt' => '2024-01-23T13:07:17.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'UpdateAppService'], + ], + 'createdAt' => '2024-01-16T14:09:38.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'UpdateService'], + ], + 'createdAt' => '2023-12-26T09:25:36.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'UpdateGateway'], + ], + 'createdAt' => '2023-11-16T09:00:20.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'CreateService'], + ['description' => 'Request parameters changed', 'api' => 'ListGroups'], + ['description' => 'Request parameters changed', 'api' => 'ListServices'], + ], + 'createdAt' => '2023-09-01T08:10:47.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateResource'], + ['description' => 'Request parameters changed', 'api' => 'UpdateResource'], + ], + 'createdAt' => '2023-08-25T09:36:29.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateResource'], + ['description' => 'Response parameters changed, Response parameters changed', 'api' => 'DescribeResource'], + ['description' => 'Request parameters changed', 'api' => 'ListResources'], + ['description' => 'Request parameters changed', 'api' => 'UpdateResource'], + ], + 'createdAt' => '2023-08-24T06:58:37.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'DeleteServiceLabel'], + ['description' => 'Response parameters changed', 'api' => 'UpdateServiceLabel'], + ], + 'createdAt' => '2023-08-09T02:09:13.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DeleteServiceInstances'], + ], + 'createdAt' => '2023-06-06T06:07:16.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateServiceAutoScaler'], + ['description' => 'Request parameters changed', 'api' => 'UpdateServiceAutoScaler'], + ], + 'createdAt' => '2023-05-17T07:24:15.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeServiceLog'], + ], + 'createdAt' => '2023-05-09T06:45:44.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListResourceInstances'], + ['description' => 'Request parameters changed', 'api' => 'ListServiceInstances'], + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'ListServices'], + ], + 'createdAt' => '2023-05-06T09:55:23.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'CreateResource'], + ['description' => 'Response parameters changed', 'api' => 'CreateResourceInstances'], + ], + 'createdAt' => '2023-04-24T10:27:44.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'CreateResource'], + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'CreateResourceInstances'], + ], + 'createdAt' => '2023-04-18T04:39:41.000Z', + 'description' => '', + ], [ - 'regionId' => 'cn-heyuan', - 'endpoint' => 'pai-eas.cn-heyuan.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'DescribeServiceEvent'], + ], + 'createdAt' => '2023-03-31T08:42:05.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'pai-eas.cn-beijing.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'CreateResource'], + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'CreateResourceInstances'], + ], + 'createdAt' => '2023-03-24T08:24:25.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'pai-eas.cn-zhangjiakou.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeServiceLog'], + ], + 'createdAt' => '2023-03-24T08:23:07.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'pai-eas.cn-hangzhou.aliyuncs.com', + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'CreateService'], + ], + 'createdAt' => '2023-01-05T03:16:41.000Z', + 'description' => '增加CreateService timeout', ], [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'pai-eas.cn-shanghai.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateService'], + ], + 'createdAt' => '2023-01-04T03:36:06.000Z', + 'description' => '新增Restart API', ], [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'pai-eas.cn-shenzhen.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListServices'], + ], + 'createdAt' => '2022-12-27T01:55:33.000Z', + 'description' => '增加ServiceTag相关接口', ], [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'pai-eas.cn-chengdu.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'UpdateService'], + ], + 'createdAt' => '2022-12-07T06:47:31.000Z', + 'description' => '修改为必填参数', ], [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'pai-eas.cn-hongkong.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListServices'], + ], + 'createdAt' => '2022-12-05T04:33:56.000Z', + 'description' => 'ListService API新增查询参数ParentServiceUid和ServiceType;ListServiceInstance新增响应参数Role和ResourceType。', ], [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'pai-eas.ap-southeast-1.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListBenchmarkTask'], + ], + 'createdAt' => '2022-11-30T08:37:46.000Z', + 'description' => '修复问题', ], [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'pai-eas.ap-southeast-5.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListResourceInstances'], + ['description' => 'Request parameters changed', 'api' => 'ListResources'], + ], + 'createdAt' => '2022-11-29T06:36:44.000Z', + 'description' => '新增查询过滤参数', ], [ - 'regionId' => 'us-east-1', - 'endpoint' => 'pai-eas.us-east-1.aliyuncs.com', + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'DescribeBenchmarkTask'], + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'DescribeBenchmarkTaskReport'], + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'ListBenchmarkTask'], + ], + 'createdAt' => '2022-11-02T09:46:49.000Z', + 'description' => '更新压测相关api', ], [ - 'regionId' => 'us-west-1', - 'endpoint' => 'pai-eas.us-west-1.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI offline', 'api' => 'DescribeGroup'], + ['description' => 'OpenAPI offline', 'api' => 'ListGroups'], + ['description' => 'Request parameters changed', 'api' => 'ListServices'], + ], + 'createdAt' => '2022-09-27T03:18:06.000Z', + 'description' => '新增服务组API', ], [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'pai-eas.eu-central-1.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateServiceAutoScaler'], + ['description' => 'Request parameters changed', 'api' => 'CreateServiceAutoScaler'], + ['description' => 'Response parameters changed', 'api' => 'DescribeServiceAutoScaler'], + ['description' => 'Response parameters changed', 'api' => 'DescribeServiceAutoScaler'], + ['description' => 'Request parameters changed', 'api' => 'UpdateServiceAutoScaler'], + ['description' => 'Request parameters changed', 'api' => 'UpdateServiceAutoScaler'], + ], + 'createdAt' => '2022-09-16T08:40:24.000Z', + 'description' => '修改Autoscaler接口参数定义,通过scaleStrategies替代strategies', ], [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'pai-eas.cn-shanghai-finance-1.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI offline', 'api' => 'ListServiceVersions'], + ], + 'createdAt' => '2022-09-05T08:17:03.000Z', + 'description' => '新增Versions接口,列举服务历史版本信息。', ], [ - 'regionId' => 'cn-wulanchabu', - 'endpoint' => 'pai-eas.cn-wulanchabu.aliyuncs.com', + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'CreateBenchmarkTask'], + ], + 'createdAt' => '2022-08-30T11:20:39.000Z', + 'description' => ' 修改CreateBenchmarkTask api 返回参数', ], [ - 'regionId' => 'cn-guangzhou', - 'endpoint' => 'pai-eas.cn-guangzhou.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ReleaseService'], + ], + 'createdAt' => '2022-08-11T06:07:58.000Z', + 'description' => '增加部分字段', ], [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'pai-eas.ap-northeast-1.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateServiceAutoScaler'], + ['description' => 'Response parameters changed', 'api' => 'DescribeServiceAutoScaler'], + ['description' => 'Request parameters changed', 'api' => 'UpdateServiceAutoScaler'], + ], + 'createdAt' => '2022-08-05T07:05:50.000Z', + 'description' => '更新Autoscaler字段', ], [ - 'regionId' => 'ap-northeast-2', - 'endpoint' => 'pai-eas.ap-northeast-2.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI offline', 'api' => 'CreateBenchmarkTask'], + ['description' => 'OpenAPI offline', 'api' => 'DeleteBenchmarkTask'], + ['description' => 'OpenAPI offline', 'api' => 'DescribeBenchmarkTask'], + ['description' => 'OpenAPI offline', 'api' => 'ListBenchmarkTask'], + ['description' => 'OpenAPI offline', 'api' => 'StartBenchmarkTask'], + ['description' => 'OpenAPI offline', 'api' => 'StopBenchmarkTask'], + ['description' => 'OpenAPI offline', 'api' => 'UpdateBenchmarkTask'], + ], + 'createdAt' => '2022-05-27T03:23:30.000Z', + 'description' => 'eas benchmark api上线', ], [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'pai-eas.ap-southeast-3.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI offline', 'api' => 'DescribeBenchmarkTaskReport'], + ], + 'createdAt' => '2022-05-27T03:20:47.000Z', + 'description' => 'eas benchmark api上线', ], [ - 'regionId' => 'ap-southeast-7', - 'endpoint' => 'pai-eas.ap-southeast-7.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI offline', 'api' => 'ListStresses'], + ], + 'createdAt' => '2022-05-18T12:31:12.000Z', + 'description' => '新增ListStresses api', ], [ - 'regionId' => 'me-east-1', - 'endpoint' => 'pai-eas.me-east-1.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI offline', 'api' => 'CreateStress'], + ['description' => 'OpenAPI offline', 'api' => 'DeleteStress'], + ['description' => 'OpenAPI offline', 'api' => 'DescribeStress'], + ['description' => 'OpenAPI offline', 'api' => 'ReportStress'], + ['description' => 'OpenAPI offline', 'api' => 'StartStress'], + ['description' => 'OpenAPI offline', 'api' => 'StopStress'], + ['description' => 'OpenAPI offline', 'api' => 'UpdateStress'], + ], + 'createdAt' => '2022-05-18T12:27:15.000Z', + 'description' => '新增stress api', ], [ - 'regionId' => 'us-southeast-1', - 'endpoint' => 'pai-eas.us-southeast-1.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListResourceInstances'], + ], + 'createdAt' => '2022-05-10T11:41:52.000Z', + 'description' => 'ListResouceInstance增加付费类型过滤', + ], + [ + 'apis' => [ + ['description' => 'OpenAPI offline', 'api' => 'CreateServiceCronScaler'], + ['description' => 'OpenAPI offline', 'api' => 'DeleteServiceCronScaler'], + ['description' => 'Response parameters changed, Response parameters changed', 'api' => 'DescribeResource'], + ['description' => 'OpenAPI offline', 'api' => 'DescribeServiceCronScaler'], + ['description' => 'OpenAPI offline', 'api' => 'UpdateServiceCronScaler'], + ], + 'createdAt' => '2022-02-24T03:15:31.000Z', + 'description' => '增加定时扩缩容相关接口', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'DescribeResourceDLink'], + ], + 'createdAt' => '2021-12-08T12:01:19.000Z', + 'description' => '增加Accesstoken', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListServices'], + ], + 'createdAt' => '2021-11-22T08:57:10.000Z', + 'description' => '更新api', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateResource'], + ], + 'createdAt' => '2021-11-22T06:34:41.000Z', + 'description' => '去掉多余参数', + ], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResources'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ReleaseService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeVirtualResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceInstanceWorker'], + ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAclPolicy'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeGroupEndpoints'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAppService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeResourceLog'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGateway'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateVirtualResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceAutoScaler'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeGroup'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGatewayIntranetSupportedZone'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateVirtualResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGatewayIntranetLinkedVpcPeer'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CloneService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateGateway'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGatewayIntranetLinkedVpc'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RestartService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeResourceDLink'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateBenchmarkTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceAutoScaler'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceMirror'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteVirtualResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListBenchmarkTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceDLink'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResourceInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMachineSpec'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceCronScaler'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteGatewayIntranetLinkedVpcPeer'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceSignedUrl'], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceLog'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateServiceMirror'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopBenchmarkTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListVirtualResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeGateway'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAclPolicy'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceLabel'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBenchmarkTask'], + ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceInstance'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResource'], + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListServices'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGatewayDomains'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTenantAddons'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceVersion'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListServiceContainers'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateBenchmarkTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceMirror'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceEndpoints'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceInstance'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGatewayIntranetLinkedVpc'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceInstanceDiagnosis'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceAutoScaler'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetachGatewayDomain'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceLog'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceEvent'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListServiceVersions'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceDLink'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteServiceInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceServices'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartBenchmarkTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAppService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGateway'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGroups'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceCronScaler'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListServiceInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CommitService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ReinstallTenantAddon'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateServiceCronScaler'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceSafetyLock'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBenchmarkTaskReport'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceDiagnosis'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteGateway'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceInstanceLabel'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AttachGatewayDomain'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceInstanceLabel'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResourceLog'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DevelopService'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSpotDiscountHistory'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateServiceAutoScaler'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteBenchmarkTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteGatewayIntranetLinkedVpc'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceLabel'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeServiceCronScaler'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAclPolicy'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateServiceMirror'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListGatewayIntranetLinkedVpcPeer'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateGroup'], + ], + ], + 'ram' => [ + 'productCode' => 'PAI', + 'productName' => 'Platform for AI', + 'ramCodes' => ['paiplugin', 'eas', 'pai', 'datasetacc', 'featurestore', 'paidlc', 'paiitag', 'paidesigner', 'paitraining', 'paiartlab', 'paicomponentmanagement'], + 'ramLevel' => 'RESOURCE', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'ListServiceContainers', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListServiceContainers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ListAclPolicy', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListAclPolicy', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'StartService', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:StartService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'MigrateResourceInstance', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'eas:MigrateResourceInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeResourceLog', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeResourceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteResourceLog', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteResourceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateServiceInstance', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'DescribeVirtualResource', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/{#VirtualResourceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateServiceSafetyLock', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceSafetyLock', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'UpdateServiceCronScaler', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceCronScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'CloneService', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CloneService', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListResourceInstanceWorker', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListResourceInstanceWorker', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'StopService', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:StopService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'CreateAppService', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateAppService', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteServiceInstances', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ListServiceVersions', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListServiceVersions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'CommitService', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:CommitService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ListResourceServices', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListResourceServices', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateAclPolicy', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateAclPolicy', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'ListResourceInstances', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListResourceInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateServiceAutoScaler', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceAutoScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ReinstallTenantAddon', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:ReinstallTenantAddon', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteService', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteService', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'DescribeGateway', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeGateway', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateServiceLabel', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceLabel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ListTenantAddons', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListTenantAddons', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceInstanceDiagnosis', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceInstanceDiagnosis', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'CreateBenchmarkTask', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:CreateBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/*'], + ], + ], + ], + [ + 'apiName' => 'DeleteGateway', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteGateway', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'CreateVirtualResource', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/*'], + ], + ], + ], + [ + 'apiName' => 'DeleteAclPolicy', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteAclPolicy', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'CreateGatewayIntranetLinkedVpc', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateGatewayIntranetLinkedVpc', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteGatewayIntranetLinkedVpcPeer', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteGatewayIntranetLinkedVpcPeer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateGateway', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateGateway', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/*'], + ], + ], + ], + [ + 'apiName' => 'ListResources', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/*'], + ], + ], + ], + [ + 'apiName' => 'UpdateGateway', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateGateway', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'CreateServiceCronScaler', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateServiceCronScaler', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceSignedUrl', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceSignedUrl', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListGatewayIntranetLinkedVpcPeer', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListGatewayIntranetLinkedVpcPeer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateResource', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#resourceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateResourceLog', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateResourceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'DetachGatewayDomain', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DetachGatewayDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateServiceMirror', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateServiceMirror', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ListGateway', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListGateway', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateBenchmarkTask', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:UpdateBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], + ], + ], + [ + 'apiName' => 'StartBenchmarkTask', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:StartBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceCronScaler', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceCronScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'UpdateResourceInstanceLabel', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateResourceInstanceLabel', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateAppService', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateAppService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteGatewayIntranetLinkedVpc', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteGatewayIntranetLinkedVpc', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'CreateGatewayIntranetLinkedVpcPeer', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateGatewayIntranetLinkedVpcPeer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateService', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ListConfigs', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListConfigs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteBenchmarkTask', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:DeleteBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteServiceMirror', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceMirror', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'UpdateServiceVersion', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceVersion', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ScaleService', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:ScaleService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateGatewayLabel', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateGatewayLabel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteResourceDLink', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteResourceDLink', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'ListGatewayIntranetLinkedVpc', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListGatewayIntranetLinkedVpc', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateGroup', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceMirror', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceMirror', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'CreateService', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteResourceInstances', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteResourceInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'ResourceInstance', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'AttachGatewayDomain', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:AttachGatewayDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateResourceDLink', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateResourceDLink', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteServiceAutoScaler', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceAutoScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'DevelopService', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:DevelopService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'DeleteServiceCronScaler', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceCronScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'UpdateServiceMirror', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateServiceMirror', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'RestartService', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:RestartService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeResourceDLink', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeResourceDLink', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteVirtualResource', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/{#VirtualResourceId}'], + ], + ], + ], + [ + 'apiName' => 'ListGatewayDomains', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListGatewayDomains', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateResourceInstance', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateResourceInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateVirtualResource', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:UpdateVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/{#VirtualResourceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeBenchmarkTaskReport', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeBenchmarkTaskReport', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], + ], + ], + [ + 'apiName' => 'StopBenchmarkTask', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eas:StopBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceDiagnosis', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceDiagnosis', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceEvent', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceEvent', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceAutoScaler', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceAutoScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'DeleteServiceLabel', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eas:DeleteServiceLabel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ListGroups', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListGroups', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateResource', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/*'], + ], + ], + ], + [ + 'apiName' => 'CreateServiceAutoScaler', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateServiceAutoScaler', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'CreateResourceInstances', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eas:CreateResourceInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'ResourceInstance', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceLog', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ListServiceInstances', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListServiceInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'DeleteResource', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eas:DeleteResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'ListBenchmarkTask', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/*'], + ], + ], + ], + [ + 'apiName' => 'DescribeBenchmarkTask', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeBenchmarkTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeGroup', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeService', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'ListGatewayIntranetSupportedZone', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListGatewayIntranetSupportedZone', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListServices', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:ListServices', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/*'], + ], + ], + ], + [ + 'apiName' => 'ListVirtualResource', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eas:ListVirtualResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/*'], + ], + ], + ], + [ + 'apiName' => 'DescribeResource', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceEndpoints', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceEndpoints', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateServiceInstanceToken', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:CreateServiceInstanceToken', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ], + ], + ], + [ + 'apiName' => 'DescribeServiceRollout', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eas:DescribeServiceRollout', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'PAI', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}'], + ['validationType' => 'always', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ['validationType' => 'always', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ['validationType' => 'always', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/{#VirtualResourceId}'], + ['validationType' => 'always', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/*'], + ['validationType' => 'always', 'resourceType' => 'VirtualResource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:virtualresource/*'], + ['validationType' => 'always', 'resourceType' => 'Gateway', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/*'], + ['validationType' => 'always', 'resourceType' => 'Resource', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/*'], + ['validationType' => 'always', 'resourceType' => 'Service', 'arn' => 'acs:paiplugin:{#regionId}:{#accountId}:service/{#ServiceName}'], + ['validationType' => 'always', 'resourceType' => 'BenchmarkTask', 'arn' => 'acs:eas:{#regionId}:{#accountId}:benchmarktask/{#BenchmarkTaskId}'], + ['validationType' => 'always', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}'], + ['validationType' => 'always', 'resourceType' => 'Group', 'arn' => 'acs:eas:{#regionId}:{#accountId}:group/*'], + ['validationType' => 'always', 'resourceType' => 'ResourceInstance', 'arn' => 'acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}'], + ['validationType' => 'always', 'resourceType' => 'Service', 'arn' => 'acs:eas:{#regionId}:{#accountId}:service/*'], ], ], ]; |
