diff options
Diffstat (limited to 'data/en_us/cloudphone/2020-12-30/api-docs.php')
| -rw-r--r-- | data/en_us/cloudphone/2020-12-30/api-docs.php | 6039 |
1 files changed, 2737 insertions, 3302 deletions
diff --git a/data/en_us/cloudphone/2020-12-30/api-docs.php b/data/en_us/cloudphone/2020-12-30/api-docs.php index 7452802..2a3c298 100644 --- a/data/en_us/cloudphone/2020-12-30/api-docs.php +++ b/data/en_us/cloudphone/2020-12-30/api-docs.php @@ -1,102 +1,43 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'cloudphone', - 'version' => '2020-12-30', - ], + 'info' => ['style' => 'RPC', 'product' => 'cloudphone', 'version' => '2020-12-30'], 'directories' => [ [ - 'id' => 124268, - 'title' => 'Instance', + 'children' => ['ResetInstances', 'UpdateInstanceAttribute', 'ListInstanceTypes', 'ListInstanceVncUrl', 'ListZones'], 'type' => 'directory', - 'children' => [ - 'RunInstances', - 'DeleteInstances', - 'StartInstances', - 'StopInstances', - 'RenewInstances', - 'ResetInstances', - 'RebootInstances', - 'UpdateInstanceAttribute', - 'ListInstances', - 'ListInstanceTypes', - 'ListInstanceVncUrl', - 'ListRegions', - 'ListZones', - ], + 'title' => 'Instances', ], [ - 'id' => 124282, - 'title' => 'Image', + 'children' => ['UpdateImageAttribute', 'ListImageSharePermission'], 'type' => 'directory', - 'children' => [ - 'CreateImage', - 'ImportImage', - 'CopyImage', - 'DeleteImages', - 'UpdateImageAttribute', - 'ListImages', - 'ListImageSharePermission', - ], + 'title' => 'Images', ], [ - 'id' => 124290, - 'title' => 'KeyPair', + 'children' => ['ListKeyPairs'], 'type' => 'directory', - 'children' => [ - 'ImportKeyPair', - 'DeleteKeyPairs', - 'ListKeyPairs', - ], + 'title' => 'Key pairs', ], [ - 'id' => 124294, - 'title' => 'Task', + 'children' => ['InstallApplication', 'UninstallApplication'], 'type' => 'directory', - 'children' => [ - 'CancelTask', - 'ListTasks', - ], + 'title' => 'Command execution', ], [ - 'id' => 124297, - 'title' => 'Command', - 'type' => 'directory', 'children' => [ - 'RunCommand', - 'SendFile', - 'InstallApplication', - 'UninstallApplication', - 'FetchFile', + 'CancelTask', 'CopyImage', 'CreateImage', 'DeleteImages', 'DeleteInstances', 'DeleteKeyPairs', 'FetchFile', 'ImportImage', 'ImportKeyPair', 'ListImages', 'ListInstances', 'ListRegions', 'ListTagKeys', 'ListTagResources', 'ListTagValues', 'ListTasks', 'RebootInstances', 'RenewInstances', 'RunCommand', 'RunInstances', + 'SendFile', 'StartInstances', 'StopInstances', 'TagResources', 'UntagResources', ], - ], - [ - 'id' => 164812, - 'title' => 'Tag', + 'title' => 'Others', 'type' => 'directory', - 'children' => [ - 'TagResources', - 'ListTagResources', - 'UntagResources', - 'ListTagKeys', - 'ListTagValues', - ], ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'RunInstances' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CancelTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -107,242 +48,277 @@ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'InstanceName', + 'name' => 'TaskId', 'in' => 'query', + 'schema' => ['description' => 'The task ID.', 'type' => 'string', 'required' => true, 'example' => 't-bp1hvgwromzv32iq****', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The name of the ECP instance. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\\_), periods (.), and hyphens (-). The default value of this parameter is the value of the InstanceId parameter.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'instance', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83A', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83A\\"\\n}","type":"json"}]', + 'title' => 'Cancel a task', + 'summary' => 'Cancels a task that is currently being executed on a cloud phone.', + 'description' => 'When calling this operation, note the following:'."\n" + .'- If the task is already completed, the operation fails and an error message is returned.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:CancelTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + ], + 'CopyImage' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'systemTags' => [], + 'parameters' => [ [ - 'name' => 'Description', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The description of the ECP instance. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cloudphone instance', - ], + 'schema' => ['description' => 'The source region from which the image is copied.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'InstanceType', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The specifications of the ECP instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'ecp.ce.large', - ], + 'schema' => ['description' => 'The source region from which the image is copied.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'ImageId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the image.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cpm-xxxx', - ], + 'schema' => ['description' => 'The ID of the custom image to be copied.', 'type' => 'string', 'required' => true, 'example' => 'cpm-xxxxxxxx', 'title' => ''], ], [ - 'name' => 'SecurityGroupId', + 'name' => 'DestinationRegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the security group that the ECP instance uses. The security group is the same as that of the Elastic Compute Service (ECS) instance that you use.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'sg-xxxxx', - ], + 'schema' => ['description' => 'The destination region to which the image is copied.', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing', 'title' => ''], ], [ - 'name' => 'VSwitchId', + 'name' => 'ImageName', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the vSwitch.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'vsw-xxxx', - ], + 'schema' => ['description' => 'The name of the image. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter or a Chinese character and cannot start with http:// or https://.', 'type' => 'string', 'required' => false, 'example' => 'myCustomImage', 'title' => ''], ], [ - 'name' => 'EipBandwidth', + 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'description' => 'The bandwidth of the elastic IP address (EIP). Valid values: 1 to 200. If you specify this parameter, an ECP instance that uses an EIP with specified bandwidth is automatically created and associated with the ECP instance. If the ECP instance is released, the EIP is also released.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '2', - ], + 'schema' => ['description' => 'The description of the image. The description must be 2 to 256 characters in length and cannot start with http:// or https://.', 'type' => 'string', 'required' => false, 'example' => 'testDescription', 'title' => ''], ], [ - 'name' => 'Resolution', + 'name' => 'ClientToken', 'in' => 'query', + 'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but make sure that the token is unique among different requests. The value of ClientToken can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.', 'type' => 'string', 'required' => false, 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The resolution that you want to select for the ECP instance. You can query the resolutions that are supported by the current instance by calling the DescribeInstanceTypes operation and select an appropriate resolution.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1920*1080', + 'type' => 'object', + 'properties' => [ + 'ImageId' => ['description' => 'The ID of the new cloud phone image.', 'type' => 'string', 'example' => 'cpm-xxxxxxyy', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'Amount', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of ECS instances that you want to create. Valid values: 1 to 100.'."\n" - ."\n" - .'Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', + ], + 'errorCodes' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ImageId\\": \\"cpm-xxxxxxyy\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'Copy a custom image', + 'summary' => 'Copies a custom image from the current region to a destination region.', + 'description' => 'When you call this operation, take note of the following items:'."\n" + .'- The custom image must be in the Available state.'."\n" + .'- The source custom image must belong to your account. Cross-account image copying is not supported.'."\n" + .'- Only one image copy task can run at a time in a region. Other tasks are queued and executed sequentially after the previous task is completed.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:CopyImage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#ImageId}'], + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/*'], + ], ], ], + ], + ], + 'CreateImage' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'KeyPairName', + 'AK' => [], + ], + ], + 'systemTags' => ['operationType' => 'create'], + 'parameters' => [ + [ + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the key pair that you want to use to connect to the instance. You can call the ImportKeyPair operation to import a key pair for cloud phones.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'keypair', - ], + 'schema' => ['description' => 'The region ID of the cloud phone instance.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ClientToken', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'schema' => ['description' => 'The region ID of the cloud phone instance.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ChargeType', + 'name' => 'InstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The billing method of the ECP instance. Valid values:'."\n" - ."\n" - .'* PrePaid: subscription'."\n" - .'* PostPaid (default): pay-as-you-go'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'PostPaid', - ], + 'schema' => ['description' => 'The instance ID of the cloud phone.', 'type' => 'string', 'required' => false, 'example' => 'cp-xxxxxxxx', 'title' => ''], ], [ - 'name' => 'PeriodUnit', + 'name' => 'ImageName', 'in' => 'query', - 'schema' => [ - 'description' => 'The unit of the subscription duration. Valid values:'."\n" - ."\n" - .'* Year'."\n" - .'* Month (default)'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Month', - ], + 'schema' => ['description' => 'The name of the image. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter or a Chinese character and cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'myCustomImage', 'title' => ''], ], [ - 'name' => 'AutoRenew', + 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to enable the auto-renewal feature. This parameter takes effect only if you set InstanceChargeType to PrePaid. Valid values:'."\n" - ."\n" - .'* true'."\n" - .'* false (default)'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => 'The description of the image. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'testDescription', 'title' => ''], ], [ - 'name' => 'AutoPay', + 'name' => 'ClientToken', 'in' => 'query', + 'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but make sure that the token is unique among different requests. The value of ClientToken can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.', 'type' => 'string', 'required' => false, 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'Specifies whether to enable the auto-payment feature. Default value: true.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', + 'type' => 'object', + 'properties' => [ + 'ImageId' => ['description' => 'The ID of the custom image.', 'type' => 'string', 'example' => 'cpm-xxxxxxxx', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'QuotaExceed', 'errorMessage' => 'Image quota exceed.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'Create a custom image', + 'summary' => 'Creates a custom image for a cloud phone.', + 'description' => 'When you call this operation, take note of the following items:'."\n" + .'- To create a custom image, use a cloud phone instance as the template. You only need to specify the instance ID (InstanceId). The instance must be in the Running or Stopped state.'."\n" + .'- Wait until the image enters the Available state before you use the image resource.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2022-03-07T03:27:50.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'cloudphone:CreateImage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/*'], + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], ], ], + ], + ], + 'DeleteImages' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'Period', + 'AK' => [], + ], + ], + 'systemTags' => ['operationType' => 'delete'], + 'parameters' => [ + [ + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The subscription duration. Default value: 1.'."\n" - ."\n" - .'* Valid values if you set PeriodUnit to Month: 1, 2, 3, and 6.'."\n" - .'* Valid values if you set PeriodUnit to Year: 1, 2, 3, 4, and 5.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'Tag', + 'name' => 'ImageId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'title' => '标签列表,最多包含20个子项', - 'description' => 'The tags of the ECP instance.'."\n", + 'description' => 'The list of image IDs. A maximum of 100 IDs are supported.', 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '标签键', - 'description' => 'The tag key of the ECP instance. Valid values of N: 1 to 20.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestKey', - ], - 'Value' => [ - 'title' => '标签值', - 'description' => 'The tag value of the ECP instance. Valid values of N: 1 to 20.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestValue', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, + 'items' => ['description' => 'The image ID.', 'type' => 'string', 'required' => false, 'example' => 'cpm-xxxxxxxx', 'title' => ''], + 'required' => true, + 'example' => 'cpm-xxxxxxxx', + 'maxItems' => 101, + 'title' => '', ], ], [ - 'name' => 'PrivateIpAddress', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The private IP address of the cloud phone. When you configure a private IP address for an ECP instance, you must select an idle CIDR block from the CIDR blocks of the vSwitch (VSwitchId). When you specify this parameter, take note of the following items: After you specify the PrivateIpAddress parameter, you must set Amount to 1, which indicates that a cloud phone with a specific private IP address is created.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '192.168.157.224', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'Force', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to force delete the image. Default value: false.', 'type' => 'boolean', 'required' => false, 'default' => 'false', 'example' => 'false', 'title' => ''], ], ], 'responses' => [ @@ -350,134 +326,110 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'OrderId' => [ - 'description' => 'The ID of the order.'."\n", - 'type' => 'string', - 'example' => '9611111323245', - ], - 'TradePrice' => [ - 'description' => 'The price of the ECP resource.'."\n", - 'type' => 'number', - 'format' => 'float', - 'example' => '133.32', - ], - 'InstanceIds' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'ImageResponses' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'InstanceId' => [ - 'description' => 'The IDs of the ECP instances.'."\n", + 'ImageResponse' => [ + 'description' => 'The list of image deletion statuses.', 'type' => 'array', 'items' => [ - 'description' => 'The IDs of the ECP instances.'."\n", - 'type' => 'string', - 'example' => 'cp-xxxxx', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => 'The response code for the image deletion.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The response message for the image deletion.', 'type' => 'string', 'example' => 'Success.', 'title' => ''], + 'ImageId' => ['description' => 'The ID of the image that was requested to be deleted.', 'type' => 'string', 'example' => 'cpm-xxxxxxxx', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [ - 403 => [ - [ - 'errorCode' => 'QuotaExceed', - 'errorMessage' => 'Instance quota exceed.', - ], - ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"OrderId\\": \\"9611111323245\\",\\n \\"TradePrice\\": 133.32,\\n \\"InstanceIds\\": {\\n \\"InstanceId\\": [\\n \\"cp-xxxxx\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'RunInstances', - 'summary' => 'Creates and starts multiple Elastic Cloud Phone (ECP) instances at a time.', - 'description' => 'Preparations:'."\n" - ."\n" - .'* The real-name verification is complete. For more information, see [Real-name verification](~~428525~~).'."\n" - ."\n" - .'Precautions:'."\n" - ."\n" - .'* You can create up to 100 ECP instances at a time.'."\n" - .'* You can call this operation to create and start ECP instances.'."\n" - .'* If an ECP instance fails to be created due to force majeure factors, such as insufficient inventory, the ECP instance is automatically rolled back and released.'."\n", + 'errorCodes' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"ImageResponses\\": {\\n \\"ImageResponse\\": [\\n {\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Success.\\",\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Batch delete custom images', + 'summary' => 'Batch deletes custom images.', + 'description' => '## Operation description'."\n" + .'When you invoke this operation, take note of the following items:'."\n" + .'- If an image has been shared with other users, cancel all sharing before you delete the image.'."\n" + .'- If an image is being used by other instances, you must specify force delete.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'cloudphone:DeleteImages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#imageId}'], + ], + ], + ], + ], ], 'DeleteInstances' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'delete', - ], + 'systemTags' => ['operationType' => 'delete'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region to which the cloud phone instances belong.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'InstanceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The instance IDs. Valid values of N: 1 to 100.'."\n", + 'description' => 'The instance ID of the cloud phone. Valid values of N: 1 to 100.', 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cp-xxxxxxxx', - ], + 'items' => ['description' => 'The instance ID of the cloud phone. Valid values of N: 1 to 100.', 'type' => 'string', 'required' => false, 'example' => 'cp-xxxxxxxx', 'title' => ''], 'required' => true, 'maxItems' => 101, - 'example' => ' ', + 'title' => '', + 'example' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region to which the cloud phone instances belong.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'Force', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to forcefully release the instance if it is in the Running status. Valid values:'."\n" - ."\n" - .'* true. If you set the Force parameter to true, temporary data in the memory and storage of the instance is erased and cannot be restored after you call the operation, which is similar to the effect of a power-off action.'."\n" - .'* false (default)'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => 'Specifies whether to forcibly release cloud phone instances that are in the Running state. Default value: false.'."\n" + ."\n" + .'- true: Forcibly releases instances that are in the Running state. A forcible release is equivalent to a power-off. All in-memory and temporary storage data of the instance is erased and cannot be recovered.'."\n" + .'- false (default): Releases instances in the normal way. The instances must be in the Stopped state.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], ], 'responses' => [ @@ -485,76 +437,69 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', - 'title' => 'DeleteInstances', - 'summary' => 'Deletes multiple Elastic Cloud Phone (ECP) instances at a time.', - ], - 'StartInstances' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'Delete cloud phone instances in batches', + 'summary' => 'Deletes cloud phone instances in batches.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'cloudphone:DeleteInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'DeleteKeyPairs' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'update', - ], + 'systemTags' => ['operationType' => 'delete'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'InstanceId', + 'name' => 'KeyPairName', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The instance IDs.'."\n", + 'description' => 'Cloud phone key pair name. The value can be a JSON array composed of multiple key pair names, supporting up to 100 SSH key pairs. Names are separated by commas (,).', 'type' => 'array', - 'items' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-bp14g2vueqq8aef6fx0c', - ], + 'items' => ['type' => 'string', 'description' => '', 'required' => false, 'example' => 'testKey', 'title' => ''], 'required' => true, + 'example' => '[keyPairName1, keyPairNam2, keyPairName3]', 'maxItems' => 101, - 'example' => 'cp-xxxxx', + 'title' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -562,89 +507,83 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', - 'title' => 'StartInstances', - 'summary' => 'Starts multiple Elastic Cloud Phone (ECP) instances at a time.', - ], - 'StopInstances' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'Delete specified cloud phone key pairs', + 'summary' => 'Delete one or more cloud phone key pairs.', + 'description' => '- After deleting cloud phone key pairs, note the following:'."\n" + .' - The deleted cloud phone key pairs cannot be queried through ListKeyPairs.'."\n" + .' - If cloud phone instances are already bound to the key pair, Alibaba Cloud will no longer retain the key pair for you, but the instances can continue to use the key pair normally.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'cloudphone:DeleteKeyPairs', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/{#KeyPairName}'], + ], + ], + ], ], + ], + 'FetchFile' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'update', - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'InstanceId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The instance IDs. Valid values of N: 1 to 100.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cp-xxxx', - ], - 'required' => true, - 'maxItems' => 101, - 'example' => 'cp-xxxx', - ], + 'schema' => ['description' => 'The instance ID of the instance on which to execute the command. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => true, 'example' => 'cp-acfmxazb4p***', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'OssBucket', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The OSS bucket where the file to be sent is stored.'."\n" + ."\n" + .'> Before importing an APK file to the OSS bucket for the first time, add a RAM authorization policy. Otherwise, the NoSetRoletoECSServiceAcount error is returned.', 'type' => 'string', 'required' => true, 'example' => 'cloudphone-fvt-cn-hangzhou', 'title' => ''], ], [ - 'name' => 'Force', + 'name' => 'OssObject', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to forcefully stop the instance. Valid values:'."\n" - ."\n" - .'* true. If you set this parameter to true, cache data that is not written to storage in the instance will be lost after you call this operation, which is similar to the effect of a power-off action.'."\n" - .'* false (default)'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => 'The name of the object to be saved in OSS.', 'type' => 'string', 'required' => true, 'example' => 'test.txt', 'title' => ''], + ], + [ + 'name' => 'Path', + 'in' => 'query', + 'schema' => ['description' => 'The path of the file to be saved on the cloud phone.', 'type' => 'string', 'required' => true, 'example' => '/sdcard/test.txt', 'title' => ''], ], ], 'responses' => [ @@ -652,119 +591,97 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => 't-bp67acfmxazb4p****', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', - 'title' => 'StopInstances', - 'summary' => 'You can call this operation to stop multiple Elastic Cloud Phone (ECP) instances at a time.', - ], - 'RenewInstances' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TaskId\\": \\"t-bp67acfmxazb4p****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'Pull a file from a cloud phone and save it to OSS', + 'summary' => 'Pulls a file from a cloud phone and saves it to Object Storage Service (OSS).', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:FetchFile', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'ImportImage' => [ + 'summary' => 'Imports a local image to Cloud Phone as a custom image in the specified region.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [], + 'operationType' => 'write', + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '116009', + 'abilityTreeNodes' => ['FEATUREcloudphoneO7T570'], + 'autoTest' => false, + 'notSupportAutoTestReason' => '客户专用接口,不支持自动化测试', + ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region to which the image is imported.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'InstanceId', + 'name' => 'RegionId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The IDs of the instances that you want to renew. You can renew up to 20 instances at a time.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The ID of the instance that you want to renew.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-xxxx', - ], - 'required' => true, - 'example' => 'cp-xxxx', - 'maxItems' => 101, - ], + 'schema' => ['description' => 'The region to which the image is imported.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'OssBucket', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The OSS bucket where the image file is stored.', 'type' => 'string', 'required' => true, 'example' => 'myOssBucket', 'title' => ''], ], [ - 'name' => 'Period', + 'name' => 'OssObject', 'in' => 'query', - 'schema' => [ - 'description' => 'The renewal period. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The key of the OSS object where the image file is stored.', 'type' => 'string', 'required' => true, 'example' => 'myOssKeyForImage.raw', 'title' => ''], ], [ - 'name' => 'PeriodUnit', + 'name' => 'ImageName', 'in' => 'query', - 'schema' => [ - 'description' => 'The unit of the renewal period.'."\n" - ."\n" - .'* Valid values if you set this parameter to Year: 1, 2, 3, 4, and 5.'."\n" - .'* Valid values if you set this parameter to Month (default): 1, 2, 3, and 6.'."\n" - .'* Valid values if you set this parameter to Hour: 1.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Month', - ], + 'schema' => ['description' => 'The image name. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter or a Chinese character and cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'myCustomImage', 'title' => ''], ], [ - 'name' => 'AutoPay', + 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to enable auto-payment. Default value: true.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => 'The description of the image. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'testDescription', 'title' => ''], + ], + [ + 'name' => 'Platform', + 'in' => 'query', + 'schema' => ['description' => 'The operating system distribution. Valid values:'."\n" + .'- Android 9.0.', 'type' => 'string', 'required' => false, 'example' => 'Android 9.0', 'title' => ''], ], [ 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).', 'type' => 'string', 'required' => false, 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], ], 'responses' => [ @@ -772,54 +689,47 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'OrderId' => [ - 'description' => 'The order ID.'."\n", - 'type' => 'string', - 'example' => '10000', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'InstanceIds' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'InstanceId' => [ - 'description' => 'The IDs of the instances that are renewed.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => 'cp-xxxx', - ], - ], - ], - ], + 'ImageId' => ['description' => 'The ID of the imported Cloud Phone image.', 'type' => 'string', 'example' => 'cpm-xxxxxxxx', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"OrderId\\": \\"10000\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"InstanceIds\\": {\\n \\"InstanceId\\": [\\n \\"cp-xxxx\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n<OrderId>10000</OrderId>\\n<InstanceIds>\\n <InstanceId>[\\"cp-xxxxx\\",\\"cp-xxxxx\\"]</InstanceId>\\n</InstanceIds>","errorExample":""}]', - 'title' => 'RenewInstances', - 'summary' => 'Renews multiple Elastic Cloud Phone (ECP) instances at a time.', - 'description' => '* You can call the operation to renew multiple ECP instances at a time.'."\n", + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'Import a custom image', + 'description' => 'When you invoke this operation, take note of the following items:'."\n" + .'- Upload the image file to Object Storage Service (OSS) in advance. For more information about the steps, see [Upload files](~~31886~~).'."\n" + .'- When you import an image for the first time, grant Cloud Phone the permissions to access your OSS bucket by using RAM authorization. Click [Authorize](https://ram.console.aliyun.com/role/authorization?request=%7B%22Services%22%3A%5B%7B%22Service%22%3A%22CloudPhone%22%2C%22Roles%22%3A%5B%7B%22RoleName%22%3A%22AliyunCloudPhoneDefaultRole%22%2C%22TemplateId%22%3A%22AliyunCloudPhoneDefaultRole%22%7D%5D%7D%5D%2C%22ReturnUrl%22%3A%22https%3A%2F%2Fcloudphone.console.aliyun.com%2F%23%2Finstances%22%7D) to complete the authorization.'."\n" + .'- The region to which the image is imported must be the same as the region of the OSS bucket where the image file is stored.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ResetInstances' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2024-07-29T11:40:44.000Z', 'description' => 'Error codes changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'cloudphone:ImportImage', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + ], + 'ImportKeyPair' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -830,50 +740,22 @@ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'InstanceId', + 'name' => 'RegionId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The instance IDs. Valid values of N: 1 to 100.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-xxxxxx', - ], - 'required' => true, - 'example' => 'cp-xxxxxx', - 'maxItems' => 101, - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'KeyPairName', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The name of the key pair. The name must be unique. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter. It cannot start with http:// or https://.', 'type' => 'string', 'required' => true, 'example' => 'testKeyPairName', 'title' => ''], ], [ - 'name' => 'ImageId', + 'name' => 'PublicKeyBody', 'in' => 'query', - 'schema' => [ - 'description' => 'The image ID of the instance. If you do not specify this parameter, the image of the current instance is used to reset the instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cpm-xxxxxx', - ], + 'schema' => ['description' => 'The public key content of the key pair.', 'type' => 'string', 'required' => true, 'example' => 'ABC1234567', 'title' => ''], ], ], 'responses' => [ @@ -881,39 +763,49 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'KeyPairName' => ['description' => 'The name of the key pair.', 'type' => 'string', 'example' => 'testKeyPairName', 'title' => ''], + 'KeyPairFingerPrint' => ['description' => 'The fingerprint of the key pair. The public key fingerprint format is defined in RFC 4716 and uses the MD5 message digest algorithm.', 'type' => 'string', 'example' => '89:f0:ba:62:ac:b8:aa:e1:61:5e:fd:81:69:86:6d:6b:f0:c0:5a:**', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>","errorExample":""}]', - 'title' => 'ResetInstances', - 'summary' => 'Resets Elastic Cloud Phone (ECP) instances to their initial status when they are created.', - 'description' => '## [](#)Usage notes'."\n" - ."\n" + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"KeyPairName\\": \\"testKeyPairName\\",\\n \\"KeyPairFingerPrint\\": \\"89:f0:ba:62:ac:b8:aa:e1:61:5e:fd:81:69:86:6d:6b:f0:c0:5a:**\\"\\n}","type":"json"}]', + 'title' => 'Import a cloud phone key pair', + 'summary' => 'Imports the public key portion of an RSA key pair generated by another tool.', + 'description' => 'Operation description'."\n" .'When you call this operation, take note of the following items:'."\n" ."\n" - .'* This operation is valid only for ECP instances that are in the Stopped state.'."\n" - .'* If the images based on which the instances are created are deleted, the instances cannot be reset.'."\n", + .'- You can have a maximum of 500 key pairs in each region.'."\n" + .'- The imported public key must be the public key of a key pair generated by ADB.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'RebootInstances' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:ImportKeyPair', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/*'], + ], + ], + ], ], + ], + 'InstallApplication' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -924,53 +816,38 @@ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'InstanceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The instance IDs.'."\n", + 'description' => 'The instance ID of the instance on which to execute the command. Valid values of N: 1 to 10.', 'type' => 'array', - 'items' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-uf6dzwc1h1yaovov****', - ], - 'required' => true, - 'maxItems' => 101, - 'example' => 'cp-xxxxxx', + 'items' => ['description' => 'The instance ID of the instance on which to execute the command. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => false, 'example' => 'cp-uf65l0q3voetmjazif25', 'title' => ''], + 'required' => false, + 'maxItems' => 51, + 'title' => '', + 'example' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'Force', + 'name' => 'OssBucket', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to forcefully restart the instance. Valid values:'."\n" - ."\n" - .'* true If you set this parameter to true, cache data that is not written to storage in the instance will be lost after you call this operation, which is similar to the effect of a power-off action.'."\n" - .'* false (default)'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => 'The OSS bucket where the application file is stored.'."\n" + ."\n" + .'> Before importing an application file to the OSS bucket for the first time, add a RAM authorization policy. Otherwise, the NoSetRoletoECSServiceAcount error is returned.', 'type' => 'string', 'required' => true, 'example' => 'phoneapplication', 'title' => ''], + ], + [ + 'name' => 'OssObject', + 'in' => 'query', + 'schema' => ['description' => 'The name (key) of the OSS object where the application file is stored.', 'type' => 'string', 'required' => true, 'example' => 'test.apk', 'title' => ''], ], ], 'responses' => [ @@ -978,151 +855,76 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '55C15B1C-D507-45F0-B490-69D6E0F113C6', 'title' => ''], + 'TaskId' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'TaskId' => [ + 'description' => 'The task ID.', + 'type' => 'array', + 'items' => ['description' => 'The task ID.', 'type' => 'string', 'example' => 't-bp67acfmxazb4p****', 'title' => ''], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', - 'title' => 'RebootInstances', - 'summary' => 'Restarts an Elastic Cloud Phone (ECP) instance.', - ], - 'UpdateInstanceAttribute' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"55C15B1C-D507-45F0-B490-69D6E0F113C6\\",\\n \\"TaskId\\": {\\n \\"TaskId\\": [\\n \\"t-bp67acfmxazb4p****\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Install an application on a cloud phone', + 'summary' => 'Installs an application on a cloud phone.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:InstallApplication', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'ListImageSharePermission' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'update', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'InstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cp-bp67acfmxazb4p***', - ], - ], - [ - 'name' => 'InstanceName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance name. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. The name can contain letters, digits, colons (:), underscores (\\_), and hyphens (-).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'myInstanceName', - ], - ], - [ - 'name' => 'KeyPairName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the key pair that is used to connect to the instance. To improve the security of an instance, we recommend that you use a key pair to connect to the instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'myKeyPairName', - ], - ], - [ - 'name' => 'Description', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance description. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'myDescription', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'VncPassword', - 'in' => 'query', - 'schema' => [ - 'description' => 'The VNC password of the instance. The password must be six characters in length and can contain only uppercase letters, lowercase letters, and digits.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Cp1234', - ], - ], - [ - 'name' => 'Resolution', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance resolution.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1920*1080', - ], - ], - [ - 'name' => 'Tag', + 'name' => 'ImageId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'title' => '标签列表,最多包含20个子项', - 'description' => 'Details of tags.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The tags of the ECP instance.'."\n", - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '标签键', - 'description' => 'The tag key of the instance. Valid values of N: 1 to 20.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestKey', - ], - 'Value' => [ - 'title' => '标签值', - 'description' => 'The tag value of the instance. Valid values of N: 1 to 20.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestValue', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => 'The ID of the newly imported cloud phone image.', 'type' => 'string', 'required' => true, 'example' => 'cpm-bp1g8jvdu1v073wt9urx', 'title' => ''], ], ], 'responses' => [ @@ -1130,254 +932,139 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => 'FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F6037E25-FE1F-5423-A4BC-08BE09B81D16', 'title' => ''], + 'Accounts' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Account' => [ + 'description' => 'The list of user IDs.', + 'type' => 'array', + 'items' => [ + 'description' => 'The list of user IDs.', + 'type' => 'object', + 'properties' => [ + 'AliyunId' => ['description' => 'The user ID.', 'type' => 'string', 'example' => '1765205448******', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC</RequestId>","errorExample":""}]', - 'title' => 'UpdateInstanceAttribute', - 'summary' => 'Modifies an attribute of an Elastic Cloud Phone (ECP) instance.', - 'description' => 'You can call this operation to modify the name, key pair, Virtual Network Computing (VNC) password, and resolution of an ECP instance. Take note that the modified key pair and resolution takes effect the next time you restart the instance.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListInstances' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'errorCodes' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F6037E25-FE1F-5423-A4BC-08BE09B81D16\\",\\n \\"Accounts\\": {\\n \\"Account\\": [\\n {\\n \\"AliyunId\\": \\"1765205448******\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Query image sharing user list', + 'summary' => 'Queries the list of users with whom a custom image has been shared.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListImageSharePermission', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#imageId}'], + ], + ], + ], ], + ], + 'ListImages' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'InstanceId', + 'name' => 'ImageId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The instance IDs. Valid values of N: 1 to 100.'."\n", + 'description' => 'The image IDs. Valid values of N: 1 to 100.', 'type' => 'array', - 'items' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-xxxxxxxxxx', - ], + 'items' => ['description' => 'The image ID.', 'type' => 'string', 'required' => false, 'example' => 'cpm-xxxxxxxx', 'title' => ''], 'required' => false, - 'example' => 'cp-xxxxxxxxxx', - 'maxItems' => 101, + 'maxItems' => 100, + 'title' => '', + 'example' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'InstanceName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance name.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'phone', - ], - ], - [ - 'name' => 'Status', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance status. Valid values:'."\n" - ."\n" - .'* Pending: The instance is being created.'."\n" - .'* Running: The instance is running.'."\n" - .'* Starting: The instance is being started.'."\n" - .'* Stopping: The instance is being stopped.'."\n" - .'* Stopped: The instance is stopped.'."\n" - .'* Expired: The instance has expired.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Running', - ], - ], - [ - 'name' => 'KeyPairName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The key pair name. The name must be globally unique. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (\\_), and hyphens (-).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'testKeyPairName', - ], - ], - [ - 'name' => 'NextToken', - 'in' => 'query', - 'schema' => [ - 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ADBAAdDWBF2****', - ], - ], - [ - 'name' => 'MaxResults', - 'in' => 'query', - 'schema' => [ - 'description' => 'The maximum number of entries returned on each page. Valid values: 1 to 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '50', - ], - ], - [ - 'name' => 'ZoneId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the zone where the instance resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou-i', - ], - ], - [ - 'name' => 'Resolution', + 'name' => 'ImageName', 'in' => 'query', - 'schema' => [ - 'description' => 'The instance resolution.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1920*1080', - ], + 'schema' => ['description' => 'The image name. The name must be 2 to 128 characters in length. It must start with a letter or a Chinese character and cannot start with `http://` or `https://`. It can contain digits, colons (:), underscores (_), or hyphens (-).', 'type' => 'string', 'required' => false, 'example' => 'testImageName', 'title' => ''], ], [ - 'name' => 'ChargeType', + 'name' => 'ImageCategory', 'in' => 'query', 'schema' => [ - 'description' => 'The billing method. Valid values:'."\n" - ."\n" - .'* PrePaid: subscription'."\n" - .'* PostPaid: pay-as-you-go'."\n", + 'description' => 'The source of the image. Valid values:'."\n" + .'- system: a public image provided by Alibaba Cloud.'."\n" + .'- self: a custom image that you created.'."\n" + .'- others: an image shared to you by another Alibaba Cloud user.', + 'enumValueTitles' => [], 'type' => 'string', 'required' => false, - 'example' => 'PostPaid', + 'example' => 'system', + 'title' => '', ], ], [ 'name' => 'InstanceType', 'in' => 'query', - 'schema' => [ - 'description' => 'The instance type.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ecp.ce.large', - ], + 'schema' => ['description' => 'The instance type.', 'type' => 'string', 'required' => false, 'example' => 'ecp.ce.large', 'title' => ''], ], [ - 'name' => 'ImageId', + 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'description' => 'The image ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cpm-xxxxxxxxx', - ], + 'schema' => ['description' => 'The status of the image to query. Valid values:'."\n" + .'- Waiting: The image is waiting in the task queue.'."\n" + .'- Creating: The image is being created.'."\n" + .'- Copying: The image is being copied.'."\n" + .'- Importing: The image is being imported.'."\n" + .'- Available (default): The image is available for use.'."\n" + .'- CreateFailed: The image failed to be created.', 'type' => 'string', 'required' => false, 'default' => 'Available', 'example' => 'Available', 'title' => ''], ], [ - 'name' => 'ShowWebRtcToken', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether webRtcToken is returned in the query result.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => 'The pagination token. Set the value to the NextToken value returned in the previous API call. You do not need to set this parameter for the first request.', 'type' => 'string', 'required' => false, 'example' => 'ADBAAdDWBF2****', 'title' => ''], ], [ - 'name' => 'Tag', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'title' => '标签列表,最多包含20个子项', - 'description' => 'The instances that you want to filter by using a specified tag.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The tags of the ECP instance.'."\n", - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '标签键', - 'description' => 'The tag key of the instance. Valid values of N: 1 to 20.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestKey', - ], - 'Value' => [ - 'title' => '标签值', - 'description' => 'The tag value of the instance. Valid values of N: 1 to 20.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestValue', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], - ], - [ - 'name' => 'Filter', + 'name' => 'MaxResults', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], - ], - ], - 'required' => false, - 'maxItems' => 10, - ], + 'schema' => ['description' => 'The maximum number of entries to return. Valid values: 1 to 100.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '50', 'example' => '50', 'title' => ''], ], ], 'responses' => [ @@ -1385,233 +1072,83 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results.'."\n", - 'type' => 'string', - 'example' => 'ADBAAdDWBF2****', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'TotalCount' => [ - 'description' => 'The total number of entries that is returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'MaxResults' => [ - 'description' => 'The maximum number of entries returned on each page. Valid values: 1 to 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], - 'Instances' => [ + 'NextToken' => ['description' => 'The pagination token for the next page.', 'type' => 'string', 'example' => 'ADBAAdDWBF2****', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of images.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'MaxResults' => ['description' => 'The maximum number of entries to return. Valid values: 1 to 100.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''], + 'RegionId' => ['description' => 'The region.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + 'Images' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'Instance' => [ - 'description' => 'Details of the instances.'."\n", + 'Image' => [ + 'description' => 'The list of images.', 'type' => 'array', 'items' => [ - 'description' => 'The list of returned instances.', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => 'The instance state. Valid values:'."\n" - ."\n" - .'* Pending: The instance is being created.'."\n" - .'* Running: The instance is running.'."\n" - .'* Starting: The instance is being started.'."\n" - .'* Stopping: The instance is being stopped.'."\n" - .'* Stopped: The instance is stopped.'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - 'CreationTime' => [ - 'description' => 'The time when the image was created. The time follows the ISO 8601 standard.'."\n", - 'type' => 'string', - 'example' => '2021-01-01T01:07:58Z', - ], - 'KeyPairName' => [ - 'description' => 'The name of the key pair for the instance.'."\n", - 'type' => 'string', - 'example' => 'testKeyPairName', - ], - 'SecurityGroupId' => [ - 'description' => 'The ID of the security group that the instance uses. The security group is the same as that of the Elastic Compute Service (ECS) instance that you use.'."\n", - 'type' => 'string', - 'example' => 'sg-xxxxx', - ], - 'AutoRenew' => [ - 'description' => 'Indicates whether auto-renewal is enabled. This parameter takes effect only for subscription instances.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'ChargeType' => [ - 'description' => 'The billing method of the instance.'."\n", - 'type' => 'string', - 'example' => 'PostPaid', - ], - 'OsName' => [ - 'description' => 'The display name of the OS in Chinese.'."\n", - 'type' => 'string', - 'example' => 'Android 9.0', - ], - 'InstanceId' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => 'cp-xxxxxxxxxxx', - ], - 'InstanceType' => [ - 'description' => 'The instance type.'."\n", - 'type' => 'string', - 'example' => 'ecp.ce.large', - ], - 'RegionId' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'Description' => [ - 'description' => 'The instance description.'."\n", - 'type' => 'string', - 'example' => 'testDescription', - ], - 'ExpiredTime' => [ - 'description' => 'The time when the subscription instance expires.'."\n", - 'type' => 'string', - 'example' => '2021-12-21 22:00:00', - ], - 'InstanceName' => [ - 'description' => 'The instance name.'."\n", - 'type' => 'string', - 'example' => 'testInstanceName', - ], - 'ZoneId' => [ - 'description' => 'The zone ID.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-i', - ], - 'Resolution' => [ - 'description' => 'The resolution of the instance.'."\n", - 'type' => 'string', - 'example' => '1920*1080', - ], - 'ImageId' => [ - 'description' => 'The image ID.'."\n", - 'type' => 'string', - 'example' => 'cpm-xxxxxxxx', - ], - 'OsNameEn' => [ - 'description' => 'The display name of the OS in English.'."\n", - 'type' => 'string', - 'example' => 'Android 9.0', - ], - 'VpcAttributes' => [ - 'description' => 'The information about the virtual private cloud (VPC) in which the instance is deployed.'."\n", - 'type' => 'object', - 'properties' => [ - 'PrivateIpAddress' => [ - 'description' => 'The private IP address.'."\n", - 'type' => 'string', - 'example' => '192.168.0.85', - ], - 'VSwitchId' => [ - 'description' => 'The vSwitch ID.'."\n", - 'type' => 'string', - 'example' => 'vsw-bp1kbwqxxxxx', - ], - ], - ], - 'EipAddress' => [ - 'description' => 'The information about the elastic IP address (EIP) of the instance.'."\n", - 'type' => 'object', - 'properties' => [ - 'InternetChargeType' => [ - 'description' => 'The billing method of the EIP.'."\n", - 'type' => 'string', - 'example' => 'PayByTraffic', - ], - 'IpAddress' => [ - 'description' => 'The EIP.'."\n", - 'type' => 'string', - 'example' => '120.55.XX.XX', - ], - 'Bandwidth' => [ - 'description' => 'The bandwidth of the EIP.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'AllocationId' => [ - 'description' => 'The ID of the EIP that is used by the instance.'."\n", - 'type' => 'string', - 'example' => 'eip-bp1vctqgcoi6i9nxxxxxx', - ], - ], - ], - 'WebRtcToken' => [ - 'description' => 'The information about webRtcToken.'."\n", - 'type' => 'string', - 'example' => 'eDeybrh74h34***', - ], - 'Tags' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Tag' => [ - 'description' => 'The tags of the instance.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The tags of the instance.', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'The tag key of the instance.'."\n", - 'type' => 'string', - 'example' => 'TestKey', - ], - 'Value' => [ - 'description' => 'The tag value of the instance.'."\n", - 'type' => 'string', - 'example' => 'TestValue', - ], - ], - ], - ], - ], - ], + 'Status' => ['description' => 'The status of the image.', 'type' => 'string', 'example' => 'Available', 'title' => ''], + 'CreationTime' => ['description' => 'The time when the image was created. The time follows the ISO 8601 standard.', 'type' => 'string', 'example' => '2021-01-01T01:07Z', 'title' => ''], + 'Progress' => ['description' => 'The progress of image creation.', 'type' => 'string', 'example' => '100%', 'title' => ''], + 'Usage' => ['description' => 'Indicates whether the image is running on a cloud phone instance. Valid values:'."\n" + .'- none: The image is idle and not used by any cloud phone instance.'."\n" + .'- instance: The image is in use by a cloud phone instance.', 'type' => 'string', 'example' => 'none', 'title' => ''], + 'IsSelfShared' => ['description' => 'Indicates whether the image has been shared to other users.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'Description' => ['description' => 'The description of the image.', 'type' => 'string', 'example' => 'testDescription', 'title' => ''], + 'ImageName' => ['description' => 'The name of the image.', 'type' => 'string', 'example' => 'testImageName', 'title' => ''], + 'OSNameEn' => ['description' => 'The display name of the operating system in English.', 'type' => 'string', 'example' => 'Android 9.0', 'title' => ''], + 'Platform' => ['description' => 'The operating system distribution.', 'type' => 'string', 'example' => 'Android 9.0', 'title' => ''], + 'ImageCategory' => ['description' => 'The type of the image.', 'type' => 'string', 'example' => 'system', 'title' => ''], + 'OSName' => ['description' => 'The display name of the operating system in Chinese.', 'type' => 'string', 'example' => 'Android 9.0', 'title' => ''], + 'ImageId' => ['description' => 'The image ID.', 'type' => 'string', 'example' => 'cpm-xxxxxxxx', 'title' => ''], + 'OSType' => ['description' => 'The type of the operating system.', 'type' => 'string', 'example' => 'android', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": 3,\\n \\"MaxResults\\": 50,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Images\\": {\\n \\"Image\\": [\\n {\\n \\"Status\\": \\"Available\\",\\n \\"CreationTime\\": \\"2021-01-01T01:07Z\\",\\n \\"Progress\\": \\"100%\\",\\n \\"Usage\\": \\"none\\",\\n \\"IsSelfShared\\": false,\\n \\"Description\\": \\"testDescription\\",\\n \\"ImageName\\": \\"testImageName\\",\\n \\"OSNameEn\\": \\"Android 9.0\\",\\n \\"Platform\\": \\"Android 9.0\\",\\n \\"ImageCategory\\": \\"system\\",\\n \\"OSName\\": \\"Android 9.0\\",\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\",\\n \\"OSType\\": \\"android\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'ListImages', + 'summary' => 'Queries image resources that are available to you.', + 'changeSet' => [ + ['createdAt' => '2022-06-14T01:15:43.000Z', 'description' => 'Request parameters changed, Error codes changed'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListImages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/*'], + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#imageId}'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": 3,\\n \\"MaxResults\\": 50,\\n \\"Instances\\": {\\n \\"Instance\\": [\\n {\\n \\"Status\\": \\"Running\\",\\n \\"CreationTime\\": \\"2021-01-01T01:07Z\\",\\n \\"KeyPairName\\": \\"testKeyPairName\\",\\n \\"SecurityGroupId\\": \\"sg-xxxxx\\",\\n \\"AutoRenew\\": false,\\n \\"ChargeType\\": \\"PostPaid\\",\\n \\"OsName\\": \\"Android 9.0\\",\\n \\"InstanceId\\": \\"cp-xxxxxxxxxxx\\",\\n \\"InstanceType\\": \\"ecp.ce.large\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Description\\": \\"testDescription\\",\\n \\"ExpiredTime\\": \\"2021-12-21T22:00Z\\",\\n \\"InstanceName\\": \\"testInstanceName\\",\\n \\"ZoneId\\": \\"cn-hangzhou-i\\",\\n \\"Resolution\\": \\"1920*1080\\",\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\",\\n \\"OsNameEn\\": \\"Android 9.0\\",\\n \\"VpcAttributes\\": {\\n \\"PrivateIpAddress\\": \\"192.168.0.85\\",\\n \\"VSwitchId\\": \\"vsw-bp1kbwqxxxxx\\"\\n },\\n \\"EipAddress\\": {\\n \\"InternetChargeType\\": \\"PayByTraffic\\",\\n \\"IpAddress\\": \\"120.55.XX.XX\\",\\n \\"Bandwidth\\": 2,\\n \\"AllocationId\\": \\"eip-bp1vctqgcoi6i9nxxxxxx\\"\\n },\\n \\"WebRtcToken\\": \\"eDeybrh74h34***\\",\\n \\"Tags\\": {\\n \\"Tag\\": [\\n {\\n \\"Key\\": \\"TestKey\\",\\n \\"Value\\": \\"TestValue\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListInstancesResponse>\\n <Instances>\\n <Instance>\\n <Status>Running</Status>\\n <KeyPairName>testKeyPairName</KeyPairName>\\n <Description>testDescription</Description>\\n <ZoneId>cn-hangzhou-i</ZoneId>\\n <InstanceId>cp-xxxxxxxxxxx</InstanceId>\\n <AutoRenew>false</AutoRenew>\\n <OsName>Android 9.0</OsName>\\n <SecurityGroupId>sg-xxxxx</SecurityGroupId>\\n <InstanceName>testInstanceName</InstanceName>\\n <OsNameEn>Android 9.0</OsNameEn>\\n <ChargeType>PostPaid</ChargeType>\\n <ExpiredTime>2021-12-21 22:00:00</ExpiredTime>\\n <ImageId>cpm-xxxxxxxx</ImageId>\\n <CreationTime>2021-01-01T01:07:58Z</CreationTime>\\n <RegionId>cn-hangzhou</RegionId>\\n <InstanceType>ecp.ce.large</InstanceType>\\n <Resolution>1920*1080</Resolution>\\n <VpcAttributes>\\n <PrivateIpAddress>192.168.0.85</PrivateIpAddress>\\n <VSwitchId>vsw-bp1kbwqxxxxx</VSwitchId>\\n </VpcAttributes>\\n <EipAddress>\\n <AllocationId>eip-bp1vctqgcoi6i9nxxxxxx</AllocationId>\\n <Bandwidth>2</Bandwidth>\\n <IpAddress>120.55.xx.xx</IpAddress>\\n <InternetChargeType>PayByTraffic</InternetChargeType>\\n </EipAddress>\\n </Instance>\\n </Instances>\\n <TotalCount>3</TotalCount>\\n <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n <NextToken>ADBAAdDWBF2****</NextToken>\\n <MaxResults>50</MaxResults>\\n</ListInstancesResponse>","errorExample":""}]', - 'title' => 'ListInstances', - 'summary' => 'Queries the list of Elastic Cloud Phone (ECP) instances.', - 'description' => '* This operation only supports the NextToken query method.'."\n" - .'* Results are returned in descending order based on the time when ECP instances were created.'."\n" - .'* When you use NextToken to specify a query token, set the value to the NextToken value that is returned in the last call to the ListInstances operation. Then, use MaxResults to specify the maximum number of entries to return on each page.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], 'ListInstanceTypes' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1620,49 +1157,32 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '116015', - 'abilityTreeNodes' => [ - 'FEATUREcloudphoneWUELYS', - 'FEATUREcloudphoneHQLBD3', - 'FEATUREcloudphone5TFBF5', - ], + 'abilityTreeNodes' => ['FEATUREcloudphoneWUELYS', 'FEATUREcloudphoneHQLBD3', 'FEATUREcloudphone5TFBF5'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'InstanceType', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The names of the instance types. Valid values of N: 1 to 100.'."\n", + 'description' => 'The list of instance type names. Valid values of N: 1 to 100.', 'type' => 'array', - 'items' => [ - 'description' => 'The name of the instance type.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ecp.ce.xlarge', - ], + 'items' => ['description' => 'The instance type name.', 'type' => 'string', 'required' => false, 'example' => 'ecp.ce.xlarge', 'title' => ''], 'required' => false, 'maxItems' => 11, + 'title' => '', + 'example' => '', ], ], [ 'name' => 'InstanceTypeFamily', 'in' => 'query', - 'schema' => [ - 'description' => 'The instance type family.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ecp.ce', - ], + 'schema' => ['description' => 'The instance family.', 'type' => 'string', 'required' => false, 'example' => 'ecp.ce', 'title' => ''], ], ], 'responses' => [ @@ -1670,134 +1190,95 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '41345CE8-6FE8-505D-BCF8-B9D972C1873F', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '41345CE8-6FE8-505D-BCF8-B9D972C1873F', 'title' => ''], 'InstanceTypes' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'InstanceType' => [ - 'description' => 'The instance types.'."\n", + 'description' => 'The list of instance types.', 'type' => 'array', 'items' => [ - 'description' => 'The instance types.', + 'description' => 'The list of instance types.', 'type' => 'object', 'properties' => [ - 'NameEn' => [ - 'description' => 'The name of the instance type in English.'."\n", - 'type' => 'string', - 'example' => 'Performance Type', - ], - 'DefaultResolution' => [ - 'description' => 'The default resolution supported by the instance type.'."\n", - 'type' => 'string', - 'example' => '720*1280', - ], - 'InstanceType' => [ - 'description' => 'The instance type.'."\n", - 'type' => 'string', - 'example' => 'ecp.ce.xlarge', - ], - 'Name' => [ - 'description' => 'The name of the instance type in Chinese.'."\n", - 'type' => 'string', - 'example' => 'Performance Type', - ], - 'InstanceTypeFamily' => [ - 'description' => 'The instance type family.'."\n", - 'type' => 'string', - 'example' => 'ecp.ce', - ], - 'CpuCoreCount' => [ - 'description' => 'The number of vCPUs supported by the instance type.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'MemorySize' => [ - 'description' => 'The memory size supported by the instance type. Unit: GiB.'."\n", - 'type' => 'string', - 'example' => '4096', - ], + 'NameEn' => ['description' => 'The instance type name in English.', 'type' => 'string', 'example' => 'Performance Type', 'title' => ''], + 'DefaultResolution' => ['description' => 'The default resolution of the instance type.', 'type' => 'string', 'example' => '720*1280', 'title' => ''], + 'InstanceType' => ['description' => 'The cloud phone instance type.', 'type' => 'string', 'example' => 'ecp.ce.xlarge', 'title' => ''], + 'Name' => ['description' => 'The instance type name in Chinese.', 'type' => 'string', 'example' => '性能型', 'title' => ''], + 'InstanceTypeFamily' => ['description' => 'The cloud phone instance family.', 'type' => 'string', 'example' => 'ecp.ce', 'title' => ''], + 'CpuCoreCount' => ['description' => 'The number of vCPU cores of the instance type.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'MemorySize' => ['description' => 'The memory size of the instance type. Unit: GiB.', 'type' => 'string', 'example' => '4096', 'title' => ''], 'Resolutions' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'Resolution' => [ - 'description' => 'The resolutions supported by the instance type.'."\n", + 'description' => 'The list of resolutions supported by the instance type.', 'type' => 'array', - 'items' => [ - 'description' => 'The resolution supported by the instance type.'."\n", - 'type' => 'string', - 'example' => '720*1280', - ], + 'items' => ['description' => 'The resolution supported by the instance type.', 'type' => 'string', 'example' => '720*1280', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"41345CE8-6FE8-505D-BCF8-B9D972C1873F\\",\\n \\"InstanceTypes\\": {\\n \\"InstanceType\\": [\\n {\\n \\"NameEn\\": \\"Performance Type\\",\\n \\"DefaultResolution\\": \\"720*1280\\",\\n \\"InstanceType\\": \\"ecp.ce.xlarge\\",\\n \\"Name\\": \\"性能型\\",\\n \\"InstanceTypeFamily\\": \\"ecp.ce\\",\\n \\"CpuCoreCount\\": 2,\\n \\"MemorySize\\": \\"4096\\",\\n \\"Resolutions\\": {\\n \\"Resolution\\": [\\n \\"720*1280\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'ListInstanceTypes', - 'summary' => 'Queries the specifications of Elastic Cloud Phone (ECP) instance types.', - ], - 'ListInstanceVncUrl' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Query instance types', + 'summary' => 'Queries the list of cloud phone instance types.', + 'changeSet' => [ + ['createdAt' => '2024-08-09T02:35:04.000Z', 'description' => 'Error codes changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'ListInstanceVncUrl' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the instance resides.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region in which the cloud phone instance resides.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the instance resides.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region in which the cloud phone instance resides.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'InstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cp-xxxxxxxx', - ], + 'schema' => ['description' => 'The instance ID of the cloud phone instance.', 'type' => 'string', 'required' => true, 'example' => 'cp-xxxxxxxx', 'title' => ''], ], ], 'responses' => [ @@ -1805,188 +1286,212 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'VncUrl' => [ - 'description' => 'The Virtual Network Computing (VNC) connection URL.'."\n", - 'type' => 'string', - 'example' => 'wss%3A%2F%2Fhz01-vncproxy.aliyun.com%2Fwebsockify%2F%3Fs%3DDvh%252FIA%252BYc73gWO48cBx2gBxUDVzaAnSKr74pq30mzqUYgeUMcB%252FbkNixDxdEA996 ', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'WebRtcToken' => [ - 'description' => 'The token that is used for WebRTC logon.'."\n", - 'type' => 'string', - 'example' => 'D3EC1DE8C12E******', - ], + 'VncUrl' => ['description' => 'The VNC logon URL.', 'type' => 'string', 'example' => 'wss%3A%2F%2Fhz01-vncproxy.aliyun.com%2Fwebsockify%2F%3Fs%3DDvh%252FIA%252BYc73gWO48cBx2gBxUDVzaAnSKr74pq30mzqUYgeUMcB%252FbkNixDxdEA996 ', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'WebRtcToken' => ['description' => 'The token used for WebRTC logon.', 'type' => 'string', 'example' => 'D3EC1DE8C12E******', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"VncUrl\\": \\"wss%3A%2F%2Fhz01-vncproxy.aliyun.com%2Fwebsockify%2F%3Fs%3DDvh%252FIA%252BYc73gWO48cBx2gBxUDVzaAnSKr74pq30mzqUYgeUMcB%252FbkNixDxdEA996\\\\t\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"WebRtcToken\\": \\"D3EC1DE8C12E******\\"\\n}","type":"json"}]', - 'title' => 'ListInstanceVncUrl', - 'summary' => 'Queries the URL of a web management terminal for an Elastic Cloud Phone (ECP) instance.', - 'description' => '## [](#)Usage notes'."\n" - ."\n" - .'When you call this operation, take note of the following items:'."\n" - ."\n" - .'* The URL returned is valid only for 15 seconds. If no connection is established within 15 seconds after a successful query, the URL expires. You must query the URL again if you still want to use the URL.'."\n" - ."\n" - .'* The keep-alive duration of a single URL of a management terminal is 60 seconds. If no interaction is detected within the 60 seconds, the management terminal is automatically disconnected.'."\n" - ."\n" - .'* After the management terminal is disconnected, you can only reconnect to the terminal up to 30 times per minute.'."\n" - ."\n" - .'* You need to add vncUrl=\\*\\*\\*\\*, instanceId= ****and password=**** to the end of the link https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html? and use ampersands (&) between the parameters. Parameter description:'."\n" + 'title' => 'Obtain instance VNC logon URL', + 'summary' => 'Queries the web management terminal URL of a cloud phone instance.', + 'description' => '## Operation description'."\n" ."\n" - .' * vncUrl: the value that is returned after the operation is called.'."\n" - .' * instanceId: the instance ID.'."\n" - .' * (Optional) password: the password for remote connection of the instance, which can contain six characters in length. The password can be digits or letters. If you specify this parameter, you do not need to enter your password again when the management terminal is being connected.'."\n" + .'When you invoke this operation, note the following:'."\n" ."\n" - .'Example:'."\n" + .'- The management terminal URL is valid for 15 seconds. If you do not use the URL within 15 seconds after the invocation succeeds, the URL automatically expires and you must query it again.'."\n" + .'- The persistent connection (KeepAlive) duration of a single management terminal URL is 60 seconds. If no interaction occurs in the management terminal window within 60 seconds, the connection is automatically closed.'."\n" + .'- If the connection breaks, you can reconnect up to 30 times per minute.'."\n" + .'- Append vncUrl=****, instanceId=****, and password=**** to the end of the URL https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?, and connect the parameters with &. In the URL:'."\n" + .' - vncUrl: the value of VncUrl returned after a successful invocation.'."\n" + .' - instanceId: the instance ID of your instance.'."\n" + .' - (Optional) password: the remote connection password of the instance, which consists of six characters that can be digits or letters. If you specify this parameter, you do not need to enter the password when connecting to the management terminal.'."\n" ."\n" - .'https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%****\\&instanceId=cp-wz9hhwq5a6tm****'."\n" + .'The following example shows a sample request:'."\n" ."\n" + .'https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%****&instanceId=cp-wz9hhwq5a6tm****'."\n" + .' '."\n" .'Or:'."\n" ."\n" - .'https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%****\\&instanceId=cp-wz9hhwq5a6tm****\\&password=\\*\\*\\*\\*'."\n", + .'https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%****&instanceId=cp-wz9hhwq5a6tm****&password=****', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListRegions' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2021-12-22T10:27:28.000Z', 'description' => 'Request parameters changed, Error codes changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], - 'security' => [ + 'ramActions' => [ [ - 'AK' => [], + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListInstanceVncUrl', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], ], ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '116018', - 'abilityTreeNodes' => [ - 'FEATUREcloudphoneYWRDCM', + ], + 'ListInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], ], ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', + 'schema' => ['description' => 'The region where the cloud phone instances reside.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'InstanceId', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', + 'description' => 'The instance IDs of the cloud phone instances. Valid values of N: 1 to 100.', + 'type' => 'array', + 'items' => ['description' => 'The instance ID of the cloud phone.', 'type' => 'string', 'required' => false, 'example' => 'cp-xxxxxxxxxx', 'title' => ''], 'required' => false, - 'example' => 'cn-hangzhou', + 'example' => 'cp-xxxxxxxxxx', + 'maxItems' => 101, + 'title' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region where the cloud phone instances reside.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'Regions' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Region' => [ - 'description' => 'The details of the regions.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'RegionEndpoint' => [ - 'description' => 'The endpoint that corresponds to the region.'."\n", - 'type' => 'string', - 'example' => 'cloudphone.cn-hangzhou.aliyuncs.com', - ], - 'RegionId' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - ], - 'description' => 'The array of regions.'."\n", - ], - ], - ], - ], - ], - 'description' => '', - ], + [ + 'name' => 'InstanceName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the cloud phone instance.', 'type' => 'string', 'required' => false, 'example' => 'phone', 'title' => ''], ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"RegionEndpoint\\": \\"cloudphone.cn-hangzhou.aliyuncs.com\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n<Regions>\\n <Region>\\n <RegionId>cn-hangzhou</RegionId>\\n <RegionEndpoint>cloudphone.cn-hangzhou.aliyuncs.com</RegionEndpoint>\\n </Region>\\n</Regions>","errorExample":""}]', - 'title' => 'ListRegions', - 'summary' => 'Queries regions where Elastic Cloud Phone (ECP) is available.', - 'description' => '* You can call this operation to query regions where ECP is available.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListZones' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'Status', + 'in' => 'query', + 'schema' => ['description' => 'The instance status. Valid values:'."\n" + .'- Pending: being created.'."\n" + .'- Running: running.'."\n" + .'- Starting: being started.'."\n" + .'- Stopping: being stopped.'."\n" + .'- Stopped: stopped.'."\n" + .'- Expired: expired.', 'type' => 'string', 'required' => false, 'example' => 'Running', 'title' => ''], ], - ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '116020', - 'abilityTreeNodes' => [ - 'FEATUREcloudphoneYWRDCM', + [ + 'name' => 'KeyPairName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the key pair. The name must be unique. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter. The name cannot start with http:// or https://.', 'type' => 'string', 'required' => false, 'example' => 'testKeyPairName', 'title' => ''], ], - ], - 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => ['description' => 'The query token. Set this parameter to the NextToken value returned in the previous API call. You do not need to set this parameter for the first call.', 'type' => 'string', 'required' => false, 'example' => 'ADBAAdDWBF2****', 'title' => ''], + ], + [ + 'name' => 'MaxResults', 'in' => 'query', + 'schema' => ['description' => 'The maximum number of entries to return. Valid values: 1 to 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50', 'title' => ''], + ], + [ + 'name' => 'ZoneId', + 'in' => 'query', + 'schema' => ['description' => 'The zone where the cloud phone resides.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-i', 'title' => ''], + ], + [ + 'name' => 'Resolution', + 'in' => 'query', + 'schema' => ['description' => 'The resolution used by the cloud phone.', 'type' => 'string', 'required' => false, 'example' => '1920*1080', 'title' => ''], + ], + [ + 'name' => 'ChargeType', + 'in' => 'query', + 'schema' => ['description' => 'The billing method. Valid values:'."\n" + .'- PrePaid: subscription.'."\n" + .'- PostPaid: pay-as-you-go.', 'type' => 'string', 'required' => false, 'example' => 'PostPaid', 'title' => ''], + ], + [ + 'name' => 'InstanceType', + 'in' => 'query', + 'schema' => ['description' => 'The instance type.', 'type' => 'string', 'required' => false, 'example' => 'ecp.ce.large', 'title' => ''], + ], + [ + 'name' => 'ImageId', + 'in' => 'query', + 'schema' => ['description' => 'The image ID.', 'type' => 'string', 'required' => false, 'example' => 'cpm-xxxxxxxxx', 'title' => ''], + ], + [ + 'name' => 'ShowWebRtcToken', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to return webRtcToken in the query results.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', + 'title' => '', + 'description' => 'The tags used to filter instances.', + 'type' => 'array', + 'items' => [ + 'description' => 'The tags.', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '', 'description' => 'The tag key of the instance. Valid values of N: 1 to 20.', 'type' => 'string', 'required' => false, 'example' => 'TestKey'], + 'Value' => ['title' => '', 'description' => 'The tag value of the instance. Valid values of N: 1 to 20.', 'type' => 'string', 'required' => false, 'example' => 'TestValue'], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 21, + 'example' => '', ], ], [ - 'name' => 'RegionId', + 'name' => 'Filter', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', + 'description' => 'The filter conditions for querying resources.', + 'type' => 'array', + 'items' => [ + 'description' => 'The filter conditions.', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The filter key for querying instances. Valid values:'."\n" + ."\n" + .'- ExpiredStartTime: queries resources that expire after the time specified by Filter.N.Value.'."\n" + ."\n" + .'- ExpiredEndTime: queries resources that expire before the time specified by Filter.N.Value.'."\n" + ."\n" + .'- CreationStartTime: queries resources created after the time specified by Filter.N.Value.'."\n" + ."\n" + .'- CreationEndTime: queries resources created before the time specified by Filter.N.Value.', 'type' => 'string', 'required' => false, 'example' => 'ExpiredStartTime', 'title' => ''], + 'Value' => ['description' => 'The filter value for querying instances. When you specify this parameter, you must also specify Filter.N.Key. The value is in the yyyy-MM-ddTHH:mmZ format in UTC+0.', 'type' => 'string', 'required' => false, 'example' => '2023-11-05T00:00Z', 'title' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 10, + 'title' => '', + 'example' => '', ], ], ], @@ -1995,124 +1500,182 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'Zones' => [ + 'NextToken' => ['description' => 'The query token for the next page.', 'type' => 'string', 'example' => 'ADBAAdDWBF2****', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of instances.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'MaxResults' => ['description' => 'The maximum number of entries to return. Valid values: 1 to 100.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''], + 'Instances' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'Zone' => [ - 'description' => 'The zones available in the current region.'."\n", + 'Instance' => [ + 'description' => 'The instances.', 'type' => 'array', 'items' => [ + 'description' => 'The instances.', 'type' => 'object', 'properties' => [ - 'ZoneId' => [ - 'description' => 'The zone ID.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-i', + 'Status' => ['description' => 'The instance status. Valid values:'."\n" + .'- Pending: being created.'."\n" + .'- Running: running.'."\n" + .'- Starting: being started.'."\n" + .'- Stopping: being stopped.'."\n" + .'- Stopped: stopped.', 'type' => 'string', 'example' => 'Running', 'title' => ''], + 'CreationTime' => ['description' => 'The time when the image was created. The time is in ISO 8601 format.', 'type' => 'string', 'example' => '2021-01-01T01:07Z', 'title' => ''], + 'KeyPairName' => ['description' => 'The name of the key pair bound to the instance.', 'type' => 'string', 'example' => 'testKeyPairName', 'title' => ''], + 'SecurityGroupId' => ['description' => 'The security group ID. The same security group as ECS is used.', 'type' => 'string', 'example' => 'sg-xxxxx', 'title' => ''], + 'AutoRenew' => ['description' => 'Indicates whether auto-renewal is enabled. This parameter takes effect only for subscription instances.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'ChargeType' => ['description' => 'The billing method of the instance.', 'type' => 'string', 'example' => 'PostPaid', 'title' => ''], + 'OsName' => ['description' => 'The Chinese display name of the operating system.', 'type' => 'string', 'example' => 'Android 9.0', 'title' => ''], + 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cp-xxxxxxxxxxx', 'title' => ''], + 'InstanceType' => ['description' => 'The instance type.', 'type' => 'string', 'example' => 'ecp.ce.large', 'title' => ''], + 'RegionId' => ['description' => 'The region of the cloud phone.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + 'Description' => ['description' => 'The description of the instance.', 'type' => 'string', 'example' => 'testDescription', 'title' => ''], + 'ExpiredTime' => ['description' => 'The time when the upfront instance expires.', 'type' => 'string', 'example' => '2021-12-21T22:00Z', 'title' => ''], + 'InstanceName' => ['description' => 'The name of the instance.', 'type' => 'string', 'example' => 'testInstanceName', 'title' => ''], + 'ZoneId' => ['description' => 'The zone.', 'type' => 'string', 'example' => 'cn-hangzhou-i', 'title' => ''], + 'Resolution' => ['description' => 'The resolution of the cloud phone instance.', 'type' => 'string', 'example' => '1920*1080', 'title' => ''], + 'ImageId' => ['description' => 'The image ID.', 'type' => 'string', 'example' => 'cpm-xxxxxxxx', 'title' => ''], + 'OsNameEn' => ['description' => 'The English display name of the operating system.', 'type' => 'string', 'example' => 'Android 9.0', 'title' => ''], + 'VpcAttributes' => [ + 'description' => 'The VPC information of the instance.', + 'type' => 'object', + 'properties' => [ + 'PrivateIpAddress' => ['description' => 'The private IP address.', 'type' => 'string', 'example' => '192.168.0.85', 'title' => ''], + 'VSwitchId' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'example' => 'vsw-bp1kbwqxxxxx', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'EipAddress' => [ + 'description' => 'The elastic IP address (EIP) information of the instance.', + 'type' => 'object', + 'properties' => [ + 'InternetChargeType' => ['description' => 'The billing method of the EIP.', 'type' => 'string', 'example' => 'PayByTraffic', 'title' => ''], + 'IpAddress' => ['description' => 'The EIP address.', 'type' => 'string', 'example' => '120.55.XX.XX', 'title' => ''], + 'Bandwidth' => ['description' => 'The bandwidth of the EIP.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'AllocationId' => ['description' => 'The ID of the EIP associated with the cloud phone instance.', 'type' => 'string', 'example' => 'eip-bp1vctqgcoi6i9nxxxxxx', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'WebRtcToken' => ['description' => 'The webRtcToken information.', 'type' => 'string', 'example' => 'eDeybrh74h34***', 'title' => ''], + 'Tags' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Tag' => [ + 'description' => 'The tags of the instance.', + 'type' => 'array', + 'items' => [ + 'description' => 'The tags of the instance.', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The tag key of the instance.', 'type' => 'string', 'example' => 'TestKey', 'title' => ''], + 'Value' => ['description' => 'The tag value of the instance.', 'type' => 'string', 'example' => 'TestValue', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - 'description' => 'The zones available in the current region.'."\n", + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Zones\\": {\\n \\"Zone\\": [\\n {\\n \\"ZoneId\\": \\"cn-hangzhou-i\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'ListZones', - 'summary' => 'Queries supported zones in a specified region.', - 'description' => '## [](#)Usage notes'."\n" - ."\n" - .'* You can call the operation to query zones available in a specified region.'."\n", + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": 3,\\n \\"MaxResults\\": 50,\\n \\"Instances\\": {\\n \\"Instance\\": [\\n {\\n \\"Status\\": \\"Running\\",\\n \\"CreationTime\\": \\"2021-01-01T01:07Z\\",\\n \\"KeyPairName\\": \\"testKeyPairName\\",\\n \\"SecurityGroupId\\": \\"sg-xxxxx\\",\\n \\"AutoRenew\\": false,\\n \\"ChargeType\\": \\"PostPaid\\",\\n \\"OsName\\": \\"Android 9.0\\",\\n \\"InstanceId\\": \\"cp-xxxxxxxxxxx\\",\\n \\"InstanceType\\": \\"ecp.ce.large\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Description\\": \\"testDescription\\",\\n \\"ExpiredTime\\": \\"2021-12-21T22:00Z\\",\\n \\"InstanceName\\": \\"testInstanceName\\",\\n \\"ZoneId\\": \\"cn-hangzhou-i\\",\\n \\"Resolution\\": \\"1920*1080\\",\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\",\\n \\"OsNameEn\\": \\"Android 9.0\\",\\n \\"VpcAttributes\\": {\\n \\"PrivateIpAddress\\": \\"192.168.0.85\\",\\n \\"VSwitchId\\": \\"vsw-bp1kbwqxxxxx\\"\\n },\\n \\"EipAddress\\": {\\n \\"InternetChargeType\\": \\"PayByTraffic\\",\\n \\"IpAddress\\": \\"120.55.XX.XX\\",\\n \\"Bandwidth\\": 2,\\n \\"AllocationId\\": \\"eip-bp1vctqgcoi6i9nxxxxxx\\"\\n },\\n \\"WebRtcToken\\": \\"eDeybrh74h34***\\",\\n \\"Tags\\": {\\n \\"Tag\\": [\\n {\\n \\"Key\\": \\"TestKey\\",\\n \\"Value\\": \\"TestValue\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Query cloud phone instances', + 'summary' => 'Queries a list of cloud phone instances.', + 'description' => '- This operation supports only NextToken-based queries.'."\n" + .'- Results are returned in ascending order of cloud phone creation time.'."\n" + .'- Set the query token by specifying NextToken, whose value is the NextToken parameter value returned by the previous call to ListInstances. Set MaxResults to specify the maximum number of entries per page.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CreateImage' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2023-11-08T01:59:24.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-02-18T08:35:22.000Z', 'description' => 'Request parameters changed, Response parameters changed, Error codes changed'], + ['createdAt' => '2022-02-18T08:35:22.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ['createdAt' => '2021-09-22T09:31:28.000Z', 'description' => 'Request parameters changed, Response parameters changed, Error codes changed'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/*'], + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'ListKeyPairs' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'create', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID of the key pair.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID of the key pair.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'InstanceId', + 'name' => 'KeyPairName', 'in' => 'query', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-xxxxxxxx', - ], + 'schema' => ['description' => 'The name of the key pair.', 'type' => 'string', 'required' => false, 'example' => 'testKeyPair', 'title' => ''], ], [ - 'name' => 'ImageName', + 'name' => 'KeyPairFingerPrint', 'in' => 'query', - 'schema' => [ - 'description' => 'The image name. The name must be 2 to 128 characters in length. It can contain letters, digits, colons (:), underscores (\\_), and hyphens (-). The name must start with a letter but cannot start with `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'myCustomImage', - ], + 'schema' => ['description' => 'The fingerprint of the key pair. The fingerprint is in the public key fingerprint format defined in RFC 4716 and uses the MD5 message digest algorithm.', 'type' => 'string', 'required' => false, 'example' => 'ABC1234567', 'title' => ''], ], [ - 'name' => 'Description', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => 'The image description. The description must be 2 to 256 characters in length. It cannot start with `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'testDescription', - ], + 'schema' => ['description' => 'The pagination token. Set this parameter to the NextToken value returned in the previous API call. You do not need to set this parameter for the first request.', 'type' => 'string', 'required' => false, 'example' => 'ADBAAdDWBF2****', 'title' => ''], ], [ - 'name' => 'ClientToken', + 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that the value is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'schema' => ['description' => 'The maximum number of entries to return. Valid values: 1 to 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50', 'title' => ''], ], ], 'responses' => [ @@ -2120,149 +1683,90 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'ImageId' => [ - 'description' => 'The custom image ID.'."\n", - 'type' => 'string', - 'example' => 'cpm-xxxxxxxx', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + 'NextToken' => ['description' => 'The pagination token for the next page.', 'type' => 'string', 'example' => 'ADBAAdDWBF2****', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of key pairs.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'MaxResults' => ['description' => 'The maximum number of entries to return. Valid values: 1 to 100.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''], + 'KeyPairs' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'KeyPair' => [ + 'description' => 'The list of key pairs.', + 'type' => 'array', + 'items' => [ + 'description' => 'The list of key pairs.', + 'type' => 'object', + 'properties' => [ + 'CreationTime' => ['description' => 'The time when the key pair was created.', 'type' => 'string', 'example' => '2021-03-04T13:35Z', 'title' => ''], + 'KeyPairName' => ['description' => 'The name of the key pair.', 'type' => 'string', 'example' => 'testKeyPairName', 'title' => ''], + 'KeyPairFingerPrint' => ['description' => 'The fingerprint of the key pair.', 'type' => 'string', 'example' => 'ABC1234567', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [ - 403 => [ - [ - 'errorCode' => 'QuotaExceed', - 'errorMessage' => 'Image quota exceed.', + 'errorCodes' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": 5,\\n \\"MaxResults\\": 100,\\n \\"KeyPairs\\": {\\n \\"KeyPair\\": [\\n {\\n \\"CreationTime\\": \\"2021-03-04T13:35Z\\",\\n \\"KeyPairName\\": \\"testKeyPairName\\",\\n \\"KeyPairFingerPrint\\": \\"ABC1234567\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Query cloud phone key pairs', + 'summary' => 'Queries one or more key pairs.', + 'description' => 'You can call this operation to query cloud phone key pairs.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListKeyPairs', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/*'], + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/{#KeyPairName}'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n<ImageId>cpm-xxxxxxxx</ImageId>","errorExample":""}]', - 'title' => 'CreateImage', - 'summary' => 'Creates a custom image of an Elastic Cloud Phone (ECP) instance.', - 'description' => 'When you call this operation, take note of the following items:'."\n" - ."\n" - .'* You need to only specify the ID (InstanceId) of an ECP instance. The instance is used as a template. The instance must be in the Running or Stopped state.'."\n" - .'* You can use the created custom image only if the image is in the Available state.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], - 'ImportImage' => [ - 'summary' => 'Imports an on-premise image to an Elastic Cloud Phone (ECP) instance and uses the image as a custom image in a specified region.', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListRegions' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '116009', - 'abilityTreeNodes' => [ - 'FEATUREcloudphoneO7T570', - ], - 'autoTest' => false, - 'notSupportAutoTestReason' => '客户专用接口,不支持自动化测试', + 'operationType' => 'get', + 'abilityTreeCode' => '116018', + 'abilityTreeNodes' => ['FEATUREcloudphoneYWRDCM'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where you want to import the image to the ECP instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where you want to import the image to the ECP instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'OssBucket', - 'in' => 'query', - 'schema' => [ - 'description' => 'The OSS bucket to which you want to import the image.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'myOssBucket', - ], - ], - [ - 'name' => 'OssObject', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name (key) of the image file that you want to use as an OSS object.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'myOssKeyForImage.raw', - ], - ], - [ - 'name' => 'ImageName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The image name. The name must be 2 to 128 characters in length. The name can contain letters, digits, colons (:), underscores (\\_), and hyphens (-). It must start with a letter and cannot start with `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'myCustomImage', - ], - ], - [ - 'name' => 'Description', - 'in' => 'query', - 'schema' => [ - 'description' => 'The image description. The description must be 2 to 256 characters in length, and cannot start with `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'testDescription', - ], - ], - [ - 'name' => 'Platform', - 'in' => 'query', - 'schema' => [ - 'description' => 'The OS distribution. Valid values:'."\n" - ."\n" - .'* Android 9.0'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Android 9.0', - ], - ], - [ - 'name' => 'ClientToken', - 'in' => 'query', - 'schema' => [ - 'description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that the value is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -2270,117 +1774,81 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'ImageId' => [ - 'description' => 'The ID of the image that is imported to the instance.'."\n", - 'type' => 'string', - 'example' => 'cpm-xxxxxxxx', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'Regions' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Region' => [ + 'description' => 'The list of regions.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RegionEndpoint' => ['description' => 'The endpoint of the region.', 'type' => 'string', 'example' => 'cloudphone.cn-hangzhou.aliyuncs.com', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n<ImageId>cpm-xxxxxxxx</ImageId>","errorExample":""}]', - 'title' => 'ImportImage', - 'description' => 'When you call this operation, take note of the following items:'."\n" - ."\n" - .'* Before you import the image, you must upload the image to an Object Storage Service (OSS) bucket. For more information, see [Upload objects](~~31886~~).'."\n" - .'* When you import an image for the first time, you must use Resource Access Management (RAM) to grant permissions on the access to OSS buckets in advance to obtain [Cloud Resource Access Authorization](https://ram.console.aliyun.com/role/authorization?request=%7B%22Services%22%3A%5B%7B%22Service%22%3A%22CloudPhone%22%2C%22Roles%22%3A%5B%7B%22RoleName%22%3A%22AliyunCloudPhoneDefaultRole%22%2C%22TemplateId%22%3A%22AliyunCloudPhoneDefaultRole%22%7D%5D%7D%5D%2C%22ReturnUrl%22%3A%22https%3A%2F%2Fcloudphone.console.aliyun.com%2F%23%2Finstances%22%7D) with one click.'."\n" - .'* You can import an image only to a region that is the same as that of the OSS bucket to which the image file was imported.'."\n", + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"RegionEndpoint\\": \\"cloudphone.cn-hangzhou.aliyuncs.com\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Query available regions', + 'summary' => 'Queries the regions where Cloud Phone is available for purchase.', + 'description' => '- Queries the regions where Cloud Phone is available for purchase.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CopyImage' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2024-08-09T02:35:04.000Z', 'description' => 'Error codes changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'ListTagKeys' => [ + 'summary' => 'Queries a list of tag keys.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [], + 'operationType' => 'readAndWrite', + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The source region from which you want to copy the image.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The source region from which you want to copy the image.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ImageId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the image that you want to copy.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cpm-xxxxxxxx', - ], - ], - [ - 'name' => 'DestinationRegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The destination region to which you want to copy the image.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-beijing', - ], - ], - [ - 'name' => 'ImageName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The image name. The name must be 2 to 128 characters in length. The name can contain letters, digits, colons (:), underscores (\\_), and hyphens (-). The name can contain letters, digits, colons (:), underscores (\\_), and hyphens (-). It must start with a letter but cannot start with http:// or https://.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'myCustomImage', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'Description', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => 'The image description. The description must be 2 to 256 characters in length but cannot start with http:// or https://.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'testDescription', - ], + 'schema' => ['title' => '', 'description' => 'The pagination token for the next query. If this parameter is not specified, the first page of results is returned.', 'type' => 'string', 'required' => false, 'example' => 'ADBAAdDWBF2****'], ], [ - 'name' => 'ClientToken', + 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that the value is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'schema' => ['title' => '', 'description' => 'The resource type. Valid values:'."\n" + .'- instance: Elastic Cloud Phone instance.', 'type' => 'string', 'required' => true, 'example' => 'instance'], ], ], 'responses' => [ @@ -2388,99 +1856,124 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'ImageId' => [ - 'description' => 'The ID of the image that is copied to the destination region.'."\n", - 'type' => 'string', - 'example' => 'cpm-xxxxxxyy', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + 'NextToken' => ['title' => '', 'description' => 'The pagination token for the next query. If this parameter is empty, no more results exist.', 'type' => 'string', 'example' => 'ADBAAdDWBF2****'], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'MaxResults' => ['description' => 'The maximum number of results per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''], + 'Keys' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Key' => [ + 'title' => '', + 'description' => 'The list of tag keys.', + 'type' => 'array', + 'items' => ['description' => 'The list of tag keys.', 'type' => 'string', 'example' => 'TestKey', 'title' => ''], + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"ImageId\\": \\"cpm-xxxxxxyy\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n<ImageId>cpm-xxxxxxyy</ImageId>","errorExample":""}]', - 'title' => 'CopyImage', - 'summary' => 'Copies a custom image in a region to another region.', - 'description' => 'When you call this operation, take note of the following items:'."\n" - ."\n" - .'* The custom image that you want to copy must be in the Available state.'."\n" - .'* You can only copy images within your own Alibaba Cloud account. Images cannot be copied from one account to another.'."\n" - .'* A single region can have only one image copy task running at a time. Other image copy tasks queue up for the current task to complete before they run in sequence.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DeleteImages' => [ - 'methods' => [ - 'post', - 'get', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"MaxResults\\": 50,\\n \\"Keys\\": {\\n \\"Key\\": [\\n \\"TestKey\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Query tag keys', + 'changeSet' => [ + ['createdAt' => '2022-03-24T08:11:25.000Z', 'description' => 'OpenAPI offline'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagKeys'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListTagKeys', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListTagResources' => [ + 'summary' => 'Queries the tags bound to multiple cloud resources.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'readAndWrite', 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'get', + 'abilityTreeCode' => '130042', + 'abilityTreeNodes' => ['FEATUREcloudphoneXDJIVR'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ImageId', + 'name' => 'NextToken', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The image IDs. You can specify up to 100 images.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The image ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cpm-xxxxxxxx', - ], - 'required' => true, - 'example' => 'cpm-xxxxxxxx', - 'maxItems' => 101, - ], + 'schema' => ['title' => '', 'description' => 'The token that determines the start point of the next query.', 'type' => 'string', 'required' => false, 'example' => 'ADBAAdDWBF2****'], ], [ - 'name' => 'RegionId', + 'name' => 'ResourceType', 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The resource type. Valid values:'."\n" + .'- instance: elastic cloud phone instance.', 'type' => 'string', 'required' => true, 'example' => 'instance'], + ], + [ + 'name' => 'ResourceId', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', + 'title' => '', + 'description' => 'The resource ID. You can specify up to 50 resource IDs.', + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => '', 'required' => false, 'example' => 'cp-xxxx', 'title' => ''], + 'required' => false, + 'maxItems' => 51, + 'example' => '', ], ], [ - 'name' => 'Force', + 'name' => 'Tag', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'Specifies whether to forcefully delete the image. Default value: false'."\n", - 'type' => 'boolean', + 'title' => '', + 'description' => 'The list of tags. You can specify up to 20 tags.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'TestKey'], + 'Value' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'required' => false, 'example' => 'TestValue'], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], 'required' => false, - 'example' => 'false', - 'default' => 'false', + 'maxItems' => 21, + 'example' => '', ], ], ], @@ -2489,164 +1982,103 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'ImageResponses' => [ + 'NextToken' => ['title' => '', 'description' => 'The token for the next query. If NextToken is empty, no more results exist.', 'type' => 'string', 'example' => 'ADBAAdDWBF2****'], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83A', 'title' => ''], + 'TagResources' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'ImageResponse' => [ - 'description' => 'Details about images that are deleted.'."\n", + 'TagResource' => [ + 'title' => '', + 'description' => 'The resources.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => 'The HTTP status code that is returned when the image is deleted.'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => 'The message that is returned when the image is deleted.'."\n", - 'type' => 'string', - 'example' => 'Success.', - ], - 'ImageId' => [ - 'description' => 'The ID of the image that is requested for deletion.'."\n", - 'type' => 'string', - 'example' => 'cpm-xxxxxxxx', - ], + 'ResourceType' => ['title' => '', 'description' => 'The resource type. Valid values:'."\n" + .'- instance: elastic cloud phone instance.', 'type' => 'string', 'example' => 'instance'], + 'TagValue' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'example' => 'TestValue'], + 'ResourceId' => ['title' => '', 'description' => 'The resource ID.', 'type' => 'string', 'example' => 'cp-xxx'], + 'TagKey' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'example' => 'TestKey'], ], - 'description' => 'Details about images that are deleted.', + 'description' => '', + 'title' => '', + 'example' => '', ], + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"ImageResponses\\": {\\n \\"ImageResponse\\": [\\n {\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Success.\\",\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n<ImageResponses>\\n <ImageResponse>\\n <Message>Success.</Message>\\n <ImageId>cpm-xxxxxxxx</ImageId>\\n <Code>200</Code>\\n </ImageResponse>\\n</ImageResponses>","errorExample":""}]', - 'title' => 'DeleteImages', - 'summary' => 'Deletes multiple custom images at a time.', - 'description' => '## [](#)Usage notes'."\n" - ."\n" - .'When you call this operation, take note of the following items:'."\n" - ."\n" - .'* Images that are shared with recipient users can be deleted only after you unshare the images.'."\n" - .'* Images that are used by other Elastic Cloud Phone (ECP) instances can only be forcefully deleted.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'UpdateImageAttribute' => [ - 'methods' => [ - 'post', - 'get', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83A\\",\\n \\"TagResources\\": {\\n \\"TagResource\\": [\\n {\\n \\"ResourceType\\": \\"instance\\",\\n \\"TagValue\\": \\"TestValue\\",\\n \\"ResourceId\\": \\"cp-xxx\\",\\n \\"TagKey\\": \\"TestKey\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Query resource tags', + 'changeSet' => [ + ['createdAt' => '2022-03-24T08:11:26.000Z', 'description' => 'OpenAPI offline'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListTagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListTagValues' => [ + 'summary' => 'Queries the tag values that correspond to a specified tag key.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'readAndWrite', 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', + 'abilityTreeCode' => '130973', + 'abilityTreeNodes' => ['FEATUREcloudphoneXDJIVR'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'AddAccount', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The IDs of the Alibaba Cloud accounts that are authorized to share images. You can specify up to 10 Alibaba Cloud accounts.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The ID of Alibaba Cloud account to which you want to grant image sharing permissions.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '123456******', - ], - 'required' => false, - 'example' => '123456******', - 'maxItems' => 11, - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'RemoveAccount', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The IDs of the Alibaba Cloud accounts from which you want to revoke image sharing permissions. You can specify up to 10 Alibaba Cloud accounts.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The ID of the Alibaba Cloud account from which you want to revoke image sharing permissions.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '987654******', - ], - 'required' => false, - 'example' => '987654******', - 'maxItems' => 11, - ], - ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ImageId', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => 'The image ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cpm-xxxxxxxx', - ], + 'schema' => ['title' => '', 'description' => 'The token for the next query.', 'type' => 'string', 'required' => false, 'example' => 'ADBAAdDWBF2****'], ], [ - 'name' => 'ImageName', + 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the custom image. The name must be 2 to 128 characters in length. The name can contain letters, digits, colons (:), underscores (\\_), and hyphens (-). It cannot start with `http://` or `https://`. By default, this parameter is empty, which indicates that the original name is retained.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'newImageName', - ], + 'schema' => ['title' => '', 'description' => 'The resource type. Valid values:'."\n" + .'- instance: elastic cloud phone instance.', 'type' => 'string', 'required' => true, 'example' => 'instance'], ], [ - 'name' => 'Description', + 'name' => 'Key', 'in' => 'query', - 'schema' => [ - 'description' => 'The description of the custom image. The description must be 2 to 256 characters in length. It cannot start with `http://` or `https://`. By default, this parameter is empty, which indicates that the original description is retained.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'newDescription', - ], + 'schema' => ['description' => 'The tag key to query.', 'type' => 'string', 'required' => true, 'example' => 'TestKey', 'title' => ''], ], ], 'responses' => [ @@ -2654,157 +2086,128 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + 'NextToken' => ['title' => '', 'description' => 'The token for the next query. If NextToken is empty, no more results exist.', 'type' => 'string', 'example' => 'ADBAAdDWBF2****'], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'MaxResults' => ['description' => 'The maximum number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''], + 'Values' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Value' => [ + 'title' => '', + 'description' => 'The list of resources.', + 'type' => 'array', + 'items' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'TestValue', 'title' => ''], + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>","errorExample":""}]', - 'title' => 'UpdateImageAttribute', - 'summary' => 'Modifies the name and description of a custom image, and manages image sharing permissions.', - 'description' => 'When you call this operation, take note of the following items:'."\n" - ."\n" - .'* You can share only your own custom images with other Alibaba Cloud accounts.'."\n" - .'* You can share a custom image with up to 10 Alibaba Cloud accounts at a time.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListImages' => [ - 'methods' => [ - 'post', - 'get', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"MaxResults\\": 50,\\n \\"Values\\": {\\n \\"Value\\": [\\n \\"TestValue\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Query tag values of a specified tag key', + 'changeSet' => [ + ['createdAt' => '2022-03-24T08:11:25.000Z', 'description' => 'OpenAPI offline'], + ['createdAt' => '2022-03-24T08:11:25.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagValues'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListTagValues', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListTasks' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ImageId', + 'name' => 'TaskId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The image IDs. Valid values of N: 1 to 100.'."\n", + 'description' => 'The list of task IDs. Valid values of N: 1 to 100.', 'type' => 'array', - 'items' => [ - 'description' => 'The image ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cpm-xxxxxxxx', - ], + 'items' => ['description' => 'The list of task IDs. Valid values of N: 1 to 100.', 'type' => 'string', 'required' => false, 'example' => 't-bp67acfmxazb4p****', 'title' => ''], 'required' => false, - 'maxItems' => 100, + 'maxItems' => 101, + 'title' => '', + 'example' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ImageName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The image name. The name must be 2 to 128 characters in length. It can contain letters, digits, colons (:), underscores (\\_), and hyphens (-). The name must start with a letter but cannot start with `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'testImageName', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ImageCategory', + 'name' => 'TaskStatus', 'in' => 'query', - 'schema' => [ - 'description' => 'The image source. Valid values:'."\n" - ."\n" - .'* system: public images provided by Alibaba Cloud.'."\n" - .'* self: custom images that you create.'."\n" - .'* others: shared images from other Alibaba Cloud accounts.'."\n", - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [], - 'example' => 'system', - ], + 'schema' => ['description' => 'The task status. Valid values:'."\n" + .'- Finished: The task is completed.'."\n" + .'- Processing: The task is running.'."\n" + .'- Failed: The task has failed.'."\n" + ."\n" + .'Default value: none.'."\n" + ."\n" + .'> Only tasks in the Finished, Processing, or Failed state can be queried. Other values do not take effect.', 'type' => 'string', 'required' => false, 'example' => 'Finished', 'title' => ''], ], [ - 'name' => 'InstanceType', + 'name' => 'TaskType', 'in' => 'query', - 'schema' => [ - 'description' => 'The instance type.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ecp.ce.large', - ], + 'schema' => ['description' => 'The name of the API operation for the task. Valid values:'."\n" + .'- Shell: runs a shell command.'."\n" + .'- InstallApplication: installs an application.'."\n" + .'- UninstallApplication: uninstalls an application.'."\n" + .'- SendFile: uploads a file.'."\n" + .'- ImportImage: imports an image.', 'type' => 'string', 'required' => false, 'example' => 'Shell', 'title' => ''], ], [ - 'name' => 'Status', + 'name' => 'InstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The image state. Valid values:'."\n" - ."\n" - .'* Waiting'."\n" - .'* Creating'."\n" - .'* Copying'."\n" - .'* Importing'."\n" - .'* Available (default)'."\n" - .'* CreateFailed'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Available', - 'default' => 'Available', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'cp-acfmxazb4p***', 'title' => ''], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ADBAAdDWBF2****', - ], + 'schema' => ['description' => 'The pagination token. Set this parameter to the NextToken value returned in the previous API call. You do not need to set this parameter for the first request.', 'type' => 'string', 'required' => false, 'example' => '55C15B1C-D507-45F0-B490-69D6E0F113C6', 'title' => ''], ], [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'description' => 'The maximum number of entries to return on each page. Valid values: 1 to 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '50', - 'default' => '50', - ], + 'schema' => ['description' => 'The maximum number of entries to return. Valid values: 1 to 100.'."\n" + .'Default value: 50.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50', 'title' => ''], ], ], 'responses' => [ @@ -2812,135 +2215,74 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results.'."\n", - 'type' => 'string', - 'example' => 'ADBAAdDWBF2****', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'TotalCount' => [ - 'description' => 'The total number of images.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'MaxResults' => [ - 'description' => 'The maximum number of entries that is returned on each page. Valid values: 1 to 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], - 'RegionId' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'Images' => [ + 'NextToken' => ['description' => 'The pagination token for the next page.', 'type' => 'string', 'example' => 'ADBAAdDWBF2****', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of tasks.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'MaxResults' => ['description' => 'The maximum number of entries returned. Valid values: 1 to 200. Default value: 50.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + 'Tasks' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'Image' => [ - 'description' => 'The list of images.'."\n", + 'Task' => [ + 'description' => 'The task list.', 'type' => 'array', 'items' => [ + 'description' => 'The task list.', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => 'The image state.'."\n", - 'type' => 'string', - 'example' => 'Available', - ], - 'CreationTime' => [ - 'description' => 'The time when the image was created. The time follows the ISO 8601 standard.'."\n", - 'type' => 'string', - 'example' => '2021-01-01T01:07:58Z', - ], - 'Progress' => [ - 'description' => 'The progress of image creation.'."\n", - 'type' => 'string', - 'example' => '100%', - ], - 'Usage' => [ - 'description' => 'Indicates whether the image is used by instances. Valid values:'."\n" - ."\n" - .'* none: The image is idle.'."\n" - .'* instance: The image is used by instances.'."\n", - 'type' => 'string', - 'example' => 'none', - ], - 'IsSelfShared' => [ - 'description' => 'Indicates whether the image is shared with other Alibaba Cloud accounts.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'Description' => [ - 'description' => 'The image description.'."\n", - 'type' => 'string', - 'example' => 'testDescription', - ], - 'ImageName' => [ - 'description' => 'The image name.'."\n", - 'type' => 'string', - 'example' => 'testImageName', - ], - 'OSNameEn' => [ - 'description' => 'The display name of the OS in English.'."\n", - 'type' => 'string', - 'example' => 'Android 9.0', - ], - 'Platform' => [ - 'description' => 'The OS distribution.'."\n", - 'type' => 'string', - 'example' => 'Android 9.0', - ], - 'ImageCategory' => [ - 'description' => 'The image type.'."\n", - 'type' => 'string', - 'example' => 'system', - ], - 'OSName' => [ - 'description' => 'The display name of the OS in Chinese.'."\n", - 'type' => 'string', - 'example' => 'Android 9.0', - ], - 'ImageId' => [ - 'description' => 'The image ID.'."\n", - 'type' => 'string', - 'example' => 'cpm-xxxxxxxx', - ], - 'OSType' => [ - 'description' => 'The image OS.'."\n", - 'type' => 'string', - 'example' => 'android', - ], + 'TaskType' => ['description' => 'The task type.', 'type' => 'string', 'example' => 'Shell', 'title' => ''], + 'Progress' => ['description' => 'The task execution progress.', 'type' => 'string', 'example' => '100%', 'title' => ''], + 'TaskStatus' => ['description' => 'The task status.', 'type' => 'string', 'example' => 'Finished', 'title' => ''], + 'ExecuteMsg' => ['description' => 'The task execution result. The maximum length is 1024 bytes.', 'type' => 'string', 'example' => 'file1 file2', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the task was created.', 'type' => 'string', 'example' => '2021-04-15T10:10Z', 'title' => ''], + 'FinishedTime' => ['description' => 'The time when the task was completed.', 'type' => 'string', 'example' => '2021-04-15T10:10Z', 'title' => ''], + 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cp-acfmxazb4p***', 'title' => ''], + 'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => 't-bp67acfmxazb4p****', 'title' => ''], ], - 'description' => 'The list of images.', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": 3,\\n \\"MaxResults\\": 50,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Images\\": {\\n \\"Image\\": [\\n {\\n \\"Status\\": \\"Available\\",\\n \\"CreationTime\\": \\"2021-01-01T01:07Z\\",\\n \\"Progress\\": \\"100%\\",\\n \\"Usage\\": \\"none\\",\\n \\"IsSelfShared\\": false,\\n \\"Description\\": \\"testDescription\\",\\n \\"ImageName\\": \\"testImageName\\",\\n \\"OSNameEn\\": \\"Android 9.0\\",\\n \\"Platform\\": \\"Android 9.0\\",\\n \\"ImageCategory\\": \\"system\\",\\n \\"OSName\\": \\"Android 9.0\\",\\n \\"ImageId\\": \\"cpm-xxxxxxxx\\",\\n \\"OSType\\": \\"android\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'ListImages', - 'summary' => 'Queries available images.', - ], - 'ListImageSharePermission' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'errorCodes' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": 1,\\n \\"MaxResults\\": 50,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Tasks\\": {\\n \\"Task\\": [\\n {\\n \\"TaskType\\": \\"Shell\\",\\n \\"Progress\\": \\"100%\\",\\n \\"TaskStatus\\": \\"Finished\\",\\n \\"ExecuteMsg\\": \\"file1 file2\\",\\n \\"CreateTime\\": \\"2021-04-15T10:10Z\\",\\n \\"FinishedTime\\": \\"2021-04-15T10:10Z\\",\\n \\"InstanceId\\": \\"cp-acfmxazb4p***\\",\\n \\"TaskId\\": \\"t-bp67acfmxazb4p****\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Get cloud phone instance task list', + 'summary' => 'Retrieves the current task list of a cloud phone instance.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListTasks', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListZones' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2948,37 +2290,19 @@ ], 'systemTags' => [ 'operationType' => 'get', + 'abilityTreeCode' => '116020', + 'abilityTreeNodes' => ['FEATUREcloudphoneYWRDCM'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ImageId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the image that you want to import to the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cpm-xxxxxxxx', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -2986,51 +2310,58 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'Accounts' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'Zones' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'Account' => [ - 'description' => 'The list of Alibaba Cloud accounts.'."\n", + 'Zone' => [ + 'description' => 'The list of zones supported in the current region.', 'type' => 'array', 'items' => [ - 'description' => 'The Alibaba Cloud accounts.'."\n", 'type' => 'object', 'properties' => [ - 'AliyunId' => [ - 'description' => 'The ID of the Alibaba Cloud account.'."\n", - 'type' => 'string', - 'example' => '1765205448******', - ], + 'ZoneId' => ['description' => 'The zone ID.', 'type' => 'string', 'example' => 'cn-hangzhou-i', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F6037E25-FE1F-5423-A4BC-08BE09B81D16\\",\\n \\"Accounts\\": {\\n \\"Account\\": [\\n {\\n \\"AliyunId\\": \\"1765205448******\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'ListImageSharePermission', - 'summary' => 'Queries the recipient users with whom a custom image is shared.', - ], - 'ImportKeyPair' => [ - 'methods' => [ - 'post', - 'get', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Zones\\": {\\n \\"Zone\\": [\\n {\\n \\"ZoneId\\": \\"cn-hangzhou-i\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Query all zones in a specified region', + 'summary' => 'Queries the list of zones supported in a specified region.', + 'description' => '## Operation description'."\n" + ."\n" + .'- Queries the zones supported in a specified region.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2024-08-09T02:35:04.000Z', 'description' => 'Error codes changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'RebootInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3041,42 +2372,36 @@ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region to which the cloud phone instance belongs.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzou', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'InstanceId', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', + 'description' => 'The instance ID of the cloud phone.', + 'type' => 'array', + 'items' => ['description' => 'The instance ID of the cloud phone.', 'type' => 'string', 'required' => false, 'example' => 'cp-uf6dzwc1h1yaovov****', 'title' => ''], 'required' => true, - 'example' => 'cn-hangzhou', + 'maxItems' => 101, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'KeyPairName', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the key pair. The name must be globally unique. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (\\_), and hyphens (-).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'testKeyPairName', - ], + 'schema' => ['description' => 'The region to which the cloud phone instance belongs.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzou', 'title' => ''], ], [ - 'name' => 'PublicKeyBody', + 'name' => 'Force', 'in' => 'query', - 'schema' => [ - 'description' => 'The public key of the key pair.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'ABC1234567', - ], + 'schema' => ['description' => 'Specifies whether to forcibly restart the instance. Valid values:'."\n" + ."\n" + .'- true: forcibly restarts the instance. This is equivalent to a typical power-off operation. All cached data that has not been written to the storage device is lost.'."\n" + .'- false: normally restarts the instance.'."\n" + ."\n" + .'Default value: false.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], ], 'responses' => [ @@ -3084,200 +2409,94 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'KeyPairName' => [ - 'description' => 'The name of the key pair.'."\n", - 'type' => 'string', - 'example' => 'testKeyPairName', - ], - 'KeyPairFingerPrint' => [ - 'description' => 'The fingerprint of the key pair. The message-digest algorithm 5 (MD5) is used based on the public key fingerprint format defined in RFC 4716.'."\n", - 'type' => 'string', - 'example' => '89:f0:ba:62:ac:b8:aa:e1:61:5e:fd:81:69:86:6d:6b:f0:c0:5a:**', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"KeyPairName\\": \\"testKeyPairName\\",\\n \\"KeyPairFingerPrint\\": \\"89:f0:ba:62:ac:b8:aa:e1:61:5e:fd:81:69:86:6d:6b:f0:c0:5a:**\\"\\n}","type":"json"}]', - 'title' => 'ImportKeyPair', - 'summary' => 'Imports the public key of a Rivest-Shamir-Adleman (RSA)-encrypted key pair that is generated by a third-party tool.', - 'description' => 'Usage notes Before you call this operation, take note of the following items:'."\n" - ."\n" - .'* You can create up to 500 key pairs in each region.'."\n" - .'* The imported public key pair must generate the public key of a key pair for Android Debug Bridge (ADB).'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DeleteKeyPairs' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'Restart an instance', + 'summary' => 'Restarts an instance.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:RebootInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'RenewInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'delete', - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID of the key pair that you want to delete.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'KeyPairName', + 'name' => 'InstanceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The name of the key pair that the cloud phone uses. The value can be a JSON array that consists of up to 100 SSH key pair names. Separate multiple key pair names with commas (,).'."\n", + 'description' => 'The list of instance IDs to renew. The list can contain a maximum of 20 elements.', 'type' => 'array', - 'items' => [ - 'type' => 'string', - 'required' => false, - 'example' => 'testKey', - 'description' => '', - ], + 'items' => ['description' => 'The instance ID to renew.', 'type' => 'string', 'required' => false, 'example' => 'cp-xxxx', 'title' => ''], 'required' => true, - 'example' => '[keyPairName1, keyPairNam2, keyPairName3]', + 'example' => 'cp-xxxx', 'maxItems' => 101, + 'title' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID of the key pair that you want to delete.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - ], - 'description' => '', - ], - ], - ], - 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', - 'title' => 'DeleteKeyPairs', - 'summary' => 'Deletes key pairs.', - 'description' => '* Before you call the operation, take note of the following items:'."\n" - ."\n" - .' * If you delete a key pair of a cloud phone, you cannot query the key pair of the cloud phone by calling the ListKeyPairs operation.'."\n" - .' * If you delete a key pair that is bound to an existing Elastic Cloud Phone (ECP) instance, Alibaba Cloud no longer saves the key pair for you, but the ECP instance can use the key pair as expected.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListKeyPairs' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'systemTags' => [ - 'operationType' => 'get', - ], - 'parameters' => [ - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the key pair resides.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the key pair resides.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'KeyPairName', + 'name' => 'Period', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the key pair.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'testKeyPair', - ], + 'schema' => ['description' => 'The renewal period. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], [ - 'name' => 'KeyPairFingerPrint', + 'name' => 'PeriodUnit', 'in' => 'query', - 'schema' => [ - 'description' => 'The fingerprint of the key pair. The message-digest algorithm 5 (MD5) is used based on the public key fingerprint format defined in RFC 4716.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ABC1234567', - ], + 'schema' => ['description' => 'The unit of the renewal period. Valid values:'."\n" + .'- Year: subscription. Valid values for the period: 1, 2, 3, 4, and 5.'."\n" + .'- Month: subscription. Valid values for the period: 1, 2, 3, and 6.'."\n" + .'- Hour: pay-as-you-go. Valid value for the period: 1.'."\n" + ."\n" + .'Default value: Month.', 'type' => 'string', 'required' => false, 'example' => 'Month', 'title' => ''], ], [ - 'name' => 'NextToken', + 'name' => 'AutoPay', 'in' => 'query', - 'schema' => [ - 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ADBAAdDWBF2****', - ], + 'schema' => ['description' => 'Specifies whether to enable automatic payment. Default value: true.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], [ - 'name' => 'MaxResults', + 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => 'The maximum number of entries per page. Valid values: 1 to 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '50', - ], + 'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but make sure that the token is unique among different requests. The value of ClientToken can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.', 'type' => 'string', 'required' => false, 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], ], 'responses' => [ @@ -3285,79 +2504,60 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results.'."\n", - 'type' => 'string', - 'example' => 't', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'TotalCount' => [ - 'description' => 'The total number of key pairs.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'MaxResults' => [ - 'description' => 'The maximum number of entries per page. Valid values: 1 to 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'KeyPairs' => [ + 'OrderId' => ['description' => 'The order ID.', 'type' => 'string', 'example' => '10000', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'InstanceIds' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'KeyPair' => [ - 'description' => 'The key pairs that are returned.'."\n", + 'InstanceId' => [ + 'description' => 'The list of renewed instance IDs.', 'type' => 'array', - 'items' => [ - 'description' => 'The key pairs that are returned.', - 'type' => 'object', - 'properties' => [ - 'CreationTime' => [ - 'description' => 'The time when the key pair was created.'."\n", - 'type' => 'string', - 'example' => '2021-03-04T13:35:00Z', - ], - 'KeyPairName' => [ - 'description' => 'The name of the SSH key pair.'."\n", - 'type' => 'string', - 'example' => 'testKeyPairName', - ], - 'KeyPairFingerPrint' => [ - 'description' => 'The fingerprint of the key pair.'."\n", - 'type' => 'string', - 'example' => 'ABC1234567', - ], - ], - ], + 'items' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cp-xxxx', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": 5,\\n \\"MaxResults\\": 100,\\n \\"KeyPairs\\": {\\n \\"KeyPair\\": [\\n {\\n \\"CreationTime\\": \\"2021-03-04T13:35Z\\",\\n \\"KeyPairName\\": \\"testKeyPairName\\",\\n \\"KeyPairFingerPrint\\": \\"ABC1234567\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'ListKeyPairs', - 'summary' => 'Queries one or more key pairs.', - 'description' => 'You can call this operation to query one or more key pairs of cloud phones.'."\n", - ], - 'CancelTask' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OrderId\\": \\"10000\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"InstanceIds\\": {\\n \\"InstanceId\\": [\\n \\"cp-xxxx\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Batch renew Cloud phone instances', + 'summary' => 'Renews multiple subscription Cloud Phone instances in a batch.', + 'description' => '- Batch renewal operation.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:RenewInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'ResetInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3368,32 +2568,31 @@ [ 'name' => 'RegionId', 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'InstanceId', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', + 'description' => 'The list of cloud phone instance IDs. Valid values of N: 1 to 100.', + 'type' => 'array', + 'items' => ['description' => 'The cloud phone instance ID.', 'type' => 'string', 'required' => false, 'example' => 'cp-xxxxxx', 'title' => ''], 'required' => true, - 'example' => 'cn-hangzhou', + 'example' => 'cp-xxxxxx', + 'maxItems' => 101, + 'title' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'TaskId', + 'name' => 'ImageId', 'in' => 'query', - 'schema' => [ - 'description' => 'The task ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 't-bp1hvgwromzv32iq****', - ], + 'schema' => ['description' => 'The cloud phone image ID. If this parameter is not specified, the instance is reset by using its current image.', 'type' => 'string', 'required' => false, 'example' => 'cpm-xxxxxx', 'title' => ''], ], ], 'responses' => [ @@ -3401,147 +2600,82 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83A', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83A\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83A</RequestId>","errorExample":""}]', - 'title' => 'CancelTask', - 'summary' => 'Cancels a task that is being executed on an Elastic Cloud Phone (ECP) instance.', - 'description' => 'When you call this operation, take note of the following item:'."\n" + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'Batch reset instances', + 'summary' => 'Resets instances to their initial state at the time of creation.', + 'description' => '## Operation description'."\n" ."\n" - .'* If the task is executed, you fail to call the operation and an error is returned.'."\n", + .'When you call this operation, take note of the following items:'."\n" + .'- The cloud phone instance must be in the Stopped state.'."\n" + .'- If the source image used to create the cloud phone instance has been deleted, the instance cannot be initialized.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListTasks' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:ResetInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'RunCommand' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'TaskId', + 'name' => 'InstanceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The task IDs. Valid values of N: 1 to 100.'."\n", + 'description' => 'The instance ID of the instance on which to execute the command. Valid values of N: 1 to 10.', 'type' => 'array', - 'items' => [ - 'description' => 'The task ID. Valid values of N: 1 to 100.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 't-bp67acfmxazb4p****', - ], + 'items' => ['description' => 'The cloud phone instance ID.', 'type' => 'string', 'required' => false, 'example' => 'cp-acfmxazb4p***', 'title' => ''], 'required' => false, - 'maxItems' => 101, - 'example' => 't-bp67acfmxazb4p****', + 'maxItems' => 51, + 'title' => '', + 'example' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'TaskStatus', - 'in' => 'query', - 'schema' => [ - 'description' => 'The task state. Valid values:'."\n" - ."\n" - .'* Finished'."\n" - .'* Processing'."\n" - .'* Failed'."\n" - ."\n" - .'This parameter is empty by default.'."\n" - ."\n" - .'> The system only queries tasks that are in the Finished, Processing, and Failed states and ignores other values.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Finished', - ], - ], - [ - 'name' => 'TaskType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the operation that you can call to execute the task on the instance. Valid values:'."\n" - ."\n" - .'* Shell: runs a shell command.'."\n" - .'* InstallApplication: installs an application.'."\n" - .'* UninstallApplication: uninstalls an application.'."\n" - .'* SendFile: uploads a file.'."\n" - .'* ImportImage: imports an image.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Shell', - ], - ], - [ - 'name' => 'InstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-acfmxazb4p***', - ], - ], - [ - 'name' => 'NextToken', - 'in' => 'query', - 'schema' => [ - 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '55C15B1C-D507-45F0-B490-69D6E0F113C6', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'MaxResults', + 'name' => 'Command', 'in' => 'query', - 'schema' => [ - 'description' => 'The maximum number of entries to return on each page. Valid values: 1 to 100. Default value: 50.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '50', - ], + 'schema' => ['description' => 'The command to execute. The command can be up to 1024 bytes in length and can contain only letters, digits, underscores (_), periods (.), forward slashes (/), colons (:), and hyphens (-).', 'type' => 'string', 'required' => true, 'example' => 'ls -al /', 'title' => ''], ], ], 'responses' => [ @@ -3549,108 +2683,57 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results.'."\n", - 'type' => 'string', - 'example' => 'ADBAAdDWBF2****', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'TotalCount' => [ - 'description' => 'The total number of tasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'MaxResults' => [ - 'description' => 'The maximum number of entries that is returned on each page. Valid values: 1 to 200. Default value: 50.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], - 'RegionId' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'Tasks' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '55C15B1C-D507-45F0-B490-69D6E0F113C6', 'title' => ''], + 'TaskId' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'Task' => [ - 'description' => 'The tasks.'."\n", + 'TaskId' => [ + 'description' => 'The task ID.', 'type' => 'array', - 'items' => [ - 'description' => 'The tasks.', - 'type' => 'object', - 'properties' => [ - 'TaskType' => [ - 'description' => 'The task type.'."\n", - 'type' => 'string', - 'example' => 'Shell', - ], - 'Progress' => [ - 'description' => 'The task progress.'."\n", - 'type' => 'string', - 'example' => '100%', - ], - 'TaskStatus' => [ - 'description' => 'The task state.'."\n", - 'type' => 'string', - 'example' => 'Finished', - ], - 'ExecuteMsg' => [ - 'description' => 'The content that is returned after the task is executed. The content can be up to 1,024 bytes in length.'."\n", - 'type' => 'string', - 'example' => 'file1 file2', - ], - 'CreateTime' => [ - 'description' => 'The time when the task was created.'."\n", - 'type' => 'string', - 'example' => '2021-04-15 10:10:00', - ], - 'FinishedTime' => [ - 'description' => 'The time when the task ended.'."\n", - 'type' => 'string', - 'example' => '2021-04-15 10:10:01', - ], - 'InstanceId' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => 'cp-acfmxazb4p***', - ], - 'TaskId' => [ - 'description' => 'The task ID.'."\n", - 'type' => 'string', - 'example' => 't-bp67acfmxazb4p****', - ], - ], - ], + 'items' => ['description' => 'The list of task IDs. Valid values of N: 1 to 100.', 'type' => 'string', 'example' => 't-bp67acfmxazb4p****', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": 1,\\n \\"MaxResults\\": 50,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Tasks\\": {\\n \\"Task\\": [\\n {\\n \\"TaskType\\": \\"Shell\\",\\n \\"Progress\\": \\"100%\\",\\n \\"TaskStatus\\": \\"Finished\\",\\n \\"ExecuteMsg\\": \\"file1 file2\\",\\n \\"CreateTime\\": \\"2021-04-15T10:10Z\\",\\n \\"FinishedTime\\": \\"2021-04-15T10:10Z\\",\\n \\"InstanceId\\": \\"cp-acfmxazb4p***\\",\\n \\"TaskId\\": \\"t-bp67acfmxazb4p****\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'ListTasks', - 'summary' => 'Queries the list of tasks of an Elastic Cloud Phone (ECP) instance.', - ], - 'RunCommand' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"55C15B1C-D507-45F0-B490-69D6E0F113C6\\",\\n \\"TaskId\\": {\\n \\"TaskId\\": [\\n \\"t-bp67acfmxazb4p****\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Execute a command on cloud phones', + 'summary' => 'Executes a command on cloud phones.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RunCommand'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:RunCommand', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'RunInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3661,219 +2744,213 @@ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'InstanceId', + 'name' => 'RegionId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The IDs of the instances on which you want to run the command.\\'."\n" - .'Valid values of N: 1 to 10.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-acfmxazb4p***', - ], - 'required' => false, - 'maxItems' => 51, - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'InstanceName', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The instance name. The name must be 2 to 128 characters in length and must start with a letter or a Chinese character. It cannot start with `http://` or `https://`. The name can contain Chinese characters, letters, digits, colons (:), underscores (_), periods (.), and hyphens (-). Default value: the value of InstanceId.', 'type' => 'string', 'required' => false, 'example' => 'instance', 'title' => ''], ], [ - 'name' => 'Command', + 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'description' => 'The command that you want to run.\\'."\n" - .'The name can be up to 1024 bytes in length and can contain only letters, digits, underscores (\\_), periods (.), slashes (/), colons (:), and hyphens (-).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'ls -al /', - ], + 'schema' => ['description' => 'The description of the instance. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'cloudphone instance', 'title' => ''], ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '55C15B1C-D507-45F0-B490-69D6E0F113C6', - ], - 'TaskId' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'TaskId' => [ - 'description' => 'The task IDs.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The task ID. Valid values of N: 1 to 100.'."\n", - 'type' => 'string', - 'example' => 't-bp67acfmxazb4p****', - ], - ], - ], - ], - ], - 'description' => '', - ], + [ + 'name' => 'InstanceType', + 'in' => 'query', + 'schema' => ['description' => 'The instance type.', 'type' => 'string', 'required' => true, 'example' => 'ecp.ce.large', 'title' => ''], ], - ], - 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"55C15B1C-D507-45F0-B490-69D6E0F113C6\\",\\n \\"TaskId\\": {\\n \\"TaskId\\": [\\n \\"t-bp67acfmxazb4p****\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'RunCommand', - 'summary' => 'Runs a command on an Elastic Cloud Phone (ECP) instance.', - ], - 'SendFile' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'ImageId', + 'in' => 'query', + 'schema' => ['description' => 'The image ID.', 'type' => 'string', 'required' => true, 'example' => 'cpm-xxxx', 'title' => ''], ], - ], - 'systemTags' => [], - 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'SecurityGroupId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The security group ID. The same security group as ECS is used.', 'type' => 'string', 'required' => true, 'example' => 'sg-xxxxx', 'title' => ''], ], [ - 'name' => 'InstanceId', + 'name' => 'VSwitchId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The IDs of the instances on which you want to run the command. Valid values of N: 1 to 10.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The ID of the instance on which you want to run the command. Valid values of N: 1 to 10.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-acfmxazb4p***', - ], - 'required' => false, - 'maxItems' => 51, - 'example' => ' ', - ], + 'schema' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'required' => true, 'example' => 'vsw-xxxx', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'EipBandwidth', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The bandwidth value of the elastic IP address (EIP). Valid values: 1 to 200. Settings this parameter triggers the automatic creation of an EIP with the specified bandwidth, and the EIP is attached to the cloud phone instance. When the instance is released, the EIP is also released and revoked.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''], ], [ - 'name' => 'OssBucket', + 'name' => 'Resolution', 'in' => 'query', - 'schema' => [ - 'description' => 'The Object Storage Service (OSS) bucket to which you want to upload the file.'."\n" - ."\n" - .'> Before you import an APK file to the OSS bucket for the first time, add a Resource Access Management (RAM) policy. Otherwise, NoSetRoletoECSServiceAcount appears.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'The ID of instance N on which you want to run commands. Valid values of N: 1 to 10.', - ], + 'schema' => ['description' => 'The resolution of the cloud phone instance. You can call the DescribeInstanceTypes operation to query the resolutions supported by the current instance type and select an appropriate resolution.', 'type' => 'string', 'required' => false, 'example' => '1920*1080', 'title' => ''], ], [ - 'name' => 'OssObject', + 'name' => 'Amount', 'in' => 'query', - 'schema' => [ - 'description' => 'The name (key) of the file that you want to use as an OSS object.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test.txt', - ], + 'schema' => ['description' => 'The number of ECS instances that you want to create. Valid values: 1 to 100.'."\n" + ."\n" + .'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ - 'name' => 'Path', + 'name' => 'KeyPairName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the key pair for the cloud phone instance. You can call the ImportKeyPair operation to import a key pair.', 'type' => 'string', 'required' => false, 'example' => 'keypair', 'title' => ''], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but make sure that the token is unique among different requests. The value of ClientToken can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.', 'type' => 'string', 'required' => false, 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + ], + [ + 'name' => 'ChargeType', + 'in' => 'query', + 'schema' => ['description' => 'The billing method of the instance. Valid values:'."\n" + ."\n" + .'- PrePaid: subscription.'."\n" + .'- PostPaid (default): pay-as-you-go.', 'type' => 'string', 'required' => false, 'example' => 'PostPaid', 'title' => ''], + ], + [ + 'name' => 'PeriodUnit', + 'in' => 'query', + 'schema' => ['description' => 'The unit of the subscription billing duration. Billable methods include subscription. Valid values:'."\n" + ."\n" + .'- Year'."\n" + .'- Month (default).', 'type' => 'string', 'required' => false, 'example' => 'Month', 'title' => ''], + ], + [ + 'name' => 'AutoRenew', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to enable auto-renewal. This parameter takes effect only when InstanceChargeType is set to PrePaid. Valid values:'."\n" + ."\n" + .'- true: enables auto-renewal.'."\n" + .'- false (default): disables auto-renewal.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'AutoPay', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to enable automatic payment. Default value: true.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'Period', + 'in' => 'query', + 'schema' => ['description' => 'The subscription duration. Default value: 1.'."\n" + .'- If PeriodUnit is set to Month, valid values are 1, 2, 3, and 6.'."\n" + .'- If PeriodUnit is set to Year, valid values are 1, 2, 3, 4, and 5.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'Tag', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The directory of the file that you want to pull in the cloud phone.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '/sdcard', + 'title' => '', + 'description' => 'The tags of the instance.', + 'type' => 'array', + 'items' => [ + 'description' => 'The tags.', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '', 'description' => 'The tag key of the instance. Valid values of N: 1 to 20.', 'type' => 'string', 'required' => false, 'example' => 'TestKey'], + 'Value' => ['title' => '', 'description' => 'The tag value of the instance. Valid values of N: 1 to 20.', 'type' => 'string', 'required' => false, 'example' => 'TestValue'], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 21, + 'example' => '', ], ], + [ + 'name' => 'PrivateIpAddress', + 'in' => 'query', + 'schema' => ['description' => 'The private IP address of the cloud phone instance. When you specify a private IP address for the cloud phone instance, select an available IP address from the idle CIDR block of the vSwitch (VSwitchId).'."\n" + .'Note:'."\n" + .'If you set PrivateIpAddress, you must set Amount to 1, which indicates that only one cloud phone instance with the specified private IP address is created.', 'type' => 'string', 'required' => false, 'example' => '192.168.157.224', 'title' => ''], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'TaskId' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], + 'OrderId' => ['description' => 'The order ID.', 'type' => 'string', 'example' => '9611111323245', 'title' => ''], + 'TradePrice' => ['description' => 'The price.', 'type' => 'number', 'format' => 'float', 'example' => '133.32', 'title' => ''], + 'InstanceIds' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'TaskId' => [ - 'description' => 'The task IDs. Valid values of N: 1 to 100.'."\n", + 'InstanceId' => [ + 'description' => 'The list of instance IDs.', 'type' => 'array', - 'items' => [ - 'description' => 'The task ID. Valid values of N: 1 to 100.'."\n", - 'type' => 'string', - 'example' => 't-bp67acfmxazb4p****', - ], + 'items' => ['description' => 'The list of instance IDs.', 'type' => 'string', 'example' => 'cp-xxxxx', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TaskId\\": {\\n \\"TaskId\\": [\\n \\"t-bp67acfmxazb4p****\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'SendFile', - 'summary' => 'Pushes a file to the file system of an Elastic Cloud Phone (ECP) instance.', - ], - 'InstallApplication' => [ - 'methods' => [ - 'post', - 'get', + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'QuotaExceed', 'errorMessage' => 'Instance quota exceed.', 'description' => ''], + ], ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"OrderId\\": \\"9611111323245\\",\\n \\"TradePrice\\": 133.32,\\n \\"InstanceIds\\": {\\n \\"InstanceId\\": [\\n \\"cp-xxxxx\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Create and start instances in a batch', + 'summary' => 'Creates and starts instances in a batch.', + 'description' => 'Preparations:'."\n" + ."\n" + .'- Complete real-name verification. For more information, see [Chinese Chinese Chinese Chinese](~~428525~~).'."\n" + ."\n" + .'Before you begin:'."\n" + ."\n" + .'- You can create up to 100 instances in a single request.'."\n" + .'- This operation creates and starts instances.'."\n" + .'- If an instance fails to be created due to factors such as insufficient inventory, the instance is automatically rolled back and released.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2022-06-10T07:03:27.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-03-24T08:11:25.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:RunInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'SendFile' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3884,62 +2961,43 @@ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'InstanceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The IDs of the instances on which you want to run the command. Valid values of N: 1 to 10.'."\n", + 'description' => 'The instance ID of the instance on which to execute the command. Valid values of N: 1 to 10.', 'type' => 'array', - 'items' => [ - 'description' => 'The ID of the instance on which you want to run the command. Valid values of N: 1 to 10.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-uf65l0q3voetmjazif25', - ], + 'items' => ['description' => 'The instance ID of the instance on which to execute the command. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => false, 'example' => 'cp-acfmxazb4p***', 'title' => ''], 'required' => false, 'maxItems' => 51, - 'example' => 'cp-acfmxazb4p***', + 'title' => '', + 'example' => '', ], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'OssBucket', 'in' => 'query', - 'schema' => [ - 'description' => 'The Object Storage Service (OSS) bucket in which you want to store the application file.'."\n" - ."\n" - .'> Before you import application files to the OSS bucket for the first time, add a Resource Access Management (RAM) policy. Otherwise, NoSetRoletoECSServiceAcount appears.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'phoneapplication', - ], + 'schema' => ['description' => 'The OSS bucket where the file to be sent is stored.'."\n" + ."\n" + .'> Before importing an APK file to the OSS bucket for the first time, add a RAM authorization policy. Otherwise, the NoSetRoletoECSServiceAcount error is returned.', 'type' => 'string', 'required' => true, 'example' => 'cloudphone-fvt-cn-hangzhou', 'title' => ''], ], [ 'name' => 'OssObject', 'in' => 'query', - 'schema' => [ - 'description' => 'The name (key) of the application file that is used as an OSS object.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test.apk', - ], + 'schema' => ['description' => 'The name (key) of the OSS object where the file is stored.', 'type' => 'string', 'required' => true, 'example' => 'test.txt', 'title' => ''], + ], + [ + 'name' => 'Path', + 'in' => 'query', + 'schema' => ['description' => 'The full path of the file on the cloud phone.', 'type' => 'string', 'required' => true, 'example' => '/sdcard', 'title' => ''], ], ], 'responses' => [ @@ -3947,98 +3005,85 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '55C15B1C-D507-45F0-B490-69D6E0F113C6', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], 'TaskId' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'TaskId' => [ - 'description' => 'The task IDs.'."\n", + 'description' => 'The task ID list. Valid values of N: 1 to 100.', 'type' => 'array', - 'items' => [ - 'description' => 'The task ID.'."\n", - 'type' => 'string', - 'example' => 't-bp67acfmxazb4p****', - ], + 'items' => ['description' => 'The task ID list. Valid values of N: 1 to 100.', 'type' => 'string', 'example' => 't-bp67acfmxazb4p****', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"55C15B1C-D507-45F0-B490-69D6E0F113C6\\",\\n \\"TaskId\\": {\\n \\"TaskId\\": [\\n \\"t-bp67acfmxazb4p****\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'InstallApplication', - 'summary' => 'Installs an application on an Elastic Cloud Phone (ECP) instance.', - ], - 'UninstallApplication' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TaskId\\": {\\n \\"TaskId\\": [\\n \\"t-bp67acfmxazb4p****\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Push a file to a cloud phone', + 'summary' => 'Pushes a file to a cloud phone.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:SendFile', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'StartInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'InstanceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The IDs of the instances on which you want to run the command. Valid values of N: 1 to 10.'."\n", + 'description' => 'The list of instance IDs. You can start up to 100 cloud phones at a time.', 'type' => 'array', - 'items' => [ - 'description' => 'The ID of the instance on which you want to run the command. Valid values of N: 1 to 10.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cp-acfmxazb4p***', - ], - 'required' => false, - 'maxItems' => 51, - ], - ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', + 'items' => ['description' => 'The list of instance IDs.', 'type' => 'string', 'required' => false, 'example' => 'cp-bp14g2vueqq8aef6fx0c', 'title' => ''], 'required' => true, - 'example' => 'cn-hangzhou', + 'maxItems' => 101, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'PackageName', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the application that you want to uninstall. The name can be up to 1024 bytes in length and can contain only letters, digits, underscores (\\_), periods (.), slashes (/), colons (:), and hyphens (-).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'com.theapp.test', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -4046,113 +3091,79 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '55C15B1C-D507-45F0-B490-69D6E0F113C6', - ], - 'TaskId' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'TaskId' => [ - 'description' => 'The task ID.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The task ID.'."\n", - 'type' => 'string', - 'example' => 't-bp67acfmxazb4p****', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5D9157CC-96A5-519E-80C0-D7047FF939D3\\",\\n \\"TaskId\\": {\\n \\"TaskId\\": [\\n \\"t-bp67acfmxazb4p****\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'UninstallApplication', - 'summary' => 'Uninstalls an application from an Elastic Cloud Phone (ECP) instance.', - ], - 'FetchFile' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'Start instances in batches', + 'summary' => 'Starts instances in batches.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'cloudphone:StartInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + ], + 'StopInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region to which the cloud phone instances belong.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'InstanceId', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The ID of the instance on which you want to run the command. Valid values of N: 1 to 10.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cp-acfmxazb4p***', - ], - ], - [ - 'name' => 'OssBucket', - 'in' => 'query', - 'schema' => [ - 'description' => 'The OSS bucket to which the file that you want to upload.'."\n" - ."\n" - .'> Before you import an APK file to the OSS bucket for the first time, add a Resource Access Management (RAM) policy. Otherwise, NoSetRoletoECSServiceAcount appears.'."\n", - 'type' => 'string', + 'description' => 'The list of instance IDs. Valid values of N: 1 to 100.', + 'type' => 'array', + 'items' => ['description' => 'The list of instance IDs. Valid values of N: 1 to 100.', 'type' => 'string', 'required' => false, 'example' => 'cp-xxxx', 'title' => ''], 'required' => true, - 'example' => 'bucket', + 'maxItems' => 101, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'OssObject', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name that you want to save to OSS.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test.txt', - ], + 'schema' => ['description' => 'The region to which the cloud phone instances belong.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'Path', + 'name' => 'Force', 'in' => 'query', - 'schema' => [ - 'description' => 'The path in which you want to store the file in the cloud phone.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '/sdcard/test.txt', - ], + 'schema' => ['description' => 'Specifies whether to forcefully stop the instances. Valid values:'."\n" + ."\n" + .'- true: Forcefully stops the instances. This is equivalent to a typical power-off operation. All cached data that has not been written to storage devices is lost.'."\n" + .'- false: Normally stops the instances.'."\n" + ."\n" + .'Default value: false.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], ], 'responses' => [ @@ -4160,36 +3171,40 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'description' => 'The task ID.'."\n", - 'type' => 'string', - 'example' => 't-bp67acfmxazb4p****', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TaskId\\": \\"t-bp67acfmxazb4p****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', - 'title' => 'FetchFile', - 'summary' => 'Pulls a file from a cloud phone and stores the file to Object Storage Service (OSS).', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'Stop instances in a batch', + 'summary' => 'Stops multiple instances in a batch.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'cloudphone:StopInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + ], ], 'TagResources' => [ - 'summary' => 'Creates and binds tags for multiple cloud resources.', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'summary' => 'Creates and attaches tags to multiple cloud resources at a time.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4199,50 +3214,32 @@ 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '130040', - 'abilityTreeNodes' => [ - 'FEATUREcloudphoneXDJIVR', - ], + 'abilityTreeNodes' => ['FEATUREcloudphoneXDJIVR'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'title' => '资源类型', - 'description' => 'The resource type. Valid value:'."\n" - ."\n" - .'* instance: Elastic Cloud Phone (ECP) instance'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'instance', - ], + 'schema' => ['title' => '', 'description' => 'The resource type. Valid values:'."\n" + .'- instance: elastic cloud phone instance.', 'type' => 'string', 'required' => true, 'example' => 'instance'], ], [ 'name' => 'ResourceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'title' => '资源ID,最多 50个子项', - 'description' => 'The resource IDs. You can specify up to 50 resources.'."\n", + 'title' => '', + 'description' => 'The resource IDs. A maximum of 50 subkeys are supported.', 'type' => 'array', - 'items' => [ - 'type' => 'string', - 'required' => false, - 'example' => 'cp-xxxx', - 'description' => '', - ], + 'items' => ['type' => 'string', 'description' => '', 'required' => false, 'example' => 'cp-xxxx', 'title' => ''], 'required' => true, 'maxItems' => 51, + 'example' => '', ], ], [ @@ -4250,32 +3247,23 @@ 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'title' => '标签列表,最多包含20个子项', - 'description' => 'The tags. You can specify up to 20 tags.'."\n", + 'title' => '', + 'description' => 'The labels. A maximum of 20 subkeys are supported.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'title' => '标签键', - 'description' => 'The tag key.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestKey', - ], - 'Value' => [ - 'title' => '标签值', - 'description' => 'The tag value.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestValue', - ], + 'Key' => ['title' => '', 'description' => 'The label key.', 'type' => 'string', 'required' => false, 'example' => 'TestKey'], + 'Value' => ['title' => '', 'description' => 'The label value.', 'type' => 'string', 'required' => false, 'example' => 'TestValue'], ], 'required' => false, - 'description' => 'The tags of the ECP instance.'."\n", + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => true, 'maxItems' => 21, + 'example' => '', ], ], ], @@ -4284,127 +3272,76 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', - 'title' => 'TagResources', - ], - 'ListTagResources' => [ - 'summary' => 'Queries the tags that are bound to multiple cloud resources.', - 'methods' => [ - 'post', - 'get', + 'title' => 'Create and attach tags to cloud resources', + 'changeSet' => [ + ['createdAt' => '2022-03-24T08:11:26.000Z', 'description' => 'OpenAPI offline'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'], + ], ], - 'security' => [ + 'ramActions' => [ [ - 'AK' => [], + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'cloudphone:TagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], ], - 'operationType' => 'readAndWrite', - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '130042', - 'abilityTreeNodes' => [ - 'FEATUREcloudphoneXDJIVR', + ], + 'UninstallApplication' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], ], ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'NextToken', - 'in' => 'query', - 'schema' => [ - 'title' => '下一个查询开始Token', - 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ADBAAdDWBF2****', - ], - ], - [ - 'name' => 'ResourceType', - 'in' => 'query', - 'schema' => [ - 'title' => '资源类型', - 'description' => 'The resource type. Valid value:'."\n" - ."\n" - .'* instance: Elastic Cloud Phone (ECP) instance'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'instance', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'InstanceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'title' => '资源ID,最多 50个子项', - 'description' => 'The resource IDs. You can specify up to 50 resources.'."\n", + 'description' => 'The instance ID of the instance on which the command is to be executed. Valid values of N: 1 to 10.', 'type' => 'array', - 'items' => [ - 'type' => 'string', - 'required' => false, - 'example' => 'cp-xxxx', - 'description' => '', - ], + 'items' => ['description' => 'The instance ID of the instance on which the command is to be executed. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => false, 'example' => 'cp-acfmxazb4p***', 'title' => ''], 'required' => false, 'maxItems' => 51, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'Tag', + 'name' => 'RegionId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'title' => '标签列表,最多包含20个子项', - 'description' => 'The tags. You can specify up to 20 tags.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '标签键', - 'description' => 'The tag key.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestKey', - ], - 'Value' => [ - 'title' => '标签值', - 'description' => 'The tag value.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestValue', - ], - ], - 'required' => false, - 'description' => 'The tags of the ECP instance.'."\n", - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'PackageName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the application to uninstall. The name can be up to 1024 bytes in length and can contain uppercase letters, lowercase letters, digits, underscores (_), periods (.), forward slashes (/), colons (:), and hyphens (-).', 'type' => 'string', 'required' => true, 'example' => 'com.theapp.test', 'title' => ''], ], ], 'responses' => [ @@ -4412,78 +3349,56 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'title' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'description' => 'The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. If the NextToken parameter is empty, no next page exists.'."\n", - 'type' => 'string', - 'example' => 'ADBAAdDWBF2****', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83A', - ], - 'TagResources' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '5D9157CC-96A5-519E-80C0-D7047FF939D3', 'title' => ''], + 'TaskId' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'TagResource' => [ - 'title' => '资源列表', - 'description' => 'The list of resources.'."\n", + 'TaskId' => [ + 'description' => 'The task ID.', 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ResourceType' => [ - 'title' => '资源类型', - 'description' => 'The resource type. Valid value:'."\n" - ."\n" - .'* instance: ECP instance'."\n", - 'type' => 'string', - 'example' => 'instance', - ], - 'TagValue' => [ - 'title' => '标签值', - 'description' => 'The tag value.'."\n", - 'type' => 'string', - 'example' => 'TestValue', - ], - 'ResourceId' => [ - 'title' => '资源ID', - 'description' => 'The resource ID.'."\n", - 'type' => 'string', - 'example' => 'cp-xxx', - ], - 'TagKey' => [ - 'title' => '标签键', - 'description' => 'The tag key.'."\n", - 'type' => 'string', - 'example' => 'TestKey', - ], - ], - 'description' => 'The details about the resources and tags, such as the resource ID, the resource type, tag keys, and tag values.'."\n", - ], + 'items' => ['description' => 'The task ID.', 'type' => 'string', 'example' => 't-bp67acfmxazb4p****', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5D9157CC-96A5-519E-80C0-D7047FF939D3\\",\\n \\"TaskId\\": {\\n \\"TaskId\\": [\\n \\"t-bp67acfmxazb4p****\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Uninstall a specified application', + 'summary' => 'Uninstalls an application.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:UninstallApplication', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83A\\",\\n \\"TagResources\\": {\\n \\"TagResource\\": [\\n {\\n \\"ResourceType\\": \\"instance\\",\\n \\"TagValue\\": \\"TestValue\\",\\n \\"ResourceId\\": \\"cp-xxx\\",\\n \\"TagKey\\": \\"TestKey\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'ListTagResources', ], 'UntagResources' => [ - 'summary' => 'Unbinds tags from multiple cloud resources.', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'summary' => 'Unbinds tags from multiple cloud resources at a time.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4493,61 +3408,37 @@ 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '130041', - 'abilityTreeNodes' => [ - 'FEATUREcloudphoneXDJIVR', - ], + 'abilityTreeNodes' => ['FEATUREcloudphoneXDJIVR'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'title' => '资源类型', - 'description' => 'The resource type. Valid value:'."\n" - ."\n" - .'* instance: Elastic Cloud Phone (ECP) instance'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'instance', - ], + 'schema' => ['title' => '', 'description' => 'The resource type. Valid values:'."\n" + .'- instance: elastic cloud phone instance.', 'type' => 'string', 'required' => true, 'example' => 'instance'], ], [ 'name' => 'All', 'in' => 'query', - 'schema' => [ - 'title' => '是否全部删除,只针对TagKey.N为空时有效。 取值范围: true false True False 默认是 false', - 'description' => 'Specifies whether to delete all tags. This parameter takes effect only when the TagKey.N parameter is not specified. Valid values: true and false. Default value: false.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['title' => '', 'description' => 'Specifies whether to delete all tags. This parameter takes effect only when TagKey.N is empty. Valid values: true, false, True, and False. Default value: false.', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ 'name' => 'ResourceId', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'title' => '资源ID,最多50个子项', - 'description' => 'The resource IDs. You can specify up to 50 resources.'."\n", + 'title' => '', + 'description' => 'The resource ID. You can specify up to 50 subkeys.', 'type' => 'array', - 'items' => [ - 'type' => 'string', - 'required' => false, - 'example' => 'cp-xxx', - 'description' => '', - ], + 'items' => ['type' => 'string', 'description' => '', 'required' => false, 'example' => 'cp-xxx', 'title' => ''], 'required' => true, 'maxItems' => 51, + 'example' => '', ], ], [ @@ -4555,17 +3446,13 @@ 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'title' => '标签键,最多20个子项', - 'description' => 'The tag keys. You can specify up to 20 tag keys.'."\n", + 'title' => '', + 'description' => 'The tag key. You can specify up to 20 subkeys.', 'type' => 'array', - 'items' => [ - 'description' => 'The tag key. Valid values of N: **1** to **20**.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TestKey', - ], + 'items' => ['description' => 'The tag key. Valid values of N: **1** to **20**.', 'type' => 'string', 'required' => false, 'example' => 'TestKey', 'title' => ''], 'required' => false, 'maxItems' => 21, + 'example' => '', ], ], ], @@ -4574,186 +3461,215 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', - 'title' => 'UntagResources', - ], - 'ListTagKeys' => [ - 'summary' => 'Queries a list of tag keys.', - 'methods' => [ - 'post', - 'get', + 'title' => 'Unbind tags from cloud resources', + 'changeSet' => [ + ['createdAt' => '2022-03-24T08:11:26.000Z', 'description' => 'OpenAPI offline'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'cloudphone:UntagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateImageAttribute' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'NextToken', + 'name' => 'AddAccount', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'title' => '下一个查询开始Token', - 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n", - 'type' => 'string', + 'description' => 'The list of Alibaba Cloud account IDs for authorization of the shared image. The list can contain up to 10 elements.', + 'type' => 'array', + 'items' => ['description' => 'The Alibaba Cloud account ID for authorization of the shared image.', 'type' => 'string', 'required' => false, 'example' => '123456******', 'title' => ''], 'required' => false, - 'example' => 'ADBAAdDWBF2****', + 'example' => '123456******', + 'maxItems' => 11, + 'title' => '', ], ], [ - 'name' => 'ResourceType', + 'name' => 'RemoveAccount', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'title' => '资源类型', - 'description' => 'The resource type. Valid value:'."\n" - ."\n" - .'* instance: Elastic Cloud Phone (ECP) instance'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'instance', + 'description' => 'The list of Alibaba Cloud account IDs from which you want to remove the image sharing permissions. The list can contain up to 10 elements.', + 'type' => 'array', + 'items' => ['description' => 'The Alibaba Cloud account ID from which you want to remove the image sharing permissions.', 'type' => 'string', 'required' => false, 'example' => '987654******', 'title' => ''], + 'required' => false, + 'example' => '987654******', + 'maxItems' => 11, + 'title' => '', ], ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'ImageId', + 'in' => 'query', + 'schema' => ['description' => 'The image ID.', 'type' => 'string', 'required' => true, 'example' => 'cpm-xxxxxxxx', 'title' => ''], + ], + [ + 'name' => 'ImageName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the custom image. The name must be 2 to 128 characters in length. It must start with a letter or a Chinese character and can contain digits, colons (:), underscores (_), or hyphens (-). It cannot start with `http://` or `https://`. Default value: null, which indicates that the original name is retained.', 'type' => 'string', 'required' => false, 'example' => 'newImageName', 'title' => ''], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['description' => 'The description of the custom image. The description must be 2 to 256 characters in length. It cannot start with `http://` or `https://`. Default value: null, which indicates that the original description is retained.', 'type' => 'string', 'required' => false, 'example' => 'newDescription', 'title' => ''], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'title' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'description' => 'The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. If the NextToken parameter is empty, no next page exists.'."\n", - 'type' => 'string', - 'example' => 'ADBAAdDWBF2****', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'MaxResults' => [ - 'description' => 'The maximum number of entries to return on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], - 'Keys' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Key' => [ - 'title' => '资源列表', - 'description' => 'The tag keys.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The tag key.'."\n", - 'type' => 'string', - 'example' => 'TestKey', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"MaxResults\\": 50,\\n \\"Keys\\": {\\n \\"Key\\": [\\n \\"TestKey\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'ListTagKeys', - ], - 'ListTagValues' => [ - 'summary' => 'Queries the tag values of a specified tag key.', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'errorCodes' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'Modify custom image information', + 'summary' => 'Modifies the name and description of a custom image and manages the sharing permissions of the image.', + 'description' => 'When you call this operation, take note of the following items:'."\n" + .'- You can share only your own custom images with other Alibaba Cloud accounts.'."\n" + .'- Each custom image can be shared with up to 10 Alibaba Cloud accounts at a time.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'cloudphone:UpdateImageAttribute', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#imageId}'], + ], + ], + ], ], + ], + 'UpdateInstanceAttribute' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '130973', - 'abilityTreeNodes' => [ - 'FEATUREcloudphoneXDJIVR', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'NextToken', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'title' => '下一个查询开始Token', - 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ADBAAdDWBF2****', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'ResourceType', + 'name' => 'InstanceId', 'in' => 'query', - 'schema' => [ - 'title' => '资源类型', - 'description' => 'The resource type. Valid value:'."\n" - ."\n" - .'* instance: Elastic Cloud Phone (ECP) instance'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'instance', - ], + 'schema' => ['description' => 'The instance ID of the cloud phone.', 'type' => 'string', 'required' => true, 'example' => 'cp-bp67acfmxazb4p***', 'title' => ''], ], [ - 'name' => 'Key', + 'name' => 'InstanceName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the cloud phone instance. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter or a Chinese character and cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'myInstanceName', 'title' => ''], + ], + [ + 'name' => 'KeyPairName', 'in' => 'query', + 'schema' => ['description' => 'The name of the key pair for the cloud phone. To improve instance security, use a key pair for connection.', 'type' => 'string', 'required' => false, 'example' => 'myKeyPairName', 'title' => ''], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['description' => 'The description of the cloud phone instance. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'myDescription', 'title' => ''], + ], + [ + 'name' => 'VncPassword', + 'in' => 'query', + 'schema' => ['description' => 'The VNC password of the cloud phone. The password must be exactly six characters in length and must contain uppercase letters, lowercase letters, and digits.', 'type' => 'string', 'required' => false, 'example' => 'Cp1234', 'title' => ''], + ], + [ + 'name' => 'Resolution', + 'in' => 'query', + 'schema' => ['description' => 'The resolution of the cloud phone, such as 1920×1080.', 'type' => 'string', 'required' => false, 'example' => '1920*1080', 'title' => ''], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The tag key whose values you want to query.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'TestKey', + 'title' => '', + 'description' => 'The list of tags.', + 'type' => 'array', + 'items' => [ + 'description' => 'The list of tags.', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '', 'description' => 'The tag key of the instance. Valid values of N: 1 to 20.', 'type' => 'string', 'required' => false, 'example' => 'TestKey'], + 'Value' => ['title' => '', 'description' => 'The tag value of the instance. Valid values of N: 1 to 20.', 'type' => 'string', 'required' => false, 'example' => 'TestValue'], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 21, + 'example' => '', ], ], ], @@ -4762,68 +3678,587 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'title' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'description' => 'The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. If the NextToken parameter is empty, no next page exists.'."\n", - 'type' => 'string', - 'example' => 'ADBAAdDWBF2****', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', - ], - 'MaxResults' => [ - 'description' => 'The maximum number of entries that is returned on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], - 'Values' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Value' => [ - 'title' => '资源列表', - 'description' => 'The list of resources.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The tag value.'."\n", - 'type' => 'string', - 'example' => 'TestValue', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC', 'title' => ''], ], 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC\\"\\n}","type":"json"}]', + 'title' => 'Modify cloud phone instance attributes', + 'summary' => 'Modifies the attributes of a cloud phone instance.', + 'description' => 'Calls this operation to modify the instance name, key pair, description, VNC password, or resolution of a cloud phone instance. Changes to the key pair and resolution take effect only after the instance is restarted.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2022-03-24T08:11:25.000Z', 'description' => 'Request parameters changed, Error codes changed'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'cloudphone:UpdateInstanceAttribute', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ADBAAdDWBF2****\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"MaxResults\\": 50,\\n \\"Values\\": {\\n \\"Value\\": [\\n \\"TestValue\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'ListTagValues', ], ], 'endpoints' => [ + ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cloudphone.ap-southeast-1.aliyuncs.com', 'endpoint' => 'cloudphone.ap-southeast-1.aliyuncs.com', 'vpc' => 'cloudphone-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cloudphone.cn-beijing.aliyuncs.com', 'endpoint' => 'cloudphone.cn-beijing.aliyuncs.com', 'vpc' => 'cloudphone-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cloudphone.cn-hangzhou.aliyuncs.com', 'endpoint' => 'cloudphone.cn-hangzhou.aliyuncs.com', 'vpc' => 'cloudphone-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cloudphone.cn-shanghai.aliyuncs.com', 'endpoint' => 'cloudphone.cn-shanghai.aliyuncs.com', 'vpc' => 'cloudphone-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'cloudphone.eu-central-1.aliyuncs.com', 'endpoint' => 'cloudphone.eu-central-1.aliyuncs.com', 'vpc' => 'cloudphone-vpc.eu-central-1.aliyuncs.com'], + ], + 'errorCodes' => [], + 'changeSet' => [ + [ + 'apis' => [ + ['description' => 'Error codes changed', 'api' => 'ListInstanceTypes'], + ['description' => 'Error codes changed', 'api' => 'ListRegions'], + ['description' => 'Error codes changed', 'api' => 'ListZones'], + ], + 'createdAt' => '2024-08-09T02:35:11.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Error codes changed', 'api' => 'ImportImage'], + ], + 'createdAt' => '2024-07-29T11:40:56.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListInstances'], + ], + 'createdAt' => '2023-11-08T02:00:26.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed, Error codes changed', 'api' => 'ListImages'], + ], + 'createdAt' => '2022-06-14T03:05:51.000Z', + 'description' => 'ListImages增加InstanceType入参,根据实例规格查询可用镜像列表。', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'RunInstances'], + ], + 'createdAt' => '2022-06-10T07:04:26.000Z', + 'description' => '1. 新增查询串口日志接口(隐藏)2. 支持用户配置私网IP', + ], [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'cloudphone.cn-beijing.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ListTagValues'], + ], + 'createdAt' => '2022-03-28T03:18:47.000Z', + 'description' => '弹性云手机: 优化 TAG API', ], [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'cloudphone.cn-hangzhou.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'ListInstances'], + ['description' => 'OpenAPI offline', 'api' => 'ListTagKeys'], + ['description' => 'OpenAPI offline', 'api' => 'ListTagResources'], + ['description' => 'OpenAPI offline', 'api' => 'ListTagValues'], + ['description' => 'Request parameters changed', 'api' => 'RunInstances'], + ['description' => 'OpenAPI offline', 'api' => 'TagResources'], + ['description' => 'OpenAPI offline', 'api' => 'UntagResources'], + ['description' => 'Request parameters changed, Error codes changed', 'api' => 'UpdateInstanceAttribute'], + ], + 'createdAt' => '2022-03-24T09:09:39.000Z', + 'description' => '弹性云手机添加 TAG 支持.', ], [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'cloudphone.cn-shanghai.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateImage'], + ], + 'createdAt' => '2022-03-07T03:29:08.000Z', + 'description' => '支持TF对接,CreateImage接口InstanceId改为非必填', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed, Error codes changed', 'api' => 'ListInstances'], + ], + 'createdAt' => '2022-02-21T02:55:56.000Z', + 'description' => '新增查询WebRtcToken能力', ], [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'cloudphone.ap-southeast-1.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed, Error codes changed', 'api' => 'ListInstanceVncUrl'], + ], + 'createdAt' => '2021-12-22T10:29:09.000Z', + 'description' => '将参数改为私有', ], [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'cloudphone.eu-central-1.aliyuncs.com', + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed, Error codes changed', 'api' => 'ListInstances'], + ], + 'createdAt' => '2021-09-22T10:08:56.000Z', + 'description' => 'ListInstances支持可用区、分辨率、付费类型等过滤条件', + ], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'], + ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'], + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'], + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagValues'], + ['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RunCommand'], + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'], + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagKeys'], + ], + ], + 'ram' => [ + 'productCode' => 'ECP', + 'productName' => 'Cloud Phone', + 'ramCodes' => ['cloudphone'], + 'ramLevel' => 'RESOURCE', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'ListImageSharePermission', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListImageSharePermission', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#imageId}'], + ], + ], + ], + [ + 'apiName' => 'UninstallApplication', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:UninstallApplication', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListTasks', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListTasks', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListKeyPairs', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListKeyPairs', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/*'], + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/{#KeyPairName}'], + ], + ], + ], + [ + 'apiName' => 'DeleteImages', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'cloudphone:DeleteImages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#imageId}'], + ], + ], + ], + [ + 'apiName' => 'StopInstances', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'cloudphone:StopInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'RunCommand', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:RunCommand', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListImages', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListImages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/*'], + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#imageId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteInstances', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'cloudphone:DeleteInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'RebootInstances', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:RebootInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'UntagResources', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'cloudphone:UntagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'RunInstances', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:RunInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'StartInstances', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'cloudphone:StartInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'RenewInstances', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:RenewInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListTagKeys', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListTagKeys', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CopyImage', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:CopyImage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#ImageId}'], + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/*'], + ], + ], + ], + [ + 'apiName' => 'TagResources', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'cloudphone:TagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListTagResources', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListTagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CancelTask', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:CancelTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'FetchFile', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:FetchFile', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateImageAttribute', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'cloudphone:UpdateImageAttribute', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#imageId}'], + ], + ], + ], + [ + 'apiName' => 'ImportImage', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'cloudphone:ImportImage', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'InstallApplication', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:InstallApplication', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'ResetInstances', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:ResetInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'SendFile', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:SendFile', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateInstanceAttribute', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'cloudphone:UpdateInstanceAttribute', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteKeyPairs', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'cloudphone:DeleteKeyPairs', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/{#KeyPairName}'], + ], + ], + ], + [ + 'apiName' => 'ListTagValues', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListTagValues', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ImportKeyPair', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'cloudphone:ImportKeyPair', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/*'], + ], + ], + ], + [ + 'apiName' => 'CreateImage', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'cloudphone:CreateImage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/*'], + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListInstanceVncUrl', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListInstanceVncUrl', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListInstances', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'cloudphone:ListInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/*'], + ['validationType' => 'conditional', 'product' => 'ECP', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], + ], + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/{#imageId}'], + ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/{#instanceId}'], + ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:instance/*'], + ['validationType' => 'conditional', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/*'], + ['validationType' => 'conditional', 'resourceType' => 'KeyPair', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:keypair/{#KeyPairName}'], + ['validationType' => 'conditional', 'resourceType' => 'Image', 'arn' => 'acs:cloudphone:{#regionId}:{#accountId}:image/*'], + ['validationType' => 'always', 'resourceType' => 'SecurityGroup', 'arn' => 'acs:ecs:{#regionId}:{#accountId}:securitygroup/{#SecurityGroupId}'], + ['validationType' => 'always', 'resourceType' => 'VSwitch', 'arn' => 'acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}'], ], ], ]; |
