diff options
Diffstat (limited to 'data/en_us/drds')
| -rw-r--r-- | data/en_us/drds/2016-05-06/api-docs.php | 346 | ||||
| -rw-r--r-- | data/en_us/drds/2016-12-13/api-docs.php | 320 | ||||
| -rw-r--r-- | data/en_us/drds/2017-10-16/api-docs.php | 3301 | ||||
| -rw-r--r-- | data/en_us/drds/2019-01-23/api-docs.php | 19981 |
4 files changed, 9348 insertions, 14600 deletions
diff --git a/data/en_us/drds/2016-05-06/api-docs.php b/data/en_us/drds/2016-05-06/api-docs.php index 0fbe4fa..75f2735 100644 --- a/data/en_us/drds/2016-05-06/api-docs.php +++ b/data/en_us/drds/2016-05-06/api-docs.php @@ -1,18 +1,12 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'Drds', - 'version' => '2016-05-06', - ], + 'info' => ['style' => 'RPC', 'product' => 'Drds', 'version' => '2016-05-06'], 'directories' => [ [ 'id' => 0, 'title' => '其它', 'type' => 'directory', - 'children' => [ - 'OrderRefund', - ], + 'children' => ['OrderRefund'], ], ], 'components' => [ @@ -20,14 +14,8 @@ ], 'apis' => [ 'OrderRefund' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -36,20 +24,13 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '96181', - 'abilityTreeNodes' => [ - 'FEATUREdrdsE51SDU', - 'FEATUREdrdsHFP8VD', - 'FEATUREdrdsUWIQBY', - ], + 'abilityTreeNodes' => ['FEATUREdrdsE51SDU', 'FEATUREdrdsHFP8VD', 'FEATUREdrdsUWIQBY'], ], 'parameters' => [ [ 'name' => 'data', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -57,272 +38,85 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'success' => [ - 'type' => 'boolean', - ], - 'message' => [ - 'type' => 'string', - ], - 'data' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string'], + 'success' => ['type' => 'boolean'], + 'message' => ['type' => 'string'], + 'data' => ['type' => 'string'], + 'requestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'RemoveDrdsDBFirst', - 'errorMessage' => 'There are Drds DB exist in this instance. Please delete drds db first', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceStatus', - 'errorMessage' => 'The drds instance is not in running status, please try again later', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'RemoveDrdsDBFirst', 'errorMessage' => 'There are Drds DB exist in this instance. Please delete drds db first'], + ['errorCode' => 'OperationDenied.DrdsInstanceStatus', 'errorMessage' => 'The drds instance is not in running status, please try again later'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'responseDemo' => null, ], ], 'endpoints' => [ - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2-pop', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-pop', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-gov-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-nu16-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-edge-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-fujian', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-haidian-cm12-c01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-bj-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-prod-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-2', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-3', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-test-306', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong-finance-pop', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao-nebula', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et15-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et2-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-inner', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-internal-test-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-inner', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-st4-d01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-su18-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wuhan', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-yushanfang', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangbei-na61-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou-na62-a01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhengzhou-nebula-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1-oxs', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'rus-west-1-pop', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'drds.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'drds.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'drds.cn-hongkong.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'drds.cn-huhehaote.aliyuncs.com', - ], - [ - 'regionId' => 'cn-north-2-gov-1', - 'endpoint' => 'drds.cn-north-2-gov-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'drds.cn-qingdao.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'drds.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'drds.cn-shanghai-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'drds.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'drds.cn-shenzhen-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'drds.cn-zhangjiakou.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'drds.us-east-1.aliyuncs.com', - ], + ['regionId' => 'ap-northeast-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-northeast-2-pop', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-south-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-2', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-pop', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-beijing-gov-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-beijing-nu16-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-edge-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-fujian', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-haidian-cm12-c01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-bj-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-finance', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-prod-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-2', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-3', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-test-306', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hongkong-finance-pop', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-qingdao-nebula', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et15-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et2-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shanghai-inner', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shanghai-internal-test-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-inner', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-st4-d01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-su18-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-wuhan', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-yushanfang', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-zhangbei-na61-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou-na62-a01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-zhengzhou-nebula-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'eu-west-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'eu-west-1-oxs', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'me-east-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'rus-west-1-pop', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'us-west-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'endpoint' => 'drds.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'endpoint' => 'drds.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'endpoint' => 'drds.cn-hongkong.aliyuncs.com'], + ['regionId' => 'cn-huhehaote', 'endpoint' => 'drds.cn-huhehaote.aliyuncs.com'], + ['regionId' => 'cn-north-2-gov-1', 'endpoint' => 'drds.cn-north-2-gov-1.aliyuncs.com'], + ['regionId' => 'cn-qingdao', 'endpoint' => 'drds.cn-qingdao.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'endpoint' => 'drds.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'drds.cn-shanghai-finance-1.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'endpoint' => 'drds.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-finance-1', 'endpoint' => 'drds.cn-shenzhen-finance-1.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'endpoint' => 'drds.cn-zhangjiakou.aliyuncs.com'], + ['regionId' => 'us-east-1', 'endpoint' => 'drds.us-east-1.aliyuncs.com'], ], ]; diff --git a/data/en_us/drds/2016-12-13/api-docs.php b/data/en_us/drds/2016-12-13/api-docs.php deleted file mode 100644 index 8a04420..0000000 --- a/data/en_us/drds/2016-12-13/api-docs.php +++ /dev/null @@ -1,320 +0,0 @@ -<?php return [ - 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'Drds', - 'version' => '2016-12-13', - ], - 'directories' => [ - [ - 'id' => 0, - 'title' => '其它', - 'type' => 'directory', - 'children' => [ - 'OrderRefund', - ], - ], - ], - 'components' => [ - 'schemas' => [], - ], - 'apis' => [ - 'OrderRefund' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'systemTags' => [], - 'parameters' => [ - [ - 'name' => 'data', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'success' => [ - 'type' => 'boolean', - ], - 'message' => [ - 'type' => 'string', - ], - 'data' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'RemoveDrdsDBFirst', - 'errorMessage' => 'There are Drds DB exist in this instance. Please delete drds db first', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceStatus', - 'errorMessage' => 'The drds instance is not in running status, please try again later', - ], - ], - 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], - ], - ], - 'responseDemo' => null, - ], - ], - 'endpoints' => [ - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2-pop', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-pop', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-gov-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-nu16-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-edge-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-fujian', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-haidian-cm12-c01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-bj-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-prod-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-2', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-3', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-test-306', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong-finance-pop', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao-nebula', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et15-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et2-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-inner', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-internal-test-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-inner', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-st4-d01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-su18-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wuhan', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-yushanfang', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangbei-na61-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou-na62-a01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhengzhou-nebula-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1-oxs', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'rus-west-1-pop', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'drds.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'drds.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'drds.cn-hongkong.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'drds.cn-huhehaote.aliyuncs.com', - ], - [ - 'regionId' => 'cn-north-2-gov-1', - 'endpoint' => 'drds.cn-north-2-gov-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'drds.cn-qingdao.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'drds.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'drds.cn-shanghai-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'drds.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'drds.cn-shenzhen-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'drds.cn-zhangjiakou.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'drds.us-east-1.aliyuncs.com', - ], - ], -]; diff --git a/data/en_us/drds/2017-10-16/api-docs.php b/data/en_us/drds/2017-10-16/api-docs.php index fec3bf3..6585fab 100644 --- a/data/en_us/drds/2017-10-16/api-docs.php +++ b/data/en_us/drds/2017-10-16/api-docs.php @@ -1,43 +1,14 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'Drds', - 'version' => '2017-10-16', - ], + 'info' => ['style' => 'RPC', 'product' => 'Drds', 'version' => '2017-10-16'], 'directories' => [ [ 'id' => 0, 'title' => '其它', 'type' => 'directory', 'children' => [ - 'CreateDrdsAccount', - 'CreateDrdsDB', - 'CreateDrdsInstance', - 'CreateReadOnlyAccount', - 'DeleteDrdsDB', - 'DeleteFailedDrdsDB', - 'DescribeDrdsDB', - 'DescribeDrdsDBIpWhiteList', - 'DescribeDrdsDBs', - 'DescribeDrdsInstance', - 'DescribeDrdsInstanceDbMonitor', - 'DescribeDrdsInstanceMonitor', - 'DescribeDrdsInstances', - 'DescribeRdsList', - 'DescribeReadOnlyAccount', - 'DescribeRegions', - 'DescribeShardDBs', - 'EnableInstance', - 'ModifyDrdsDBPasswd', - 'ModifyDrdsInstanceDescription', - 'ModifyDrdsIpWhiteList', - 'ModifyFullTableScan', - 'ModifyRdsReadWeight', - 'ModifyReadOnlyAccountPassword', - 'QueryInstanceInfoByConn', - 'RemoveDrdsInstance', - 'RemoveReadOnlyAccount', + 'CreateDrdsAccount', 'CreateDrdsDB', 'CreateDrdsInstance', 'CreateReadOnlyAccount', 'DeleteDrdsDB', 'DeleteFailedDrdsDB', 'DescribeDrdsDB', 'DescribeDrdsDBIpWhiteList', 'DescribeDrdsDBs', 'DescribeDrdsInstance', 'DescribeDrdsInstanceDbMonitor', 'DescribeDrdsInstanceMonitor', 'DescribeDrdsInstances', 'DescribeRdsList', 'DescribeReadOnlyAccount', 'DescribeRegions', 'DescribeShardDBs', 'EnableInstance', 'ModifyDrdsDBPasswd', 'ModifyDrdsInstanceDescription', + 'ModifyDrdsIpWhiteList', 'ModifyFullTableScan', 'ModifyRdsReadWeight', 'ModifyReadOnlyAccountPassword', 'QueryInstanceInfoByConn', 'RemoveDrdsInstance', 'RemoveReadOnlyAccount', ], ], ], @@ -46,14 +17,8 @@ ], 'apis' => [ 'CreateDrdsAccount' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -62,69 +27,36 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76425', - 'abilityTreeNodes' => [ - 'FEATUREdrds0ML0VG', - ], + 'abilityTreeNodes' => ['FEATUREdrds0ML0VG'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'drdsusrzimk2****', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'docRequired' => true, 'example' => 'drdsusrzimk2****', 'required' => true, 'type' => 'string'], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'testdb', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'example' => 'testdb', 'required' => false, 'type' => 'string'], ], [ 'name' => 'UserName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'testaccount', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'docRequired' => true, 'example' => 'testaccount', 'required' => true, 'type' => 'string'], ], [ 'name' => 'Password', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'Test!123', - 'required' => false, - 'type' => 'string', - 'default' => 'true', - ], + 'schema' => ['description' => '', 'example' => 'Test!123', 'required' => false, 'type' => 'string', 'default' => 'true'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'properties' => [ - 'Success' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', - ], - 'RequestId' => [ - 'description' => '', - 'example' => '890BB376-5746-4145-A088-4E610EF3WERT', - 'type' => 'string', - ], + 'Success' => ['description' => '', 'example' => 'true', 'type' => 'boolean'], + 'RequestId' => ['description' => '', 'example' => '890BB376-5746-4145-A088-4E610EF3WERT', 'type' => 'string'], ], 'type' => 'object', ], @@ -132,54 +64,21 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'The specified parameter does not match.', - ], - [ - 'errorCode' => 'InvalidDbname.MalFormed', - 'errorMessage' => 'The specified db name does not match.', - ], - [ - 'errorCode' => 'InvalidPassword.MalFormed', - 'errorMessage' => 'The specified parameter password is not valid.', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidAccountName.Duplicate', - 'errorMessage' => 'Account already exists', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'The specified parameter does not match.'], + ['errorCode' => 'InvalidDbname.MalFormed', 'errorMessage' => 'The specified db name does not match.'], + ['errorCode' => 'InvalidPassword.MalFormed', 'errorMessage' => 'The specified parameter password is not valid.'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'InvalidAccountName.Duplicate', 'errorMessage' => 'Account already exists'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -193,42 +92,24 @@ 'title' => 'CreateDrdsAccount', ], 'CreateDrdsDB' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'none', - ], + 'systemTags' => ['operationType' => 'none'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'drdssen12****', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => 'drdssen12****'], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'test123', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => 'test123'], ], [ 'name' => 'Encode', @@ -238,33 +119,18 @@ 'type' => 'string', 'required' => true, 'example' => 'utf8', - 'enum' => [ - 'utf8', - 'gbk', - 'latin1', - 'utf8mb4', - ], + 'enum' => ['utf8', 'gbk', 'latin1', 'utf8mb4'], ], ], [ 'name' => 'Password', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '*********', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => '*********'], ], [ 'name' => 'RdsInstances', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '[“rdsId1”, “rdsId2”]', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => '[“rdsId1”, “rdsId2”]'], ], ], 'responses' => [ @@ -272,106 +138,38 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8734773E-7B21-4A22-9106-CBD245F8TG57', - ], + 'Success' => ['description' => '', 'type' => 'boolean', 'example' => 'true'], + 'RequestId' => ['description' => '', 'type' => 'string', 'example' => '8734773E-7B21-4A22-9106-CBD245F8TG57'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'RDS instance and drds instance must belong to owner', - ], - [ - 'errorCode' => 'QuotaExceeded.DrdsDB', - 'errorMessage' => 'The quota of create DrdsDB exceeds.', - ], - [ - 'errorCode' => 'InvalidDbname.MalFormed', - 'errorMessage' => 'The specified parameter Dbname is not valid.', - ], - [ - 'errorCode' => 'InvalidEncode.ValueNotSupported', - 'errorMessage' => 'The specified parameter encode is not valid.', - ], - [ - 'errorCode' => 'InvalidPassword.MalFormed', - 'errorMessage' => 'The specified parameter password is not valid.', - ], - [ - 'errorCode' => 'InvalidRds.MalFormed', - 'errorMessage' => 'The rds is invalide', - ], - [ - 'errorCode' => 'InvalidDbprefixOrPassword.MalFormed', - 'errorMessage' => 'The dbprefix or password is invalid', - ], - [ - 'errorCode' => 'DrdsVersionIsOld', - 'errorMessage' => 'This drds instance version too old.not allow create drds db', - ], - [ - 'errorCode' => 'OperationDenied.RdsDbNameExists', - 'errorMessage' => 'The operation is not permitted due to Rds DbName exist.', - ], - [ - 'errorCode' => 'InvalidDbprefixDuplicated', - 'errorMessage' => 'db name in this drds instance duplicate', - ], - [ - 'errorCode' => 'OperationDenied.RdsAccoutExists', - 'errorMessage' => 'The operation is not permitted due to Rds accout exist.', - ], - [ - 'errorCode' => 'InvalidParameter.DbprefixCannotEndWithUnderline', - 'errorMessage' => 'DB prefix can not end up with underline.', - ], - [ - 'errorCode' => 'InvalidRds.RegionNotMatch', - 'errorMessage' => 'The rds region does not match Drds region', - ], - [ - 'errorCode' => 'InvalidDbNumber.DBNumberExceed', - 'errorMessage' => 'The db number in this drds has exceed, please create drds db in another drds instance', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceUpgrading', - 'errorMessage' => 'The drds instance is upgrading, please create db later', - ], - [ - 'errorCode' => 'InvalidDBName.AlreadExist', - 'errorMessage' => 'This drds db name alread exist in this instance', - ], - [ - 'errorCode' => 'InvalidRds.RdsNotFound', - 'errorMessage' => 'rds not found under this account', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'RDS instance and drds instance must belong to owner'], + ['errorCode' => 'QuotaExceeded.DrdsDB', 'errorMessage' => 'The quota of create DrdsDB exceeds.'], + ['errorCode' => 'InvalidDbname.MalFormed', 'errorMessage' => 'The specified parameter Dbname is not valid.'], + ['errorCode' => 'InvalidEncode.ValueNotSupported', 'errorMessage' => 'The specified parameter encode is not valid.'], + ['errorCode' => 'InvalidPassword.MalFormed', 'errorMessage' => 'The specified parameter password is not valid.'], + ['errorCode' => 'InvalidRds.MalFormed', 'errorMessage' => 'The rds is invalide'], + ['errorCode' => 'InvalidDbprefixOrPassword.MalFormed', 'errorMessage' => 'The dbprefix or password is invalid'], + ['errorCode' => 'DrdsVersionIsOld', 'errorMessage' => 'This drds instance version too old.not allow create drds db'], + ['errorCode' => 'OperationDenied.RdsDbNameExists', 'errorMessage' => 'The operation is not permitted due to Rds DbName exist.'], + ['errorCode' => 'InvalidDbprefixDuplicated', 'errorMessage' => 'db name in this drds instance duplicate'], + ['errorCode' => 'OperationDenied.RdsAccoutExists', 'errorMessage' => 'The operation is not permitted due to Rds accout exist.'], + ['errorCode' => 'InvalidParameter.DbprefixCannotEndWithUnderline', 'errorMessage' => 'DB prefix can not end up with underline.'], + ['errorCode' => 'InvalidRds.RegionNotMatch', 'errorMessage' => 'The rds region does not match Drds region'], + ['errorCode' => 'InvalidDbNumber.DBNumberExceed', 'errorMessage' => 'The db number in this drds has exceed, please create drds db in another drds instance'], + ['errorCode' => 'OperationDenied.DrdsInstanceUpgrading', 'errorMessage' => 'The drds instance is upgrading, please create db later'], + ['errorCode' => 'InvalidDBName.AlreadExist', 'errorMessage' => 'This drds db name alread exist in this instance'], + ['errorCode' => 'InvalidRds.RdsNotFound', 'errorMessage' => 'rds not found under this account'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -382,14 +180,8 @@ 'title' => 'CreateDrdsDB', ], 'CreateDrdsInstance' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -399,42 +191,23 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76427', - 'abilityTreeNodes' => [ - 'FEATUREdrdsO50E25', - ], + 'abilityTreeNodes' => ['FEATUREdrdsO50E25'], ], 'parameters' => [ [ 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'This is a test instance', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'example' => 'This is a test instance', 'required' => false, 'type' => 'string'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'cn-hangzhou', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'docRequired' => true, 'example' => 'cn-hangzhou', 'required' => true, 'type' => 'string'], ], [ 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'cn-hangzhou-e', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'docRequired' => true, 'example' => 'cn-hangzhou-e', 'required' => true, 'type' => 'string'], ], [ 'name' => 'Type', @@ -445,46 +218,23 @@ 'example' => 'PRIVATE', 'required' => true, 'type' => 'string', - 'enum' => [ - 'PRIVATE', - 'PUBLIC', - '1', - '0', - ], + 'enum' => ['PRIVATE', 'PUBLIC', '1', '0'], ], ], [ 'name' => 'Quantity', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '1', - 'format' => 'int32', - 'required' => true, - 'type' => 'integer', - ], + 'schema' => ['description' => '', 'docRequired' => true, 'example' => '1', 'format' => 'int32', 'required' => true, 'type' => 'integer'], ], [ 'name' => 'InstanceSeries', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'drds.sn2.4c16g ', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'example' => 'drds.sn2.4c16g ', 'required' => false, 'type' => 'string'], ], [ 'name' => 'Specification', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'drds.sn2.4c8g.8C16G', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'docRequired' => true, 'example' => 'drds.sn2.4c8g.8C16G', 'required' => true, 'type' => 'string'], ], [ 'name' => 'PayType', @@ -495,41 +245,23 @@ 'example' => 'drdsPre', 'required' => true, 'type' => 'string', - 'enum' => [ - 'drdsPost', - 'drdsPre', - ], + 'enum' => ['drdsPost', 'drdsPre'], ], ], [ 'name' => 'VpcId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'vpc-en23cxsel1', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'example' => 'vpc-en23cxsel1', 'required' => false, 'type' => 'string'], ], [ 'name' => 'VswitchId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'vsw-ewk32dsk', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'example' => 'vsw-ewk32dsk', 'required' => false, 'type' => 'string'], ], [ 'name' => 'IsHa', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'false', - 'required' => false, - 'type' => 'boolean', - ], + 'schema' => ['description' => '', 'example' => 'false', 'required' => false, 'type' => 'boolean'], ], [ 'name' => 'PricingCycle', @@ -539,79 +271,42 @@ 'example' => 'month', 'required' => false, 'type' => 'string', - 'enum' => [ - 'year', - 'month', - ], + 'enum' => ['year', 'month'], ], ], [ 'name' => 'Duration', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '5', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => '', 'example' => '5', 'format' => 'int32', 'required' => false, 'type' => 'integer'], ], [ 'name' => 'IsAutoRenew', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'true', - 'required' => false, - 'type' => 'boolean', - 'default' => 'false', - ], + 'schema' => ['description' => '', 'example' => 'true', 'required' => false, 'type' => 'boolean', 'default' => 'false'], ], [ 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'DEWCEWQA', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => '', 'example' => 'DEWCEWQA', 'required' => false, 'type' => 'string'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'properties' => [ - 'Success' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', - ], - 'RequestId' => [ - 'description' => '', - 'example' => 'FF13E47D-4E38-4A5A-BA68-32A554RTY67H', - 'type' => 'string', - ], + 'Success' => ['description' => '', 'example' => 'true', 'type' => 'boolean'], + 'RequestId' => ['description' => '', 'example' => 'FF13E47D-4E38-4A5A-BA68-32A554RTY67H', 'type' => 'string'], 'Data' => [ 'description' => '', 'properties' => [ - 'OrderId' => [ - 'description' => '', - 'example' => '2334632414', - 'format' => 'int64', - 'type' => 'integer', - ], + 'OrderId' => ['description' => '', 'example' => '2334632414', 'format' => 'int64', 'type' => 'integer'], 'DrdsInstanceIdList' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'DrdsInstanceId' => [ 'type' => 'array', - 'items' => [ - 'description' => '', - 'example' => 'drdsjwe23ds23,drdsjwe23ds24', - 'type' => 'string', - ], + 'items' => ['description' => '', 'example' => 'drdsjwe23ds23,drdsjwe23ds24', 'type' => 'string'], ], ], ], @@ -625,140 +320,41 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'Parameter error', - ], - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'OperationDenied', - 'errorMessage' => 'drds service is not enable for you', - ], - [ - 'errorCode' => 'QuotaExceeded.DRDSInstance', - 'errorMessage' => 'The quota of create instance exceeds.', - ], - [ - 'errorCode' => 'InvalidRegionId.NotFound', - 'errorMessage' => 'The RegionId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDescription.MalFormed', - 'errorMessage' => 'The specified parameter description is not valid.', - ], - [ - 'errorCode' => 'CommunicateWithManager.Error', - 'errorMessage' => 'Internal Error. Communicate with drds manager error', - ], - [ - 'errorCode' => 'InvalidVSwitchId', - 'errorMessage' => 'Invalid vswitchId', - ], - [ - 'errorCode' => 'InvalidVpcId', - 'errorMessage' => 'Invalid vpcId, or the region of vpc does not match', - ], - [ - 'errorCode' => 'InvalidZoneId.Mismatch', - 'errorMessage' => 'zone is illegal in this order', - ], - [ - 'errorCode' => 'LowInventory.ServerError', - 'errorMessage' => 'low inventory error', - ], - [ - 'errorCode' => 'publicInstanceAlreadExist.Error', - 'errorMessage' => 'a public Drds instance is exist', - ], - [ - 'errorCode' => 'CreateDRDSInstanceId.Error', - 'errorMessage' => 'create Drds instance id error', - ], - [ - 'errorCode' => 'ResourceInsufficient', - 'errorMessage' => 'resource is Insufficient', - ], - [ - 'errorCode' => 'AnotherOrderExist.Error', - 'errorMessage' => 'there is another order', - ], - [ - 'errorCode' => 'InstanceExceedLimit.Error', - 'errorMessage' => 'instance number has exceeded', - ], - [ - 'errorCode' => 'InvalidParameter.Quantity', - 'errorMessage' => 'Invalid parameter of quantity', - ], - [ - 'errorCode' => 'InvalidParameter.RegionId', - 'errorMessage' => 'Invalid parameter of region id', - ], - [ - 'errorCode' => 'InvalidParameter.ZoneId', - 'errorMessage' => 'Invalid parameter of zone id', - ], - [ - 'errorCode' => 'InvalidParameter.PayType', - 'errorMessage' => 'Invalid parameter of pay type', - ], - [ - 'errorCode' => 'InvalidParameter.Spection', - 'errorMessage' => 'Invalid parameter of specification', - ], - [ - 'errorCode' => 'InvalidParameter.Series', - 'errorMessage' => 'Invalid parameter of series', - ], - [ - 'errorCode' => 'InvalidParameter.duration_pricingCycle', - 'errorMessage' => 'when payType=drdsPre, duration and pricingCycle is required', - ], - [ - 'errorCode' => 'InvalidParameter.year.duration', - 'errorMessage' => 'when pricingCycle=year, duration must between 1 to 3', - ], - [ - 'errorCode' => 'InvalidParameter.month.duration', - 'errorMessage' => 'when pricingCycle=month, duration must between 1 to 9', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceType.Error', - 'errorMessage' => 'Invalid parameter of Type, public is not supported', - ], - [ - 'errorCode' => 'QueryVSwitchFailed.InvalidVpcIdOrServerError', - 'errorMessage' => 'Query VSwitch failed, please check vpcId', - ], - [ - 'errorCode' => 'RegionNotSupportVPC.Error', - 'errorMessage' => 'This region does not support vpc instance', - ], - [ - 'errorCode' => 'UserAccountVerify.Failed', - 'errorMessage' => 'User account verify failed. Please verify first', - ], - [ - 'errorCode' => 'Invalid vswitchId', - 'errorMessage' => 'Invalid vpcId, or the region of vpc does not match', - ], - [ - 'errorCode' => 'Duplicate.client.token', - 'errorMessage' => 'The request may have been successful, refused to submit duplicate', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'Parameter error'], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later'], + ['errorCode' => 'OperationDenied', 'errorMessage' => 'drds service is not enable for you'], + ['errorCode' => 'QuotaExceeded.DRDSInstance', 'errorMessage' => 'The quota of create instance exceeds.'], + ['errorCode' => 'InvalidRegionId.NotFound', 'errorMessage' => 'The RegionId provided does not exist in our records.'], + ['errorCode' => 'InvalidDescription.MalFormed', 'errorMessage' => 'The specified parameter description is not valid.'], + ['errorCode' => 'CommunicateWithManager.Error', 'errorMessage' => 'Internal Error. Communicate with drds manager error'], + ['errorCode' => 'InvalidVSwitchId', 'errorMessage' => 'Invalid vswitchId'], + ['errorCode' => 'InvalidVpcId', 'errorMessage' => 'Invalid vpcId, or the region of vpc does not match'], + ['errorCode' => 'InvalidZoneId.Mismatch', 'errorMessage' => 'zone is illegal in this order'], + ['errorCode' => 'LowInventory.ServerError', 'errorMessage' => 'low inventory error'], + ['errorCode' => 'publicInstanceAlreadExist.Error', 'errorMessage' => 'a public Drds instance is exist'], + ['errorCode' => 'CreateDRDSInstanceId.Error', 'errorMessage' => 'create Drds instance id error'], + ['errorCode' => 'ResourceInsufficient', 'errorMessage' => 'resource is Insufficient'], + ['errorCode' => 'AnotherOrderExist.Error', 'errorMessage' => 'there is another order'], + ['errorCode' => 'InstanceExceedLimit.Error', 'errorMessage' => 'instance number has exceeded'], + ['errorCode' => 'InvalidParameter.Quantity', 'errorMessage' => 'Invalid parameter of quantity'], + ['errorCode' => 'InvalidParameter.RegionId', 'errorMessage' => 'Invalid parameter of region id'], + ['errorCode' => 'InvalidParameter.ZoneId', 'errorMessage' => 'Invalid parameter of zone id'], + ['errorCode' => 'InvalidParameter.PayType', 'errorMessage' => 'Invalid parameter of pay type'], + ['errorCode' => 'InvalidParameter.Spection', 'errorMessage' => 'Invalid parameter of specification'], + ['errorCode' => 'InvalidParameter.Series', 'errorMessage' => 'Invalid parameter of series'], + ['errorCode' => 'InvalidParameter.duration_pricingCycle', 'errorMessage' => 'when payType=drdsPre, duration and pricingCycle is required'], + ['errorCode' => 'InvalidParameter.year.duration', 'errorMessage' => 'when pricingCycle=year, duration must between 1 to 3'], + ['errorCode' => 'InvalidParameter.month.duration', 'errorMessage' => 'when pricingCycle=month, duration must between 1 to 9'], + ['errorCode' => 'InvalidDRDSInstanceType.Error', 'errorMessage' => 'Invalid parameter of Type, public is not supported'], + ['errorCode' => 'QueryVSwitchFailed.InvalidVpcIdOrServerError', 'errorMessage' => 'Query VSwitch failed, please check vpcId'], + ['errorCode' => 'RegionNotSupportVPC.Error', 'errorMessage' => 'This region does not support vpc instance'], + ['errorCode' => 'UserAccountVerify.Failed', 'errorMessage' => 'User account verify failed. Please verify first'], + ['errorCode' => 'Invalid vswitchId', 'errorMessage' => 'Invalid vpcId, or the region of vpc does not match'], + ['errorCode' => 'Duplicate.client.token', 'errorMessage' => 'The request may have been successful, refused to submit duplicate'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -772,14 +368,8 @@ 'title' => 'CreateDrdsInstance', ], 'CreateReadOnlyAccount' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -788,34 +378,23 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76428', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'password', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -823,24 +402,14 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'properties' => [ - 'DrdsInstanceId' => [ - 'type' => 'string', - ], - 'DbName' => [ - 'type' => 'string', - ], - 'AccountName' => [ - 'type' => 'string', - ], + 'DrdsInstanceId' => ['type' => 'string'], + 'DbName' => ['type' => 'string'], + 'AccountName' => ['type' => 'string'], ], ], ], @@ -849,66 +418,24 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'DrdsVersionIsOld', - 'errorMessage' => 'This drds instance version too old.not allow create drds db', - ], - [ - 'errorCode' => 'InvalidPassword.MalFormed', - 'errorMessage' => 'The specified parameter password is not valid.', - ], - [ - 'errorCode' => 'InvalidDbUserName.NotFound', - 'errorMessage' => 'The Username of db is not valid.', - ], - [ - 'errorCode' => 'UpdateDbUserPasswordFailed', - 'errorMessage' => 'update password failed', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceUpgrading', - 'errorMessage' => 'The drds instance is upgrading, please try again later', - ], - [ - 'errorCode' => 'CreateReadOnlyAccount.Failed', - 'errorMessage' => 'Create read only account failed, please try again later.', - ], - [ - 'errorCode' => 'InvalidInstanceStatus.NotRunning', - 'errorMessage' => 'The Instance is not in running status', - ], - [ - 'errorCode' => 'InvalidDbStatus.NotRunning', - 'errorMessage' => 'The drds database is not in running status', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'DrdsVersionIsOld', 'errorMessage' => 'This drds instance version too old.not allow create drds db'], + ['errorCode' => 'InvalidPassword.MalFormed', 'errorMessage' => 'The specified parameter password is not valid.'], + ['errorCode' => 'InvalidDbUserName.NotFound', 'errorMessage' => 'The Username of db is not valid.'], + ['errorCode' => 'UpdateDbUserPasswordFailed', 'errorMessage' => 'update password failed'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'OperationDenied.DrdsInstanceUpgrading', 'errorMessage' => 'The drds instance is upgrading, please try again later'], + ['errorCode' => 'CreateReadOnlyAccount.Failed', 'errorMessage' => 'Create read only account failed, please try again later.'], + ['errorCode' => 'InvalidInstanceStatus.NotRunning', 'errorMessage' => 'The Instance is not in running status'], + ['errorCode' => 'InvalidDbStatus.NotRunning', 'errorMessage' => 'The drds database is not in running status'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -918,14 +445,8 @@ 'responseDemo' => null, ], 'DeleteDrdsDB' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -934,26 +455,18 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76429', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -961,62 +474,28 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'DbIsCreating', - 'errorMessage' => 'The specified db is in creating status', - ], - [ - 'errorCode' => 'InvalidDbname.DeleteStatusOrFailed', - 'errorMessage' => 'The specified db is in deleting status or failed status', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'ExistedNotCompleteAsynTask.ExistedAsynTask', - 'errorMessage' => 'There exist an unfinished asynchronous task', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceUpgrading', - 'errorMessage' => 'The drds instance is upgrading, please create db later', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'DbIsCreating', 'errorMessage' => 'The specified db is in creating status'], + ['errorCode' => 'InvalidDbname.DeleteStatusOrFailed', 'errorMessage' => 'The specified db is in deleting status or failed status'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'ExistedNotCompleteAsynTask.ExistedAsynTask', 'errorMessage' => 'There exist an unfinished asynchronous task'], + ['errorCode' => 'OperationDenied.DrdsInstanceUpgrading', 'errorMessage' => 'The drds instance is upgrading, please create db later'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -1026,14 +505,8 @@ 'responseDemo' => null, ], 'DeleteFailedDrdsDB' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1042,26 +515,18 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76430', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -1069,58 +534,27 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'DbIsCreating', - 'errorMessage' => 'The specified db is in creating status', - ], - [ - 'errorCode' => 'InvalidDbname.DeleteStatusOrFailed', - 'errorMessage' => 'The specified db is in deleting status or failed status', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'DbIsCreating', 'errorMessage' => 'The specified db is in creating status'], + ['errorCode' => 'InvalidDbname.DeleteStatusOrFailed', 'errorMessage' => 'The specified db is in deleting status or failed status'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbname.MalFormed', - 'errorMessage' => 'The specified parameter dbname is not valid.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], + ['errorCode' => 'InvalidDbname.MalFormed', 'errorMessage' => 'The specified parameter dbname is not valid.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -1130,14 +564,8 @@ 'responseDemo' => null, ], 'DescribeDrdsDB' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1146,26 +574,18 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76432', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -1173,31 +593,16 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'properties' => [ - 'Msg' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'DbName' => [ - 'type' => 'string', - ], - 'Mode' => [ - 'type' => 'string', - ], - 'CreateTime' => [ - 'type' => 'string', - ], + 'Msg' => ['type' => 'string'], + 'Status' => ['type' => 'integer', 'format' => 'int32'], + 'DbName' => ['type' => 'string'], + 'Mode' => ['type' => 'string'], + 'CreateTime' => ['type' => 'string'], ], ], ], @@ -1206,26 +611,14 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -1235,46 +628,29 @@ 'responseDemo' => null, ], 'DescribeDrdsDBIpWhiteList' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'none', - ], + 'systemTags' => ['operationType' => 'none'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'GroupName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -1282,12 +658,8 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'properties' => [ @@ -1297,9 +669,7 @@ 'properties' => [ 'Ip' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], @@ -1311,46 +681,19 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'The specified parameter does not match.', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidInstanceStatus.NotRunning', - 'errorMessage' => 'The Instance is not in running status', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'The specified parameter does not match.'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'InvalidInstanceStatus.NotRunning', 'errorMessage' => 'The Instance is not in running status'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -1360,30 +703,19 @@ 'responseDemo' => null, ], 'DescribeDrdsDBs' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'none', - ], + 'systemTags' => ['operationType' => 'none'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -1391,12 +723,8 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'itemNode' => true, @@ -1406,22 +734,11 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Msg' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'DbName' => [ - 'type' => 'string', - ], - 'Mode' => [ - 'type' => 'string', - ], - 'CreateTime' => [ - 'type' => 'string', - ], + 'Msg' => ['type' => 'string'], + 'Status' => ['type' => 'integer', 'format' => 'int32'], + 'DbName' => ['type' => 'string'], + 'Mode' => ['type' => 'string'], + 'CreateTime' => ['type' => 'string'], ], ], ], @@ -1433,22 +750,13 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -1458,14 +766,8 @@ 'responseDemo' => null, ], 'DescribeDrdsInstance' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1474,20 +776,13 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76436', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'drdshbga33pe****', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => 'drdshbga33pe****'], ], ], 'responses' => [ @@ -1495,77 +790,23 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'B4F76641-BA45-4320-BE7C-9C62CFDAC9B2', - ], + 'Success' => ['description' => '', 'type' => 'boolean', 'example' => 'true'], + 'RequestId' => ['description' => '', 'type' => 'string', 'example' => 'B4F76641-BA45-4320-BE7C-9C62CFDAC9B2'], 'Data' => [ 'description' => '', 'type' => 'object', 'properties' => [ - 'VpcCloudInstanceId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'oogbx6c2atj****', - ], - 'Status' => [ - 'description' => '', - 'type' => 'string', - 'example' => '0', - ], - 'Type' => [ - 'description' => '', - 'type' => 'string', - 'example' => '0', - ], - 'Specification' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'drds.sn1.4c8g.8C16G', - ], - 'Description' => [ - 'description' => '', - 'type' => 'string', - 'example' => '111111', - ], - 'Version' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'CreateTime' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568620311000', - ], - 'ZoneId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'cn-hangzhou-e', - ], - 'DrdsInstanceId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'drdshbga33pe****', - ], - 'NetworkType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'VPC', - ], - 'RegionId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'China (Hangzhou)', - ], + 'VpcCloudInstanceId' => ['description' => '', 'type' => 'string', 'example' => 'oogbx6c2atj****'], + 'Status' => ['description' => '', 'type' => 'string', 'example' => '0'], + 'Type' => ['description' => '', 'type' => 'string', 'example' => '0'], + 'Specification' => ['description' => '', 'type' => 'string', 'example' => 'drds.sn1.4c8g.8C16G'], + 'Description' => ['description' => '', 'type' => 'string', 'example' => '111111'], + 'Version' => ['description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'CreateTime' => ['description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1568620311000'], + 'ZoneId' => ['description' => '', 'type' => 'string', 'example' => 'cn-hangzhou-e'], + 'DrdsInstanceId' => ['description' => '', 'type' => 'string', 'example' => 'drdshbga33pe****'], + 'NetworkType' => ['description' => '', 'type' => 'string', 'example' => 'VPC'], + 'RegionId' => ['description' => '', 'type' => 'string', 'example' => 'China (Hangzhou)'], 'Vips' => [ 'type' => 'object', 'itemNode' => true, @@ -1576,31 +817,11 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'vpc-en23cx****', - ], - 'Type' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'VPC', - ], - 'VswitchId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'vsw-ewk3****', - ], - 'Port' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3306', - ], - 'IP' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1.2.XX.XX', - ], + 'VpcId' => ['description' => '', 'type' => 'string', 'example' => 'vpc-en23cx****'], + 'Type' => ['description' => '', 'type' => 'string', 'example' => 'VPC'], + 'VswitchId' => ['description' => '', 'type' => 'string', 'example' => 'vsw-ewk3****'], + 'Port' => ['description' => '', 'type' => 'string', 'example' => '3306'], + 'IP' => ['description' => '', 'type' => 'string', 'example' => '1.2.XX.XX'], ], ], ], @@ -1614,22 +835,13 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -1643,14 +855,8 @@ 'extraInfo' => ' ', ], 'DescribeDrdsInstanceDbMonitor' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1659,52 +865,33 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76437', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Key', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], ], 'responses' => [ @@ -1712,12 +899,8 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'itemNode' => true, @@ -1727,12 +910,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Unit' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Unit' => ['type' => 'string'], 'Values' => [ 'type' => 'object', 'itemNode' => true, @@ -1742,13 +921,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Date' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Date' => ['type' => 'integer', 'format' => 'int64'], + 'Value' => ['type' => 'string'], ], ], ], @@ -1765,34 +939,16 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'Invalid parameter of key', - ], - [ - 'errorCode' => 'InvalidParameter.time', - 'errorMessage' => 'The startTime and endTime must in one week', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'Invalid parameter of key'], + ['errorCode' => 'InvalidParameter.time', 'errorMessage' => 'The startTime and endTime must in one week'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId or DbName provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The DrdsInstanceId or DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId or DbName provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The DrdsInstanceId or DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -1802,14 +958,8 @@ 'responseDemo' => null, ], 'DescribeDrdsInstanceMonitor' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1818,54 +968,33 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76438', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Key', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], [ 'name' => 'PeriodMultiple', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'default' => '0', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0'], ], ], 'responses' => [ @@ -1873,12 +1002,8 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'itemNode' => true, @@ -1888,12 +1013,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Unit' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Unit' => ['type' => 'string'], 'Values' => [ 'type' => 'object', 'itemNode' => true, @@ -1903,13 +1024,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Date' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Date' => ['type' => 'integer', 'format' => 'int64'], + 'Value' => ['type' => 'string'], ], ], ], @@ -1926,34 +1042,16 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'Invalid parameter of key', - ], - [ - 'errorCode' => 'InvalidParameter.time', - 'errorMessage' => 'The startTime and endTime must in one week', - ], - [ - 'errorCode' => 'InvalidParameter.periodMultiple', - 'errorMessage' => 'The periodMultiple is too larger than the time between startTime and endTime', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'Invalid parameter of key'], + ['errorCode' => 'InvalidParameter.time', 'errorMessage' => 'The startTime and endTime must in one week'], + ['errorCode' => 'InvalidParameter.periodMultiple', 'errorMessage' => 'The periodMultiple is too larger than the time between startTime and endTime'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -1963,14 +1061,8 @@ 'responseDemo' => null, ], 'DescribeDrdsInstances' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1979,19 +1071,13 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76440', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Type', @@ -1999,21 +1085,13 @@ 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'PRIVATE', - 'PUBLIC', - '1', - '0', - ], + 'enum' => ['PRIVATE', 'PUBLIC', '1', '0'], ], ], [ 'name' => 'Tags', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -2021,12 +1099,8 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'itemNode' => true, @@ -2036,44 +1110,18 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'CreateTime' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'MasterInstId' => [ - 'type' => 'string', - ], - 'NetworkType' => [ - 'type' => 'string', - ], - 'RegionId' => [ - 'type' => 'string', - ], - 'VpcCloudInstanceId' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'Version' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'DrdsInstanceId' => [ - 'type' => 'string', - ], - 'ZoneId' => [ - 'type' => 'string', - ], - 'InstRole' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'CreateTime' => ['type' => 'integer', 'format' => 'int64'], + 'MasterInstId' => ['type' => 'string'], + 'NetworkType' => ['type' => 'string'], + 'RegionId' => ['type' => 'string'], + 'VpcCloudInstanceId' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'Version' => ['type' => 'integer', 'format' => 'int64'], + 'DrdsInstanceId' => ['type' => 'string'], + 'ZoneId' => ['type' => 'string'], + 'InstRole' => ['type' => 'string'], 'Vips' => [ 'type' => 'object', 'itemNode' => true, @@ -2083,21 +1131,11 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], - 'VswitchId' => [ - 'type' => 'string', - ], - 'Port' => [ - 'type' => 'string', - ], - 'IP' => [ - 'type' => 'string', - ], + 'VpcId' => ['type' => 'string'], + 'Type' => ['type' => 'string'], + 'VswitchId' => ['type' => 'string'], + 'Port' => ['type' => 'string'], + 'IP' => ['type' => 'string'], ], ], ], @@ -2109,9 +1147,7 @@ 'properties' => [ 'instId' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], @@ -2126,44 +1162,17 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidRegionId.NotFound', - 'errorMessage' => 'The RegionId provided does not exist in our records.', - ], - [ - 'errorCode' => 'TagService.%s', - 'errorMessage' => 'TagService return errorMsg: %s', - ], - [ - 'errorCode' => 'InvalidParameter.tagKey', - 'errorMessage' => 'Check the parameter tagKey %s', - ], - [ - 'errorCode' => 'InvalidParameter.tagValue', - 'errorMessage' => 'Check the parameter tagValue %s', - ], - [ - 'errorCode' => 'InvalidParameter.tags.exceed', - 'errorMessage' => 'Tags num exceed 50', - ], - [ - 'errorCode' => 'InvalidParameter.tags.json.error', - 'errorMessage' => 'The parameter tags is not a JsonArray', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later'], + ['errorCode' => 'InvalidRegionId.NotFound', 'errorMessage' => 'The RegionId provided does not exist in our records.'], + ['errorCode' => 'TagService.%s', 'errorMessage' => 'TagService return errorMsg: %s'], + ['errorCode' => 'InvalidParameter.tagKey', 'errorMessage' => 'Check the parameter tagKey %s'], + ['errorCode' => 'InvalidParameter.tagValue', 'errorMessage' => 'Check the parameter tagValue %s'], + ['errorCode' => 'InvalidParameter.tags.exceed', 'errorMessage' => 'Tags num exceed 50'], + ['errorCode' => 'InvalidParameter.tags.json.error', 'errorMessage' => 'The parameter tags is not a JsonArray'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -2173,14 +1182,8 @@ 'responseDemo' => null, ], 'DescribeRdsList' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2191,36 +1194,23 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76441', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -2228,12 +1218,8 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'itemNode' => true, @@ -2243,30 +1229,13 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'ConnectUrl' => [ - 'type' => 'string', - ], - 'ReadWeight' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'DbType' => [ - 'type' => 'string', - ], - 'InstanceName' => [ - 'type' => 'string', - ], - 'InstanceStatus' => [ - 'type' => 'string', - ], - 'InstanceId' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Port' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'ConnectUrl' => ['type' => 'string'], + 'ReadWeight' => ['type' => 'integer', 'format' => 'int32'], + 'DbType' => ['type' => 'string'], + 'InstanceName' => ['type' => 'string'], + 'InstanceStatus' => ['type' => 'string'], + 'InstanceId' => ['type' => 'integer', 'format' => 'int32'], + 'Port' => ['type' => 'integer', 'format' => 'int32'], 'ReadOnlyChildren' => [ 'type' => 'object', 'itemNode' => true, @@ -2276,29 +1245,13 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'ConnectUrl' => [ - 'type' => 'string', - ], - 'ReadWeight' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'DbType' => [ - 'type' => 'string', - ], - 'InstanceName' => [ - 'type' => 'string', - ], - 'InstanceStatus' => [ - 'type' => 'string', - ], - 'InstanceId' => [ - 'type' => 'string', - ], - 'port' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'ConnectUrl' => ['type' => 'string'], + 'ReadWeight' => ['type' => 'integer', 'format' => 'int32'], + 'DbType' => ['type' => 'string'], + 'InstanceName' => ['type' => 'string'], + 'InstanceStatus' => ['type' => 'string'], + 'InstanceId' => ['type' => 'string'], + 'port' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -2315,46 +1268,19 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'The specified parameter does not match.', - ], - [ - 'errorCode' => 'InvalidDbname.MalFormed', - 'errorMessage' => 'The specified db name does not match.', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'The specified parameter does not match.'], + ['errorCode' => 'InvalidDbname.MalFormed', 'errorMessage' => 'The specified db name does not match.'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -2364,14 +1290,8 @@ 'responseDemo' => null, ], 'DescribeReadOnlyAccount' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2380,30 +1300,18 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76442', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'drdsusrzimk2****', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => 'drdsusrzimk2****'], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'testdb', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => 'testdb'], ], ], 'responses' => [ @@ -2412,35 +1320,15 @@ 'description' => '', 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '890BB376-5746-4145-A088-4E610EF312QA', - ], + 'Success' => ['description' => '', 'type' => 'boolean', 'example' => 'true'], + 'RequestId' => ['description' => '', 'type' => 'string', 'example' => '890BB376-5746-4145-A088-4E610EF312QA'], 'Data' => [ 'description' => '', 'type' => 'object', 'properties' => [ - 'DrdsInstanceId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'drdsusrzimk2****', - ], - 'DbName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'testdb', - ], - 'AccountName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'testaccount', - ], + 'DrdsInstanceId' => ['description' => '', 'type' => 'string', 'example' => 'drdsusrzimk2****'], + 'DbName' => ['description' => '', 'type' => 'string', 'example' => 'testdb'], + 'AccountName' => ['description' => '', 'type' => 'string', 'example' => 'testaccount'], ], ], ], @@ -2449,58 +1337,22 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'DrdsVersionIsOld', - 'errorMessage' => 'This drds instance version too old.not allow create drds db', - ], - [ - 'errorCode' => 'InvalidPassword.MalFormed', - 'errorMessage' => 'The specified parameter password is not valid.', - ], - [ - 'errorCode' => 'InvalidDbUserName.NotFound', - 'errorMessage' => 'The Username of db is not valid.', - ], - [ - 'errorCode' => 'UpdateDbUserPasswordFailed', - 'errorMessage' => 'update password failed', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidInstanceStatus.NotRunning', - 'errorMessage' => 'The Instance is not in running status', - ], - [ - 'errorCode' => 'InvalidDbStatus.NotRunning', - 'errorMessage' => 'The drds database is not in running status', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'DrdsVersionIsOld', 'errorMessage' => 'This drds instance version too old.not allow create drds db'], + ['errorCode' => 'InvalidPassword.MalFormed', 'errorMessage' => 'The specified parameter password is not valid.'], + ['errorCode' => 'InvalidDbUserName.NotFound', 'errorMessage' => 'The Username of db is not valid.'], + ['errorCode' => 'UpdateDbUserPasswordFailed', 'errorMessage' => 'update password failed'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'InvalidInstanceStatus.NotRunning', 'errorMessage' => 'The Instance is not in running status'], + ['errorCode' => 'InvalidDbStatus.NotRunning', 'errorMessage' => 'The drds database is not in running status'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -2511,14 +1363,8 @@ 'title' => 'DescribeReadOnlyAccount', ], 'DescribeRegions' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2527,9 +1373,7 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76443', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [], 'responses' => [ @@ -2537,12 +1381,8 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'DrdsRegions' => [ 'type' => 'object', 'itemNode' => true, @@ -2552,18 +1392,10 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'ZoneId' => [ - 'type' => 'string', - ], - 'RegionName' => [ - 'type' => 'string', - ], - 'ZoneName' => [ - 'type' => 'string', - ], - 'RegionId' => [ - 'type' => 'string', - ], + 'ZoneId' => ['type' => 'string'], + 'RegionName' => ['type' => 'string'], + 'ZoneName' => ['type' => 'string'], + 'RegionId' => ['type' => 'string'], 'InstanceSeriesList' => [ 'type' => 'object', 'itemNode' => true, @@ -2573,12 +1405,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'SeriesName' => [ - 'type' => 'string', - ], - 'SeriesId' => [ - 'type' => 'string', - ], + 'SeriesName' => ['type' => 'string'], + 'SeriesId' => ['type' => 'string'], 'SpecList' => [ 'type' => 'object', 'itemNode' => true, @@ -2588,12 +1416,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'SpecId' => [ - 'type' => 'string', - ], - 'SpecName' => [ - 'type' => 'string', - ], + 'SpecId' => ['type' => 'string'], + 'SpecName' => ['type' => 'string'], ], ], ], @@ -2615,29 +1439,17 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'responseDemo' => null, ], 'DescribeShardDBs' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2646,26 +1458,18 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76445', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -2673,12 +1477,8 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'itemNode' => true, @@ -2688,15 +1488,9 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'SubDbName' => [ - 'type' => 'string', - ], - 'GroupName' => [ - 'type' => 'string', - ], - 'InstanceName' => [ - 'type' => 'string', - ], + 'SubDbName' => ['type' => 'string'], + 'GroupName' => ['type' => 'string'], + 'InstanceName' => ['type' => 'string'], ], ], ], @@ -2708,46 +1502,19 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'The specified parameter does not match.', - ], - [ - 'errorCode' => 'InvalidDbname.MalFormed', - 'errorMessage' => 'The specified db name does not match.', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'The specified parameter does not match.'], + ['errorCode' => 'InvalidDbname.MalFormed', 'errorMessage' => 'The specified db name does not match.'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -2757,14 +1524,8 @@ 'responseDemo' => null, ], 'EnableInstance' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2777,84 +1538,52 @@ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true], ], [ 'name' => 'RestoreTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'BackupId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SourceDbInstId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'DbInstanceClass', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'VpcId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SwitchId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'EngineVersion', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -2862,15 +1591,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'string', - ], - 'Success' => [ - 'type' => 'boolean', - ], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'string'], + 'Success' => ['type' => 'boolean'], ], ], ], @@ -2879,14 +1602,8 @@ 'responseDemo' => null, ], 'ModifyDrdsDBPasswd' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2895,34 +1612,23 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76446', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'NewPasswd', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -2930,66 +1636,29 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'DrdsVersionIsOld', - 'errorMessage' => 'This drds instance version too old.not allow create drds db', - ], - [ - 'errorCode' => 'InvalidPassword.MalFormed', - 'errorMessage' => 'The specified parameter password is not valid.', - ], - [ - 'errorCode' => 'InvalidDbUserName.NotFound', - 'errorMessage' => 'The Username of db is not valid.', - ], - [ - 'errorCode' => 'UpdateDbUserPasswordFailed', - 'errorMessage' => 'update password failed', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceUpgrading', - 'errorMessage' => 'The drds instance is upgrading, please create db later', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'DrdsVersionIsOld', 'errorMessage' => 'This drds instance version too old.not allow create drds db'], + ['errorCode' => 'InvalidPassword.MalFormed', 'errorMessage' => 'The specified parameter password is not valid.'], + ['errorCode' => 'InvalidDbUserName.NotFound', 'errorMessage' => 'The Username of db is not valid.'], + ['errorCode' => 'UpdateDbUserPasswordFailed', 'errorMessage' => 'update password failed'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'OperationDenied.DrdsInstanceUpgrading', 'errorMessage' => 'The drds instance is upgrading, please create db later'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -2999,14 +1668,8 @@ 'responseDemo' => null, ], 'ModifyDrdsInstanceDescription' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3015,30 +1678,18 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76447', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'drdshbga33pe****', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => 'drdshbga33pe****'], ], [ 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'This is a test instance.', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => 'This is a test instance.'], ], ], 'responses' => [ @@ -3046,50 +1697,24 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'B4F76641-BA45-4320-BE7C-9C62CFDAR56T', - ], + 'Success' => ['description' => '', 'type' => 'boolean', 'example' => 'true'], + 'RequestId' => ['description' => '', 'type' => 'string', 'example' => 'B4F76641-BA45-4320-BE7C-9C62CFDAR56T'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'InvalidDescription.MalFormed', - 'errorMessage' => 'The specified parameter description is not valid.', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'InvalidDescription.MalFormed', 'errorMessage' => 'The specified parameter description is not valid.'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidParameters.DescriptionTooLong', - 'errorMessage' => 'The drds description is too long', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidParameters.DescriptionTooLong', 'errorMessage' => 'The drds description is too long'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -3100,14 +1725,8 @@ 'title' => 'ModifyDrdsInstanceDescription', ], 'ModifyDrdsIpWhiteList' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3116,59 +1735,38 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76448', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'IpWhiteList', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Mode', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - 'default' => 'true', - ], + 'schema' => ['type' => 'boolean', 'required' => false, 'default' => 'true'], ], [ 'name' => 'GroupName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'GroupAttribute', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -3176,78 +1774,32 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'The specified parameter does not match.', - ], - [ - 'errorCode' => 'InvalidDbname.MalFormed', - 'errorMessage' => 'The specified db name does not match.', - ], - [ - 'errorCode' => 'InvalidPassword.MalFormed', - 'errorMessage' => 'The specified parameter password is not valid.', - ], - [ - 'errorCode' => 'NumberIpWhiteList.Error', - 'errorMessage' => 'The number of ip in the whilte list must be less than 300', - ], - [ - 'errorCode' => 'ModifyIpwhiteListError.VPCInstance', - 'errorMessage' => 'The Ip whitelist of VPC instance is not changeable.', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'MaxIpGroupExceed', - 'errorMessage' => 'The number of ip group exceed.', - ], - [ - 'errorCode' => 'MaxIpNumberExceed', - 'errorMessage' => 'The number of ip exceed.', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'The specified parameter does not match.'], + ['errorCode' => 'InvalidDbname.MalFormed', 'errorMessage' => 'The specified db name does not match.'], + ['errorCode' => 'InvalidPassword.MalFormed', 'errorMessage' => 'The specified parameter password is not valid.'], + ['errorCode' => 'NumberIpWhiteList.Error', 'errorMessage' => 'The number of ip in the whilte list must be less than 300'], + ['errorCode' => 'ModifyIpwhiteListError.VPCInstance', 'errorMessage' => 'The Ip whitelist of VPC instance is not changeable.'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'MaxIpGroupExceed', 'errorMessage' => 'The number of ip group exceed.'], + ['errorCode' => 'MaxIpNumberExceed', 'errorMessage' => 'The number of ip exceed.'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -3257,14 +1809,8 @@ 'responseDemo' => null, ], 'ModifyFullTableScan' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3273,42 +1819,28 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76449', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TableNames', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'FullTableScan', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => true, - ], + 'schema' => ['type' => 'boolean', 'required' => true], ], ], 'responses' => [ @@ -3316,70 +1848,30 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'The specified parameter does not match.', - ], - [ - 'errorCode' => 'InvalidDbname.MalFormed', - 'errorMessage' => 'The specified db name does not match.', - ], - [ - 'errorCode' => 'InvalidParameter.PartitionTableNotFound', - 'errorMessage' => 'The specified table name does not match.', - ], - [ - 'errorCode' => 'InvalidAction.ConflictWithAnotherAction', - 'errorMessage' => 'The specified action conflict with another.', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'OperationFailed.ModifyFullTableScan', - 'errorMessage' => 'Modify full table scan failed, please try again later', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'The specified parameter does not match.'], + ['errorCode' => 'InvalidDbname.MalFormed', 'errorMessage' => 'The specified db name does not match.'], + ['errorCode' => 'InvalidParameter.PartitionTableNotFound', 'errorMessage' => 'The specified table name does not match.'], + ['errorCode' => 'InvalidAction.ConflictWithAnotherAction', 'errorMessage' => 'The specified action conflict with another.'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'OperationFailed.ModifyFullTableScan', 'errorMessage' => 'Modify full table scan failed, please try again later'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -3389,54 +1881,34 @@ 'responseDemo' => null, ], 'ModifyRdsReadWeight' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'none', - ], + 'systemTags' => ['operationType' => 'none'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'InstanceNames', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Weights', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -3444,86 +1916,34 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'The specified parameter does not match.', - ], - [ - 'errorCode' => 'InvalidDbname.MalFormed', - 'errorMessage' => 'The specified db name does not match.', - ], - [ - 'errorCode' => 'InvalidAction.ConflictWithAnotherAction', - 'errorMessage' => 'The specified action conflict with another.', - ], - [ - 'errorCode' => 'InvalidParameter.InvalidMainInstance', - 'errorMessage' => 'The specified main rds instance is invalid.', - ], - [ - 'errorCode' => 'InvalidParameter.IllegalWeightParameter', - 'errorMessage' => 'The specified parameter weight is invalid', - ], - [ - 'errorCode' => 'InvalidParameter.InvalidRdsReadInstance_NotFound', - 'errorMessage' => 'The specified read rds instance not found.', - ], - [ - 'errorCode' => 'InvalidStatus.RdsReadInstance', - 'errorMessage' => 'The specified rds read instance is in wrong status.', - ], - [ - 'errorCode' => 'InvalidMainInstance.WeightNotFound', - 'errorMessage' => 'The specified main instance does not have weight configuration.', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceUpgrading', - 'errorMessage' => 'The drds instance is upgrading, please create db later', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later'], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'The specified parameter does not match.'], + ['errorCode' => 'InvalidDbname.MalFormed', 'errorMessage' => 'The specified db name does not match.'], + ['errorCode' => 'InvalidAction.ConflictWithAnotherAction', 'errorMessage' => 'The specified action conflict with another.'], + ['errorCode' => 'InvalidParameter.InvalidMainInstance', 'errorMessage' => 'The specified main rds instance is invalid.'], + ['errorCode' => 'InvalidParameter.IllegalWeightParameter', 'errorMessage' => 'The specified parameter weight is invalid'], + ['errorCode' => 'InvalidParameter.InvalidRdsReadInstance_NotFound', 'errorMessage' => 'The specified read rds instance not found.'], + ['errorCode' => 'InvalidStatus.RdsReadInstance', 'errorMessage' => 'The specified rds read instance is in wrong status.'], + ['errorCode' => 'InvalidMainInstance.WeightNotFound', 'errorMessage' => 'The specified main instance does not have weight configuration.'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'OperationDenied.DrdsInstanceUpgrading', 'errorMessage' => 'The drds instance is upgrading, please create db later'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -3533,14 +1953,8 @@ 'responseDemo' => null, ], 'ModifyReadOnlyAccountPassword' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3549,50 +1963,33 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76451', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'AccountName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'OriginPassword', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'NewPasswd', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -3600,86 +1997,34 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'DrdsVersionIsOld', - 'errorMessage' => 'This drds instance version too old.not allow create drds db', - ], - [ - 'errorCode' => 'InvalidPassword.MalFormed', - 'errorMessage' => 'The specified parameter password is not valid.', - ], - [ - 'errorCode' => 'InvalidDbUserName.NotFound', - 'errorMessage' => 'The Username of db is not valid.', - ], - [ - 'errorCode' => 'UpdateDbUserPasswordFailed', - 'errorMessage' => 'update password failed', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidAccountOrPassword.MalFormed', - 'errorMessage' => 'Invalid account name or password.', - ], - [ - 'errorCode' => 'UpdateDbUserPassword.Failed', - 'errorMessage' => 'Update password failed, Please try again later', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceUpgrading', - 'errorMessage' => 'The drds instance is upgrading, please try again later', - ], - [ - 'errorCode' => 'InvalidReadOnlyAccount.NotFound', - 'errorMessage' => 'read only account not found.', - ], - [ - 'errorCode' => 'InvalidInstanceStatus.NotRunning', - 'errorMessage' => 'The Instance is not in running status', - ], - [ - 'errorCode' => 'InvalidDbStatus.NotRunning', - 'errorMessage' => 'The drds database is not in running status', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'DrdsVersionIsOld', 'errorMessage' => 'This drds instance version too old.not allow create drds db'], + ['errorCode' => 'InvalidPassword.MalFormed', 'errorMessage' => 'The specified parameter password is not valid.'], + ['errorCode' => 'InvalidDbUserName.NotFound', 'errorMessage' => 'The Username of db is not valid.'], + ['errorCode' => 'UpdateDbUserPasswordFailed', 'errorMessage' => 'update password failed'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'InvalidAccountOrPassword.MalFormed', 'errorMessage' => 'Invalid account name or password.'], + ['errorCode' => 'UpdateDbUserPassword.Failed', 'errorMessage' => 'Update password failed, Please try again later'], + ['errorCode' => 'OperationDenied.DrdsInstanceUpgrading', 'errorMessage' => 'The drds instance is upgrading, please try again later'], + ['errorCode' => 'InvalidReadOnlyAccount.NotFound', 'errorMessage' => 'read only account not found.'], + ['errorCode' => 'InvalidInstanceStatus.NotRunning', 'errorMessage' => 'The Instance is not in running status'], + ['errorCode' => 'InvalidDbStatus.NotRunning', 'errorMessage' => 'The drds database is not in running status'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -3689,14 +2034,8 @@ 'responseDemo' => null, ], 'QueryInstanceInfoByConn' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3705,35 +2044,23 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76452', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'Host', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Port', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true], ], [ 'name' => 'UserName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -3741,56 +2068,24 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'Specification' => [ - 'type' => 'string', - ], - 'CreateTime' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'SpecTypeId' => [ - 'type' => 'string', - ], - 'NetworkType' => [ - 'type' => 'string', - ], - 'RegionId' => [ - 'type' => 'string', - ], - 'SpecTypeName' => [ - 'type' => 'string', - ], - 'VpcCloudInstanceId' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'Version' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'DrdsInstanceId' => [ - 'type' => 'string', - ], - 'ZoneId' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'Specification' => ['type' => 'string'], + 'CreateTime' => ['type' => 'integer', 'format' => 'int64'], + 'SpecTypeId' => ['type' => 'string'], + 'NetworkType' => ['type' => 'string'], + 'RegionId' => ['type' => 'string'], + 'SpecTypeName' => ['type' => 'string'], + 'VpcCloudInstanceId' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'Version' => ['type' => 'integer', 'format' => 'int64'], + 'DrdsInstanceId' => ['type' => 'string'], + 'ZoneId' => ['type' => 'string'], 'Vips' => [ 'type' => 'object', 'itemNode' => true, @@ -3800,21 +2095,11 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], - 'VswitchId' => [ - 'type' => 'string', - ], - 'Port' => [ - 'type' => 'string', - ], - 'IP' => [ - 'type' => 'string', - ], + 'VpcId' => ['type' => 'string'], + 'Type' => ['type' => 'string'], + 'VswitchId' => ['type' => 'string'], + 'Port' => ['type' => 'string'], + 'IP' => ['type' => 'string'], ], ], ], @@ -3828,16 +2113,10 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -3847,30 +2126,19 @@ 'responseDemo' => null, ], 'RemoveDrdsInstance' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'none', - ], + 'systemTags' => ['operationType' => 'none'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -3878,42 +2146,23 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'RemoveDrdsDBFirst', - 'errorMessage' => 'There are Drds DB exist in this instance. Please delete drds db first', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceStatus', - 'errorMessage' => 'The drds instance is not in running status, please try again later', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'RemoveDrdsDBFirst', 'errorMessage' => 'There are Drds DB exist in this instance. Please delete drds db first'], + ['errorCode' => 'OperationDenied.DrdsInstanceStatus', 'errorMessage' => 'The drds instance is not in running status, please try again later'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -3923,14 +2172,8 @@ 'responseDemo' => null, ], 'RemoveReadOnlyAccount' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3939,34 +2182,23 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '76454', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'AccountName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -3974,82 +2206,33 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Success' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'DrdsVersionIsOld', - 'errorMessage' => 'This drds instance version too old.not allow create drds db', - ], - [ - 'errorCode' => 'InvalidPassword.MalFormed', - 'errorMessage' => 'The specified parameter password is not valid.', - ], - [ - 'errorCode' => 'InvalidDbUserName.NotFound', - 'errorMessage' => 'The Username of db is not valid.', - ], - [ - 'errorCode' => 'UpdateDbUserPasswordFailed', - 'errorMessage' => 'update password failed', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], - [ - 'errorCode' => 'OperationDenied.DrdsInstanceUpgrading', - 'errorMessage' => 'The drds instance is upgrading, please try again later', - ], - [ - 'errorCode' => 'OperationFailed.RemoveDbUserFailed', - 'errorMessage' => 'Remove readonly account failed, please try again later', - ], - [ - 'errorCode' => 'InvalidReadOnlyAccount.NotFound', - 'errorMessage' => 'read only account not found.', - ], - [ - 'errorCode' => 'InvalidInstanceStatus.NotRunning', - 'errorMessage' => 'The Instance is not in running status', - ], - [ - 'errorCode' => 'InvalidDbStatus.NotRunning', - 'errorMessage' => 'The drds database is not in running status', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you'], + ['errorCode' => 'DrdsVersionIsOld', 'errorMessage' => 'This drds instance version too old.not allow create drds db'], + ['errorCode' => 'InvalidPassword.MalFormed', 'errorMessage' => 'The specified parameter password is not valid.'], + ['errorCode' => 'InvalidDbUserName.NotFound', 'errorMessage' => 'The Username of db is not valid.'], + ['errorCode' => 'UpdateDbUserPasswordFailed', 'errorMessage' => 'update password failed'], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records'], + ['errorCode' => 'OperationDenied.DrdsInstanceUpgrading', 'errorMessage' => 'The drds instance is upgrading, please try again later'], + ['errorCode' => 'OperationFailed.RemoveDbUserFailed', 'errorMessage' => 'Remove readonly account failed, please try again later'], + ['errorCode' => 'InvalidReadOnlyAccount.NotFound', 'errorMessage' => 'read only account not found.'], + ['errorCode' => 'InvalidInstanceStatus.NotRunning', 'errorMessage' => 'The Instance is not in running status'], + ['errorCode' => 'InvalidDbStatus.NotRunning', 'errorMessage' => 'The drds database is not in running status'], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.'], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.'], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.'], ], ], 'eventInfo' => [ @@ -4060,221 +2243,59 @@ ], ], 'endpoints' => [ - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2-pop', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-pop', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-gov-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-nu16-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-edge-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-fujian', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-haidian-cm12-c01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-bj-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-prod-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-2', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-3', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-test-306', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong-finance-pop', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao-nebula', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et15-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et2-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-inner', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-internal-test-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-inner', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-st4-d01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-su18-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wuhan', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-yushanfang', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangbei-na61-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou-na62-a01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhengzhou-nebula-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1-oxs', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'rus-west-1-pop', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'drds.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'drds.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'drds.cn-hongkong.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'drds.cn-huhehaote.aliyuncs.com', - ], - [ - 'regionId' => 'cn-north-2-gov-1', - 'endpoint' => 'drds.cn-north-2-gov-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'drds.cn-qingdao.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'drds.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'drds.cn-shanghai-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'drds.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'drds.cn-shenzhen-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'drds.cn-zhangjiakou.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'drds.us-east-1.aliyuncs.com', - ], + ['regionId' => 'ap-northeast-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-northeast-2-pop', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-south-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-2', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-pop', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-beijing-gov-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-beijing-nu16-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-edge-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-fujian', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-haidian-cm12-c01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-bj-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-finance', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-prod-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-2', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-3', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-test-306', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-hongkong-finance-pop', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-qingdao-nebula', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et15-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et2-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shanghai-inner', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shanghai-internal-test-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-inner', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-st4-d01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-su18-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-wuhan', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-yushanfang', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-zhangbei-na61-b01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou-na62-a01', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'cn-zhengzhou-nebula-1', 'endpoint' => 'drds.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'eu-west-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'eu-west-1-oxs', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'me-east-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'rus-west-1-pop', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'us-west-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'endpoint' => 'drds.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'endpoint' => 'drds.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'endpoint' => 'drds.cn-hongkong.aliyuncs.com'], + ['regionId' => 'cn-huhehaote', 'endpoint' => 'drds.cn-huhehaote.aliyuncs.com'], + ['regionId' => 'cn-north-2-gov-1', 'endpoint' => 'drds.cn-north-2-gov-1.aliyuncs.com'], + ['regionId' => 'cn-qingdao', 'endpoint' => 'drds.cn-qingdao.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'endpoint' => 'drds.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'drds.cn-shanghai-finance-1.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'endpoint' => 'drds.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-finance-1', 'endpoint' => 'drds.cn-shenzhen-finance-1.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'endpoint' => 'drds.cn-zhangjiakou.aliyuncs.com'], + ['regionId' => 'us-east-1', 'endpoint' => 'drds.us-east-1.aliyuncs.com'], ], ]; diff --git a/data/en_us/drds/2019-01-23/api-docs.php b/data/en_us/drds/2019-01-23/api-docs.php index b0f84da..f9da329 100644 --- a/data/en_us/drds/2019-01-23/api-docs.php +++ b/data/en_us/drds/2019-01-23/api-docs.php @@ -1,719 +1,296 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'Drds', - 'version' => '2019-01-23', - ], + 'info' => ['style' => 'RPC', 'product' => 'Drds', 'version' => '2019-01-23'], 'directories' => [ [ - 'id' => 117683, - 'title' => null, + 'children' => ['CreateDrdsInstance', 'CreateOrderForRds', 'ModifyDrdsInstanceDescription', 'UpdateResourceGroupAttribute', 'DescribeDrdsInstances', 'DescribeDrdsDbInstance', 'DescribeDrdsInstance', 'DescribeDrdsParams', 'DescribeDrdsTasks', 'DescribeHotDbList', 'DescribeInstanceSwitchAzone', 'DescribeInstanceSwitchNetwork', 'DescribeInstDbLogInfo', 'DescribePreCheckResult', 'DescribeRdsCommodity', 'RemoveDrdsInstance'], 'type' => 'directory', - 'children' => [ - 'CreateDrdsInstance', - 'CreateOrderForRds', - 'ModifyDrdsInstanceDescription', - 'UpdateResourceGroupAttribute', - 'DescribeDrdsInstances', - 'DescribeDrdsDbInstance', - 'DescribeDrdsInstance', - 'DescribeDrdsParams', - 'DescribeDrdsTasks', - 'DescribeHotDbList', - 'DescribeInstanceSwitchAzone', - 'DescribeInstanceSwitchNetwork', - 'DescribeInstDbLogInfo', - 'DescribePreCheckResult', - 'DescribeRdsCommodity', - 'RemoveDrdsInstance', - ], + 'title' => 'Instance management', ], [ - 'id' => 117700, - 'title' => null, + 'children' => ['CreateDrdsDB', 'DescribeDrdsDBs', 'DescribeDrdsDB', 'DescribeDrdsDbInstances', 'DescribeDrdsDbRdsNameList', 'DescribeDrdsShardingDbs', 'CheckDrdsDbName', 'RemoveDrdsDbFailedRecord', 'RemoveDrdsDb'], 'type' => 'directory', - 'children' => [ - 'CreateDrdsDB', - 'DescribeDrdsDBs', - 'DescribeDrdsDB', - 'DescribeDrdsDbInstances', - 'DescribeDrdsDbRdsNameList', - 'DescribeDrdsShardingDbs', - 'CheckDrdsDbName', - 'RemoveDrdsDbFailedRecord', - 'RemoveDrdsDb', - ], + 'title' => 'Database management', ], [ - 'id' => 117711, - 'title' => null, + 'children' => ['ModifyRdsReadWeight', 'DescribeRdsPerformanceSummary', 'DescribeRdsSuperAccountInstances', 'DescribeDrdsDBCluster', 'DescribeRDSPerformance', 'DescribeDbInstanceDbs'], 'type' => 'directory', - 'children' => [ - 'ModifyRdsReadWeight', - 'DescribeRdsPerformanceSummary', - 'DescribeRdsSuperAccountInstances', - 'DescribeDrdsDBCluster', - 'DescribeRDSPerformance', - 'DescribeDbInstances', - 'DescribeDbInstanceDbs', - ], + 'title' => 'Storage management', ], [ - 'id' => 117719, - 'title' => null, + 'children' => ['CreateInstanceAccount', 'RemoveInstanceAccount'], 'type' => 'directory', - 'children' => [ - 'CreateInstanceAccount', - 'RemoveInstanceAccount', - ], + 'title' => 'Account management', ], [ - 'id' => 117722, - 'title' => null, + 'children' => ['EnableSqlAudit', 'DisableSqlAudit', 'DescribeDrdsSqlAuditStatus', 'DescribeInstDbSlsInfo', 'DescribeDrdsSlowSqls', 'CheckSqlAuditEnableStatus'], 'type' => 'directory', - 'children' => [ - 'EnableSqlAudit', - 'DisableSqlAudit', - 'DescribeDrdsSqlAuditStatus', - 'DescribeInstDbSlsInfo', - 'DescribeDrdsSlowSqls', - 'CheckSqlAuditEnableStatus', - ], + 'title' => 'SQL audit', ], [ - 'id' => 117729, - 'title' => null, + 'children' => ['StartRestore', 'SetBackupPolicy', 'EnableSqlFlashbackMatchSwitch', 'DescribeBackMenu', 'DescribeRestoreOrder', 'DescribeBackupDbs', 'DescribeBackupSets', 'DescribeBackupTimes', 'RemoveBackupsSet', 'PutStartBackup'], 'type' => 'directory', - 'children' => [ - 'StartRestore', - 'SetBackupPolicy', - 'EnableSqlFlashbackMatchSwitch', - 'DescribeBackMenu', - 'DescribeRestoreOrder', - 'DescribeBackupDbs', - 'DescribeBackupSets', - 'DescribeBackupPolicy', - 'DescribeBackupTimes', - 'RemoveBackupsSet', - 'PutStartBackup', - ], + 'title' => 'Backup and recovery', ], [ - 'id' => 117741, - 'title' => null, + 'children' => ['CreateInstanceInternetAddress', 'UpdateInstanceNetwork', 'ReleaseInstanceInternetAddress'], 'type' => 'directory', - 'children' => [ - 'CreateInstanceInternetAddress', - 'UpdateInstanceNetwork', - 'ReleaseInstanceInternetAddress', - ], + 'title' => 'Network and connection', ], [ - 'id' => 117745, - 'title' => null, + 'children' => ['ModifyDrdsIpWhiteList', 'DescribeDrdsDBIpWhiteList'], 'type' => 'directory', - 'children' => [ - 'ModifyDrdsIpWhiteList', - 'DescribeDrdsDBIpWhiteList', - ], + 'title' => 'Security', ], [ - 'id' => 117748, - 'title' => null, + 'children' => ['SubmitCleanTask', 'SubmitSmoothExpandPreCheck', 'CheckExpandStatus', 'SubmitHotExpandTask', 'SubmitHotExpandPreCheckTask'], 'type' => 'directory', - 'children' => [ - 'SubmitCleanTask', - 'SubmitSmoothExpandPreCheck', - 'CheckExpandStatus', - 'SubmitHotExpandTask', - 'SubmitHotExpandPreCheckTask', - ], + 'title' => 'Scaling management', ], [ - 'id' => 117756, - 'title' => null, + 'children' => ['DescribeSqlFlashbakTask', 'SubmitSqlFlashbackTask'], 'type' => 'directory', - 'children' => [ - 'DescribeSqlFlashbakTask', - 'SubmitSqlFlashbackTask', - ], + 'title' => 'Task management', ], [ - 'id' => 117759, - 'title' => null, + 'children' => ['CreateShardTask', 'DescribeInstanceAccounts', 'DescribeExpandLogicTableInfoList', 'DescribeTableListByType', 'DescribeShardTaskInfo', 'ValidateShardTask'], 'type' => 'directory', - 'children' => [ - 'CreateShardTask', - 'DescribeInstanceAccounts', - 'DescribeExpandLogicTableInfoList', - 'DescribeTable', - 'DescribeTableListByType', - 'DescribeShardTaskInfo', - 'ValidateShardTask', - ], + 'title' => 'Table sharding', ], [ - 'id' => 117768, - 'title' => null, + 'children' => ['SetupBroadcastTables', 'DescribeBroadcastTables', 'SwitchGlobalBroadcastType'], 'type' => 'directory', - 'children' => [ - 'SetupBroadcastTables', - 'DescribeBroadcastTables', - 'SwitchGlobalBroadcastType', - ], + 'title' => 'Broadcast table', ], [ - 'id' => 117772, - 'title' => null, + 'children' => ['SetupTable', 'DescribeTables'], 'type' => 'directory', - 'children' => [ - 'SetupTable', - 'DescribeTables', - ], + 'title' => 'Data table management', ], [ - 'id' => 117775, - 'title' => null, + 'children' => ['SetupDrdsParams'], 'type' => 'directory', - 'children' => [ - 'SetupDrdsParams', - 'ListTagResources', - 'TagResources', - 'UntagResources', - ], + 'title' => 'Tag and parameter settings', ], [ - 'id' => 117780, - 'title' => null, + 'children' => ['DescribeDrdsInstanceVersion', 'DescribeDrdsInstanceLevelTasks', 'UpgradeInstanceVersion'], 'type' => 'directory', - 'children' => [ - 'DescribeDrdsInstanceVersion', - 'DescribeDrdsInstanceLevelTasks', - 'UpgradeInstanceVersion', - ], + 'title' => 'Instance version', ], [ - 'id' => 117784, - 'title' => null, + 'children' => ['DescribeDrdsInstanceMonitor', 'DescribeDrdsInstanceDbMonitor'], 'type' => 'directory', - 'children' => [ - 'DescribeDrdsInstanceMonitor', - 'DescribeDrdsInstanceDbMonitor', - ], + 'title' => 'Performance monitoring', ], [ - 'id' => 169169, - 'title' => null, - 'type' => 'directory', 'children' => [ - 'ChangeAccountPassword', - 'ChangeInstanceAzone', - 'DescribeBackupLocal', - 'DescribeDrdsRdsInstances', - 'DescribeRecycleBinStatus', - 'DescribeRecycleBinTables', - 'EnableInstanceIpv6Address', - 'FlashbackRecycleBinTable', - 'GetDrdsDbRdsRelationInfo', - 'ManagePrivateRds', - 'ModifyAccountDescription', - 'ModifyAccountPrivilege', - 'ModifyPolarDbReadWeight', - 'RefreshDrdsAtomUrl', - 'RemoveRecycleBinTable', - 'RestartDrdsInstance', - 'RollbackInstanceVersion', - 'SetBackupLocal', - 'SetupRecycleBinStatus', - 'SubmitSmoothExpandPreCheckTask', - 'UpdatePrivateRdsClass', - 'UpgradeHiStoreInstance', + 'ChangeAccountPassword', 'ChangeInstanceAzone', 'DescribeBackupLocal', 'DescribeDrdsRdsInstances', 'DescribeRecycleBinStatus', 'DescribeRecycleBinTables', 'EnableInstanceIpv6Address', 'FlashbackRecycleBinTable', 'GetDrdsDbRdsRelationInfo', 'ManagePrivateRds', 'ModifyAccountPrivilege', 'ModifyPolarDbReadWeight', 'RefreshDrdsAtomUrl', 'RemoveRecycleBinTable', 'RestartDrdsInstance', 'RollbackInstanceVersion', 'SetBackupLocal', 'SetupRecycleBinStatus', 'SubmitSmoothExpandPreCheckTask', 'UpdatePrivateRdsClass', + 'UpgradeHiStoreInstance', 'DescribeBackupPolicy', 'DescribeDbInstances', 'DescribeTable', 'ListTagResources', 'ModifyAccountDescription', 'TagResources', 'UntagResources', ], + 'type' => 'directory', + 'title' => 'Others', ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'CreateDrdsInstance' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ChangeAccountPassword' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - ], + 'operationType' => 'write', + 'systemTags' => ['operationType' => 'none'], 'parameters' => [ [ - 'name' => 'Description', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the description of the instance. The description must meet the following requirements:'."\n" - ."\n" - .'* The description cannot contain the prefix http:// or https://.'."\n" - .'* The description must start with a letter or a Chinese character, and can contain uppercase and lowercase letters, Chinese characters, digits, underscores (\\_), and hyphens (-).'."\n" - .'* The description must be 2 to 256 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds********', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'AccountName', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the region ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The account name.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'ZoneId', + 'name' => 'Password', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the zone ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou-e', - ], + 'schema' => ['description' => 'The new password.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], - [ - 'name' => 'Type', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'Specifies the type of the instance. Set the value to PRIVATE. The value PRIVATE specifies that the instance is a dedicated instance.'."\n" - ."\n" - .'> You can also set the value to 1 to specify that the instance is a dedicated instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'PRIVATE', - 'enum' => [ - 'PRIVATE', - 'PUBLIC', - '1', - '0', + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'Indicates whether the operation was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-*****', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'Quantity', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the number of instances to be created. You can set the value only to 1. The value specifies that you can create one instance each time.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'example' => '1', - ], - ], - [ - 'name' => 'InstanceSeries', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the instance type of the instance. Valid values:'."\n" - ."\n" - .'* **drds.sn2.4c16g**: The instance is of the Starter Edition.'."\n" - .'* **drds.sn2.8c32g**: The instance is of the Standard Edition'."\n" - .'* **drds.sn2.16c64g**: The instance is of the Enterprise Edition.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds.sn2.4c16g', - ], - ], - [ - 'name' => 'Specification', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the specification code of the instance. The value consists of the instance type and the specified instance specification. For example, you can set the value to drds.sn2.4c16g.8c32g.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds.sn2.4c16g.8C32g', - ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], ], - [ - 'name' => 'ClientToken', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies 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 it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'c1dd299c-10c6-11ea-bbbb-************', - ], + 404 => [ + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], ], - [ - 'name' => 'PayType', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the billing method of the instance. Valid values:'."\n" - ."\n" - .'* **drdsPre**: The instance uses the subscription billing method.'."\n" - .'* **drdsPost**: The instance uses the pay-as-you-go billing method.'."\n" - .'* **drdsRo**: By default, the pay-as-you-go billing method is used when you create read-only instances.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdsPost', - ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], - [ - 'name' => 'VpcId', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the ID of the VPC.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'vpc-**********', - ], + ], + 'title' => 'Reset DRDS database password', + 'summary' => 'Resets the password of a DRDS database by calling the ChangeAccountPassword operation.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeAccountPassword'], ], + ], + 'ramActions' => [ [ - 'name' => 'VswitchId', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the ID of the vSwitch.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-**********', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:ChangeAccountPassword', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","type":"json"}]', + ], + 'ChangeInstanceAzone' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'isHa', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether the instance is a high-availability instance.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'AK' => [], ], + ], + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '75934', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], + ], + 'parameters' => [ [ - 'name' => 'PricingCycle', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the unit of the subscription duration of the subscription instance. Valid values:'."\n" - ."\n" - .'* **year**: The unit of the subscription duration is year.'."\n" - .'* **month**: The unit of the subscription duration is month.'."\n" - ."\n" - .'> This parameter is required if you set the PayType parameter to drdsPre.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'month', - 'enum' => [ - 'year', - 'month', - ], - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdsjiii1b49****', 'title' => ''], ], [ - 'name' => 'Duration', + 'name' => 'OriginAzoneId', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the purchase duration of the subscription instance.'."\n" - ."\n" - .'* If the PricingCycle parameter is set to year, the value range of the Duration parameter is 1 to 3.'."\n" - .'* If the PricingCycle parameter is set to month, the value range of the Duration parameter is 1 to 9.'."\n" - ."\n" - .'> This parameter only takes effect when the PayType parameter is set to drdsPre.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The original zone ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou-B', 'title' => ''], ], [ - 'name' => 'IsAutoRenew', + 'name' => 'TargetAzoneId', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to enable automatic renewal. Valid values:'."\n" - ."\n" - .'* **true**: If the PricingCycle parameter is set to month, the subscription is automatically renewed for one month. If the PricingCycle parameter is set to year, the subscription is automatically renewed for one year.'."\n" - .'* **false**: The auto-renewal feature is disabled for the instance.'."\n" - ."\n" - .'> This parameter only takes effect when the PayType parameter is set to drdsPre.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'false', - ], + 'schema' => ['description' => 'The target zone ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou-A', 'title' => ''], ], [ - 'name' => 'MasterInstId', + 'name' => 'DrdsRegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the ID of the primary instance. This parameter is only required when you create a read-only instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'MySQLVersion', + 'name' => 'ChangeVSwitch', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the MySQL version that is supported by the instance. Valid values:'."\n" - ."\n" - .'* **5**: The instance is fully compatible with MySQL 5.x. This value is the default value.'."\n" - .'* **8**: The instance is fully compatible with MySQL 8.0.'."\n" - ."\n" - .'> This parameter only takes effect when you create a primary instance. By default, the MySQL version of the read-only instance is the same as that of the primary instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '5', - ], + 'allowEmptyValue' => true, + 'schema' => ['description' => 'Specifies whether to update the vSwitch. Valid values:'."\n" + ."\n" + .'- **true**: Yes.'."\n" + .'- **false**: No.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], [ - 'name' => 'ResourceGroupId', + 'name' => 'NewVSwitch', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the ID of the resource group.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'rg-************', - ], + 'allowEmptyValue' => true, + 'schema' => ['description' => 'The ID of the new vSwitch.', 'type' => 'string', 'required' => false, 'example' => 'vsw-wz9ckkba51zrh********', 'title' => ''], ], ], 'responses' => [ 200 => [ + 'headers' => [], 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => 'D99D4644-A70D-49A3-B8B4-767ACC50SE2R', - ], - 'Data' => [ - 'description' => 'Indicates the details of the result.'."\n", - 'type' => 'object', - 'properties' => [ - 'OrderId' => [ - 'description' => 'Indicates the ID of the order.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '111111111111111', - ], - 'DrdsInstanceIdList' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'drdsInstanceIdList' => [ - 'description' => 'Indicates the ID of the instance.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'drds************', - ], - ], - ], - ], - ], - ], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'Parameter error', - ], - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'OperationDenied', - 'errorMessage' => 'drds service is not enable for you', - ], - [ - 'errorCode' => 'QuotaExceeded.DRDSInstance', - 'errorMessage' => 'The quota of create instance exceeds.', - ], - [ - 'errorCode' => 'InvalidRegionId.NotFound', - 'errorMessage' => 'The RegionId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDescription.MalFormed', - 'errorMessage' => 'The specified parameter description is not valid.', - ], - [ - 'errorCode' => 'CommunicateWithManager.Error', - 'errorMessage' => 'Internal Error. Communicate with drds manager error', - ], - [ - 'errorCode' => 'InvalidVSwitchId', - 'errorMessage' => 'Invalid vswitchId', - ], - [ - 'errorCode' => 'InvalidVpcId', - 'errorMessage' => 'Invalid vpcId, or the region of vpc does not match', - ], - [ - 'errorCode' => 'InvalidZoneId.Mismatch', - 'errorMessage' => 'zone is illegal in this order', - ], - [ - 'errorCode' => 'LowInventory.ServerError', - 'errorMessage' => 'low inventory error', - ], - [ - 'errorCode' => 'publicInstanceAlreadExist.Error', - 'errorMessage' => 'a public Drds instance is exist', - ], - [ - 'errorCode' => 'CreateDRDSInstanceId.Error', - 'errorMessage' => 'create Drds instance id error', - ], - [ - 'errorCode' => 'ResourceInsufficient', - 'errorMessage' => 'resource is Insufficient', - ], - [ - 'errorCode' => 'AnotherOrderExist.Error', - 'errorMessage' => 'there is another order', - ], - [ - 'errorCode' => 'InstanceExceedLimit.Error', - 'errorMessage' => 'instance number has exceeded', - ], - [ - 'errorCode' => 'InvalidParameter.Quantity', - 'errorMessage' => 'Invalid parameter of quantity', - ], - [ - 'errorCode' => 'InvalidParameter.RegionId', - 'errorMessage' => 'Invalid parameter of region id', - ], - [ - 'errorCode' => 'InvalidParameter.ZoneId', - 'errorMessage' => 'Invalid parameter of zone id', - ], - [ - 'errorCode' => 'InvalidParameter.PayType', - 'errorMessage' => 'Invalid parameter of pay type', - ], - [ - 'errorCode' => 'InvalidParameter.Spection', - 'errorMessage' => 'Invalid parameter of specification', - ], - [ - 'errorCode' => 'InvalidParameter.Series', - 'errorMessage' => 'Invalid parameter of series', - ], - [ - 'errorCode' => 'InvalidParameter.duration_pricingCycle', - 'errorMessage' => 'when payType=drdsPre, duration and pricingCycle is required', - ], - [ - 'errorCode' => 'InvalidParameter.year.duration', - 'errorMessage' => 'when pricingCycle=year, duration must between 1 to 3', - ], - [ - 'errorCode' => 'InvalidParameter.month.duration', - 'errorMessage' => 'when pricingCycle=month, duration must between 1 to 9', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceType.Error', - 'errorMessage' => 'Invalid parameter of Type, public is not supported', - ], - [ - 'errorCode' => 'QueryVSwitchFailed.InvalidVpcIdOrServerError', - 'errorMessage' => 'Query VSwitch failed, please check vpcId', - ], - [ - 'errorCode' => 'RegionNotSupportVPC.Error', - 'errorMessage' => 'This region does not support vpc instance', - ], - [ - 'errorCode' => 'UserAccountVerify.Failed', - 'errorMessage' => 'User account verify failed. Please verify first', - ], + ['errorCode' => 'ERR_INSTANCE_NOT_RUNNING_STATUS', 'errorMessage' => 'The instance status is not running', 'description' => ''], + ['errorCode' => 'ERR_OTHER_MULTI_AZONE_SWITCH', 'errorMessage' => 'Change to multiple azone should have even number of nodes', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"D99D4644-A70D-49A3-B8B4-767ACC50SE2R\\",\\n \\"Data\\": {\\n \\"OrderId\\": 111111111111111,\\n \\"DrdsInstanceIdList\\": {\\n \\"drdsInstanceIdList\\": [\\n \\"drds************\\"\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<CreateDrdsInstanceResponse>\\n <Success>true</Success>\\n <RequestId>D99D4644-A70D-49A3-B8B4-767ACC50SE2R</RequestId>\\n <Data>\\n <OrderId>111111111111111</OrderId>\\n <DrdsInstanceIdList>drds************</DrdsInstanceIdList>\\n </Data>\\n</CreateDrdsInstanceResponse>","errorExample":""}]', - 'title' => 'CreateDrdsInstance', - ], - 'CreateOrderForRds' => [ - 'methods' => [ - 'post', - 'get', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\"\\n}","type":"json"}]', + 'title' => 'Switch instance zone', + 'summary' => 'Switches the zone of a DRDS instance.', + 'changeSet' => [ + ['createdAt' => '2023-03-02T06:22:55.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeInstanceAzone'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:ChangeInstanceAzone', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'CheckDrdsDbName' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '75962', - 'abilityTreeNodes' => [ - 'FEATUREdrdsHFP8VD', - ], - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds********', 'title' => ''], ], [ - 'name' => 'Params', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The JSON string that contains the order details. For more information, see [CreateDBInstance](~~26228~~).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '{"key":"value"}', - ], + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'example' => 'drds_test', 'title' => ''], ], ], 'responses' => [ @@ -721,78 +298,74 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'The ID of the purchased RDS instance.'."\n", - 'type' => 'string', - 'example' => '[rm-***********]', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '9819BC51-D33D-4EB1-B80F-A89A20******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'CF38538C-68BD-4278-B58F-EDE96F******', 'title' => ''], + 'Result' => ['description' => 'The check result. A value of true indicates that the database name is valid. A value of false indicates that the database name is invalid.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidDbName.Empty', 'errorMessage' => 'DbName can not be empty', 'description' => ''], + ], + 404 => [ + ['errorCode' => 'InvalidDbName.Keyword', 'errorMessage' => 'Current DbName is the keyword', 'description' => ''], + ['errorCode' => 'InvalidDbName.DuplicatedInPublic', 'errorMessage' => 'Current DbName is duplicated in public instance', 'description' => ''], + ['errorCode' => 'InvalidDbName.Duplicated', 'errorMessage' => 'Current DbName provided has already existed in our records.', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": \\"[rm-***********]\\",\\n \\"RequestId\\": \\"9819BC51-D33D-4EB1-B80F-A89A20******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateOrderForRdsResponse> \\n <Data>[rm-***********]</Data>\\n\\t<RequestId>9819BC51-D33D-4EB1-B80F-A89A20******</RequestId>\\n\\t<Success>true</Success>\\n</CreateOrderForRdsResponse>","errorExample":""}]', - 'title' => 'CreateOrderForRds', - 'summary' => 'Creates an order to purchase an ApsaraDB RDS for MySQL instance.', - 'description' => 'Before you call this operation, make sure that you understand the billing methods and pricing of PolarDB-X 1.0. For more information, visit the [pricing page](https://www.aliyun.com/price/product#/rds/detail).'."\n", + 'title' => 'Check whether a DRDS database name is valid', + 'summary' => 'Checks whether a DRDS database name is valid.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ModifyDrdsInstanceDescription' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckDrdsDbName'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:CheckDrdsDbName', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CF38538C-68BD-4278-B58F-EDE96F******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'CheckExpandStatus' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'update', - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The DRDS instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds***********', 'title' => ''], ], [ - 'name' => 'Description', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The description of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The name of the database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -800,89 +373,80 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'C44CA24C-C7C4-4C0F-8AC9-1343F2******', + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7CDBA7D5-8D62-4D24-9C65-510D62******', 'title' => ''], + 'Data' => [ + 'description' => 'The check result.', + 'type' => 'object', + 'properties' => [ + 'Msg' => ['description' => 'The additional description.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'IsActive' => ['description' => 'Indicates whether scaling operations can be performed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"C44CA24C-C7C4-4C0F-8AC9-1343F2******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>C44CA24C-C7C4-4C0F-8AC9-1343F2******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'ModifyDrdsInstanceDescription', - 'summary' => 'You can call this operation to modify the instance description.', + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Check whether a database supports scaling operations', + 'summary' => 'Checks whether a DRDS database supports scaling operations such as smooth scale-out.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'UpdateResourceGroupAttribute' => [ - 'methods' => [ - 'post', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckExpandStatus'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:CheckExpandStatus', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"7CDBA7D5-8D62-4D24-9C65-510D62******\\",\\n \\"Data\\": {\\n \\"Msg\\": \\"success\\",\\n \\"IsActive\\": true\\n }\\n}","type":"json"}]', + ], + 'CheckSqlAuditEnableStatus' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', - 'deprecated' => false, + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '53946', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '75944', + 'abilityTreeNodes' => ['FEATUREdrdsB0CUNV'], ], 'parameters' => [ [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the instance you want to transfer is located.'."\n" - ."\n" - .'> You can call the [DescribeDrdsInstances](~~139284~~) operation to view the details of the instances under the account, including the region IDs.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance that you want to transfer.'."\n" - ."\n" - .'> You can call the [DescribeDrdsInstances](~~139284~~) operation to view the details of the instances under the account, including the instance IDs.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The DRDS instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'NewResourceGroupId', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the resource group that you want to specify.'."\n" - ."\n" - .'> You can call the [ListResourceGroups](~~158855~~) operation to view the details of the resource groups, including the resource group IDs.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'rg-***************', - ], + 'schema' => ['description' => 'The name of the database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -890,212 +454,172 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '91C7CAB5-3B2E-4FB6-893C-0162C0******', - ], + 'Status' => ['description' => 'The enabling status of the SQL audit feature. Valid values:'."\n" + ."\n" + .'* enabled: SQL audit is enabled.'."\n" + .'* disabled: SQL audit is disabled.', 'type' => 'string', 'example' => 'enabled', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FF13E47D-4E38-4A5A-BA68-32A554******', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 404 => [ - [ - 'errorCode' => 'DRDSDB.NotExist', - 'errorMessage' => 'The database does not exist.', - ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"91C7CAB5-3B2E-4FB6-893C-0162C0******\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateResourceGroupAttributeResponse>\\r\\n<RequestId>91C7CAB5-3B2E-4FB6-893C-0162C0******</RequestId>\\r\\n</UpdateResourceGroupAttributeResponse>","errorExample":""}]', - 'title' => 'UpdateResourceGroupAttribute', - 'summary' => 'Transfers an instance to a new resource group.', + 'title' => 'Check whether SQL audit is enabled for a DRDS logical database', + 'summary' => 'Checks whether SQL audit is enabled for a DRDS logical database by calling the CheckSqlAuditEnableStatus operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsInstances' => [ - 'summary' => 'Queries instances that meet the specified conditions.', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckSqlAuditEnableStatus'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:CheckSqlAuditEnableStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"enabled\\",\\n \\"RequestId\\": \\"FF13E47D-4E38-4A5A-BA68-32A554******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'CreateDrdsDB' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '76004', - 'abilityTreeNodes' => [ - 'FEATUREdrdsQ69M1H', - ], - ], + 'systemTags' => ['operationType' => 'create'], 'parameters' => [ [ - 'name' => 'Type', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the instances that you want to query. Valid values:'."\n" - ."\n" - .'* **0**: shared instances'."\n" - .'* **1**: dedicated instances'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1', - 'enum' => [ - 'PRIVATE', - 'PUBLIC', - '1', - '0', - ], - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdshbgal154****', 'title' => ''], ], [ - 'name' => 'Description', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The description of the instances.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_test', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => false, 'example' => 'testdb', 'title' => ''], ], [ - 'name' => 'Expired', + 'name' => 'Encode', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether the instances that you want to query expire.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => 'The encoding used by the database.', 'type' => 'string', 'required' => false, 'default' => 'utf8mb4', 'example' => 'utf8', 'title' => ''], ], [ - 'name' => 'PageNumber', + 'name' => 'Password', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => 'The password used to access the database.', 'type' => 'string', 'required' => false, 'example' => 'drds_sample_password', 'title' => ''], ], [ - 'name' => 'PageSize', + 'name' => 'Type', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of instances returned on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - 'default' => '20', - ], + 'schema' => ['description' => 'The sharding method of the database. Valid values:'."\n" + ."\n" + .'- **HORIZONTAL**: horizontal sharding, which is commonly known as table and database sharding.'."\n" + .'- **VERTICAL**: vertical partitioning.', 'type' => 'string', 'required' => false, 'default' => 'HORIZONTAL', 'example' => 'HORIZONTAL', 'title' => ''], ], [ - 'name' => 'ResourceGroupId', + 'name' => 'DbInstType', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the resource group to which the instances you want to query belong. The value of this parameter can be NULL.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'NULL', - ], + 'schema' => ['description' => 'The type of the attached storage. Currently, only RDS is supported.', 'type' => 'string', 'required' => false, 'default' => 'RDS', 'example' => 'RDS', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'DbInstanceIsCreating', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - 'enum' => [ - 'cn-shenzhen', - 'cn-beijing', - 'cn-shenzhen-finance-1', - 'cn-north-2-gov-1', - 'cn-qingdao', - 'cn-shanghai', - 'cn-shanghai-finance-1', - 'cn-hongkong', - 'cn-hangzhou-finance', - 'ap-southeast-1', - 'cn-huhehaote', - 'us-east-1', - 'cn-zhangjiakou', - 'cn-hangzhou', - 'us-west-1', - 'cn-wulanchabu', - 'eu-central-1', - 'ap-southeast-5', - 'cn-zhengzhou-jva', - 'ap-northeast-1', - 'cn-shanghai-cloudspe', - 'ap-southeast-6', - 'ap-southeast-7', - ], - ], + 'schema' => ['description' => 'Specifies whether the RDS instances involved in database creation are being created.', 'type' => 'boolean', 'required' => false, 'default' => 'false', 'example' => 'false', 'title' => ''], ], [ - 'name' => 'Mix', + 'name' => 'AccountName', + 'in' => 'query', + 'schema' => ['description' => 'This parameter is used only for vertical partitioning. It specifies the name of an account that has access permissions on the corresponding databases across all RDS instances in a vertical partitioning scenario.', 'type' => 'string', 'required' => false, 'example' => 'drds_sample_account', 'title' => ''], + ], + [ + 'name' => 'RdsInstance', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'Specifies whether hybrid queries are supported.'."\n", - 'type' => 'boolean', + 'description' => 'The list of RDS instances.', + 'type' => 'array', + 'items' => ['description' => 'This parameter is required only for horizontal sharding. The value is a string in JSON array format.', 'type' => 'string', 'required' => false, 'example' => '["drds_sample_rds_id1", "drds_sample_rds_id2"]', 'title' => ''], 'required' => false, - 'example' => 'FALSE', + 'example' => '["drds_sample_rds_id1", "drds_sample_rds_id2"]', + 'maxItems' => 1000, + 'title' => '', ], ], [ - 'name' => 'ProductVersion', + 'name' => 'RdsSuperAccount', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The version of the service.'."\n", - 'type' => 'string', + 'description' => 'The list of RDS superuser account information.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Password' => ['description' => 'The password of the RDS superuser account.', 'type' => 'string', 'required' => false, 'example' => 'drds_sample_rds_super_password', 'title' => ''], + 'DbInstanceId' => ['description' => 'The RDS instance ID.', 'type' => 'string', 'required' => false, 'example' => 'drds_sample_rds_id', 'title' => ''], + 'AccountName' => ['description' => 'The name of the RDS superuser account.', 'type' => 'string', 'required' => false, 'example' => 'drds_sample_rds_super_account', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], 'required' => false, - 'example' => 'V1', + 'maxItems' => 1000, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'Tag', + 'name' => 'InstDbName', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The list of databases.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => 'The key of the tag configured for the instances you want to query.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'acs:newretail:domain', - ], - 'Value' => [ - 'description' => 'The value of the tag configured for the instances you want to query.'."\n", - 'type' => 'string', + 'DbInstanceId' => ['description' => 'The ID of the RDS instance to be vertically partitioned. This parameter is used only for vertical partitioning.', 'type' => 'string', 'required' => false, 'example' => 'drds_sample_rds_id', 'title' => ''], + 'ShardDbName' => [ + 'description' => 'The list of sharded databases.', + 'type' => 'array', + 'items' => ['description' => 'The list of databases on the corresponding RDS instance that need to be vertically partitioned. The value is a string in JSON array format. This parameter is used only for vertical partitioning.', 'type' => 'string', 'required' => false, 'example' => '["db1", "db2"]', 'title' => ''], 'required' => false, - 'example' => 'NEW_RETAIL', + 'example' => '["drds_sample_db1", "drds_sample_db2"]', + 'maxItems' => 30, + 'title' => '', ], ], 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => false, - 'maxItems' => 50, + 'maxItems' => 100, + 'title' => '', + 'example' => '', ], ], ], @@ -1104,599 +628,350 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '8734773E-7B21-4A22-9106-CBD245F8****', - ], - 'PageNumber' => [ - 'description' => 'The page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => 'The number of instances returned on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'Total' => [ - 'description' => 'The total number of instances returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Instances' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Instance' => [ - 'description' => 'The list of returned instances.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'VpcId' => [ - 'description' => 'The ID of the VPC to which the instance belongs.'."\n", - 'type' => 'string', - 'example' => 'vpc-bp**********', - ], - 'Status' => [ - 'description' => 'The status of the instance.'."\n", - 'type' => 'string', - 'example' => 'RUN', - ], - 'Type' => [ - 'description' => 'The type of the instance. Valid values:'."\n" - ."\n" - .'* **PUBLIC**: The returned instance is a shared instance.'."\n" - .'* **PRIVATE**: The returned instance is a dedicated instance.'."\n", - 'type' => 'string', - 'example' => 'PRIVATE', - ], - 'CommodityCode' => [ - 'description' => 'The commodity code of the service.'."\n", - 'type' => 'string', - 'example' => 'drdsPost', - ], - 'MachineType' => [ - 'description' => 'The machine type of the instance. Valid value: ecs.'."\n", - 'type' => 'string', - 'example' => 'ecs', - ], - 'CreateTime' => [ - 'description' => 'The timestamp that indicates when the instance is created.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568620311000', - ], - 'VersionAction' => [ - 'description' => 'Indicates whether the version of the instance can be upgraded.'."\n", - 'type' => 'string', - 'example' => 'Upgradable', - ], - 'InstanceSeries' => [ - 'description' => 'The instance series.'."\n", - 'type' => 'string', - 'example' => 'drds.sn2.4c16g', - ], - 'NetworkType' => [ - 'description' => 'The network type of the instance. Valid values:'."\n" - ."\n" - .'* **CLASSIC**'."\n" - .'* **VPC**'."\n", - 'type' => 'string', - 'example' => 'CLASSIC', - ], - 'Label' => [ - 'description' => 'The tag of the instance. Valid values:'."\n" - ."\n" - .'* **NORMAL**: The instance is a standard instance.'."\n" - .'* **HA**: The instance is a high-availability (HA) instance.'."\n" - .'* **VPC**: The instance is a VPC-based instance.'."\n", - 'type' => 'string', - 'example' => 'NORMAL', - ], - 'ProductVersion' => [ - 'description' => 'The version of the service.'."\n", - 'type' => 'string', - 'example' => 'V1', - ], - 'InstanceSpec' => [ - 'description' => 'The specification of the instance.'."\n", - 'type' => 'string', - 'example' => 'drds.sn2.4c16g.8C32G', - ], - 'RegionId' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-e', - ], - 'VpcCloudInstanceId' => [ - 'description' => 'The ID of the instance that is deployed in the VPC.'."\n", - 'type' => 'string', - 'example' => 'drdssen12****', - ], - 'Description' => [ - 'description' => 'The description of the instance.'."\n", - 'type' => 'string', - 'example' => 'drds_test', - ], - 'Version' => [ - 'description' => 'The version of the instance.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'ResourceGroupId' => [ - 'description' => 'The ID of the resource group to which the instance belongs.'."\n", - 'type' => 'string', - 'example' => 'rg-aek2ljh3ye4****', - ], - 'ZoneId' => [ - 'description' => 'The ID of the zone in which the resource is located.'."\n", - 'type' => 'string', - 'example' => 'vsw-bpxxxxxxxxxxxxx96', - ], - 'DrdsInstanceId' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'drdssen12****', - ], - 'ExpireDate' => [ - 'description' => 'The timestamp that indicates when the instance expires.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4724323200000', - ], - 'MasterInstanceId' => [ - 'description' => 'The ID of the primary instance.'."\n", - 'type' => 'string', - 'example' => 'drdssen12****', - ], - 'OrderInstanceId' => [ - 'description' => 'The ID of the purchased instance.'."\n", - 'type' => 'string', - 'example' => 'drdssen12****', - ], - 'InstRole' => [ - 'description' => 'The role of the instance. Valid values:'."\n" - ."\n" - .'* MASTER: The instance is a primary instance.'."\n" - .'* SLAVE: The instance is a read-only instance to analyze complex queries.'."\n" - .'* SLAVE_FLOW: The instance is a read-only instance for high-concurrency scenarios.'."\n", - 'type' => 'string', - 'example' => 'MASTER', - ], - 'Vips' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Vip' => [ - 'description' => 'The list of returned virtual IP addresses (VIPs).'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'VpcId' => [ - 'description' => 'The ID of the VPC.'."\n", - 'type' => 'string', - 'example' => 'vpc-bpxxxxxxxxxxxy', - ], - 'Type' => [ - 'description' => 'The type of the VIP. Valid values:'."\n" - ."\n" - .'* intranet: a private IP address'."\n" - .'* internet: a public IP address'."\n", - 'type' => 'string', - 'example' => 'intranet', - ], - 'VswitchId' => [ - 'description' => 'The ID of the vSwitch.'."\n", - 'type' => 'string', - 'example' => 'vsw-bpxxxxxxxxxxxxx96', - ], - 'Port' => [ - 'description' => 'The ports that are opened on the VIP.'."\n", - 'type' => 'string', - 'example' => '3306', - ], - 'IP' => [ - 'description' => 'The virtual IP address.'."\n", - 'type' => 'string', - 'example' => '10.23.***.***', - ], - 'dns' => [ - 'description' => 'The domain name that is mapped to the VIP.'."\n", - 'type' => 'string', - 'example' => 'drdssen1243as.drds.aliyuncs.com', - ], - ], - ], - ], - ], - ], - 'ReadOnlyDBInstanceIds' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'ReadOnlyDBInstanceId' => [ - 'description' => 'The IDs of read-only instances that are associated with the instance.', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'drdssen12****', - ], - ], - ], - ], - 'series' => [ - 'description' => 'The edition of the instance. Valid values:'."\n" - ."\n" - .'* **starter**: Starter Edition'."\n" - .'* **enterprise**: Enterprise Edition'."\n" - .'* **standard**: Standard Edition'."\n", - 'type' => 'string', - 'example' => 'enterprise', - ], - ], - ], - ], - ], - ], + 'Success' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FF13E47D-4E38-4A5A-BA68-32A554AD45T6', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidRegionId.NotFound', - 'errorMessage' => 'The RegionId provided does not exist in our records.', - ], + 404 => [ + ['errorCode' => 'InvalidInstance.CreateDbForSlave', 'errorMessage' => 'Db Creation in slave drds instance not support.', 'description' => ''], + ['errorCode' => 'InvalidParameter.InstDbName', 'errorMessage' => 'The parameter InstDbName is empty', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"8734773E-7B21-4A22-9106-CBD245F8****\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"Total\\": 1,\\n \\"Instances\\": {\\n \\"Instance\\": [\\n {\\n \\"VpcId\\": \\"vpc-bp**********\\",\\n \\"Status\\": \\"RUN\\",\\n \\"Type\\": \\"PRIVATE\\",\\n \\"CommodityCode\\": \\"drdsPost\\",\\n \\"MachineType\\": \\"ecs\\",\\n \\"CreateTime\\": 1568620311000,\\n \\"VersionAction\\": \\"Upgradable\\",\\n \\"InstanceSeries\\": \\"drds.sn2.4c16g\\",\\n \\"NetworkType\\": \\"CLASSIC\\",\\n \\"Label\\": \\"NORMAL\\",\\n \\"ProductVersion\\": \\"V1\\",\\n \\"InstanceSpec\\": \\"drds.sn2.4c16g.8C32G\\",\\n \\"RegionId\\": \\"cn-hangzhou-e\\",\\n \\"VpcCloudInstanceId\\": \\"drdssen12****\\",\\n \\"Description\\": \\"drds_test\\",\\n \\"Version\\": 0,\\n \\"ResourceGroupId\\": \\"rg-aek2ljh3ye4****\\",\\n \\"ZoneId\\": \\"vsw-bpxxxxxxxxxxxxx96\\",\\n \\"DrdsInstanceId\\": \\"drdssen12****\\",\\n \\"ExpireDate\\": 4724323200000,\\n \\"MasterInstanceId\\": \\"drdssen12****\\",\\n \\"OrderInstanceId\\": \\"drdssen12****\\",\\n \\"InstRole\\": \\"MASTER\\",\\n \\"Vips\\": {\\n \\"Vip\\": [\\n {\\n \\"VpcId\\": \\"vpc-bpxxxxxxxxxxxy\\",\\n \\"Type\\": \\"intranet\\",\\n \\"VswitchId\\": \\"vsw-bpxxxxxxxxxxxxx96\\",\\n \\"Port\\": \\"3306\\",\\n \\"IP\\": \\"10.23.***.***\\",\\n \\"dns\\": \\"drdssen1243as.drds.aliyuncs.com\\"\\n }\\n ]\\n },\\n \\"ReadOnlyDBInstanceIds\\": {\\n \\"ReadOnlyDBInstanceId\\": [\\n \\"drdssen12****\\"\\n ]\\n },\\n \\"series\\": \\"enterprise\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsInstancesResponse>\\n <RequestId>8734773E-7B21-4A22-9106-CBD245F8****</RequestId>\\n <PageNumber>1</PageNumber>\\n <PageSize>20</PageSize>\\n <Total>1</Total>\\n <Instances>\\n <VpcId>vpc-bp**********</VpcId>\\n <Status>RUN</Status>\\n <Type>PRIVATE</Type>\\n <CommodityCode>drdsPost</CommodityCode>\\n <MachineType>ecs</MachineType>\\n <CreateTime>1568620311000</CreateTime>\\n <VersionAction>Upgradable</VersionAction>\\n <InstanceSeries>drds.sn2.4c16g</InstanceSeries>\\n <NetworkType>CLASSIC</NetworkType>\\n <Label>NORMAL</Label>\\n <ProductVersion>V1</ProductVersion>\\n <InstanceSpec>drds.sn2.4c16g.8C32G</InstanceSpec>\\n <RegionId>cn-hangzhou-e</RegionId>\\n <VpcCloudInstanceId>drdssen12****</VpcCloudInstanceId>\\n <Description>drds_test</Description>\\n <Version>0</Version>\\n <ResourceGroupId>rg-aek2ljh3ye4****</ResourceGroupId>\\n <ZoneId>vsw-bpxxxxxxxxxxxxx96</ZoneId>\\n <DrdsInstanceId>drdssen12****</DrdsInstanceId>\\n <ExpireDate>4724323200000</ExpireDate>\\n <MasterInstanceId>drdssen12****</MasterInstanceId>\\n <OrderInstanceId>drdssen12****</OrderInstanceId>\\n <InstRole>MASTER</InstRole>\\n <Vips>\\n <VpcId>vpc-bpxxxxxxxxxxxy</VpcId>\\n <Type>intranet</Type>\\n <VswitchId>vsw-bpxxxxxxxxxxxxx96</VswitchId>\\n <Port>3306</Port>\\n <IP>10.23.***.***</IP>\\n <dns>drdssen1243as.drds.aliyuncs.com</dns>\\n </Vips>\\n <ReadOnlyDBInstanceIds>drdssen12****</ReadOnlyDBInstanceIds>\\n <series>enterprise</series>\\n </Instances>\\n</DescribeDrdsInstancesResponse>","errorExample":""}]', - 'title' => 'DescribeDrdsInstances', + 'title' => 'Create a database instance', + 'summary' => 'Creates a DRDS database.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsDbInstance' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDrdsDB'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateDrdsDB', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"FF13E47D-4E38-4A5A-BA68-32A554AD45T6\\"\\n}","type":"json"}]', + ], + 'CreateDrdsInstance' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '75989', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], - ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create'], 'parameters' => [ [ - 'name' => 'DrdsInstanceId', + 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdshbga1138****', - ], + 'schema' => ['description' => 'The description of the instance. The description must meet the following requirements:'."\n" + ."\n" + .'- It cannot start with http:// or https://.'."\n" + .'- It must start with a letter or a Chinese character and can contain uppercase letters, lowercase letters, Chinese characters, digits, underscores (_), or hyphens (-).'."\n" + .'- It must be 2 to 256 characters in length.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'ZoneId', + 'in' => 'query', + 'schema' => ['description' => 'The zone ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou-e', 'title' => ''], + ], + [ + 'name' => 'Type', 'in' => 'query', 'schema' => [ - 'description' => 'The name of the database.'."\n", + 'description' => 'The instance type. Only PRIVATE is supported, which indicates a dedicated instance.'."\n" + ."\n" + .'> You can also set this parameter to 1 to indicate a dedicated instance.', 'type' => 'string', 'required' => true, - 'example' => 'drds_test', + 'docRequired' => true, + 'enum' => ['PRIVATE', 'PUBLIC', '1', '0'], + 'example' => 'PRIVATE', + 'title' => '', ], ], [ - 'name' => 'DbInstanceId', + 'name' => 'Quantity', + 'in' => 'query', + 'schema' => ['description' => 'The number of instances to create. Only the value 1 is supported, which indicates that only one instance can be created at a time.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'InstanceSeries', + 'in' => 'query', + 'schema' => ['description' => 'The instance edition parameter. Valid values:'."\n" + ."\n" + .'- **drds.sn2.4c16g**: Starter Edition'."\n" + .'- **drds.sn2.8c32g**: Standard Edition'."\n" + .'- **drds.sn2.16c64g**: Enterprise Edition.', 'type' => 'string', 'required' => true, 'example' => 'drds.sn2.4c16g', 'title' => ''], + ], + [ + 'name' => 'Specification', + 'in' => 'query', + 'schema' => ['description' => 'The instance specification code. The value consists of the instance edition and the specific instance specification. Example: drds.sn2.4c16g.8c32g.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds.sn2.4c16g.8C32g', 'title' => ''], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request and prevent repeated submissions. The value is generated by the client and must be unique among different requests. The value can be up to 64 ASCII characters in length and cannot contain non-ASCII characters.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'c1dd299c-10c6-11ea-bbbb-************', 'title' => ''], + ], + [ + 'name' => 'PayType', + 'in' => 'query', + 'schema' => ['description' => 'The billing method. Valid values:'."\n" + ."\n" + .'- **drdsPre**: subscription.'."\n" + .'- **drdsPost**: pay-as-you-go.'."\n" + .'- **drdsRo**: When you create a read-only instance, the pay-as-you-go billing method is used by default.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdsPost', 'title' => ''], + ], + [ + 'name' => 'VpcId', + 'in' => 'query', + 'schema' => ['description' => 'The VPC ID.', 'type' => 'string', 'required' => false, 'example' => 'vpc-**********', 'title' => ''], + ], + [ + 'name' => 'VswitchId', + 'in' => 'query', + 'schema' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'required' => false, 'example' => 'vsw-**********', 'title' => ''], + ], + [ + 'name' => 'isHa', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether the instance is a high-availability instance.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'PricingCycle', 'in' => 'query', 'schema' => [ - 'description' => 'The ID of the custom ApsaraDB RDS for MySQL instance that you want to query.'."\n", + 'description' => 'Specifies the billing cycle of the subscription instance. Valid values:'."\n" + ."\n" + .'- **year**: yearly subscription'."\n" + .'- **month**: monthly subscription'."\n" + ."\n" + .'> This parameter is required if PayType is set to drdsPre.', 'type' => 'string', - 'required' => true, - 'example' => 'rm-bp1t1mk5a5bdj****', + 'required' => false, + 'enum' => ['year', 'month'], + 'example' => 'month', + 'title' => '', ], ], + [ + 'name' => 'Duration', + 'in' => 'query', + 'schema' => ['description' => 'The subscription duration of the instance.'."\n" + ."\n" + .'- If PricingCycle is set to year, valid values are 1 to 3.'."\n" + .'- If PricingCycle is set to month, valid values are 1 to 9.'."\n" + ."\n" + .'> This parameter takes effect only when PayType is set to drdsPre.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'IsAutoRenew', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to enable auto-renewal. Valid values:'."\n" + ."\n" + .'- **true**: Auto-renewal is enabled. If the instance is purchased on a monthly basis, the instance is automatically renewed for one month. If the instance is purchased on a yearly basis, the instance is automatically renewed for one year.'."\n" + .'- **false**: Auto-renewal is disabled.'."\n" + ."\n" + .'> This parameter takes effect only when PayType is set to drdsPre.', 'type' => 'boolean', 'required' => false, 'default' => 'false', 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'MasterInstId', + 'in' => 'query', + 'schema' => ['description' => 'The instance ID of the primary instance. Specify this parameter only when you create a read-only instance.', 'type' => 'string', 'required' => false, 'example' => 'drds***********', 'title' => ''], + ], + [ + 'name' => 'MySQLVersion', + 'in' => 'query', + 'schema' => ['description' => 'The MySQL version supported by the instance. Valid values:'."\n" + ."\n" + .'- **5**: fully compatible with MySQL 5.x (default)'."\n" + .'- **8**: fully compatible with MySQL 8.0'."\n" + ."\n" + .'> This parameter takes effect only when you create a primary instance. The MySQL version of a read-only instance is the same as that of the primary instance by default.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5', 'title' => ''], + ], + [ + 'name' => 'ResourceGroupId', + 'in' => 'query', + 'schema' => ['description' => 'The resource group ID.', 'type' => 'string', 'required' => false, 'example' => 'rg-************', 'title' => ''], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '4FE09970-CA69-4144-88CA-67FB4BTY56G3', - ], - 'DbInstance' => [ - 'description' => 'The detailed information about the returned custom ApsaraDB RDS for MySQL instance.'."\n", + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D99D4644-A70D-49A3-B8B4-767ACC50SE2R', 'title' => ''], + 'Data' => [ + 'description' => 'The result details.', 'type' => 'object', 'properties' => [ - 'ExpireTime' => [ - 'description' => 'The time when the custom ApsaraDB RDS for MySQL instance expires. The value of this parameter is a UNIX timestamp. Unit: seconds.'."\n" - ."\n" - .'> This parameter is returned only when the custom ApsaraDB RDS for MySQL instance is a subscription instance.'."\n", - 'type' => 'string', - 'example' => '12341434315', - ], - 'PayType' => [ - 'description' => 'The billing method of the custom ApsaraDB RDS for MySQL instance. Valid values:'."\n" - ."\n" - .'* **Prepaid**: subscription'."\n" - .'* **Postaid**: pay-as-you-go'."\n", - 'type' => 'string', - 'example' => 'Postpaid', - ], - 'DBInstanceStatus' => [ - 'description' => 'The state of the instance.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'NetworkType' => [ - 'description' => 'The type of the network. Valid values: **VPC**.'."\n", - 'type' => 'string', - 'example' => 'VPC', - ], - 'Port' => [ - 'description' => 'The port used to connect to the custom ApsaraDB RDS for MySQL instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3306', - ], - 'EngineVersion' => [ - 'description' => 'The engine version of the database that is run on the instance. Valid values: **5.7**.'."\n", - 'type' => 'string', - 'example' => '5.7', - ], - 'DmInstanceId' => [ - 'description' => 'The ID of the resource.'."\n", - 'type' => 'string', - 'example' => 'dm-*************', - ], - 'ConnectUrl' => [ - 'description' => 'The URL used to connect to the custom ApsaraDB RDS for MySQL instance.'."\n", - 'type' => 'string', - 'example' => 'rm-***************.mysql.rds.aliyuncs.com', - ], - 'ReadWeight' => [ - 'description' => 'The read ratio of the instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '70', - ], - 'RdsInstType' => [ - 'description' => 'The type of the instance.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'RemainDays' => [ - 'description' => 'The number of remaining days before the instance expires.'."\n", - 'type' => 'string', - 'example' => '0', - ], - 'DBInstanceId' => [ - 'description' => 'The ID of the ApsaraDB RDS for MySQL instance.'."\n", - 'type' => 'string', - 'example' => 'rm-***************', - ], - 'DbInstType' => [ - 'description' => 'The role of the instance. Valid values:'."\n" - ."\n" - .'* **Primary**: The instance is a primary instance.'."\n" - .'* **ReadOnly**: The instance is a read-only instance.'."\n", - 'type' => 'string', - 'example' => 'Primary', - ], - 'Engine' => [ - 'description' => 'The engine of the database that is run on the instance. Valid value: **MySQL**.'."\n", - 'type' => 'string', - 'example' => 'MySQL', - ], - 'ReadOnlyInstances' => [ + 'OrderId' => ['description' => 'The order ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '111111111111111', 'title' => ''], + 'DrdsInstanceIdList' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'ReadOnlyInstance' => [ - 'description' => 'The list of read-only ApsaraDB RDS for MySQL instances.'."\n", + 'drdsInstanceIdList' => [ + 'description' => 'The instance information.', 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ExpireTime' => [ - 'description' => 'The timestamp that indicates when the read-only instance expires.'."\n", - 'type' => 'string', - 'example' => '1823487328173', - ], - 'PayType' => [ - 'description' => 'The billing method of the read-only instance.'."\n", - 'type' => 'string', - 'example' => 'Postpaid', - ], - 'VersionAction' => [ - 'description' => 'This parameter is unavailable for read-only instances.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'DBInstanceStatus' => [ - 'description' => 'The state of the read-only instance.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'NetworkType' => [ - 'description' => 'The network type of the read-only instance.'."\n", - 'type' => 'string', - 'example' => 'VPC', - ], - 'Port' => [ - 'description' => 'The port used to connect to the read-only instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3306', - ], - 'EngineVersion' => [ - 'description' => 'The engine version of the database that is run on the read-only instance.'."\n", - 'type' => 'string', - 'example' => '5.7', - ], - 'DmInstanceId' => [ - 'description' => 'The ID of the resource.'."\n", - 'type' => 'string', - 'example' => 'dm-*************', - ], - 'ConnectUrl' => [ - 'description' => 'The URL used to connect to the read-only instance.'."\n", - 'type' => 'string', - 'example' => 'rm-bp1ub71ct9skc3yxx.mysql.rds.aliyuncs.com', - ], - 'ReadWeight' => [ - 'description' => 'The read ratio of the read-only instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'RdsInstType' => [ - 'description' => 'The type of the ApsaraDB RDS for MySQL instance.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'RemainDays' => [ - 'description' => 'The number of remaining days before the read-only instance expires.'."\n", - 'type' => 'string', - 'example' => '0', - ], - 'DBInstanceId' => [ - 'description' => 'The ID of the read-only instance.'."\n", - 'type' => 'string', - 'example' => 'rm-bp1ub71ct9skc****', - ], - 'DbInstType' => [ - 'description' => 'The role of the read-only instance.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'Engine' => [ - 'description' => 'The engine of the database that is run on the read-only instance.'."\n", - 'type' => 'string', - 'example' => 'MySQL', - ], - ], - ], + 'items' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'drds************', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter.MasterDbInstanceRelease', - 'errorMessage' => 'The master db instance has been released', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'Parameter error', 'description' => ''], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later', 'description' => ''], + ['errorCode' => 'OperationDenied', 'errorMessage' => 'drds service is not enable for you', 'description' => ''], + ['errorCode' => 'QuotaExceeded.DRDSInstance', 'errorMessage' => 'The quota of create instance exceeds.', 'description' => ''], + ['errorCode' => 'InvalidRegionId.NotFound', 'errorMessage' => 'The RegionId provided does not exist in our records.', 'description' => ''], + ['errorCode' => 'InvalidDescription.MalFormed', 'errorMessage' => 'The specified parameter description is not valid.', 'description' => ''], + ['errorCode' => 'CommunicateWithManager.Error', 'errorMessage' => 'Internal Error. Communicate with drds manager error', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId', 'errorMessage' => 'Invalid vswitchId', 'description' => ''], + ['errorCode' => 'InvalidVpcId', 'errorMessage' => 'Invalid vpcId, or the region of vpc does not match', 'description' => ''], + ['errorCode' => 'InvalidZoneId.Mismatch', 'errorMessage' => 'zone is illegal in this order', 'description' => ''], + ['errorCode' => 'LowInventory.ServerError', 'errorMessage' => 'low inventory error', 'description' => ''], + ['errorCode' => 'publicInstanceAlreadExist.Error', 'errorMessage' => 'a public Drds instance is exist', 'description' => ''], + ['errorCode' => 'CreateDRDSInstanceId.Error', 'errorMessage' => 'create Drds instance id error', 'description' => ''], + ['errorCode' => 'ResourceInsufficient', 'errorMessage' => 'resource is Insufficient', 'description' => ''], + ['errorCode' => 'AnotherOrderExist.Error', 'errorMessage' => 'there is another order', 'description' => ''], + ['errorCode' => 'InstanceExceedLimit.Error', 'errorMessage' => 'instance number has exceeded', 'description' => ''], + ['errorCode' => 'InvalidParameter.Quantity', 'errorMessage' => 'Invalid parameter of quantity', 'description' => ''], + ['errorCode' => 'InvalidParameter.RegionId', 'errorMessage' => 'Invalid parameter of region id', 'description' => ''], + ['errorCode' => 'InvalidParameter.ZoneId', 'errorMessage' => 'Invalid parameter of zone id', 'description' => ''], + ['errorCode' => 'InvalidParameter.PayType', 'errorMessage' => 'Invalid parameter of pay type', 'description' => ''], + ['errorCode' => 'InvalidParameter.Spection', 'errorMessage' => 'Invalid parameter of specification', 'description' => ''], + ['errorCode' => 'InvalidParameter.Series', 'errorMessage' => 'Invalid parameter of series', 'description' => ''], + ['errorCode' => 'InvalidParameter.duration_pricingCycle', 'errorMessage' => 'when payType=drdsPre, duration and pricingCycle is required', 'description' => ''], + ['errorCode' => 'InvalidParameter.year.duration', 'errorMessage' => 'when pricingCycle=year, duration must between 1 to 3', 'description' => ''], + ['errorCode' => 'InvalidParameter.month.duration', 'errorMessage' => 'when pricingCycle=month, duration must between 1 to 9', 'description' => ''], + ['errorCode' => 'InvalidDRDSInstanceType.Error', 'errorMessage' => 'Invalid parameter of Type, public is not supported', 'description' => ''], + ['errorCode' => 'QueryVSwitchFailed.InvalidVpcIdOrServerError', 'errorMessage' => 'Query VSwitch failed, please check vpcId', 'description' => ''], + ['errorCode' => 'RegionNotSupportVPC.Error', 'errorMessage' => 'This region does not support vpc instance', 'description' => ''], + ['errorCode' => 'UserAccountVerify.Failed', 'errorMessage' => 'User account verify failed. Please verify first', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"4FE09970-CA69-4144-88CA-67FB4BTY56G3\\",\\n \\"DbInstance\\": {\\n \\"ExpireTime\\": \\"12341434315\\",\\n \\"PayType\\": \\"Postpaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"DmInstanceId\\": \\"dm-*************\\",\\n \\"ConnectUrl\\": \\"rm-***************.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 70,\\n \\"RdsInstType\\": \\"RDS\\",\\n \\"RemainDays\\": \\"0\\",\\n \\"DBInstanceId\\": \\"rm-***************\\",\\n \\"DbInstType\\": \\"Primary\\",\\n \\"Engine\\": \\"MySQL\\",\\n \\"ReadOnlyInstances\\": {\\n \\"ReadOnlyInstance\\": [\\n {\\n \\"ExpireTime\\": \\"1823487328173\\",\\n \\"PayType\\": \\"Postpaid\\",\\n \\"VersionAction\\": 0,\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"DmInstanceId\\": \\"dm-*************\\",\\n \\"ConnectUrl\\": \\"rm-bp1ub71ct9skc3yxx.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 30,\\n \\"RdsInstType\\": \\"RDS\\",\\n \\"RemainDays\\": \\"0\\",\\n \\"DBInstanceId\\": \\"rm-bp1ub71ct9skc****\\",\\n \\"DbInstType\\": \\"RDS\\",\\n \\"Engine\\": \\"MySQL\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsDbInstanceResponse>\\n <Success>true</Success>\\n <RequestId>4FE09970-CA69-4144-88CA-67FB4BTY56G3</RequestId>\\n <DbInstance>\\n <ExpireTime>12341434315</ExpireTime>\\n <PayType>Postpaid</PayType>\\n <DBInstanceStatus>1</DBInstanceStatus>\\n <NetworkType>VPC</NetworkType>\\n <Port>3306</Port>\\n <EngineVersion>5.7</EngineVersion>\\n <DmInstanceId>dm-*************</DmInstanceId>\\n <ConnectUrl>rm-***************.mysql.rds.aliyuncs.com</ConnectUrl>\\n <ReadWeight>70</ReadWeight>\\n <RdsInstType>RDS</RdsInstType>\\n <RemainDays>0</RemainDays>\\n <DBInstanceId>rm-***************</DBInstanceId>\\n <DbInstType>Primary</DbInstType>\\n <Engine>MySQL</Engine>\\n <ReadOnlyInstances>\\n <ExpireTime>1823487328173</ExpireTime>\\n <PayType>Postpaid</PayType>\\n <VersionAction>0</VersionAction>\\n <DBInstanceStatus>1</DBInstanceStatus>\\n <NetworkType>VPC</NetworkType>\\n <Port>3306</Port>\\n <EngineVersion>5.7</EngineVersion>\\n <DmInstanceId>dm-*************</DmInstanceId>\\n <ConnectUrl>rm-bp1ub71ct9skc3yxx.mysql.rds.aliyuncs.com</ConnectUrl>\\n <ReadWeight>30</ReadWeight>\\n <RdsInstType>RDS</RdsInstType>\\n <RemainDays>0</RemainDays>\\n <DBInstanceId>rm-bp1ub71ct9skc****</DBInstanceId>\\n <DbInstType>RDS</DbInstType>\\n <Engine>MySQL</Engine>\\n </ReadOnlyInstances>\\n </DbInstance>\\n</DescribeDrdsDbInstanceResponse>","errorExample":""}]', - 'title' => 'DescribeDrdsDbInstance', - 'summary' => 'Queries the details of a custom ApsaraDB RDS for MySQL instance used as the storage of PolarDB-X 1.0.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DescribeDrdsInstance' => [ - 'summary' => 'Queries the details of a PolarDB-X 1.0 instance.', - 'methods' => [ - 'post', - 'get', + 'title' => 'Create an instance', + 'summary' => 'Creates an instance.', + 'changeSet' => [ + ['createdAt' => '2021-12-06T03:20:38.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDrdsInstance'], + ], ], - 'security' => [ + 'ramActions' => [ [ - 'AK' => [], + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateDrdsInstance', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], ], - 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '76000', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"D99D4644-A70D-49A3-B8B4-767ACC50SE2R\\",\\n \\"Data\\": {\\n \\"OrderId\\": 111111111111111,\\n \\"DrdsInstanceIdList\\": {\\n \\"drdsInstanceIdList\\": [\\n \\"drds************\\"\\n ]\\n }\\n }\\n}","type":"json"}]', + ], + 'CreateInstanceAccount' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], ], ], + 'systemTags' => ['operationType' => 'create'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance that you want to query.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdshbga1138****', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdsjiii1b49****', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'AccountName', + 'in' => 'query', + 'schema' => ['description' => 'The account name.', 'type' => 'string', 'required' => true, 'example' => 'drds_sample_account', 'title' => ''], + ], + [ + 'name' => 'Password', 'in' => 'query', + 'schema' => ['description' => 'The account password.', 'type' => 'string', 'required' => true, 'example' => 'drds_sample_password', 'title' => ''], + ], + [ + 'name' => 'DbPrivilege', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The ID of the region in which the instance is created.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - 'default' => 'center', + 'description' => 'The list of database access permissions.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DbName' => ['description' => 'The database name.', 'type' => 'string', 'required' => false, 'example' => 'test123', 'title' => ''], + 'Privilege' => ['description' => 'The access permissions on the database for the account to be created.', 'type' => 'string', 'required' => false, 'example' => 'DDL', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => true, + 'maxItems' => 1000, + 'title' => '', + 'example' => '', ], ], ], @@ -1705,320 +980,138 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'B4F76641-BA45-4320-BE7C-9C62CFDAC9B2', - ], - 'Data' => [ - 'description' => 'The details of the instance.'."\n", - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => 'The type of the instance. Valid values: PRIVATE and PUBLIC. The value of PRIVATE indicates that the instance is a dedicated instance. The value of PUBLIC indicates that the instance is a shared instance.'."\n", - 'type' => 'string', - 'example' => 'PRIVATE', - ], - 'Status' => [ - 'description' => 'The state of the instance.'."\n", - 'type' => 'string', - 'example' => 'RUN', - ], - 'CreateTime' => [ - 'description' => 'The timestamp that indicates when the instance is created.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568620311000', - ], - 'VersionAction' => [ - 'description' => 'Indicates whether the version of the instance can be upgraded.'."\n", - 'type' => 'string', - 'example' => 'Upgradeable', - ], - 'StorageType' => [ - 'description' => 'The type of the instance used for storage.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'NetworkType' => [ - 'description' => 'The network type of the instance. Valid values: CLASSIC and VPC.'."\n", - 'type' => 'string', - 'example' => 'CLASSIC', - ], - 'Label' => [ - 'description' => 'The tag of the instance. Valid values:'."\n" - ."\n" - .'* **NORMAL**: The instance is a standard instance.'."\n" - .'* **HA**: The instance is a high-availability (HA) instance.'."\n" - .'* **VPC**: The instance is a VPC-based instance.'."\n", - 'type' => 'string', - 'example' => 'NORMAL', - ], - 'MysqlVersion' => [ - 'description' => 'The MySQL version that is supported by the instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'InstanceSpec' => [ - 'description' => 'The specification of the instance.'."\n", - 'type' => 'string', - 'example' => 'drds.sn2.4c16g.8C32G', - ], - 'VpcCloudInstanceId' => [ - 'description' => 'The ID of the instance that is deployed in the VPC.'."\n", - 'type' => 'string', - 'example' => 'drdssen12****', - ], - 'Description' => [ - 'description' => 'The description of the instance.'."\n", - 'type' => 'string', - 'example' => 'drds_test', - ], - 'Version' => [ - 'description' => 'The version of the instance. The value of this parameter is 0.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'ExpireDate' => [ - 'description' => 'The timestamp that indicates when the instance expires.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4724323200000', - ], - 'MasterInstanceId' => [ - 'description' => 'The ID of the primary instance.'."\n" - ."\n" - .'> This parameter is returned only when the instance is a primary instance.'."\n", - 'type' => 'string', - 'example' => 'drdssen1243as', - ], - 'CommodityCode' => [ - 'description' => 'The commodity code of the instance.'."\n", - 'type' => 'string', - 'example' => 'drdsPost', - ], - 'MachineType' => [ - 'description' => 'The machine type of the instance. The value of this parameter is **ecs**.'."\n", - 'type' => 'string', - 'example' => 'ecs', - ], - 'InstanceSeries' => [ - 'description' => 'The instance series of the instance.'."\n", - 'type' => 'string', - 'example' => 'drds.sn2.4c16g', - ], - 'ProductVersion' => [ - 'description' => 'The version of .'."\n", - 'type' => 'string', - 'example' => '5.3.*', - ], - 'RegionId' => [ - 'description' => 'The ID of the region in which the instance is created.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'ResourceGroupId' => [ - 'description' => 'The ID of the resource group to which the instance belongs. The value of this parameter can be null.'."\n", - 'type' => 'string', - 'example' => 'NULL', - ], - 'DrdsInstanceId' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'drdssen1243as', - ], - 'ZoneId' => [ - 'description' => 'The ID of the zone in which the instance is located.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-e', - ], - 'InstRole' => [ - 'description' => 'The role of the instance. Valid values:'."\n" - ."\n" - .'* **MASTER**: The instance is a primary instance.'."\n" - .'* **SLAVE**: The instance is a read-only instance to analyze complex queries'."\n" - .'* **SLAVE_FLOW**: The instance is a read-only instance for high-concurrency scenarios'."\n", - 'type' => 'string', - 'example' => 'MASTER', - ], - 'OrderInstanceId' => [ - 'description' => 'The ID of the purchased instance.'."\n", - 'type' => 'string', - 'example' => 'drdssen12****', - ], - 'Vips' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Vip' => [ - 'description' => 'The list of returned virtual IP addresses (VIPs).'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => 'The type of the VIP. Valid values: intranet and internet.'."\n", - 'type' => 'string', - 'example' => 'intranet', - ], - 'VpcId' => [ - 'description' => 'The ID of the VPC.'."\n", - 'type' => 'string', - 'example' => 'vpc-bp**********', - ], - 'VswitchId' => [ - 'description' => 'The ID of the vSwitch.'."\n", - 'type' => 'string', - 'example' => 'vsw-bp***********', - ], - 'Dns' => [ - 'description' => 'The domain name that is mapped to the VIP.'."\n", - 'type' => 'string', - 'example' => 'drdssen1243as.drds.aliyuncs.com', - ], - 'Port' => [ - 'description' => 'The ports that are opened on the VIP.'."\n", - 'type' => 'string', - 'example' => '3306', - ], - 'ExpireDays' => [ - 'description' => 'The number of remaining days before the VIP expires.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'RemoveWeight' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - ], - ], - ], - ], - 'ReadOnlyDBInstanceIds' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'ReadOnlyDBInstanceId' => [ - 'description' => 'The details about each read-only instance that is associated with the instance.', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'drdssen12****', - ], - ], - ], - ], - ], - ], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FF13E47D-4E38-4A5A-BA68-4E610EVF56DC', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], - ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'DrdsInstance.NotExists', - 'errorMessage' => 'The DRDS instance does not exist.', - ], + ['errorCode' => 'OperationFailed.CreateAccount', 'errorMessage' => 'Create account failed.', 'description' => ''], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B4F76641-BA45-4320-BE7C-9C62CFDAC9B2\\",\\n \\"Data\\": {\\n \\"Type\\": \\"PRIVATE\\",\\n \\"Status\\": \\"RUN\\",\\n \\"CreateTime\\": 1568620311000,\\n \\"VersionAction\\": \\"Upgradeable\\",\\n \\"StorageType\\": \\"RDS\\",\\n \\"NetworkType\\": \\"CLASSIC\\",\\n \\"Label\\": \\"NORMAL\\",\\n \\"MysqlVersion\\": 5,\\n \\"InstanceSpec\\": \\"drds.sn2.4c16g.8C32G\\",\\n \\"VpcCloudInstanceId\\": \\"drdssen12****\\",\\n \\"Description\\": \\"drds_test\\",\\n \\"Version\\": 0,\\n \\"ExpireDate\\": 4724323200000,\\n \\"MasterInstanceId\\": \\"drdssen1243as\\",\\n \\"CommodityCode\\": \\"drdsPost\\",\\n \\"MachineType\\": \\"ecs\\",\\n \\"InstanceSeries\\": \\"drds.sn2.4c16g\\",\\n \\"ProductVersion\\": \\"5.3.*\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ResourceGroupId\\": \\"NULL\\",\\n \\"DrdsInstanceId\\": \\"drdssen1243as\\",\\n \\"ZoneId\\": \\"cn-hangzhou-e\\",\\n \\"InstRole\\": \\"MASTER\\",\\n \\"OrderInstanceId\\": \\"drdssen12****\\",\\n \\"Vips\\": {\\n \\"Vip\\": [\\n {\\n \\"Type\\": \\"intranet\\",\\n \\"VpcId\\": \\"vpc-bp**********\\",\\n \\"VswitchId\\": \\"vsw-bp***********\\",\\n \\"Dns\\": \\"drdssen1243as.drds.aliyuncs.com\\",\\n \\"Port\\": \\"3306\\",\\n \\"ExpireDays\\": 0,\\n \\"RemoveWeight\\": true\\n }\\n ]\\n },\\n \\"ReadOnlyDBInstanceIds\\": {\\n \\"ReadOnlyDBInstanceId\\": [\\n \\"drdssen12****\\"\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsInstanceResponse>\\n <Success>true</Success>\\n <RequestId>B4F76641-BA45-4320-BE7C-9C62CFDAC9B2</RequestId>\\n <Data>\\n <Type>PRIVATE</Type>\\n <Status>RUN</Status>\\n <CreateTime>1568620311000</CreateTime>\\n <VersionAction>Upgradeable</VersionAction>\\n <StorageType>RDS</StorageType>\\n <NetworkType>CLASSIC</NetworkType>\\n <Label>NORMAL</Label>\\n <MysqlVersion>5</MysqlVersion>\\n <InstanceSpec>drds.sn2.4c16g.8C32G</InstanceSpec>\\n <VpcCloudInstanceId>drdssen12****</VpcCloudInstanceId>\\n <Description>drds_test</Description>\\n <Version>0</Version>\\n <ExpireDate>4724323200000</ExpireDate>\\n <MasterInstanceId>drdssen1243as</MasterInstanceId>\\n <CommodityCode>drdsPost</CommodityCode>\\n <MachineType>ecs</MachineType>\\n <InstanceSeries>drds.sn2.4c16g</InstanceSeries>\\n <ProductVersion>5.3.*</ProductVersion>\\n <RegionId>cn-hangzhou</RegionId>\\n <ResourceGroupId>NULL</ResourceGroupId>\\n <DrdsInstanceId>drdssen1243as</DrdsInstanceId>\\n <ZoneId>cn-hangzhou-e</ZoneId>\\n <InstRole>MASTER</InstRole>\\n <OrderInstanceId>drdssen12****</OrderInstanceId>\\n <Vips>\\n <Type>intranet</Type>\\n <VpcId>vpc-bp**********</VpcId>\\n <VswitchId>vsw-bp***********</VswitchId>\\n <Dns>drdssen1243as.drds.aliyuncs.com</Dns>\\n <Port>3306</Port>\\n <ExpireDays>0</ExpireDays>\\n </Vips>\\n <ReadOnlyDBInstanceIds>drdssen12****</ReadOnlyDBInstanceIds>\\n </Data>\\n</DescribeDrdsInstanceResponse>","errorExample":""}]', - 'title' => 'DescribeDrdsInstance', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DescribeDrdsParams' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Create a DRDS instance-level account', + 'summary' => 'Creates an instance-level account for a DRDS instance by calling the CreateInstanceAccount operation.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateInstanceAccount'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateInstanceAccount', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"FF13E47D-4E38-4A5A-BA68-4E610EVF56DC\\"\\n}","type":"json"}]', + ], + 'CreateInstanceInternetAddress' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '76006', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], - ], + 'systemTags' => ['operationType' => 'create'], 'parameters' => [ [ + 'name' => 'DrdsInstanceId', + 'in' => 'query', + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds****************', 'title' => ''], + ], + [ 'name' => 'RegionId', 'in' => 'query', + 'schema' => ['description' => 'The ID of the region in which the DRDS instance resides.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The ID of the region where the PolarDB-X 1.0 instance is created.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => 'The error code.'."\n" + .'> This parameter is returned only when the API call fails.', 'type' => 'integer', 'format' => 'int32', 'example' => '404', 'title' => ''], + 'Data' => ['description' => 'Indicates whether the public IP address was created.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1DF6052F-15E2-4E69-9628-D6BCC3******', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', 'description' => ''], + ], + ], + 'title' => 'Create a public IP address for a DRDS instance', + 'summary' => 'Creates a public IP address for a Distributed Relational Database Service (DRDS) instance by calling the CreateInstanceInternetAddress operation.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateInstanceInternetAddress'], + ], + ], + 'ramActions' => [ [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'DescribeDrdsParams', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateInstanceInternetAddress', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 404,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"1DF6052F-15E2-4E69-9628-D6BCC3******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'CreateOrderForRds' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'ParamLevel', + 'AK' => [], + ], + ], + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '75962', + 'abilityTreeNodes' => ['FEATUREdrdsHFP8VD'], + ], + 'parameters' => [ + [ + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of nodes whose parameters you want to query. Valid values:'."\n" - ."\n" - .'* **INSTANCE: the instance level.**'."\n" - .'* **DB**: the database level.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'INSTANCE', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'Params', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_test', - ], + 'schema' => ['description' => 'The JSON-formatted parameters for placing the ApsaraDB RDS order. For more information, see [CreateDBInstance](~~26228~~).', 'type' => 'string', 'required' => true, 'example' => '{"key":"value"}', 'title' => ''], ], ], 'responses' => [ @@ -2026,266 +1119,251 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', - ], - 'List' => [ - 'description' => 'Indicates information about parameters.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ParamDefaultValue' => [ - 'description' => 'Indicates the default value of a parameter.'."\n", - 'type' => 'string', - 'example' => '1000', - ], - 'ParamLevel' => [ - 'description' => 'Indicates the parameter level.'."\n", - 'type' => 'string', - 'example' => 'INSTANCE', - ], - 'ParamName' => [ - 'description' => 'Indicates the name of the parameter.'."\n", - 'type' => 'string', - 'example' => '', - ], - 'ParamType' => [ - 'description' => 'Indicates the type of the parameter.'."\n", - 'type' => 'string', - 'example' => 'CONFIG', - ], - 'ParamValue' => [ - 'description' => 'Indicates the value of the parameter.'."\n", - 'type' => 'string', - 'example' => '1000', - ], - 'NeedRestart' => [ - 'description' => 'Indicates whether a restart is required.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'ParamRanges' => [ - 'description' => 'Indicates the value range of the parameter.'."\n", - 'type' => 'string', - 'example' => '[1000-900000]', - ], - 'DbName' => [ - 'description' => 'Indicates the name of the database.'."\n", - 'type' => 'string', - 'example' => 'drds_test', - ], - 'ParamEnglishName' => [ - 'description' => 'Indicates the name of the parameter.'."\n", - 'type' => 'string', - 'example' => 'SLOW_SQL_TIME', - ], - 'ParamDesc' => [ - 'description' => 'Indicates the description of the parameter.'."\n", - 'type' => 'string', - 'example' => '', - ], - 'ParamVariableName' => [ - 'description' => 'Indicates the name of the variable.'."\n", - 'type' => 'string', - 'example' => 'slowSqlTime', - ], - ], - ], - ], + 'Data' => ['description' => 'The instance ID of the ApsaraDB RDS instance that was purchased.', 'type' => 'string', 'example' => '[rm-***********]', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '9819BC51-D33D-4EB1-B80F-A89A20******', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\",\\n \\"List\\": [\\n {\\n \\"ParamDefaultValue\\": \\"1000\\",\\n \\"DbName\\": \\"drds_test\\",\\n \\"ParamLevel\\": \\"INSTANCE\\",\\n \\"ParamName\\": \\"慢SQL阈值\\",\\n \\"ParamEnglishName\\": \\"SLOW_SQL_TIME\\",\\n \\"ParamType\\": \\"CONFIG\\",\\n \\"ParamValue\\": \\"1000\\",\\n \\"ParamDesc\\": \\"慢SQL阈值(单位:ms)\\",\\n \\"NeedRestart\\": true,\\n \\"ParamVariableName\\": \\"slowSqlTime\\",\\n \\"ParamRanges\\": \\"[1000-900000]\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsParamsReponse>\\n<RequestId>2F7F8080-9132-4279-85D0-B7E5C4305162</RequestId>\\n<List>\\n <ParamRanges>[1000-900000]</ParamRanges>\\n <ParamLevel>INSTANCE</ParamLevel>\\n <ParamVariableName>slowSqlTime</ParamVariableName>\\n <ParamEnglishName>SLOW_SQL_TIME</ParamEnglishName>\\n <ParamValue>1000</ParamValue>\\n <ParamDefaultValue>1000</ParamDefaultValue>\\n <NeedRestart>true</NeedRestart>\\n <DbName>drds_test</DbName>\\n <ParamName>慢SQL阈值</ParamName>\\n <ParamType>CONFIG</ParamType>\\n <ParamDesc>慢SQL阈值(单位:ms)</ParamDesc>\\n</List>\\n<Success>true</Success>\\n</DescribeDrdsParamsReponse>","errorExample":""}]', - 'title' => 'DescribeDrdsParams', - 'summary' => 'Queries parameters that you configure for an instance or a database.', + 'title' => 'Create an order to purchase an apsaraDB RDS instance', + 'summary' => 'Creates an order to purchase an ApsaraDB RDS instance by calling the CreateOrderForRds operation.', + 'description' => 'Before using this operation, make sure that you fully understand the billing method and [pricing](https://www.aliyun.com/price/product#/rds/detail) of this service.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsTasks' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateOrderForRds'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateOrderForRds', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"[rm-***********]\\",\\n \\"RequestId\\": \\"9819BC51-D33D-4EB1-B80F-A89A20******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'CreateShardTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'create', + 'abilityTreeCode' => '75963', + 'abilityTreeNodes' => ['FEATUREdrdsD6TUSC'], ], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdsxxxxxxxxxxxx', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => 'The name of the database.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'SourceTableName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the source table.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_tb1', 'title' => ''], + ], + [ + 'name' => 'TargetTableName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the target table.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'maxLength' => 100, 'minLength' => 1, 'example' => 'test_tb2', 'title' => ''], ], [ 'name' => 'TaskType', 'in' => 'query', + 'schema' => ['description' => 'The task type. Valid values: `SHARD_TO_SINGLE`, `SINGLE_TO_SHARD`, and `SHARD_TO_SHARD`.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'SINGLE_TO_SHARD', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The type of tasks.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', + 'type' => 'object', + 'properties' => [ + 'Data' => ['description' => 'The result of the task creation.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F8997D95-94AD-416A-AE70-E24D08******', 'title' => ''], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"F8997D95-94AD-416A-AE70-E24D08******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Create a sharding task', + 'summary' => 'Calls the CreateShardTask operation to create a sharding task.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateShardTask'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateShardTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], + ], + 'DescribeBackMenu' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ + [ + 'name' => 'DrdsInstanceId', + 'in' => 'query', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds***********', 'title' => ''], + ], + ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => 'CD412DF7-F21D-44CE-88FF-ED24917174A8', - ], - 'Tasks' => [ + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '60C21BE4-EDFE-454C-95ED-3A5C74******', 'title' => ''], + 'List' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'Task' => [ - 'description' => 'Indicates information about the tasks.'."\n", + 'list' => [ + 'description' => 'The list of backup information.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'State' => [ - 'description' => 'Indicates the state of the task.'."\n", - 'type' => 'string', - 'example' => 'FAILED', - ], - 'Content' => [ - 'description' => 'Indicates the content of a task.'."\n", - 'type' => 'string', - 'example' => 'upgrade_instance', - ], - 'Id' => [ - 'description' => 'Indicates the ID of the task.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '64148', - ], + 'Support' => ['description' => 'Indicates whether backup and recovery is supported.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'MenuName' => ['description' => 'The backup method. Valid values:'."\n" + .'* **logic**: logical backup.'."\n" + .'* **phy**: physical backup.', 'type' => 'string', 'example' => 'phy', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - ], - 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"CD412DF7-F21D-44CE-88FF-ED24917174A8\\",\\n \\"Tasks\\": {\\n \\"Task\\": [\\n {\\n \\"State\\": \\"FAILED\\",\\n \\"Content\\": \\"upgrade_instance\\",\\n \\"Id\\": 64148\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsTasksReponse>\\n<Tasks>\\n <Task>\\n <State>FAILED</State>\\n <Content>upgrade_instance</Content>\\n <Id>64148</Id>\\n </Task>\\n</Tasks>\\n<RequestId>CD412DF7-F21D-44CE-88FF-ED24917174A8</RequestId>\\n<Success>true</Success>\\n</DescribeDrdsTasksReponse>","errorExample":""}]', - 'title' => 'DescribeDrdsTasks', - 'summary' => 'Queries tasks that you perform to modify an instance.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"60C21BE4-EDFE-454C-95ED-3A5C74******\\",\\n \\"List\\": {\\n \\"list\\": [\\n {\\n \\"Support\\": true,\\n \\"MenuName\\": \\"phy\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Query whether an instance supports backup and recovery', + 'summary' => 'Queries whether an instance supports backup and recovery by calling the DescribeBackMenu operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeHotDbList' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackMenu'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackMenu', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + ], + 'DescribeBackupDbs' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '76024', - 'abilityTreeNodes' => [ - 'FEATUREdrds7SC2V6', - ], - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds**********', - ], + 'schema' => ['description' => 'The DRDS instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'PreferredRestoreTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The restore point in time used to query restorable databases.', 'type' => 'string', 'required' => false, 'example' => '1568632541236', 'title' => ''], + ], + [ + 'name' => 'BackupId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the backup set used to query restorable databases.', 'type' => 'string', 'required' => false, 'example' => '201908367', 'title' => ''], ], ], 'responses' => [ @@ -2293,117 +1371,76 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Msg' => [ - 'description' => 'The message that is returned.'."\n", - 'type' => 'string', - 'example' => 'msg', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0B6B7BDC-575D-4A77-A4F8-24B7EF******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Data' => [ - 'description' => 'The result that is returned.'."\n", + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '842DFA7F-B09B-42A2-B115-E684AE******', 'title' => ''], + 'DbNames' => [ 'type' => 'object', + 'itemNode' => true, 'properties' => [ - 'RandomCode' => [ - 'description' => 'The random number.'."\n", - 'type' => 'string', - 'example' => 'jzhz', - ], - 'List' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'InstanceDb' => [ - 'description' => 'The information about the databases on which hot-spot scale-out is performed.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'InstanceName' => [ - 'description' => 'The name of the instance.'."\n", - 'type' => 'string', - 'example' => 'instanceName', - ], - 'HotDbList' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'data' => [ - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'hot_dtstest0512_****_****', - ], - ], - ], - ], - ], - ], - ], - ], + 'dbName' => [ + 'type' => 'array', + 'items' => ['description' => 'The list of databases.', 'type' => 'string', 'example' => '["db1","db2"]', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Msg\\": \\"msg\\",\\n \\"RequestId\\": \\"0B6B7BDC-575D-4A77-A4F8-24B7EF******\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"RandomCode\\": \\"jzhz\\",\\n \\"List\\": {\\n \\"InstanceDb\\": [\\n {\\n \\"InstanceName\\": \\"instanceName\\",\\n \\"HotDbList\\": {\\n \\"data\\": [\\n \\"hot_dtstest0512_****_****\\"\\n ]\\n }\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeHotDbListReponse>\\n<Msg>msg</Msg>\\n<RequestId>0B6B7BDC-575D-4A77-A4F8-24B7EF******</RequestId>\\n<Data>\\n <List>\\n <InstanceDb>\\n <InstanceName>instanceName</InstanceName>\\n </InstanceDb>\\n <InstanceDb>\\n <HotDbList>\\n <data>hot_dtstest0512_****_****</data>\\n </HotDbList>\\n </InstanceDb>\\n </List>\\n <RandomCode>jzhz</RandomCode>\\n</Data>\\n<Success>true</Success>\\n</DescribeHotDbListReponse>","errorExample":""}]', - 'title' => 'DescribeHotDbList', - 'summary' => 'Queries the information about databases on which hots-pot scale-out is performed.', + 'title' => 'Query restorable databases', + 'summary' => 'Queries the list of databases that can be restored by calling the DescribeBackupDbs operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeInstanceSwitchAzone' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupDbs'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupDbs', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"842DFA7F-B09B-42A2-B115-E684AE******\\",\\n \\"DbNames\\": {\\n \\"dbName\\": [\\n \\"[\\\\\\"db1\\\\\\",\\\\\\"db2\\\\\\"]\\"\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeBackupLocal' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '76026', - 'abilityTreeNodes' => [ - 'FEATUREdrds7CT80F', - ], - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdsxxxxxxxxxxxx', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], ], 'responses' => [ @@ -2411,222 +1448,391 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-23ERW', - ], - 'Result' => [ - 'description' => 'The result of the operation.'."\n", + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FDC9CFD5-306D-4A23-9D8C-057274C6****', 'title' => ''], + 'BackupPolicyDO' => [ + 'description' => 'The details of the backup policy settings.', 'type' => 'object', 'properties' => [ - 'OriginAzoneId' => [ - 'description' => 'The ID of the source azoneId.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-a', - ], - 'SwitchAble' => [ - 'description' => 'Indicates whether the job can be switched.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RegionId' => [ - 'description' => 'regionId.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'TargetAzones' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'TargetAzone' => [ - 'description' => 'Target azones.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'cn-hangzhou-a,cn-hangzhou-b', - ], - ], - ], - ], + 'BackupDbName' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'LogBackupRetentionPeriod' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'DataBackupRetentionPeriod' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'BackupType' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'BackupLevel' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'LocalLogRetentionHours' => ['description' => 'The number of hours for which log backups are retained locally. Valid values: 0 to 168. A value of **0** indicates that log backups are not retained. Default value: **18**.', 'type' => 'integer', 'format' => 'int64', 'example' => '18', 'title' => ''], + 'HighSpaceUsageProtection' => ['description' => 'Specifies whether to unconditionally clean up binary logs when the instance storage usage exceeds 90% or the remaining storage is less than 5 GB. Valid values:'."\n" + ."\n" + .'* 1: enabled.'."\n" + .'* 0: disabled.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'GmtModified' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'BackupRetentionPeriod' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'BackupPolicyMode' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'PreferredBackupPeriod' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'LocalLogRetentionSpace' => ['description' => 'The maximum storage usage of binary logs, in percentage. Valid values: 0 to 50. This is a circular space. Default value: **30**.', 'type' => 'integer', 'format' => 'int64', 'example' => '30', 'title' => ''], + 'BackupAppName' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'PreferredBackupTime' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'GmtCreate' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'BackupMode' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'BackupLog' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'NextBackupActuallyTime' => ['description' => 'This parameter is not returned for this API operation.', 'type' => 'string', 'example' => 'null', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-23ERW\\",\\n \\"Result\\": {\\n \\"OriginAzoneId\\": \\"cn-hangzhou-a\\",\\n \\"SwitchAble\\": true,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"TargetAzones\\": {\\n \\"TargetAzone\\": [\\n \\"cn-hangzhou-a,cn-hangzhou-b\\"\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeInstanceSwitchAzoneReponse>\\n<RequestId>DSSDF-SEWE-23ERW</RequestId>\\n<Success>true</Success>\\n<Result>\\n <OriginAzoneId>cn-hangzhou-a</OriginAzoneId>\\n <TargetAzones>\\n <TargetAzone>cn-hangzhou-a,cn-hangzhou-b</TargetAzone>\\n </TargetAzones>\\n <RegionId>cn-hangzhou</RegionId>\\n <SwitchAble>true</SwitchAble>\\n</Result>\\n</DescribeInstanceSwitchAzoneReponse>","errorExample":""}]', - 'title' => 'DescribeInstanceSwitchAzone', - 'summary' => 'Check whether zone switching is enabled', + 'title' => 'Query local backup sets', + 'summary' => 'Calls the DescribeBackupLocal operation to query binary log settings.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeInstanceSwitchNetwork' => [ - 'summary' => 'Queries whether you can change the network type of a PolarDB-X 1.0 instance.', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupLocal'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupLocal', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"FDC9CFD5-306D-4A23-9D8C-057274C6****\\",\\n \\"BackupPolicyDO\\": {\\n \\"BackupDbName\\": \\"null\\",\\n \\"LogBackupRetentionPeriod\\": 0,\\n \\"DataBackupRetentionPeriod\\": 0,\\n \\"BackupType\\": \\"null\\",\\n \\"BackupLevel\\": \\"null\\",\\n \\"LocalLogRetentionHours\\": 18,\\n \\"HighSpaceUsageProtection\\": 1,\\n \\"GmtModified\\": 0,\\n \\"BackupRetentionPeriod\\": 0,\\n \\"BackupPolicyMode\\": \\"null\\",\\n \\"PreferredBackupPeriod\\": \\"null\\",\\n \\"LocalLogRetentionSpace\\": 30,\\n \\"BackupAppName\\": \\"null\\",\\n \\"PreferredBackupTime\\": \\"null\\",\\n \\"GmtCreate\\": 0,\\n \\"BackupMode\\": \\"null\\",\\n \\"BackupLog\\": \\"null\\",\\n \\"NextBackupActuallyTime\\": \\"null\\"\\n }\\n}","type":"json"}]', + ], + 'DescribeBackupPolicy' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '76027', - 'abilityTreeNodes' => [ - 'FEATUREdrdsBRC5LQ', - ], - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdshbga71nn****', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*********', + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'Indicates whether the operation is successful. Valid values: true: The operation is successful. false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '8FAF3989-79CD-4A67-8FFD-97899B64SD5T', 'title' => ''], + 'BackupPolicyDO' => [ + 'description' => 'The details of the backup policy.', + 'type' => 'object', + 'properties' => [ + 'BackupDbName' => [ + 'description' => 'This API does not return a value.', + 'enumValueTitles' => [], + 'type' => 'string', + 'example' => 'null', + 'title' => '', + ], + 'LogBackupRetentionPeriod' => ['description' => 'The number of days for which log backups are retained.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''], + 'DataBackupRetentionPeriod' => ['description' => 'The retention period of data backups. Unit: days.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''], + 'BackupType' => ['description' => 'The backup type. Valid values:'."\n" + ."\n" + .'- manual: manual backup.'."\n" + .'- auto: automatic backup.', 'type' => 'string', 'example' => 'auto', 'title' => ''], + 'BackupLevel' => ['description' => 'The backup level. Valid values:'."\n" + ."\n" + .'- db: database level.'."\n" + .'- instance: instance level.', 'type' => 'string', 'example' => 'db', 'title' => ''], + 'LocalLogRetentionHours' => ['description' => 'This API does not return a value.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'HighSpaceUsageProtection' => ['description' => 'This API does not return a value.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => ''], + 'GmtModified' => ['description' => 'This API does not return a value.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'BackupRetentionPeriod' => ['description' => 'The number of days for which backups are retained.', 'type' => 'integer', 'format' => 'int64', 'example' => '8', 'title' => ''], + 'BackupPolicyMode' => ['description' => 'The backup policy mode. Valid values:'."\n" + ."\n" + .'- DataBackupPolicy: data backup policy.'."\n" + .'- LogBackupPolicy: log backup policy.', 'type' => 'string', 'example' => 'DataBackupPolicy', 'title' => ''], + 'PreferredBackupPeriod' => ['description' => 'The backup cycle. You can specify multiple backup cycles separated by commas (,). Valid values:'."\n" + .'- 1: Sunday'."\n" + .'- 2: Monday'."\n" + .'- 3: Tuesday'."\n" + .'- 4: Wednesday'."\n" + .'- 5: Thursday'."\n" + .'- 6: Friday'."\n" + .'- 7: Saturday', 'type' => 'string', 'example' => '2', 'title' => ''], + 'LocalLogRetentionSpace' => ['description' => 'This API does not return a value.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'BackupAppName' => ['description' => 'This API does not return a value.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'PreferredBackupTime' => ['description' => 'The backup time range in UTC.', 'type' => 'string', 'example' => '22:00:00-23:00:00', 'title' => ''], + 'GmtCreate' => ['description' => 'This API does not return a value.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'BackupMode' => ['description' => 'The backup method. Valid values:'."\n" + .'* **logic**: logical backup.'."\n" + .'* **phy**: fast backup.', 'type' => 'string', 'example' => 'phy', 'title' => ''], + 'BackupLog' => ['description' => 'Indicates whether backup logging is enabled. Valid values:'."\n" + .'* **1**: enabled.'."\n" + .'* **0**: disabled.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'NextBackupActuallyTime' => ['description' => 'This API does not return a value.', 'type' => 'string', 'example' => 'null', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Query the Automatic Backup Policy of a Cluster', + 'summary' => 'Queries the details of a backup policy by calling the DescribeBackupPolicy operation.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupPolicy'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupPolicy', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"8FAF3989-79CD-4A67-8FFD-97899B64SD5T\\",\\n \\"BackupPolicyDO\\": {\\n \\"BackupDbName\\": \\"null\\",\\n \\"LogBackupRetentionPeriod\\": 10,\\n \\"DataBackupRetentionPeriod\\": 10,\\n \\"BackupType\\": \\"auto\\",\\n \\"BackupLevel\\": \\"db\\",\\n \\"LocalLogRetentionHours\\": 0,\\n \\"HighSpaceUsageProtection\\": 0,\\n \\"GmtModified\\": 0,\\n \\"BackupRetentionPeriod\\": 8,\\n \\"BackupPolicyMode\\": \\"DataBackupPolicy\\",\\n \\"PreferredBackupPeriod\\": \\"2\\",\\n \\"LocalLogRetentionSpace\\": 0,\\n \\"BackupAppName\\": \\"null\\",\\n \\"PreferredBackupTime\\": \\"22:00:00-23:00:00\\",\\n \\"GmtCreate\\": 0,\\n \\"BackupMode\\": \\"phy\\",\\n \\"BackupLog\\": \\"1\\",\\n \\"NextBackupActuallyTime\\": \\"null\\"\\n }\\n}","type":"json"}]', + ], + 'DescribeBackupSets' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ + [ + 'name' => 'DrdsInstanceId', + 'in' => 'query', + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds***********', 'title' => ''], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time of the query. Specify a timestamp in milliseconds.', 'type' => 'string', 'required' => true, 'example' => '1591327800000', 'title' => ''], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time of the query. Specify a timestamp in milliseconds.'."\n" + .'> The end time must be later than the start time.', 'type' => 'string', 'required' => true, 'example' => '1591326000000', 'title' => ''], + ], + ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '03E12FE3-1638-483E-A9B6-1A9120SER56T', - ], - 'VpcInfos' => [ + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7103AEE3-9025-442F-B82B-BABD0A******', 'title' => ''], + 'BackupSets' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'VpcInfo' => [ - 'description' => 'Indicates the information about the virtual private cloud (VPC) in which the instance is deployed.'."\n", + 'backupSet' => [ + 'description' => 'The list of backup sets.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'description' => 'Indicates the ID of the VPC.'."\n", - 'type' => 'string', - 'example' => 'vpc_id', - ], - 'VpcName' => [ - 'description' => 'Indicates the name of the VPC.'."\n", - 'type' => 'string', - 'example' => 'vpc_name', - ], - 'RegionId' => [ - 'description' => 'Indicates the ID of the region in which the instance is deployed.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'VswitchInfos' => [ + 'EnableRecovery' => ['description' => 'Indicates whether the backup set can be restored.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'Status' => ['description' => 'The backup status. Valid values:'."\n" + .'* -1: failed'."\n" + .'* 0: not started'."\n" + .'* 1: running'."\n" + .'* 2: succeeded.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''], + 'BackupConsitentTime' => ['description' => 'The duration of the backup restoration.', 'type' => 'string', 'example' => '2020-06-05 11:31:38', 'title' => ''], + 'BackupType' => ['description' => 'The backup type. Valid values:'."\n" + .'* manual: manual backup'."\n" + .'* auto: automatic backup.', 'type' => 'string', 'example' => 'manual', 'title' => ''], + 'BackupStartTime' => ['description' => 'The start time of the backup. The value is a timestamp in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1591327754000', 'title' => ''], + 'BackupLevel' => ['description' => 'The backup level. Valid values:'."\n" + .'* db: database level'."\n" + .'* instance: instance level.', 'type' => 'string', 'example' => 'instance', 'title' => ''], + 'BackupMode' => ['description' => 'The backup mode. Valid values:'."\n" + .'* logic: logical backup'."\n" + .'* phy: fast backup.', 'type' => 'string', 'example' => 'logic', 'title' => ''], + 'BackupEndTime' => ['description' => 'The end time of the backup. The value is a timestamp in milliseconds.'."\n" + .'> A value of 0 indicates that the backup has not ended.', 'type' => 'integer', 'format' => 'int64', 'example' => '1591327899000', 'title' => ''], + 'Id' => ['description' => 'The ID of the backup set.', 'type' => 'string', 'example' => 'ba30d5c4-a6dc-11ea-bd40-************', 'title' => ''], + 'BackupTotalSize' => ['description' => 'The size of the backup set. Unit: MB.', 'type' => 'string', 'example' => '93.24', 'title' => ''], + 'BackupDbs' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'VswitchInfo' => [ - 'description' => 'Indicates information about the vSwitch to which the instance is connected.'."\n", + 'backupDb' => [ 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'VpcId' => [ - 'description' => 'Indicates the ID of the VPC.'."\n", - 'type' => 'string', - 'example' => 'vpc_id', - ], - 'DrdsSupported' => [ - 'description' => 'Indicates whether you can change the network type of the instance.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'VswitchId' => [ - 'description' => 'Indicates the ID of the vSwitch.'."\n", - 'type' => 'string', - 'example' => 'vswitch_id', - ], - 'AzoneId' => [ - 'description' => 'Indicates the ID of the zone in which the instance is deployed.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-a', - ], - 'VswitchName' => [ - 'description' => 'Indicates the name of the vSwitch.'."\n", - 'type' => 'string', - 'example' => 'vswitch_name', - ], - ], - ], + 'items' => ['description' => 'The list of backed-up databases.', 'type' => 'string', 'example' => '["dts********"]', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"03E12FE3-1638-483E-A9B6-1A9120SER56T\\",\\n \\"VpcInfos\\": {\\n \\"VpcInfo\\": [\\n {\\n \\"VpcId\\": \\"vpc_id\\",\\n \\"VpcName\\": \\"vpc_name\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"VswitchInfos\\": {\\n \\"VswitchInfo\\": [\\n {\\n \\"VpcId\\": \\"vpc_id\\",\\n \\"DrdsSupported\\": true,\\n \\"VswitchId\\": \\"vswitch_id\\",\\n \\"AzoneId\\": \\"cn-hangzhou-a\\",\\n \\"VswitchName\\": \\"vswitch_name\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>03E12FE3-1638-483E-A9B6-1A9120SER56T</RequestId>\\n<VpcInfos>\\n <VpcInfo>\\n <VpcId>vpc_id</VpcId>\\n <VpcName>vpc_name</VpcName>\\n <RegionId>cn-hangzhou</RegionId>\\n <VswitchInfos>\\n <VswitchInfo>\\n <DrdsSupported>true</DrdsSupported>\\n <VpcId>vpc_id</VpcId>\\n <VswitchName>vswitch_name</VswitchName>\\n <AzoneId>cn-hangzhou-a</AzoneId>\\n <VswitchId>vswitch_id</VswitchId>\\n </VswitchInfo>\\n </VswitchInfos>\\n </VpcInfo>\\n</VpcInfos>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeInstanceSwitchNetwork', - 'description' => '****', + 'title' => 'Query backup set information', + 'summary' => 'Calls the DescribeBackupSets operation to query backup set information.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupSets'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupSets', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"7103AEE3-9025-442F-B82B-BABD0A******\\",\\n \\"BackupSets\\": {\\n \\"backupSet\\": [\\n {\\n \\"EnableRecovery\\": false,\\n \\"Status\\": 2,\\n \\"BackupConsitentTime\\": \\"2020-06-05 11:31:38\\",\\n \\"BackupType\\": \\"manual\\",\\n \\"BackupStartTime\\": 1591327754000,\\n \\"BackupLevel\\": \\"instance\\",\\n \\"BackupMode\\": \\"logic\\",\\n \\"BackupEndTime\\": 1591327899000,\\n \\"Id\\": \\"ba30d5c4-a6dc-11ea-bd40-************\\",\\n \\"BackupTotalSize\\": \\"93.24\\",\\n \\"BackupDbs\\": {\\n \\"backupDb\\": [\\n \\"[\\\\\\"dts********\\\\\\"]\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', ], - 'DescribeInstDbLogInfo' => [ - 'methods' => [ - 'post', - 'get', + 'DescribeBackupTimes' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ + [ + 'name' => 'DrdsInstanceId', + 'in' => 'query', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdshbga71nn****', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '4780A19F-5ECB-4C56-AD20-966A3FF9DE5R', 'title' => ''], + 'RestoreTime' => [ + 'description' => 'The details of the restorable time.', + 'type' => 'object', + 'properties' => [ + 'EndTime' => ['description' => 'The end time. The value is a UNIX timestamp (UTC) in milliseconds.', 'type' => 'string', 'example' => '1568636922671', 'title' => ''], + 'StartTime' => ['description' => 'The start time. The value is a UNIX timestamp (UTC) in milliseconds.', 'type' => 'string', 'example' => '1568632853000', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"4780A19F-5ECB-4C56-AD20-966A3FF9DE5R\\",\\n \\"RestoreTime\\": {\\n \\"EndTime\\": \\"1568636922671\\",\\n \\"StartTime\\": \\"1568632853000\\"\\n }\\n}","type":"json"}]', + 'title' => 'Query restorable time of an instance', + 'summary' => 'Queries the target time to which an instance can be restored by calling the DescribeBackupTimes operation.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupTimes'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupTimes', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + ], + 'DescribeBroadcastTables' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2634,31 +1840,39 @@ ], 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '76028', - 'abilityTreeNodes' => [ - 'FEATUREdrdsAS582G', - ], + 'abilityTreeCode' => '75974', + 'abilityTreeNodes' => ['FEATUREdrdsTIBR6Q'], ], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the DRDS database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds_test', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_db', 'title' => ''], + ], + [ + 'name' => 'Query', + 'in' => 'query', + 'schema' => ['description' => 'The query content.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'tb1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'default' => '10', 'example' => '10', 'title' => ''], + ], + [ + 'name' => 'CurrentPage', + 'in' => 'query', + 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'default' => '1', 'example' => '1', 'title' => ''], ], ], 'responses' => [ @@ -2666,102 +1880,120 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A5438952-70EE-4FA5-87A9-080DB0ASD45F', - ], - 'LogTimeRange' => [ - 'description' => 'The time range for log query.'."\n", - 'type' => 'object', - 'properties' => [ - 'SupportOldestTime' => [ - 'description' => 'The end time of the task.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568367711', - ], - 'SupportLatestTime' => [ - 'description' => 'The start time of the query time range.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568267711', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '86E420ED-43F2-4788-A58C-921849******', 'title' => ''], + 'Success' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'IsShard' => ['description' => 'Indicates whether sharding is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'PageNumber' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '40', 'title' => ''], + 'Total' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'List' => [ + 'description' => 'The list of broadcast tables.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => 'The activation status of the broadcast table. Valid values:'."\n" + .'* **1**: activated'."\n" + .'* **2**: being activated'."\n" + .'* **3**: activation exception.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'IsShard' => ['description' => 'Indicates whether the table is a sharding table.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'Broadcast' => ['description' => 'Indicates whether the table is a broadcast table.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Table' => ['description' => 'The table name.', 'type' => 'string', 'example' => 'nation', 'title' => ''], + 'DbInstType' => ['description' => 'The database storage type. Valid values:'."\n" + .'* **0**: RDS'."\n" + .'* **4**: PolarDB.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'BroadcastType' => ['description' => 'The broadcast table type. Valid values:'."\n" + .'* **1**: multi-write pattern'."\n" + .'* **2**: synchronization mode.', 'type' => 'string', 'example' => '1', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"A5438952-70EE-4FA5-87A9-080DB0ASD45F\\",\\n \\"LogTimeRange\\": {\\n \\"SupportOldestTime\\": 1568367711,\\n \\"SupportLatestTime\\": 1568267711\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>A5438952-70EE-4FA5-87A9-080DB0ASD45F</RequestId>\\n<LogTimeRange>\\n <SupportOldestTime>1568367711</SupportOldestTime>\\n <SupportLatestTime>1568267711</SupportLatestTime>\\n</LogTimeRange>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeInstDbLogInfo', + 'title' => 'Query broadcast tables', + 'summary' => 'Queries broadcast tables by calling the DescribeBroadcastTables operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribePreCheckResult' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBroadcastTables'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBroadcastTables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86E420ED-43F2-4788-A58C-921849******\\",\\n \\"Success\\": true,\\n \\"IsShard\\": true,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 40,\\n \\"Total\\": 2,\\n \\"List\\": [\\n {\\n \\"Status\\": 1,\\n \\"IsShard\\": false,\\n \\"Broadcast\\": true,\\n \\"Table\\": \\"nation\\",\\n \\"DbInstType\\": 0,\\n \\"BroadcastType\\": \\"1\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'DescribeDbInstanceDbs' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', + 'abilityTreeCode' => '75985', + 'abilityTreeNodes' => ['FEATUREdrds8KEOBF'], ], 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'DrdsInstanceId', + 'name' => 'DbInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdshbga76p6****', - ], + 'schema' => ['description' => 'The ID of the instance to which the storage-layer database belongs.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'pc-****************', 'title' => ''], ], [ - 'name' => 'TaskId', + 'name' => 'AccountName', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the precheck task.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '4561', - ], + 'schema' => ['description' => '<props="china">The name of the PolarDB-X privileged account. If no privileged account exists, leave this parameter empty. For more information about privileged accounts, see [Account management](https://help.aliyun.com/document_detail/98664.html).</props>'."\n" + ."\n" + .'<props="intl">The name of the DRDS privileged account. If no privileged account exists, leave this parameter empty.</props>.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'Password', + 'in' => 'query', + 'schema' => ['description' => '<props="china">The password of the PolarDB-X privileged account. If no privileged account exists, leave this parameter empty. For more information about privileged accounts, see [Account management](https://help.aliyun.com/document_detail/98664.html).</props>'."\n" + ."\n" + .'<props="intl">The password of the DRDS privileged account. If no privileged account exists, leave this parameter empty.</props>.', 'type' => 'string', 'required' => false, 'example' => 'pwd_111111', 'title' => ''], + ], + [ + 'name' => 'DbInstType', + 'in' => 'query', + 'schema' => ['description' => 'The database storage type. Valid values: **POLARDB** and **RDS**.', 'type' => 'string', 'required' => false, 'example' => 'POLARDB', 'title' => ''], ], ], 'responses' => [ @@ -2769,99 +2001,85 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'EED1A59A-CFEA-5CF8-BB4A-090E75B3D05E', - ], - 'PreCheckResult' => [ - 'description' => 'Indicates the result of the precheck task.'."\n", + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'E9F3D991-08DE-4B74-BE0E-06B809******', 'title' => ''], + 'Success' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Total' => ['description' => 'The total number of databases.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'Databases' => [ 'type' => 'object', + 'itemNode' => true, 'properties' => [ - 'PreCheckName' => [ - 'description' => 'Indicates the name of the precheck task.'."\n", - 'type' => 'string', - 'example' => '', - ], - 'State' => [ - 'description' => 'Indicates the state of the precheck task.'."\n", - 'type' => 'string', - 'example' => 'FAIL', - ], - 'SubCheckItems' => [ - 'description' => 'Indicates the details about the subtasks of the precheck task.'."\n", + 'Database' => [ + 'description' => 'The list of database details.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'ErrorMsgCode' => [ - 'description' => 'Indicates the error code that is returned by a subtask.'."\n", - 'type' => 'string', - 'example' => '1004', - ], - 'PreCheckItemName' => [ - 'description' => 'Indicates the name of the subtask.'."\n", - 'type' => 'string', - 'example' => '', - ], - 'State' => [ - 'description' => 'Indicates the state of the subtask.'."\n", - 'type' => 'string', - 'example' => '', - ], - 'ErrorMsgParams' => [ - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'table1', - ], - 'description' => 'Indicates an error message.'."\n", - ], + 'Status' => ['description' => 'The database status. Valid values:'."\n" + .'* **0**: Being created.'."\n" + .'* **1**: Available.'."\n" + .'* **3**: Being deleted.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'DbName' => ['description' => 'The database name.', 'type' => 'string', 'example' => 'db_test', 'title' => ''], + 'Description' => ['description' => 'The database description.', 'type' => 'string', 'example' => 'test', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => '%s', - 'errorMessage' => '%s', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ], + 404 => [ + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DescribePreCheckResult\\",\\n \\"PreCheckResult\\": {\\n \\"PreCheckName\\": \\"是否有唯一键\\",\\n \\"State\\": \\"FAIL\\",\\n \\"SubCheckItems\\": [\\n {\\n \\"ErrorMsgCode\\": \\"1004\\",\\n \\"PreCheckItemName\\": \\"唯一键\\",\\n \\"State\\": \\"成功\\",\\n \\"ErrorMsgParams\\": [\\n \\"table1\\"\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<PreCheckResult>\\n <State>FAIL</State>\\n <PreCheckName>是否有唯一键</PreCheckName>\\n <SubCheckItems>\\n <PreCheckItemName>唯一键</PreCheckItemName>\\n <State>成功</State>\\n <ErrorMsgCode>1004</ErrorMsgCode>\\n <ErrorMsgParams>table1</ErrorMsgParams>\\n </SubCheckItems>\\n</PreCheckResult>\\n<RequestId>DescribePreCheckResult</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribePreCheckResult', - 'summary' => 'Queries the result of a precheck.', + 'title' => 'Query databases under a target storage instance', + 'summary' => 'Queries the list of databases under a target storage instance by calling the DescribeDbInstanceDbs operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeRdsCommodity' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDbInstanceDbs'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDbInstanceDbs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E9F3D991-08DE-4B74-BE0E-06B809******\\",\\n \\"Success\\": true,\\n \\"Total\\": \\"1\\",\\n \\"Databases\\": {\\n \\"Database\\": [\\n {\\n \\"Status\\": 1,\\n \\"DbName\\": \\"db_test\\",\\n \\"Description\\": \\"test\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeDbInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2869,37 +2087,39 @@ ], 'systemTags' => [ 'operationType' => 'get', + 'abilityTreeCode' => '75986', + 'abilityTreeNodes' => ['FEATUREdrdsD0NTUP'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'CommodityCode', + 'name' => 'Search', 'in' => 'query', - 'schema' => [ - 'description' => 'The commodity code of the service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdsPost', - ], + 'schema' => ['description' => 'The instance ID or cluster ID of the storage layer instance.', 'type' => 'string', 'required' => false, 'example' => 'pc-***************', 'title' => ''], ], [ - 'name' => 'OrderType', + 'name' => 'DbInstType', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the order.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The storage-layer type. Valid values: POLARDB and RDS.', 'type' => 'string', 'required' => false, 'default' => 'RDS', 'example' => 'POLARDB', 'title' => ''], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '30', 'example' => '10', 'title' => ''], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -2907,68 +2127,131 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'Indicates the returned result.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DC3ABA3E-0F8A-4596-9104-F5155C34315B', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '293275B3-8FC0-4619-A26E-6F062FASD56R', 'title' => ''], + 'Items' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'DBInstance' => [ + 'description' => 'The list of instance details.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'InstanceNetworkType' => ['description' => 'The network type of the storage-layer instance. Valid values:'."\n" + ."\n" + .'- **VPC**: virtual private cloud'."\n" + .'- **CLASSIC**: classic network.', 'type' => 'string', 'example' => 'VPC', 'title' => ''], + 'DBInstanceType' => ['description' => 'The type of the storage-layer instance.', 'type' => 'string', 'example' => 'Primary', 'title' => ''], + 'ZoneId' => ['description' => 'The zone ID.', 'type' => 'string', 'example' => 'cn-hangzhou-a', 'title' => ''], + 'DBInstanceStatus' => ['description' => 'The instance status of the storage layer instance. Valid values:'."\n" + ."\n" + .'- **0**: Being created.'."\n" + .'- **1**: Running.'."\n" + .'- **3**: Being deleted.'."\n" + .'- **5**: Restarting.'."\n" + .'- **6**: Upgrading or downgrading.'."\n" + .'- **7**: Recovering.'."\n" + .'- **8**: Switching between internal and external networks.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'DBInstanceId' => ['description' => 'The instance ID of the storage layer instance.', 'type' => 'string', 'example' => 'rm-****************', 'title' => ''], + 'Engine' => ['description' => 'The engine of the storage-layer instance.', 'type' => 'string', 'example' => '存储层实例内核。', 'title' => ''], + 'DBInstanceDescription' => ['description' => 'The description of the storage-layer instance.', 'type' => 'string', 'example' => 'test', 'title' => ''], + 'EngineVersion' => ['description' => 'The Milvus version of the storage layer instance kernel.', 'type' => 'string', 'example' => '5.7', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + 'ReadOnlyDBInstanceId' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'ReadOnlyDBInstanceId' => [ + 'description' => 'The read-only instances associated with the storage-layer instance.', + 'type' => 'array', + 'items' => ['description' => 'The read-only instances associated with the storage-layer instance.', 'type' => 'string', 'example' => '[]', 'title' => ''], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'AllowAllCategory' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ], + 404 => [ + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": \\"test\\",\\n \\"RequestId\\": \\"DC3ABA3E-0F8A-4596-9104-F5155C34315B\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DC3ABA3E-0F8A-4596-9104-F5155C34315B</RequestId>\\n<Data>test</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeRdsCommodity', - 'summary' => 'Queries the data of ApsaraDB RDS for MySQL instances that are purchased for a PolarDB-X 1.0 instance.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'RemoveDrdsInstance' => [ - 'methods' => [ - 'post', - 'get', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"293275B3-8FC0-4619-A26E-6F062FASD56R\\",\\n \\"Items\\": {\\n \\"DBInstance\\": [\\n {\\n \\"InstanceNetworkType\\": \\"VPC\\",\\n \\"DBInstanceType\\": \\"Primary\\",\\n \\"ZoneId\\": \\"cn-hangzhou-a\\",\\n \\"DBInstanceStatus\\": 0,\\n \\"DBInstanceId\\": \\"rm-****************\\",\\n \\"Engine\\": \\"存储层实例内核。\\",\\n \\"DBInstanceDescription\\": \\"test\\",\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ReadOnlyDBInstanceId\\": {\\n \\"ReadOnlyDBInstanceId\\": [\\n \\"[]\\"\\n ]\\n },\\n \\"AllowAllCategory\\": false\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'View storage-layer instance list', + 'summary' => 'Queries the list of storage-layer instances, such as ApsaraDB RDS or PolarDB instances.', + 'changeSet' => [ + ['createdAt' => '2024-04-24T14:28:57.000Z', 'description' => 'Response parameters changed, Response parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDbInstances'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDbInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId1}/*'], + ], + ], + ], ], + ], + 'DescribeDrdsDB' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [], + 'operationType' => 'read', + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*********', 'title' => ''], + ], + [ + 'name' => 'DbName', + 'in' => 'query', + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'db_test', 'title' => ''], ], ], 'responses' => [ @@ -2976,252 +2259,254 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '58FB0EC7-CF71-4E48-92FB-CF070D******', 'title' => ''], + 'Data' => [ + 'description' => 'The database details.', + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => 'The database status. Valid values:'."\n" + .'* **TO_BE_INIT**: Being created.'."\n" + .'* **NORMAL**: Running.', 'type' => 'string', 'example' => 'NORMAL', 'title' => ''], + 'DbName' => ['description' => 'The database name.', 'type' => 'string', 'example' => 'db_test', 'title' => ''], + 'Schema' => ['description' => 'The physical name of the database.', 'type' => 'string', 'example' => 'db_test*******************', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the database was created. The value is a UNIX timestamp in milliseconds (ms).', 'type' => 'string', 'example' => '1602050276000', 'title' => ''], + 'Mode' => ['description' => 'The partitioning mode of the database. Valid values:'."\n" + .'* **HORIZONTAL**: horizontal partitioning'."\n" + .'* **VERTICAL**: vertical partitioning.', 'type' => 'string', 'example' => 'HORIZONTAL', 'title' => ''], + 'DbInstType' => ['description' => 'The storage type of the database.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'InstRole' => ['description' => 'The type of the instance to which the database belongs. Valid values:'."\n" + .'* **MASTER**: primary instance'."\n" + .'* **SLAVE**: read-only instance.', 'type' => 'string', 'example' => 'MASTER', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ReleasePrepayInstance', - 'errorMessage' => 'The pay type of this drds instance is prepay', - ], - [ - 'errorCode' => 'RemoveDrdsDBFirst', - 'errorMessage' => 'There are Drds DB exist in this instance. Please delete drds db first', - ], - ], - 500 => [ - [ - 'errorCode' => 'ERR_INSTANCE_RELEASE_ALREADY', - 'errorMessage' => '实例已释放', - ], - [ - 'errorCode' => 'ERR_INSTANCE_CAN_NOT_RELEASE', - 'errorMessage' => '实例暂时无法释放', - ], - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + 404 => [ + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\"\\n}","errorExample":""},{"type":"xml","example":"<RemoveDrdsInstanceResponse>\\n<RequestId>A3140FC7-B78B-4D8E-B0C8-926D28******</RequestId>\\n<Success>true</Success>\\n</RemoveDrdsInstanceResponse>","errorExample":""}]', - 'title' => 'RemoveDrdsInstance', - 'summary' => 'Releases an instance.', - 'description' => '> * You can call this operation to release an instance that is charged based on only the pay-as-you-go billing method.'."\n" - .'>* If the specifications of the instance are being changed, or one or more databases exist in the instance, you cannot call this operation to release the instance.', + 'title' => 'View database details of an instance', + 'summary' => 'Queries the details of a database in an instance by calling the DescribeDrdsDB operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CreateDrdsDB' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDB'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDB', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"58FB0EC7-CF71-4E48-92FB-CF070D******\\",\\n \\"Data\\": {\\n \\"Status\\": \\"NORMAL\\",\\n \\"DbName\\": \\"db_test\\",\\n \\"Schema\\": \\"db_test*******************\\",\\n \\"CreateTime\\": \\"1602050276000\\",\\n \\"Mode\\": \\"HORIZONTAL\\",\\n \\"DbInstType\\": \\"RDS\\",\\n \\"InstRole\\": \\"MASTER\\"\\n }\\n}","type":"json"}]', + ], + 'DescribeDrdsDBCluster' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'get', + 'abilityTreeCode' => '75988', + 'abilityTreeNodes' => ['FEATUREdrdsDBGOD6'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance on which you want to create the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdshbgal154****', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds*********', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the PolarDB-X 1.0 database you want to create.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'testdb', - ], + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'example' => 'drds_test', 'title' => ''], ], [ - 'name' => 'Encode', + 'name' => 'DbInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The encoding method that is used by the database.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'utf8', - 'default' => 'utf8mb4', - ], + 'schema' => ['description' => 'The ID of the PolarDB cluster.', 'type' => 'string', 'required' => true, 'example' => 'pc-*****************', 'title' => ''], ], - [ - 'name' => 'Password', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The password that is used to log on to the database.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_sample_password', + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '60A77FD6-0DE4-4A34-B6FB-9C2673******', 'title' => ''], + 'DbInstance' => [ + 'description' => 'The information about the PolarDB instance.', + 'type' => 'object', + 'properties' => [ + 'ExpireTime' => ['description' => 'The expiration time of the PolarDB instance.', 'type' => 'string', 'example' => '2019-09-27 11:22:33', 'title' => ''], + 'PayType' => ['description' => 'The billing method of the PolarDB instance.', 'type' => 'string', 'example' => 'Postpaid', 'title' => ''], + 'DBInstanceStatus' => ['description' => 'The instance status of the PolarDB instance.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'NetworkType' => ['description' => 'The network type of the PolarDB instance.', 'type' => 'string', 'example' => 'VPC', 'title' => ''], + 'Port' => ['description' => 'The access port of the PolarDB instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '3306', 'title' => ''], + 'EngineVersion' => ['description' => 'The database engine version of the DRDS database storage DPI engine.', 'type' => 'string', 'example' => '8.0', 'title' => ''], + 'RdsInstType' => ['description' => 'The RDS instance type. This parameter is not supported for PolarDB clusters.', 'type' => 'string', 'example' => 'ignore', 'title' => ''], + 'RemainDays' => ['description' => 'The remaining days of the PolarDB instance.', 'type' => 'string', 'example' => '0', 'title' => ''], + 'DBInstanceId' => ['description' => 'The ID of the PolarDB cluster.', 'type' => 'string', 'example' => 'pc-*****************', 'title' => ''], + 'DbInstType' => ['description' => 'The storage type of the DRDS database.', 'type' => 'string', 'example' => 'POLARDB', 'title' => ''], + 'Engine' => ['description' => 'The storage engine type of the DRDS database.', 'type' => 'string', 'example' => 'POLARDB', 'title' => ''], + 'ReadMode' => ['description' => 'The read traffic configuration mode of DRDS when the database storage type is PolarDB.'."\n" + ."\n" + .'Valid values:'."\n" + .'* **DEFAULT**: Default mode. All read traffic is sent to the PolarDB read/write node.'."\n" + .'* **CUSTOM**: Custom mode. You can customize the traffic ratio between the read/write node and read-only nodes.'."\n" + .'* **BALANCE**: Read balancing mode. Read traffic is automatically distributed by the read load balancing module of the PolarDB cluster, which means read traffic is evenly distributed across all nodes.', 'type' => 'string', 'example' => 'CUSTOM', 'title' => ''], + 'Endpoints' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Endpoint' => [ + 'description' => 'The read/write splitting connection endpoint of the PolarDB instance managed by DRDS.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ReadWeight' => ['description' => 'The read weight of the endpoint managed by the DRDS database.', 'type' => 'integer', 'format' => 'int32', 'example' => '85', 'title' => ''], + 'EndpointId' => ['description' => 'The ID of the PolarDB endpoint.', 'type' => 'string', 'example' => 'pe-*****************', 'title' => ''], + 'NodeIds' => ['description' => 'The list of node IDs associated with the PolarDB endpoint. Multiple node IDs are separated by commas (,).', 'type' => 'string', 'example' => 'pi-*****************,pi-*****************', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'DBNodes' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'DBNode' => [ + 'description' => 'The node information in the PolarDB cluster.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DBNodeRole' => ['description' => 'The role of the node in the PolarDB cluster. Valid values:'."\n" + .'* **Reader**'."\n" + .'* **Writer**.', 'type' => 'string', 'example' => 'Reader', 'title' => ''], + 'ZoneId' => ['description' => 'The zone ID of the PolarDB cluster node.', 'type' => 'string', 'example' => 'cn-hangzhou-i', 'title' => ''], + 'DBNodeId' => ['description' => 'The ID of the node in the PolarDB cluster.', 'type' => 'string', 'example' => 'pi-***************', 'title' => ''], + 'DBNodeStatus' => ['description' => 'The status of the PolarDB cluster node.', 'type' => 'string', 'example' => 'Running', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'Type', - 'in' => 'query', - 'schema' => [ - 'description' => 'The partitioning mode of the database. Valid values:'."\n" - ."\n" - .'* **HORIZONTAL**: The database is horizontally partitioned (sharded).'."\n" - .'* **VERTICAL**: The database is vertically partitioned.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'HORIZONTAL', - 'default' => 'HORIZONTAL', - ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter.MasterDbInstanceRelease', 'errorMessage' => 'The master db instance has been released', 'description' => ''], ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Query polarDB cluster details in a logical database', + 'summary' => 'Queries the details of a PolarDB cluster in a DRDS logical database.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDBCluster'], + ], + ], + 'ramActions' => [ [ - 'name' => 'DbInstType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the storage instances that are used by the PolarDB-X 1.0 database. Set the value to RDS.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'RDS', - 'default' => 'RDS', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDBCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"60A77FD6-0DE4-4A34-B6FB-9C2673******\\",\\n \\"DbInstance\\": {\\n \\"ExpireTime\\": \\"2019-09-27 11:22:33\\",\\n \\"PayType\\": \\"Postpaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"8.0\\",\\n \\"RdsInstType\\": \\"ignore\\",\\n \\"RemainDays\\": \\"0\\",\\n \\"DBInstanceId\\": \\"pc-*****************\\",\\n \\"DbInstType\\": \\"POLARDB\\",\\n \\"Engine\\": \\"POLARDB\\",\\n \\"ReadMode\\": \\"CUSTOM\\",\\n \\"Endpoints\\": {\\n \\"Endpoint\\": [\\n {\\n \\"ReadWeight\\": 85,\\n \\"EndpointId\\": \\"pe-*****************\\",\\n \\"NodeIds\\": \\"pi-*****************,pi-*****************\\"\\n }\\n ]\\n },\\n \\"DBNodes\\": {\\n \\"DBNode\\": [\\n {\\n \\"DBNodeRole\\": \\"Reader\\",\\n \\"ZoneId\\": \\"cn-hangzhou-i\\",\\n \\"DBNodeId\\": \\"pi-***************\\",\\n \\"DBNodeStatus\\": \\"Running\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', + ], + 'DescribeDrdsDBIpWhiteList' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'DbInstanceIsCreating', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether the required ApsaraDB RDS for MySQL instance is being created.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'AK' => [], ], + ], + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ [ - 'name' => 'AccountName', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the account that has permissions to access all databases on the ApsaraDB RDS for MySQL instance.'."\n" - ."\n" - .'This parameter is required only when the Type parameter is set to VERTICAL.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_sample_account', - ], + 'schema' => ['description' => 'The region in which the instance resides.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'RdsInstance', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => 'This parameter is required only when the Type parameter is set to HORIZONTAL. The value of this parameter is a JSON array string.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '["drds_sample_rds_id1", "drds_sample_rds_id2"]', - ], - 'required' => false, - 'example' => '["drds_sample_rds_id1", "drds_sample_rds_id2"]', - 'maxItems' => 1000, - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds********', 'title' => ''], ], [ - 'name' => 'RdsSuperAccount', + 'name' => 'DbName', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Password' => [ - 'description' => 'The password of the super administrator account that is used to connect to the ApsaraDB RDS instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_sample_rds_super_password', - ], - 'DbInstanceId' => [ - 'description' => 'The ID of ApsaraDB RDS instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_sample_rds_id', - ], - 'AccountName' => [ - 'description' => 'The account name of the super administrator that is used to connect to the ApsaraDB RDS for MySQL instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_sample_rds_super_account', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 1000, - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'example' => 'test_db', 'title' => ''], ], [ - 'name' => 'InstDbName', + 'name' => 'GroupName', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'DbInstanceId' => [ - 'description' => 'The ID of the ApsaraDB RDS for MySQL instance on which the databases need to be vertically partitioned. This parameter is required only when the Type parameter is set to VERTICAL.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_sample_rds_id', - ], - 'ShardDbName' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => 'The list of databases that need to be vertically partitioned on the ApsaraDB RDS for MySQL instance. The value of this parameter is a JSON array string.'."\n" - ."\n" - .'This parameter is required only when the Type parameter is set to VERTICAL.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '["db1", "db2"]', - ], - 'required' => false, - 'example' => '["drds_sample_db1", "drds_sample_db2"]', - 'maxItems' => 30, - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 100, - ], + 'schema' => ['description' => 'The name of the whitelist group.', 'type' => 'string', 'required' => false, 'example' => 'group1', 'title' => ''], ], ], 'responses' => [ @@ -3229,109 +2514,100 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'FF13E47D-4E38-4A5A-BA68-32A554AD45T6', + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '017453B9-0001-4745-87BF-DD612D850ED0', 'title' => ''], + 'IpWhiteList' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Ip' => [ + 'type' => 'array', + 'items' => ['description' => 'The IP whitelist.', 'type' => 'string', 'example' => '10.23.***.***,10.23.***.***/24', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ], 404 => [ - [ - 'errorCode' => 'InvalidInstance.CreateDbForSlave', - 'errorMessage' => 'Db Creation in slave drds instance not support.', - ], - [ - 'errorCode' => 'InvalidParameter.InstDbName', - 'errorMessage' => 'The parameter InstDbName is empty', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Query IP whitelist', + 'summary' => 'Queries the IP whitelist of a specified database.', + 'changeSet' => [ + ['createdAt' => '2022-09-16T07:08:49.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-09-16T07:08:49.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDBIpWhiteList'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDBIpWhiteList', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"FF13E47D-4E38-4A5A-BA68-32A554AD45T6\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateDrdsDBResponse>\\n <Success>true</Success>\\n <RequestId>FF13E47D-4E38-4A5A-BA68-32A554AD45T6</RequestId>\\n</CreateDrdsDBResponse>","errorExample":""}]', - 'title' => 'CreateDrdsDB', - 'summary' => 'Creates a PolarDB-X 1.0 database.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"017453B9-0001-4745-87BF-DD612D850ED0\\",\\n \\"IpWhiteList\\": {\\n \\"Ip\\": [\\n \\"10.23.***.***,10.23.***.***/24\\"\\n ]\\n }\\n}","type":"json"}]', ], 'DescribeDrdsDBs' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdshbga1138****', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdshbga1138****', 'title' => ''], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return. The value of this parameter must be an integer that is greater than 0. Default value: **1**.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => 'The page number. The value must be a positive integer that does not exceed the maximum value of the Integer data type. Default value: **1**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', 'example' => '1', 'title' => ''], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of databases to return on each page. Valid values: **30**, **50**, and **100**.'."\n" - ."\n" - .'Default value: **30**.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '30', - 'default' => '1000', - ], + 'schema' => ['description' => 'The number of entries per page. Valid values: **30**, **50**, and **100**.'."\n" + ."\n" + .'Default value: **30**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1000', 'example' => '30', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region in which the PolarDB-X 1.0 instance is created.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -3339,150 +2615,117 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'PageSize' => [ - 'description' => 'The number of databases returned on each page.'."\n", - 'type' => 'string', - 'example' => '30', - ], - 'PageNumber' => [ - 'description' => 'The page number of the returned page.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '006B7D19-8CDB-4AA6-AAE7-23C107GS3W2T', - ], - 'Total' => [ - 'description' => 'The number of returned databases.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'string', 'example' => '30', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '006B7D19-8CDB-4AA6-AAE7-23C107GS3W2T', 'title' => ''], + 'Total' => ['description' => 'The total number of databases.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'Data' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'Db' => [ - 'description' => 'The list of returned databases.'."\n", + 'description' => 'The list of databases.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => 'The state of the database.'."\n", - 'type' => 'string', - 'example' => 'NORMAL', - ], - 'DbName' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'example' => 'drds_test', - ], - 'Schema' => [ - 'description' => 'The schema ID that is assigned to the partitioned database.'."\n", - 'type' => 'string', - 'example' => 'drds_test_1563773871118kxqd', - ], - 'CreateTime' => [ - 'description' => 'The time when the database is created. The value of this parameter is a UNIX timestamp. Unit: ms.'."\n", - 'type' => 'string', - 'example' => '1563773824000', - ], - 'Mode' => [ - 'description' => 'The partitioning mode of the database. Valid values:'."\n" - ."\n" - .'* **HORIZONTAL**: The database is horizontally partitioned.'."\n" - .'* **VERTICAL**: The database is vertically partitioned.'."\n", - 'type' => 'string', - 'example' => 'HORIZONTAL', - ], - 'DbInstType' => [ - 'description' => 'The type of the database. Valid values: **RDS** and **POLARDB**.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], + 'Status' => ['description' => 'The database status.', 'type' => 'string', 'example' => 'NORMAL', 'title' => ''], + 'DbName' => ['description' => 'The database name.', 'type' => 'string', 'example' => 'drds_test', 'title' => ''], + 'Schema' => ['description' => 'The schema ID assigned by the system to the database after sharding.', 'type' => 'string', 'example' => 'drds_test_1563773871118kxqd', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the database was created. The value is a UNIX timestamp. Unit: milliseconds.', 'type' => 'string', 'example' => '1563773824000', 'title' => ''], + 'Mode' => ['description' => 'The sharding mode of the database. Valid values:'."\n" + .'* **HORIZONTAL**: horizontal partitioning'."\n" + .'* **VERTICAL**: vertical partitioning.', 'type' => 'string', 'example' => 'HORIZONTAL', 'title' => ''], + 'DbInstType' => ['description' => 'The database type. Valid values: **RDS** and **POLARDB**.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"PageSize\\": \\"30\\",\\n \\"PageNumber\\": \\"1\\",\\n \\"RequestId\\": \\"006B7D19-8CDB-4AA6-AAE7-23C107GS3W2T\\",\\n \\"Total\\": \\"1\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Db\\": [\\n {\\n \\"Status\\": \\"NORMAL\\",\\n \\"DbName\\": \\"drds_test\\",\\n \\"Schema\\": \\"drds_test_1563773871118kxqd\\",\\n \\"CreateTime\\": \\"1563773824000\\",\\n \\"Mode\\": \\"HORIZONTAL\\",\\n \\"DbInstType\\": \\"RDS\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsDBsResponse>\\n <PageSize>30</PageSize>\\n <PageNumber>1</PageNumber>\\n <RequestId>006B7D19-8CDB-4AA6-AAE7-23C107GS3W2T</RequestId>\\n <Total>1</Total>\\n <Success>true</Success>\\n <Data>\\n <Status>NORMAL</Status>\\n <DbName>drds_test</DbName>\\n <Schema>drds_test_1563773871118kxqd</Schema>\\n <CreateTime>1563773824000</CreateTime>\\n <Mode>HORIZONTAL</Mode>\\n <DbInstType>RDS</DbInstType>\\n </Data>\\n</DescribeDrdsDBsResponse>","errorExample":""}]', - 'title' => 'DescribeDrdsDBs', - 'summary' => 'Queries the databases on a PolarDB-X 1.0 instance.', + 'title' => 'Query databases in an instance', + 'summary' => 'Queries the details of databases in a specified instance by calling the DescribeDrdsDBs operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsDB' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2023-04-07T07:54:00.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-12-07T03:49:24.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDBs'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDBs', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageSize\\": \\"30\\",\\n \\"PageNumber\\": \\"1\\",\\n \\"RequestId\\": \\"006B7D19-8CDB-4AA6-AAE7-23C107GS3W2T\\",\\n \\"Total\\": \\"1\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Db\\": [\\n {\\n \\"Status\\": \\"NORMAL\\",\\n \\"DbName\\": \\"drds_test\\",\\n \\"Schema\\": \\"drds_test_1563773871118kxqd\\",\\n \\"CreateTime\\": \\"1563773824000\\",\\n \\"Mode\\": \\"HORIZONTAL\\",\\n \\"DbInstType\\": \\"RDS\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeDrdsDbInstance' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', 'systemTags' => [ 'operationType' => 'get', + 'abilityTreeCode' => '75989', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => 'The instance name.', 'type' => 'string', 'required' => true, 'example' => 'drdshbga1138****', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'db_test', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'example' => 'drds_test', 'title' => ''], + ], + [ + 'name' => 'DbInstanceId', + 'in' => 'query', + 'schema' => ['description' => 'The instance ID of the custom ApsaraDB RDS instance.', 'type' => 'string', 'required' => true, 'example' => 'rm-bp1t1mk5a5bdj****', 'title' => ''], ], ], 'responses' => [ @@ -3490,146 +2733,145 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '58FB0EC7-CF71-4E48-92FB-CF070D******', - ], - 'Data' => [ - 'description' => 'Indicates the details about the database.'."\n", + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '4FE09970-CA69-4144-88CA-67FB4BTY56G3', 'title' => ''], + 'DbInstance' => [ + 'description' => 'The details of the custom ApsaraDB RDS instance.', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => 'Indicates the state of the database. Valid values:'."\n" - ."\n" - .'* **TO_BE_INIT**: The database is being created.'."\n" - .'* **NORMAL**: The database is running.'."\n", - 'type' => 'string', - 'example' => 'NORMAL', - ], - 'DbName' => [ - 'description' => 'Indicates the name of the database.'."\n", - 'type' => 'string', - 'example' => 'db_test', - ], - 'Schema' => [ - 'description' => 'Indicates the schema name of the database.'."\n", - 'type' => 'string', - 'example' => 'db_test*******************', - ], - 'CreateTime' => [ - 'description' => 'Indicates the time when the database was created. The value is in the UNIX timestamp format. Unit: ms.'."\n", - 'type' => 'string', - 'example' => '1602050276000', - ], - 'Mode' => [ - 'description' => 'Indicates the database sharding method.'."\n" - ."\n" - .'* **HORIZONTAL**: The database is horizontally sharded.'."\n" - .'* **VERTICAL**: The database is vertically sharded.'."\n", - 'type' => 'string', - 'example' => 'HORIZONTAL', - ], - 'DbInstType' => [ - 'description' => 'Indicates the storage type of the database.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'InstRole' => [ - 'description' => 'Indicates the type of the instance in which the database is deployed. Valid values:'."\n" - ."\n" - .'* **MASTER**: The instance is a primary instance.'."\n" - .'* **SLAVE**: The instance is a read-only instance.'."\n", - 'type' => 'string', - 'example' => 'MASTER', + 'ExpireTime' => ['description' => 'The expiration time of the instance. The value is a UNIX timestamp. Unit: seconds.'."\n" + .'>This parameter is supported only for subscription instances.', 'type' => 'string', 'example' => '12341434315', 'title' => ''], + 'PayType' => ['description' => 'The billing method of the instance. Valid values:'."\n" + ."\n" + .'- **Prepaid**: subscription.'."\n" + .'- **Postaid**: pay-as-you-go.', 'type' => 'string', 'example' => 'Postpaid', 'title' => ''], + 'DBInstanceStatus' => ['description' => 'The instance status.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'NetworkType' => ['description' => 'The network type of the instance. Currently, only **VPC** is supported.', 'type' => 'string', 'example' => 'VPC', 'title' => ''], + 'Port' => ['description' => 'The port used to access the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '3306', 'title' => ''], + 'EngineVersion' => ['description' => 'The database engine version of the instance. Currently, only version **5.7** is supported.', 'type' => 'string', 'example' => '5.7', 'title' => ''], + 'DmInstanceId' => ['description' => 'The resource ID.', 'type' => 'string', 'example' => 'dm-*************', 'title' => ''], + 'ConnectUrl' => ['description' => 'The endpoint of the custom ApsaraDB RDS instance.', 'type' => 'string', 'example' => 'rm-***************.mysql.rds.aliyuncs.com', 'title' => ''], + 'ReadWeight' => ['description' => 'The read ratio of the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '70', 'title' => ''], + 'RdsInstType' => ['description' => 'The instance type.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'RemainDays' => ['description' => 'The number of remaining days before the instance expires.', 'type' => 'string', 'example' => '0', 'title' => ''], + 'DBInstanceId' => ['description' => 'The instance ID of the custom ApsaraDB RDS instance.', 'type' => 'string', 'example' => 'rm-***************', 'title' => ''], + 'DbInstType' => ['description' => 'The instance type. Valid values:'."\n" + ."\n" + .'- **Primary**: primary instance.'."\n" + .'- **ReadOnly**: read-only instance.', 'type' => 'string', 'example' => 'Primary', 'title' => ''], + 'Engine' => ['description' => 'The database engine. Currently, only **MySQL** is supported.', 'type' => 'string', 'example' => 'MySQL', 'title' => ''], + 'ReadOnlyInstances' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'ReadOnlyInstance' => [ + 'description' => 'The list of read-only instances.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ExpireTime' => ['description' => 'The expiration timestamp of the instance.', 'type' => 'string', 'example' => '1823487328173', 'title' => ''], + 'PayType' => ['description' => 'The billing method of the instance.', 'type' => 'string', 'example' => 'Postpaid', 'title' => ''], + 'VersionAction' => ['description' => 'An invalid field.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'DBInstanceStatus' => ['description' => 'The instance status.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'NetworkType' => ['description' => 'The network type of the instance.', 'type' => 'string', 'example' => 'VPC', 'title' => ''], + 'Port' => ['description' => 'The port used to access the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '3306', 'title' => ''], + 'EngineVersion' => ['description' => 'The database engine version of the instance.', 'type' => 'string', 'example' => '5.7', 'title' => ''], + 'DmInstanceId' => ['description' => 'The resource ID.', 'type' => 'string', 'example' => 'dm-*************', 'title' => ''], + 'ConnectUrl' => ['description' => 'The endpoint of the read-only instance.', 'type' => 'string', 'example' => 'rm-bp1ub71ct9skc3yxx.mysql.rds.aliyuncs.com', 'title' => ''], + 'ReadWeight' => ['description' => 'The read ratio of the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'RdsInstType' => ['description' => 'The instance type.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'RemainDays' => ['description' => 'The number of remaining days before the instance expires.', 'type' => 'string', 'example' => '0', 'title' => ''], + 'DBInstanceId' => ['description' => 'The instance ID of the read-only instance.', 'type' => 'string', 'example' => 'rm-bp1ub71ct9skc****', 'title' => ''], + 'DbInstType' => ['description' => 'The instance type.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'Engine' => ['description' => 'The database engine of the instance.', 'type' => 'string', 'example' => 'MySQL', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 404 => [ - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + 400 => [ + ['errorCode' => 'InvalidParameter.MasterDbInstanceRelease', 'errorMessage' => 'The master db instance has been released', 'description' => ''], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"58FB0EC7-CF71-4E48-92FB-CF070D******\\",\\n \\"Data\\": {\\n \\"Status\\": \\"NORMAL\\",\\n \\"DbName\\": \\"db_test\\",\\n \\"Schema\\": \\"db_test*******************\\",\\n \\"CreateTime\\": \\"1602050276000\\",\\n \\"Mode\\": \\"HORIZONTAL\\",\\n \\"DbInstType\\": \\"RDS\\",\\n \\"InstRole\\": \\"MASTER\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>58FB0EC7-CF71-4E48-92FB-CF070D******</RequestId>\\n<Data>\\n <Status>NORMAL</Status>\\n <DbInstType>RDS</DbInstType>\\n <InstRole>MASTER</InstRole>\\n <Schema>db_test*******************</Schema>\\n <Mode>HORIZONTAL</Mode>\\n <CreateTime>1602050276000</CreateTime>\\n <DbName>db_test</DbName>\\n</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeDrdsDB', - 'summary' => 'Queries details about a database that is deployed in a PolarDB-X 1.0 instance.', + 'title' => 'Query RDS storage instance details', + 'summary' => 'Queries the details of an ApsaraDB RDS storage instance for a DRDS instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsDbInstances' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDbInstance'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDbInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"4FE09970-CA69-4144-88CA-67FB4BTY56G3\\",\\n \\"DbInstance\\": {\\n \\"ExpireTime\\": \\"12341434315\\",\\n \\"PayType\\": \\"Postpaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"DmInstanceId\\": \\"dm-*************\\",\\n \\"ConnectUrl\\": \\"rm-***************.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 70,\\n \\"RdsInstType\\": \\"RDS\\",\\n \\"RemainDays\\": \\"0\\",\\n \\"DBInstanceId\\": \\"rm-***************\\",\\n \\"DbInstType\\": \\"Primary\\",\\n \\"Engine\\": \\"MySQL\\",\\n \\"ReadOnlyInstances\\": {\\n \\"ReadOnlyInstance\\": [\\n {\\n \\"ExpireTime\\": \\"1823487328173\\",\\n \\"PayType\\": \\"Postpaid\\",\\n \\"VersionAction\\": 0,\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"DmInstanceId\\": \\"dm-*************\\",\\n \\"ConnectUrl\\": \\"rm-bp1ub71ct9skc3yxx.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 30,\\n \\"RdsInstType\\": \\"RDS\\",\\n \\"RemainDays\\": \\"0\\",\\n \\"DBInstanceId\\": \\"rm-bp1ub71ct9skc****\\",\\n \\"DbInstType\\": \\"RDS\\",\\n \\"Engine\\": \\"MySQL\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', + ], + 'DescribeDrdsDbInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdshbga1138****', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdshbga1138****', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'dbname', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'example' => 'dbname', 'title' => ''], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', 'example' => '1', 'title' => ''], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '30', - 'default' => '20', - ], + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '20', 'example' => '30', 'title' => ''], ], ], 'responses' => [ @@ -3637,283 +2879,144 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'PageSize' => [ - 'description' => 'Indicates the number of entries returned per page.'."\n", - 'type' => 'string', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => 'Indicates the page number of the returned page.', - 'type' => 'string', - 'example' => '1', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', - ], - 'Total' => [ - 'description' => 'Indicates the number of primary ApsaraDB RDS for MySQL instances.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'PageSize' => ['description' => 'The page size.', 'type' => 'string', 'example' => '10', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', 'title' => ''], + 'Total' => ['description' => 'The total number of primary RDS instances.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'DbInstances' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'DbInstance' => [ - 'description' => 'Indicates information about the ApsaraDB RDS for MySQL instances that are used to store the data of the specified database.'."\n", + 'description' => 'The list of storage instances associated with the database.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'ExpireTime' => [ - 'description' => 'Indicates the point in time when the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database expires.'."\n", - 'type' => 'string', - 'example' => '1237486127634', - ], - 'PayType' => [ - 'description' => 'Indicates the billing method of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. Valid values:'."\n" - ."\n" - .'* **drdsPre**: The instance uses the subscription billing method.'."\n" - .'* **drdsPost**: The instance uses the pay-as-you-go billing method.'."\n", - 'type' => 'string', - 'example' => 'PostPaid', - ], - 'DBInstanceStatus' => [ - 'description' => 'Indicates the state of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. Valid values:'."\n" - ."\n" - .'* **0**: The ApsaraDB RDS for MySQL instance is being created.'."\n" - .'* **1**: The ApsaraDB RDS for MySQL instance is running.'."\n" - .'* **3**: The ApsaraDB RDS for MySQL instance is being deleted.'."\n" - .'* **5**: The ApsaraDB RDS for MySQL instance is being restarted.'."\n" - .'* **6**: The ApsaraDB RDS for MySQL instance is being upgraded or downgraded.'."\n" - .'* **7**: The ApsaraDB RDS for MySQL instance is being backed up.'."\n" - .'* **8**: The network type of the ApsaraDB RDS for MySQL instance is being changed.'."\n" - .'* **9**: The ApsaraDB RDS for MySQL instance is being migrated.'."\n" - .'* **11**: The data of the ApsaraDB RDS for MySQL instance is being migrated.'."\n" - .'* **12**: A disaster-recovery instance is being generated.'."\n" - .'* **13**: Data is being imported to the ApsaraDB RDS for MySQL instance.'."\n" - .'* **14**: Data is being imported to the ApsaraDB RDS for MySQL instance from an another ApsaraDB RDS for MySQL instance.'."\n" - .'* **15**: A failover is being performed.'."\n" - .'* **16**: A temporary instance is being created.'."\n" - .'* **17**: A network is being created for the ApsaraDB RDS for MySQL instance.'."\n" - .'* **18**: The ApsaraDB RDS for MySQL instance is being cloned.'."\n" - .'* **19**: The link is being changed.'."\n" - .'* **20**: The read-only instances of the ApsaraDB RDS for MySQL instance are being migrated.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'NetworkType' => [ - 'description' => 'Indicates the network type of the ApsaraDB RDS for MySQL instance.'."\n", - 'type' => 'string', - 'example' => 'VPC', - ], - 'Port' => [ - 'description' => 'Indicates the port that is used to connect to the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3306', - ], - 'EngineVersion' => [ - 'description' => 'Indicates the engine version of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database.'."\n", - 'type' => 'string', - 'example' => '5.7', - ], - 'DmInstanceId' => [ - 'description' => 'Indicates the ID of a resource.'."\n", - 'type' => 'string', - 'example' => 'dm-hbgau1zp****', - ], - 'ConnectUrl' => [ - 'description' => 'Indicates the endpoint that is used to connect to an ApsaraDB RDS for MySQL instance that is used to store the data of the specified database.'."\n", - 'type' => 'string', - 'example' => 'rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com', - ], - 'ReadWeight' => [ - 'description' => 'Indicates the read weight of the read-only instance.', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'RdsInstType' => [ - 'description' => 'Indicates whether the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database is a primary instance or a read-only instance.'."\n" - ."\n" - .'* **Primary**: The instance is a primary instance.'."\n" - .'* **Readonly**: The instance is a read-only instance.'."\n", - 'type' => 'string', - 'example' => 'Primary', - ], - 'RemainDays' => [ - 'description' => 'Indicates the number of remaining days before a subscription instance expires.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'DBInstanceId' => [ - 'description' => 'Indicates the ID of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database.'."\n", - 'type' => 'string', - 'example' => 'rm-bp1t1mk5a5bdj****', - ], - 'DbInstType' => [ - 'description' => 'Indicates the type of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. The value is set to RDS.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'Engine' => [ - 'description' => 'Indicates the engine of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database.'."\n", - 'type' => 'string', - 'example' => 'MySQL', - ], + 'ExpireTime' => ['description' => 'The expiration time of the storage instance.', 'type' => 'string', 'example' => '1237486127634', 'title' => ''], + 'PayType' => ['description' => 'The billing method.', 'type' => 'string', 'example' => 'PostPaid', 'title' => ''], + 'DBInstanceStatus' => ['description' => '- 0: Creating.'."\n" + .'- 1: Running.'."\n" + .'- 3: Being deleted.'."\n" + .'- 5: Restarting.'."\n" + .'- 6: Upgrading or downgrading.'."\n" + .'- 7: Backup in progress.'."\n" + .'- 8: Switching between internal and external networks.'."\n" + .'- 9: Instance migration in progress.'."\n" + .'- 11: Migrating data.'."\n" + .'- 12: Creating a disaster recovery instance.'."\n" + .'- 13: Data import in progress.'."\n" + .'- 14: Importing data from another RDS instance.'."\n" + .'- 15: Performing a disaster recovery switchover.'."\n" + .'- 16: Creating a temporary instance.'."\n" + .'- 17: Creating a network.'."\n" + .'- 18: Cloning an instance.'."\n" + .'- 19: Switching links.'."\n" + .'- 20: Read-only instance migration in progress.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'NetworkType' => ['description' => 'The network type.', 'type' => 'string', 'example' => 'VPC', 'title' => ''], + 'Port' => ['description' => 'The port.', 'type' => 'integer', 'format' => 'int32', 'example' => '3306', 'title' => ''], + 'EngineVersion' => ['description' => 'The storage engine version, such as 5.7, 5.6, or 5.5 for RDS for MySQL.', 'type' => 'string', 'example' => '5.7', 'title' => ''], + 'DmInstanceId' => ['description' => 'The resource ID.', 'type' => 'string', 'example' => 'dm-hbgau1zp****', 'title' => ''], + 'ConnectUrl' => ['description' => 'The connection URL of the storage instance, which is the connection address returned by the corresponding storage service (such as RDS).', 'type' => 'string', 'example' => 'rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com', 'title' => ''], + 'ReadWeight' => ['description' => 'The read weight of the instance in the database.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'RdsInstType' => ['description' => 'The type of the RDS instance, which indicates whether it is a primary instance or a read-only instance.', 'type' => 'string', 'example' => 'Primary', 'title' => ''], + 'RemainDays' => ['description' => 'The number of remaining days before the subscription instance expires.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'DBInstanceId' => ['description' => 'The storage instance ID.', 'type' => 'string', 'example' => 'rm-bp1t1mk5a5bdj****', 'title' => ''], + 'DbInstType' => ['description' => 'The storage instance type. Only RDS is supported.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'Engine' => ['description' => 'The storage engine, such as MySQL for RDS.', 'type' => 'string', 'example' => 'MySQL', 'title' => ''], 'ReadOnlyInstances' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'ReadOnlyInstance' => [ - 'description' => 'Indicates information about the read-only instances of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database.'."\n", + 'description' => 'The list of read-only instances associated with the storage instance.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'ExpireTime' => [ - 'description' => 'Indicates the timestamp when the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database expires.'."\n", - 'type' => 'string', - 'example' => '123421352351234', - ], - 'PayType' => [ - 'description' => 'Indicates the billing method of the read-only instance.'."\n" - ."\n" - .'* **drdsPre**: The instance uses the subscription billing method.'."\n" - .'* **drdsPost**: The instance uses the pay-as-you-go billing method.'."\n", - 'type' => 'string', - 'example' => 'Postpaid', - ], - 'DBInstanceStatus' => [ - 'description' => 'Indicates the state of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. Valid values:'."\n" - ."\n" - .'* **0**: The ApsaraDB RDS for MySQL instance is being created.'."\n" - .'* **1**: The ApsaraDB RDS for MySQL instance is running.'."\n" - .'* **3**: The ApsaraDB RDS for MySQL instance is being deleted.'."\n" - .'* **5**: The ApsaraDB RDS for MySQL instance is being restarted.'."\n" - .'* **6**: The ApsaraDB RDS for MySQL instance is being upgraded or downgraded.'."\n" - .'* **7**: The ApsaraDB RDS for MySQL instance is being backed up.'."\n" - .'* **8**: The network type of the ApsaraDB RDS for MySQL instance is being changed.'."\n" - .'* **9**: The ApsaraDB RDS for MySQL instance is being migrated.'."\n" - .'* **11**: The data of the ApsaraDB RDS for MySQL instance is being migrated.'."\n" - .'* **12**: A disaster-recovery instance is being generated.'."\n" - .'* **13**: Data is being imported to the ApsaraDB RDS for MySQL instance.'."\n" - .'* **14**: Data is being imported to the ApsaraDB RDS for MySQL instance from an another ApsaraDB RDS for MySQL instance.'."\n" - .'* **15**: A failover is being performed.'."\n" - .'* **16**: A temporary instance is being created.'."\n" - .'* **17**: A network is being created for the ApsaraDB RDS for MySQL instance.'."\n" - .'* **18**: The ApsaraDB RDS for MySQL instance is being cloned.'."\n" - .'* **19**: The link is being changed.'."\n" - .'* **20**: The read-only instances of the ApsaraDB RDS for MySQL instance are being migrated.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'NetworkType' => [ - 'description' => 'Indicates the network type of the read-only instance.'."\n", - 'type' => 'string', - 'example' => 'VPC', - ], - 'Port' => [ - 'description' => 'Indicates the port that is used to connect to the read-only instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3306', - ], - 'EngineVersion' => [ - 'description' => 'Indicates the engine version of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database.'."\n", - 'type' => 'string', - 'example' => '5.7', - ], - 'DmInstanceId' => [ - 'description' => 'Indicates the ID of a resource.'."\n", - 'type' => 'string', - 'example' => 'dm-hbgau1zp****', - ], - 'ConnectUrl' => [ - 'description' => 'Indicates the endpoint that is used to connect to the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database.'."\n", - 'type' => 'string', - 'example' => 'rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com', - ], - 'ReadWeight' => [ - 'description' => 'Indicates the read weight of the read-only instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '70', - ], - 'RdsInstType' => [ - 'description' => 'Indicates the type of the read-only instance.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'InstanceName' => [ - 'description' => 'Indicates the name of a read-only instance.'."\n", - 'type' => 'string', - 'example' => '**', - ], - 'RemainDays' => [ - 'description' => 'Indicates the number of remaining days before the read-only instance expires.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'DbInstType' => [ - 'description' => 'Indicates the type of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. The value is set to RDS.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'Engine' => [ - 'description' => 'Indicates the engine of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database.'."\n", - 'type' => 'string', - 'example' => 'MySQL', - ], + 'ExpireTime' => ['description' => 'The expiration timestamp of the storage instance.', 'type' => 'string', 'example' => '123421352351234', 'title' => ''], + 'PayType' => ['description' => 'The billing method.', 'type' => 'string', 'example' => 'Postpaid', 'title' => ''], + 'DBInstanceStatus' => ['description' => 'The instance status.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'NetworkType' => ['description' => 'The network type of the instance.', 'type' => 'string', 'example' => 'VPC', 'title' => ''], + 'Port' => ['description' => 'The access port of the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '3306', 'title' => ''], + 'EngineVersion' => ['description' => 'The storage engine version of the instance.', 'type' => 'string', 'example' => '5.7', 'title' => ''], + 'DmInstanceId' => ['description' => 'The resource ID.', 'type' => 'string', 'example' => 'dm-hbgau1zp****', 'title' => ''], + 'ConnectUrl' => ['description' => 'The connection URL of the storage instance, which is the connection address returned by the corresponding storage service (such as RDS).', 'type' => 'string', 'example' => 'rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com', 'title' => ''], + 'ReadWeight' => ['description' => 'The read weight of the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '70', 'title' => ''], + 'RdsInstType' => ['description' => 'The instance type.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'InstanceName' => ['description' => 'A reserved field.', 'type' => 'string', 'example' => '**', 'title' => ''], + 'RemainDays' => ['description' => 'The number of remaining days before the instance expires.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'DbInstType' => ['description' => 'The storage instance type.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'Engine' => ['description' => 'The storage engine of the instance.', 'type' => 'string', 'example' => 'MySQL', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"PageSize\\": \\"10\\",\\n \\"PageNumber\\": \\"1\\",\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\",\\n \\"Total\\": \\"1\\",\\n \\"Success\\": true,\\n \\"DbInstances\\": {\\n \\"DbInstance\\": [\\n {\\n \\"ExpireTime\\": \\"1237486127634\\",\\n \\"PayType\\": \\"PostPaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"DmInstanceId\\": \\"dm-hbgau1zp****\\",\\n \\"ConnectUrl\\": \\"rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 30,\\n \\"RdsInstType\\": \\"Primary\\",\\n \\"RemainDays\\": 0,\\n \\"DBInstanceId\\": \\"rm-bp1t1mk5a5bdj****\\",\\n \\"DbInstType\\": \\"RDS\\",\\n \\"Engine\\": \\"MySQL\\",\\n \\"ReadOnlyInstances\\": {\\n \\"ReadOnlyInstance\\": [\\n {\\n \\"ExpireTime\\": \\"123421352351234\\",\\n \\"PayType\\": \\"Postpaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"DmInstanceId\\": \\"dm-hbgau1zp****\\",\\n \\"ConnectUrl\\": \\"rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 70,\\n \\"RdsInstType\\": \\"RDS\\",\\n \\"InstanceName\\": \\"**\\",\\n \\"RemainDays\\": 0,\\n \\"DbInstType\\": \\"RDS\\",\\n \\"Engine\\": \\"MySQL\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsDbInstancesResponse>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <RequestId>2F7F8080-9132-4279-85D0-B7E5C4305162</RequestId>\\n <Total>1</Total>\\n <Success>true</Success>\\n <DbInstances>\\n <ExpireTime>1237486127634</ExpireTime>\\n <PayType>PostPaid</PayType>\\n <DBInstanceStatus>1</DBInstanceStatus>\\n <NetworkType>VPC</NetworkType>\\n <Port>3306</Port>\\n <EngineVersion>5.7</EngineVersion>\\n <DmInstanceId>dm-hbgau1zp****</DmInstanceId>\\n <ConnectUrl>rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com</ConnectUrl>\\n <ReadWeight>30</ReadWeight>\\n <RdsInstType>Primary</RdsInstType>\\n <RemainDays>0</RemainDays>\\n <DBInstanceId>rm-bp1t1mk5a5bdj****</DBInstanceId>\\n <DbInstType>RDS</DbInstType>\\n <Engine>MySQL</Engine>\\n <ReadOnlyInstances>\\n <ExpireTime>123421352351234</ExpireTime>\\n <PayType>Postpaid</PayType>\\n <DBInstanceStatus>1</DBInstanceStatus>\\n <NetworkType>VPC</NetworkType>\\n <Port>3306</Port>\\n <EngineVersion>5.7</EngineVersion>\\n <DmInstanceId>dm-hbgau1zp****</DmInstanceId>\\n <ConnectUrl>rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com</ConnectUrl>\\n <ReadWeight>70</ReadWeight>\\n <RdsInstType>RDS</RdsInstType>\\n <InstanceName>**</InstanceName>\\n <RemainDays>0</RemainDays>\\n <DbInstType>RDS</DbInstType>\\n <Engine>MySQL</Engine>\\n </ReadOnlyInstances>\\n </DbInstances>\\n</DescribeDrdsDbInstancesResponse>","errorExample":""}]', - 'title' => 'DescribeDrdsDbInstances', - 'summary' => 'Queries ApsaraDB RDS for MySQL instances that are used to store the data of a database.', + 'title' => 'Query RDS instances of a database', + 'summary' => 'Queries the list of ApsaraDB RDS instances associated with a DRDS database.', + 'description' => 'Queries the list of primary ApsaraDB RDS instances associated with a DRDS database. The ReadOnlyInstances property of each primary RDS instance contains the list of read-only instances used by the current database.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsDbRdsNameList' => [ - 'summary' => 'Queries instances that are used to store the data of a database.', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDbInstances'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDbInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageSize\\": \\"10\\",\\n \\"PageNumber\\": \\"1\\",\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\",\\n \\"Total\\": \\"1\\",\\n \\"Success\\": true,\\n \\"DbInstances\\": {\\n \\"DbInstance\\": [\\n {\\n \\"ExpireTime\\": \\"1237486127634\\",\\n \\"PayType\\": \\"PostPaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"DmInstanceId\\": \\"dm-hbgau1zp****\\",\\n \\"ConnectUrl\\": \\"rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 30,\\n \\"RdsInstType\\": \\"Primary\\",\\n \\"RemainDays\\": 0,\\n \\"DBInstanceId\\": \\"rm-bp1t1mk5a5bdj****\\",\\n \\"DbInstType\\": \\"RDS\\",\\n \\"Engine\\": \\"MySQL\\",\\n \\"ReadOnlyInstances\\": {\\n \\"ReadOnlyInstance\\": [\\n {\\n \\"ExpireTime\\": \\"123421352351234\\",\\n \\"PayType\\": \\"Postpaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"DmInstanceId\\": \\"dm-hbgau1zp****\\",\\n \\"ConnectUrl\\": \\"rm-bp1t1mk5a5b******.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 70,\\n \\"RdsInstType\\": \\"RDS\\",\\n \\"InstanceName\\": \\"**\\",\\n \\"RemainDays\\": 0,\\n \\"DbInstType\\": \\"RDS\\",\\n \\"Engine\\": \\"MySQL\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeDrdsDbRdsNameList' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3924,40 +3027,23 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'default' => 'center', - ], + 'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true, 'default' => 'center', 'description' => '', 'title' => '', 'example' => ''], ], [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdsxxxxxxxxxxx', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdsxxxxxxxxxxx', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds_test', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'example' => 'drds_test', 'title' => ''], ], ], 'responses' => [ @@ -3965,119 +3051,91 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '7E6FA2BF-05F2-44DD-95C0-D1B5B8xxxxxx', - ], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7E6FA2BF-05F2-44DD-95C0-D1B5B8xxxxxx', 'title' => ''], 'InstanceNameList' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'InstanceName' => [ - 'description' => 'Indicates the instances that are used to store the data of a database.'."\n", 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'rm-bpxxxxxxxxxxxxxxx', - ], + 'items' => ['description' => 'The list of storage instance IDs.', 'type' => 'string', 'example' => 'rm-bpxxxxxxxxxxxxxxx', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"7E6FA2BF-05F2-44DD-95C0-D1B5B8xxxxxx\\",\\n \\"InstanceNameList\\": {\\n \\"InstanceName\\": [\\n \\"rm-bpxxxxxxxxxxxxxxx\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsDbRdsNameList>\\n\\t<RequestId>37537B38-A663-45CB-A81F-E3B202BB2415</RequestId>\\n\\t<InstanceNameList>\\n\\t\\t<InstanceName>rm-m5xxxxxxxxx82</InstanceName>\\n\\t</InstanceNameList>\\n\\t<Success>true</Success>\\n</DescribeDrdsDbRdsNameList>\\t","errorExample":""}]', - 'title' => 'DescribeDrdsDbRdsNameList', + 'title' => 'Query DRDS database storage instance list', + 'summary' => 'Queries the list of storage instances by calling the DescribeDrdsDbRdsNameList operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsShardingDbs' => [ - 'summary' => 'Queries the database shards of an PolarDB-X 1.0 instance.', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2025-09-09T09:17:04.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDbRdsNameList'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDbRdsNameList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"7E6FA2BF-05F2-44DD-95C0-D1B5B8xxxxxx\\",\\n \\"InstanceNameList\\": {\\n \\"InstanceName\\": [\\n \\"rm-bpxxxxxxxxxxxxxxx\\"\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeDrdsInstance' => [ + 'summary' => 'Queries the details of a DRDS instance.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'systemTags' => [ 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '76000', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance whose database shards you want to query.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdshbgaf3c63qbo', - ], - ], - [ - 'name' => 'DbName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database whose shards you want to query.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds_test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdshbga1138****', 'title' => ''], ], [ - 'name' => 'DbNamePattern', - 'in' => 'query', - 'schema' => [ - 'description' => 'The matching pattern of the database name.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => 'The page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'PageSize', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of database shards returned on each page.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -4085,202 +3143,186 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '509BDE17-505A-4B3B-854D-30D3F092502F', - ], - 'ShardingDbs' => [ + 'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B4F76641-BA45-4320-BE7C-9C62CFDAC9B2', 'title' => ''], + 'Data' => [ + 'description' => 'The instance details.', 'type' => 'object', - 'itemNode' => true, 'properties' => [ - 'ShardingDb' => [ - 'description' => 'The list of returned database shards.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'MinPoolSize' => [ - 'description' => 'The minimum size of the connection pool.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'MaxPoolSize' => [ - 'description' => 'The maximum size of the connection pool.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '60', - ], - 'DbInstanceId' => [ - 'description' => 'The ID of the Apsara RDS for MySQL instance that is used as the storage of the database shard.'."\n", - 'type' => 'string', - 'example' => 'rm-bp1hjzn0yv5j2****', - ], - 'ConnectUrl' => [ - 'description' => 'The URL that is used to access the Apsara RDS for MySQL instance.'."\n", - 'type' => 'string', - 'example' => '100.100.64.100:11569', - ], - 'GroupName' => [ - 'description' => 'The name of group on which the database shard is stored.'."\n", - 'type' => 'string', - 'example' => 'TEMP1_1568171495522SABE_KUP4_0000', - ], - 'DbType' => [ - 'description' => 'The engine of the database.'."\n", - 'type' => 'string', - 'example' => 'mysql', - ], - 'IdleTimeOut' => [ - 'description' => 'The timeout period of an idle connection.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'ShardingDbName' => [ - 'description' => 'The name of the database shard.'."\n", - 'type' => 'string', - 'example' => 'temp1_zhk1_0000', - ], - 'BlockingTimeout' => [ - 'description' => 'The timeout period for a transaction to wait for the release of the data lock.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5000', - ], - 'PreparedStatementCacheSize' => [ - 'description' => 'The size of cache for the returned results.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'ConnectionProperties' => [ - 'description' => 'The properties of the connection string.'."\n", - 'type' => 'string', - 'example' => 'connectTimeout=3000;autoReconnect=true;failOverReadOnly=false;socketTimeout=900000;rewriteBatchedStatements=true;characterEncoding=utf8', - ], - 'UserName' => [ - 'description' => 'The username that is used to connect to the ApsaraDB RDS for MySQL instance.'."\n", - 'type' => 'string', - 'example' => 'pg284mi8', - ], - 'DbStatus' => [ - 'description' => 'The status of the database.'."\n", - 'type' => 'string', - 'example' => 'running', + 'Type' => ['description' => 'The instance type. Valid values: PRIVATE (dedicated instance) and PUBLIC (shared instance).', 'type' => 'string', 'example' => 'PRIVATE', 'title' => ''], + 'Status' => ['description' => 'The instance status.', 'type' => 'string', 'example' => 'RUN', 'title' => ''], + 'CreateTime' => ['description' => 'The timestamp when the instance was created.', 'type' => 'integer', 'format' => 'int64', 'example' => '1568620311000', 'title' => ''], + 'VersionAction' => ['description' => 'The available action for the instance version.', 'type' => 'string', 'example' => 'Upgradeable', 'title' => ''], + 'StorageType' => ['description' => 'The storage type of the instance.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'NetworkType' => ['description' => 'The network type. Valid values: CLASSIC (classic network) and VPC (VPC network).', 'type' => 'string', 'example' => 'CLASSIC', 'title' => ''], + 'Label' => ['description' => 'The instance label. Valid values:'."\n" + ."\n" + .'- **NORMAL**: standard instance.'."\n" + ."\n" + .'- **HA**: high-availability instance.'."\n" + ."\n" + .'- **VPC**: VPC instance.', 'type' => 'string', 'example' => 'NORMAL', 'title' => ''], + 'MysqlVersion' => ['description' => 'The MySQL version supported by the instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'InstanceSpec' => ['description' => 'The instance specification.', 'type' => 'string', 'example' => 'drds.sn2.4c16g.8C32G', 'title' => ''], + 'VpcCloudInstanceId' => ['description' => 'The instance ID in the VPC cluster.', 'type' => 'string', 'example' => 'drdssen12****', 'title' => ''], + 'Description' => ['description' => 'The instance description.', 'type' => 'string', 'example' => 'drds_test', 'title' => ''], + 'Version' => ['description' => 'The instance version. The value is empty.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'ExpireDate' => ['description' => 'The timestamp when the instance expires.', 'type' => 'integer', 'format' => 'int64', 'example' => '4724323200000', 'title' => ''], + 'MasterInstanceId' => ['description' => 'The primary instance ID.'."\n" + ."\n" + .'> This parameter is returned only when the instance is a read-only instance.', 'type' => 'string', 'example' => 'drdssen1243as', 'title' => ''], + 'CommodityCode' => ['description' => 'The commodity code.', 'type' => 'string', 'example' => 'drdsPost', 'title' => ''], + 'MachineType' => ['description' => 'The machine type of the instance. The value is fixed as **ecs**.', 'type' => 'string', 'example' => 'ecs', 'title' => ''], + 'InstanceSeries' => ['description' => 'The instance specification series.', 'type' => 'string', 'example' => 'drds.sn2.4c16g', 'title' => ''], + 'ProductVersion' => ['description' => 'The product version.', 'type' => 'string', 'example' => '5.3.*', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + 'ResourceGroupId' => ['description' => 'The resource group ID. The value can be empty.', 'type' => 'string', 'example' => 'NULL', 'title' => ''], + 'DrdsInstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'drdssen1243as', 'title' => ''], + 'ZoneId' => ['description' => 'The zone ID.', 'type' => 'string', 'example' => 'cn-hangzhou-e', 'title' => ''], + 'InstRole' => ['description' => 'The instance role. Valid values:'."\n" + ."\n" + .'- MASTER: primary instance.'."\n" + .'- SLAVE: analytical read-only instance.'."\n" + .'- SLAVE_FLOW: concurrent read-only instance.', 'type' => 'string', 'example' => 'MASTER', 'title' => ''], + 'OrderInstanceId' => ['description' => 'The ID of the purchased instance.', 'type' => 'string', 'example' => 'drdssen12****', 'title' => ''], + 'Vips' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Vip' => [ + 'description' => 'The VIP list.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Type' => ['description' => 'The VIP type. Valid values: intranet (internal network) and internet (public network).', 'type' => 'string', 'example' => 'intranet', 'title' => ''], + 'VpcId' => ['description' => 'The VPC ID.', 'type' => 'string', 'example' => 'vpc-bp**********', 'title' => ''], + 'VswitchId' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'example' => 'vsw-bp***********', 'title' => ''], + 'Dns' => ['description' => 'The domain name bound to the VIP.', 'type' => 'string', 'example' => 'drdssen1243as.drds.aliyuncs.com', 'title' => ''], + 'Port' => ['description' => 'The port opened by the VIP.', 'type' => 'string', 'example' => '3306', 'title' => ''], + 'ExpireDays' => ['description' => 'The remaining days before the VIP expires.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'RemoveWeight' => ['type' => 'boolean', 'required' => false, 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'ReadOnlyDBInstanceIds' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'ReadOnlyDBInstanceId' => [ + 'description' => 'The list of read-only instance IDs.', + 'type' => 'array', + 'items' => ['description' => 'The list of read-only instance IDs.', 'type' => 'string', 'example' => 'drdssen12****', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - ], - 'PageNumber' => [ - 'description' => 'The page number of the returned page.', - 'type' => 'string', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => 'The number of database shards returned per page.'."\n", - 'type' => 'string', - 'example' => '20', - ], - 'Total' => [ - 'description' => 'The number of returned database shards.'."\n", - 'type' => 'string', - 'example' => '1', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'ServiceUnable', - 'errorMessage' => 'The service is not available now, please try again later', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'The specified parameter does not match.', - ], - [ - 'errorCode' => 'InvalidDbname.MalFormed', - 'errorMessage' => 'The specified db name does not match.', - ], - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], + ['errorCode' => 'DrdsInstance.NotExists', 'errorMessage' => 'The DRDS instance does not exist.', 'description' => 'The DRDS instance does not exist.'], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ], + 'title' => 'Query DRDS instance details', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2025-06-10T03:11:23.000Z', 'description' => 'Error codes changed'], + ['createdAt' => '2025-02-26T03:00:36.000Z', 'description' => 'Response parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstance'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"509BDE17-505A-4B3B-854D-30D3F092502F\\",\\n \\"ShardingDbs\\": {\\n \\"ShardingDb\\": [\\n {\\n \\"MinPoolSize\\": 5,\\n \\"MaxPoolSize\\": 60,\\n \\"DbInstanceId\\": \\"rm-bp1hjzn0yv5j2****\\",\\n \\"ConnectUrl\\": \\"100.100.64.100:11569\\",\\n \\"GroupName\\": \\"TEMP1_1568171495522SABE_KUP4_0000\\",\\n \\"DbType\\": \\"mysql\\",\\n \\"IdleTimeOut\\": 30,\\n \\"ShardingDbName\\": \\"temp1_zhk1_0000\\",\\n \\"BlockingTimeout\\": 5000,\\n \\"PreparedStatementCacheSize\\": 0,\\n \\"ConnectionProperties\\": \\"connectTimeout=3000;autoReconnect=true;failOverReadOnly=false;socketTimeout=900000;rewriteBatchedStatements=true;characterEncoding=utf8\\",\\n \\"UserName\\": \\"pg284mi8\\",\\n \\"DbStatus\\": \\"running\\"\\n }\\n ]\\n },\\n \\"PageNumber\\": \\"1\\",\\n \\"PageSize\\": \\"20\\",\\n \\"Total\\": \\"1\\"\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsShardingDbsResponse>\\n <Success>true</Success>\\n <RequestId>509BDE17-505A-4B3B-854D-30D3F092502F</RequestId>\\n <ShardingDbs>\\n <MinPoolSize>5</MinPoolSize>\\n <MaxPoolSize>60</MaxPoolSize>\\n <DbInstanceId>rm-bp1hjzn0yv5j2****</DbInstanceId>\\n <ConnectUrl>100.100.64.100:11569</ConnectUrl>\\n <GroupName>TEMP1_1568171495522SABE_KUP4_0000</GroupName>\\n <DbType>mysql</DbType>\\n <IdleTimeOut>30</IdleTimeOut>\\n <ShardingDbName>temp1_zhk1_0000</ShardingDbName>\\n <BlockingTimeout>5000</BlockingTimeout>\\n <PreparedStatementCacheSize>0</PreparedStatementCacheSize>\\n <ConnectionProperties>connectTimeout=3000;autoReconnect=true;failOverReadOnly=false;socketTimeout=900000;rewriteBatchedStatements=true;characterEncoding=utf8</ConnectionProperties>\\n <UserName>pg284mi8</UserName>\\n <DbStatus>running</DbStatus>\\n </ShardingDbs>\\n <PageNumber>1</PageNumber>\\n <PageSize>20</PageSize>\\n <Total>1</Total>\\n</DescribeDrdsShardingDbsResponse>","errorExample":""}]', - 'title' => ' DescribeDrdsShardingDbs', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B4F76641-BA45-4320-BE7C-9C62CFDAC9B2\\",\\n \\"Data\\": {\\n \\"Type\\": \\"PRIVATE\\",\\n \\"Status\\": \\"RUN\\",\\n \\"CreateTime\\": 1568620311000,\\n \\"VersionAction\\": \\"Upgradeable\\",\\n \\"StorageType\\": \\"RDS\\",\\n \\"NetworkType\\": \\"CLASSIC\\",\\n \\"Label\\": \\"NORMAL\\",\\n \\"MysqlVersion\\": 5,\\n \\"InstanceSpec\\": \\"drds.sn2.4c16g.8C32G\\",\\n \\"VpcCloudInstanceId\\": \\"drdssen12****\\",\\n \\"Description\\": \\"drds_test\\",\\n \\"Version\\": 0,\\n \\"ExpireDate\\": 4724323200000,\\n \\"MasterInstanceId\\": \\"drdssen1243as\\",\\n \\"CommodityCode\\": \\"drdsPost\\",\\n \\"MachineType\\": \\"ecs\\",\\n \\"InstanceSeries\\": \\"drds.sn2.4c16g\\",\\n \\"ProductVersion\\": \\"5.3.*\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ResourceGroupId\\": \\"NULL\\",\\n \\"DrdsInstanceId\\": \\"drdssen1243as\\",\\n \\"ZoneId\\": \\"cn-hangzhou-e\\",\\n \\"InstRole\\": \\"MASTER\\",\\n \\"OrderInstanceId\\": \\"drdssen12****\\",\\n \\"Vips\\": {\\n \\"Vip\\": [\\n {\\n \\"Type\\": \\"intranet\\",\\n \\"VpcId\\": \\"vpc-bp**********\\",\\n \\"VswitchId\\": \\"vsw-bp***********\\",\\n \\"Dns\\": \\"drdssen1243as.drds.aliyuncs.com\\",\\n \\"Port\\": \\"3306\\",\\n \\"ExpireDays\\": 0,\\n \\"RemoveWeight\\": false\\n }\\n ]\\n },\\n \\"ReadOnlyDBInstanceIds\\": {\\n \\"ReadOnlyDBInstanceId\\": [\\n \\"drdssen12****\\"\\n ]\\n }\\n }\\n}","type":"json"}]', ], - 'CheckDrdsDbName' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeDrdsInstanceDbMonitor' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [], + 'operationType' => 'read', + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'DRDS instance ID'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds********', - ], + 'schema' => ['description' => '<props="china">Instance ID of the PolarDB-X instance.</props>'."\n" + ."\n" + .'<props="intl">Instance ID of the DRDS instance.</props>.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'DRDS database name'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds_test', - ], + 'schema' => ['description' => 'The name of the database.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds_test', 'title' => ''], + ], + [ + 'name' => 'Key', + 'in' => 'query', + 'schema' => ['description' => 'The performance monitoring metrics. You can specify multiple metrics in a single request. Separate multiple metrics with commas (,).'."\n" + .'>For more information about performance monitoring metrics, see [Database monitoring](~~186704~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'qps', 'title' => ''], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time. Specify a UNIX timestamp in UTC. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1603162800000', 'title' => ''], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time. Specify a UNIX timestamp in UTC. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1603166400000', 'title' => ''], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -4288,103 +3330,232 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'CF38538C-68BD-4278-B58F-EDE96F******', - ], - 'Result' => [ - 'description' => 'Indicates whether the DRDS database name is valid. Valid values: true: The database name is valid. false: the database name is invalid.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Success' => [ - 'description' => 'Indicates whether the call is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2F7F8080-9132-4279-85D0-B7E5C4******', 'title' => ''], + 'Data' => [ + 'description' => 'The list of monitoring data.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The name of the monitoring metrics.', 'type' => 'string', 'example' => 'qps', 'title' => ''], + 'Unit' => ['description' => 'The unit of the monitoring metrics.', 'type' => 'string', 'example' => 'qps', 'title' => ''], + 'Values' => [ + 'description' => 'The details of the monitoring data values.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Date' => ['description' => 'The point in time when the monitoring data value was collected. The value is a UNIX timestamp. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1603162805000', 'title' => ''], + 'Value' => ['description' => 'The data value.', 'type' => 'string', 'example' => '0', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidDbName.Empty', - 'errorMessage' => 'DbName can not be empty', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'Invalid parameter of key', 'description' => ''], + ['errorCode' => 'InvalidParameter.time', 'errorMessage' => 'The startTime and endTime must in one week', 'description' => ''], ], 404 => [ - [ - 'errorCode' => 'InvalidDbName.Keyword', - 'errorMessage' => 'Current DbName is the keyword', - ], - [ - 'errorCode' => 'InvalidDbName.DuplicatedInPublic', - 'errorMessage' => 'Current DbName is duplicated in public instance', - ], - [ - 'errorCode' => 'InvalidDbName.Duplicated', - 'errorMessage' => 'Current DbName provided has already existed in our records.', - ], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The DrdsInstanceId or DbName provided does not exist in our records.', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CF38538C-68BD-4278-B58F-EDE96F******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Result>true</Result>\\n<RequestId>CF38538C-68BD-4278-B58F-EDE96F******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'CheckDrdsDbName', - 'summary' => 'Checks whether the name of the CheckDrdsDbName database is valid.', + 'title' => 'Query performance monitoring data of a database', + 'summary' => 'Calls the DescribeDrdsInstanceDbMonitor operation to query performance monitoring data of a database.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstanceDbMonitor'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstanceDbMonitor', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4******\\",\\n \\"Data\\": [\\n {\\n \\"Key\\": \\"qps\\",\\n \\"Unit\\": \\"qps\\",\\n \\"Values\\": [\\n {\\n \\"Date\\": 1603162805000,\\n \\"Value\\": \\"0\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', ], - 'RemoveDrdsDbFailedRecord' => [ - 'methods' => [ - 'post', - 'get', + 'DescribeDrdsInstanceLevelTasks' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ + [ + 'name' => 'DrdsInstanceId', + 'in' => 'query', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdssen12****', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', 'title' => ''], + 'Tasks' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Task' => [ + 'description' => 'The list of incomplete tasks.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TaskType' => ['description' => 'The task type.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''], + 'TaskPhase' => ['description' => 'The task phase.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'Progress' => ['description' => 'The task progress. Valid values: 0 to 100.', 'type' => 'integer', 'format' => 'int32', 'example' => '99', 'title' => ''], + 'AllowCancel' => ['description' => 'Indicates whether the task can be canceled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'TaskStatus' => ['description' => 'The task status. Valid values:'."\n" + .'- 0: running.'."\n" + .'- 1: succeeded.'."\n" + .'- 2: failed.'."\n" + .'- 3: canceled.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'ShowProgress' => ['description' => 'Indicates whether the progress is displayed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TaskName' => ['description' => 'The task name.', 'type' => 'string', 'example' => 'upgrade_instance', 'title' => ''], + 'ProgressDescription' => ['description' => 'The progress description.', 'type' => 'string', 'example' => '正在执行', 'title' => ''], + 'GmtCreate' => ['description' => 'The timestamp when the task was created.', 'type' => 'integer', 'format' => 'int64', 'example' => '1568705520000', 'title' => ''], + 'TargetId' => ['description' => 'The task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '12312', 'title' => ''], + 'ErrMsg' => ['description' => 'The error message of the task.', 'type' => 'string', 'example' => '实例状态异常', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Query incomplete tasks of a DRDS instance', + 'summary' => 'Queries incomplete tasks in a DRDS instance by calling the DescribeDrdsInstanceLevelTasks operation.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstanceLevelTasks'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstanceLevelTasks', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\",\\n \\"Tasks\\": {\\n \\"Task\\": [\\n {\\n \\"TaskType\\": 11,\\n \\"TaskPhase\\": \\"1\\",\\n \\"Progress\\": 99,\\n \\"AllowCancel\\": false,\\n \\"TaskStatus\\": 0,\\n \\"ShowProgress\\": true,\\n \\"TaskName\\": \\"upgrade_instance\\",\\n \\"ProgressDescription\\": \\"正在执行\\",\\n \\"GmtCreate\\": 1568705520000,\\n \\"TargetId\\": 12312,\\n \\"ErrMsg\\": \\"实例状态异常\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeDrdsInstanceMonitor' => [ + 'summary' => 'Invokes the DescribeDrdsInstanceMonitor operation to query the details of instance monitoring data.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76107', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREdrdsD0NTUP'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the ApsaraDB RDS for PostgreSQL instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*********', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'Key', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the DRDS database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The performance monitoring metrics. You can specify multiple metrics in a single request. Separate multiple metrics with commas (,).'."\n" + .'> For more information about performance monitoring metrics, see [Instance monitoring](~~186703~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cpu', 'title' => ''], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time of the query. Specify a UNIX timestamp in UTC. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1603123290000', 'title' => ''], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time of the query. Specify a UNIX timestamp in UTC. Unit: milliseconds.'."\n" + ."\n" + .'> If the query time range is less than 1 hour, the data within 1 hour before the end time is returned.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1603209690000', 'title' => ''], + ], + [ + 'name' => 'PeriodMultiple', + 'in' => 'query', + 'schema' => ['description' => 'The multiplier for the monitoring data collection period. For example, the default data collection period for each resource monitoring metric is 1 minute. If you set the period multiplier to 2, the data collection period for the current resource monitoring metric is 2 minutes.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -4392,81 +3563,109 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'D98BC610-5A91-453A-BC44-5873EF******', - ], - 'Result' => [ - 'description' => 'Indicates whether the database creation failure records were deleted from the DRDS instance.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2F7F8080-9132-4279-85D0-B7E5C4', 'title' => ''], + 'Data' => [ + 'description' => 'The query result set.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The name of the monitoring metrics.', 'type' => 'string', 'example' => 'cpu', 'title' => ''], + 'Unit' => ['description' => 'The unit of the monitoring metrics.', 'type' => 'string', 'example' => '%', 'title' => ''], + 'NodeNum' => ['description' => 'The number of nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Values' => [ + 'description' => 'The details of the monitoring metrics data.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Date' => ['description' => 'The point in time when the monitoring metrics value was collected. The value is in the format of a UNIX timestamp in UTC. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1603163400000', 'title' => ''], + 'Value' => ['description' => 'The value of the monitoring metrics.', 'type' => 'string', 'example' => '1.40', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidDbName.Empty', - 'errorMessage' => 'DbName can not be empty', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'Invalid parameter of key', 'description' => ''], + ['errorCode' => 'InvalidParameter.time', 'errorMessage' => 'The startTime and endTime must in one week', 'description' => ''], + ['errorCode' => 'InvalidParameter.periodMultiple', 'errorMessage' => 'The periodMultiple is too larger than the time between startTime and endTime', 'description' => ''], + ['errorCode' => 'DrdsInstance.NotExists', 'errorMessage' => 'The drds instance does not exist.', 'description' => ''], + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'invalid parameter.', 'description' => 'Parameter exception'], + ], + 404 => [ + ['errorCode' => 'Monitor.QueryRdsFailure', 'errorMessage' => 'Failed to query RDS monitor info.', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D98BC610-5A91-453A-BC44-5873EF******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D98BC610-5A91-453A-BC44-5873EF******</RequestId>\\n<Success>true</Success>\\n<Result>true</Result>","errorExample":""}]', - 'title' => 'RemoveDrdsDbFailedRecord', - 'summary' => 'You can call this operation to delete the RemoveDrdsDbFailedRecord that failed to be created.', + 'title' => 'Query instance monitoring data', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'RemoveDrdsDb' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2025-04-24T03:47:11.000Z', 'description' => 'Error codes changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstanceMonitor'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstanceMonitor', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4\\",\\n \\"Data\\": [\\n {\\n \\"Key\\": \\"cpu\\",\\n \\"Unit\\": \\"%\\",\\n \\"NodeNum\\": 1,\\n \\"Values\\": [\\n {\\n \\"Date\\": 1603163400000,\\n \\"Value\\": \\"1.40\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', + ], + 'DescribeDrdsInstanceVersion' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance to which the destination database belongs.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdshbga1138****', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database you want to back up.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -4474,91 +3673,166 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'B12FC174-D5CE-4A6E-83C1-0F8F86******', + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', 'title' => ''], + 'Data' => [ + 'description' => 'The instance version details.', + 'type' => 'object', + 'properties' => [ + 'NewestVersion' => ['description' => 'The latest instance version.', 'type' => 'string', 'example' => '5.4.12-16315258', 'title' => ''], + 'InstanceVersion' => ['description' => 'The current instance version.', 'type' => 'string', 'example' => '5.3.12-15682777', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ], + 404 => [ + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B12FC174-D5CE-4A6E-83C1-0F8F86******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>B12FC174-D5CE-4A6E-83C1-0F8F86******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'RemoveDrdsDb', - 'summary' => 'Deletes a DRDS database.', + 'title' => 'View instance version', + 'summary' => 'Queries the version of a DRDS instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ModifyRdsReadWeight' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstanceVersion'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstanceVersion', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\",\\n \\"Data\\": {\\n \\"NewestVersion\\": \\"5.4.12-16315258\\",\\n \\"InstanceVersion\\": \\"5.3.12-15682777\\"\\n }\\n}","type":"json"}]', + ], + 'DescribeDrdsInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '76004', + 'abilityTreeNodes' => ['FEATUREdrdsQ69M1H'], ], 'parameters' => [ [ - 'name' => 'DrdsInstanceId', + 'name' => 'Type', 'in' => 'query', 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", + 'description' => 'The instance type. Valid values:'."\n" + .'- **0**: shared instance'."\n" + .'- **1**: dedicated instance.', 'type' => 'string', - 'required' => true, - 'example' => 'drds************', + 'enum' => ['PRIVATE', 'PUBLIC', '1', '0'], + 'required' => false, + 'example' => '1', + 'title' => '', ], ], [ - 'name' => 'DbName', + 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The description of the instance.', 'type' => 'string', 'required' => false, 'example' => 'drds_test', 'title' => ''], ], [ - 'name' => 'InstanceNames', + 'name' => 'Expired', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether the instance has expired.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'default' => '1', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'default' => '20', 'required' => false, 'example' => '20', 'title' => ''], + ], + [ + 'name' => 'ResourceGroupId', + 'in' => 'query', + 'schema' => ['description' => 'The resource group ID. This parameter can be left empty.', 'type' => 'string', 'required' => false, 'example' => 'NULL', 'title' => ''], + ], + [ + 'name' => 'RegionId', 'in' => 'query', 'schema' => [ - 'description' => 'The names of the ApsaraDB RDS for MySQL instances. Separate the names with commas (,).'."\n", + 'description' => 'The region ID.', 'type' => 'string', 'required' => true, - 'example' => 'rm-****************,rm-****************', + 'enum' => [ + 'cn-shenzhen', 'cn-beijing', 'cn-shenzhen-finance-1', 'cn-north-2-gov-1', 'cn-qingdao', 'cn-shanghai', 'cn-shanghai-finance-1', 'cn-hongkong', 'cn-hangzhou-finance', 'ap-southeast-1', 'cn-huhehaote', 'us-east-1', 'cn-zhangjiakou', 'cn-hangzhou', 'us-west-1', 'cn-wulanchabu', 'eu-central-1', 'ap-southeast-5', 'cn-zhengzhou-jva', 'ap-northeast-1', + 'cn-shanghai-cloudspe', 'ap-southeast-6', 'ap-southeast-7', + ], + 'example' => 'cn-hangzhou', + 'title' => '', ], ], [ - 'name' => 'Weights', + 'name' => 'Mix', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether hybrid queries are supported.', 'type' => 'boolean', 'required' => false, 'example' => 'FALSE', 'title' => ''], + ], + [ + 'name' => 'ProductVersion', 'in' => 'query', + 'schema' => ['description' => 'The Edition version number. Valid values: V1 and V2.', 'type' => 'string', 'required' => false, 'example' => 'V1', 'title' => ''], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The weights of the ApsaraDB RDS for MySQL instances. Separate the weights with commas (,).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '14,86', + 'description' => 'The list of tag properties.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The key of the tag.', 'type' => 'string', 'required' => false, 'example' => 'acs:newretail:domain', 'title' => ''], + 'Value' => ['description' => 'The value of the tag.', 'type' => 'string', 'required' => false, 'example' => 'NEW_RETAIL', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 50, + 'title' => '', + 'example' => '', ], ], ], @@ -4567,106 +3841,208 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => 'B12FC174-D5CE-4A6E-83C1-0F8F86******', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '8734773E-7B21-4A22-9106-CBD245F8****', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + 'Total' => ['description' => 'The total number of instances.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Instances' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Instance' => [ + 'description' => 'The list of instances.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['description' => 'The virtual private network ID.', 'type' => 'string', 'example' => 'vpc-bp**********', 'title' => ''], + 'Status' => ['description' => 'The instance status.', 'type' => 'string', 'example' => 'RUN', 'title' => ''], + 'Type' => ['description' => 'The instance type. Valid values:'."\n" + .'- **PUBLIC**: shared instance'."\n" + .'- **PRIVATE**: dedicated instance.', 'type' => 'string', 'example' => 'PRIVATE', 'title' => ''], + 'CommodityCode' => ['description' => 'The commodity code.', 'type' => 'string', 'example' => 'drdsPost', 'title' => ''], + 'MachineType' => ['description' => 'The machine type of the instance. Only ecs is supported.', 'type' => 'string', 'example' => 'ecs', 'title' => ''], + 'CreateTime' => ['description' => 'The creation timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1568620311000', 'title' => ''], + 'VersionAction' => ['description' => 'The available actions for the instance version.', 'type' => 'string', 'example' => 'Upgradable', 'title' => ''], + 'InstanceSeries' => ['description' => 'The instance specification series.', 'type' => 'string', 'example' => 'drds.sn2.4c16g', 'title' => ''], + 'NetworkType' => ['description' => 'The network type. Valid values:'."\n" + .'- **CLASSIC**: classic network'."\n" + .'- **VPC**: VPC.', 'type' => 'string', 'example' => 'CLASSIC', 'title' => ''], + 'Label' => ['description' => 'The instance label. Valid values:'."\n" + ."\n" + .'- **NORMAL**: active instance'."\n" + ."\n" + .'- **HA**: high availability (HA) instance'."\n" + ."\n" + .'- **VPC**: VPC-connected instance.', 'type' => 'string', 'example' => 'NORMAL', 'title' => ''], + 'ProductVersion' => ['description' => 'The Edition version number.', 'type' => 'string', 'example' => 'V1', 'title' => ''], + 'InstanceSpec' => ['description' => 'The instance specifications.', 'type' => 'string', 'example' => 'drds.sn2.4c16g.8C32G', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou-e', 'title' => ''], + 'VpcCloudInstanceId' => ['description' => 'The instance ID in the VPC cluster.', 'type' => 'string', 'example' => 'drdssen12****', 'title' => ''], + 'Description' => ['description' => 'The instance description.', 'type' => 'string', 'example' => 'drds_test', 'title' => ''], + 'Version' => ['description' => 'The instance version.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'ResourceGroupId' => ['description' => 'The resource group ID.', 'type' => 'string', 'example' => 'rg-aek2ljh3ye4****', 'title' => ''], + 'ZoneId' => ['description' => 'The zone ID.', 'type' => 'string', 'example' => 'vsw-bpxxxxxxxxxxxxx96', 'title' => ''], + 'DrdsInstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'drdssen12****', 'title' => ''], + 'ExpireDate' => ['description' => 'The expiration timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '4724323200000', 'title' => ''], + 'MasterInstanceId' => ['description' => 'The primary instance ID.', 'type' => 'string', 'example' => 'drdssen12****', 'title' => ''], + 'OrderInstanceId' => ['description' => 'The purchased instance ID.', 'type' => 'string', 'example' => 'drdssen12****', 'title' => ''], + 'InstRole' => ['description' => 'The instance role. Valid values:'."\n" + .'- **MASTER**: primary instance'."\n" + .'- **SLAVE**: analytical read-only instance'."\n" + .'- **SLAVE_FLOW**: concurrent read-only instance.', 'type' => 'string', 'example' => 'MASTER', 'title' => ''], + 'Vips' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Vip' => [ + 'description' => 'The list of VIPs.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['description' => 'The virtual private network ID.', 'type' => 'string', 'example' => 'vpc-bpxxxxxxxxxxxy', 'title' => ''], + 'Type' => ['description' => 'The VIP type. Valid values:'."\n" + .'- **intranet**: internal network'."\n" + .'- **internet**: Internet.', 'type' => 'string', 'example' => 'intranet', 'title' => ''], + 'VswitchId' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'example' => 'vsw-bpxxxxxxxxxxxxx96', 'title' => ''], + 'Port' => ['description' => 'The open port of the VIP.', 'type' => 'string', 'example' => '3306', 'title' => ''], + 'IP' => ['description' => 'The IP address.', 'type' => 'string', 'example' => '10.23.***.***', 'title' => ''], + 'dns' => ['description' => 'The domain name bound to the VIP.', 'type' => 'string', 'example' => 'drdssen1243as.drds.aliyuncs.com', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'ReadOnlyDBInstanceIds' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'ReadOnlyDBInstanceId' => [ + 'type' => 'array', + 'items' => ['description' => 'The list of read-only instance IDs.', 'type' => 'string', 'example' => 'drdssen12****', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'series' => ['description' => 'The instance edition. Valid values:'."\n" + ."\n" + .'- **starter**: Starter Edition'."\n" + .'- **enterprise**: Enterprise Edition'."\n" + .'- **standard**: Standard Edition.', 'type' => 'string', 'example' => 'enterprise', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter.InvalidDbName', - 'errorMessage' => 'The dbName does not exist in this drds instance', - ], - [ - 'errorCode' => 'InvalidParameter.ReadWeighAndRdsNotMapping', - 'errorMessage' => 'The parameter read weight and rds instance not mapping', - ], - [ - 'errorCode' => 'InvalidParameter.InvalidReadWeight', - 'errorMessage' => 'The parameter read weight is invalid', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later', 'description' => ''], + ['errorCode' => 'InvalidRegionId.NotFound', 'errorMessage' => 'The RegionId provided does not exist in our records.', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B12FC174-D5CE-4A6E-83C1-0F8F86******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>B12FC174-D5CE-4A6E-83C1-0F8F86******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'ModifyRdsReadWeight', - 'summary' => 'Modifies the weights of ApsaraDB RDS for MySQL instances. PolarDB-X distributes read and write requests to ApsaraDB RDS for MySQL instances based on the assigned weights.', + 'title' => 'Query DRDS instances', + 'summary' => 'Queries a list of DRDS instances by calling the DescribeDrdsInstances operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeRdsPerformanceSummary' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2025-11-24T17:16:12.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-12-25T02:26:57.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-12-24T13:37:06.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-04-10T08:05:27.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-04-10T07:51:08.000Z', 'description' => 'Request parameters changed, Response parameters changed'], + ['createdAt' => '2024-03-21T01:44:39.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2022-08-17T08:11:20.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2021-12-11T09:16:30.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstances'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8734773E-7B21-4A22-9106-CBD245F8****\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"Total\\": 1,\\n \\"Instances\\": {\\n \\"Instance\\": [\\n {\\n \\"VpcId\\": \\"vpc-bp**********\\",\\n \\"Status\\": \\"RUN\\",\\n \\"Type\\": \\"PRIVATE\\",\\n \\"CommodityCode\\": \\"drdsPost\\",\\n \\"MachineType\\": \\"ecs\\",\\n \\"CreateTime\\": 1568620311000,\\n \\"VersionAction\\": \\"Upgradable\\",\\n \\"InstanceSeries\\": \\"drds.sn2.4c16g\\",\\n \\"NetworkType\\": \\"CLASSIC\\",\\n \\"Label\\": \\"NORMAL\\",\\n \\"ProductVersion\\": \\"V1\\",\\n \\"InstanceSpec\\": \\"drds.sn2.4c16g.8C32G\\",\\n \\"RegionId\\": \\"cn-hangzhou-e\\",\\n \\"VpcCloudInstanceId\\": \\"drdssen12****\\",\\n \\"Description\\": \\"drds_test\\",\\n \\"Version\\": 0,\\n \\"ResourceGroupId\\": \\"rg-aek2ljh3ye4****\\",\\n \\"ZoneId\\": \\"vsw-bpxxxxxxxxxxxxx96\\",\\n \\"DrdsInstanceId\\": \\"drdssen12****\\",\\n \\"ExpireDate\\": 4724323200000,\\n \\"MasterInstanceId\\": \\"drdssen12****\\",\\n \\"OrderInstanceId\\": \\"drdssen12****\\",\\n \\"InstRole\\": \\"MASTER\\",\\n \\"Vips\\": {\\n \\"Vip\\": [\\n {\\n \\"VpcId\\": \\"vpc-bpxxxxxxxxxxxy\\",\\n \\"Type\\": \\"intranet\\",\\n \\"VswitchId\\": \\"vsw-bpxxxxxxxxxxxxx96\\",\\n \\"Port\\": \\"3306\\",\\n \\"IP\\": \\"10.23.***.***\\",\\n \\"dns\\": \\"drdssen1243as.drds.aliyuncs.com\\"\\n }\\n ]\\n },\\n \\"ReadOnlyDBInstanceIds\\": {\\n \\"ReadOnlyDBInstanceId\\": [\\n \\"drdssen12****\\"\\n ]\\n },\\n \\"series\\": \\"enterprise\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeDrdsParams' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', + 'abilityTreeCode' => '76006', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the streaming domain resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of a DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DescribeDrdsParams', 'title' => ''], ], [ - 'name' => 'RdsInstanceId', + 'name' => 'ParamLevel', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'string', - 'description' => 'The list of ApsaraDB RDS for MySQL instances.'."\n", - ], - 'required' => true, - 'example' => 'rm-*****************', - 'maxItems' => 100, - ], + 'schema' => ['description' => 'The parameter level. Valid values:'."\n" + .'* **INSTANCE**: instance level'."\n" + .'* **DB**: database level.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'INSTANCE', 'title' => ''], + ], + [ + 'name' => 'DbName', + 'in' => 'query', + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => false, 'example' => 'drds_test', 'title' => ''], ], ], 'responses' => [ @@ -4674,139 +4050,92 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the API request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => 'B6876277-ECFD-4658-AC1E-A7FAD8******', - ], - 'RdsPerformanceInfos' => [ - 'description' => 'A collection of objects.'."\n", + 'Success' => ['description' => 'Indicates whether the query was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', 'title' => ''], + 'List' => [ + 'description' => 'The parameter list.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Cpu' => [ - 'description' => 'The CPU utilization of an RDS instance.'."\n", - 'type' => 'number', - 'format' => 'float', - 'example' => '0.26', - ], - 'ActiveSessions' => [ - 'description' => 'The number of active sessions of the RDS instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'TotalSessions' => [ - 'description' => 'The total number of current RDS sessions.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '162', - ], - 'RdsId' => [ - 'description' => 'The ID of an RDS instance.'."\n", - 'type' => 'string', - 'example' => 'rm-**************', - ], - 'Iops' => [ - 'description' => 'The IOPS of the RDS instance.'."\n", - 'type' => 'number', - 'format' => 'float', - 'example' => '17.62', - ], - 'SpaceUsage' => [ - 'description' => 'The disk usage of apsaradb for RDS. Unit: MB.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4145144777', - ], + 'ParamDefaultValue' => ['description' => 'The default value of the parameter.', 'type' => 'string', 'example' => '1000', 'title' => ''], + 'ParamLevel' => ['description' => 'The parameter level.', 'type' => 'string', 'example' => 'INSTANCE', 'title' => ''], + 'ParamName' => ['description' => 'The parameter name.', 'type' => 'string', 'example' => '慢SQL阈值', 'title' => ''], + 'ParamType' => ['description' => 'The parameter type.', 'type' => 'string', 'example' => 'CONFIG', 'title' => ''], + 'ParamValue' => ['description' => 'The parameter value.', 'type' => 'string', 'example' => '1000', 'title' => ''], + 'NeedRestart' => ['description' => 'Indicates whether a restart is required.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'ParamRanges' => ['description' => 'The valid value range of the parameter.', 'type' => 'string', 'example' => '[1000-900000]', 'title' => ''], + 'DbName' => ['description' => 'The database name.', 'type' => 'string', 'example' => 'drds_test', 'title' => ''], + 'ParamEnglishName' => ['description' => 'The English name of the parameter.', 'type' => 'string', 'example' => 'SLOW_SQL_TIME', 'title' => ''], + 'ParamDesc' => ['description' => 'The parameter description.', 'type' => 'string', 'example' => '慢SQL阈值(单位:ms)', 'title' => ''], + 'ParamVariableName' => ['description' => 'The variable name of the parameter.', 'type' => 'string', 'example' => 'slowSqlTime', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => '%s', - 'errorMessage' => '%s', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B6876277-ECFD-4658-AC1E-A7FAD8******\\",\\n \\"RdsPerformanceInfos\\": [\\n {\\n \\"Cpu\\": 0.26,\\n \\"ActiveSessions\\": 0,\\n \\"TotalSessions\\": 162,\\n \\"RdsId\\": \\"rm-**************\\",\\n \\"Iops\\": 17.62,\\n \\"SpaceUsage\\": 4145144777\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<RequestId>B6876277-ECFD-4658-AC1E-A7FAD8******</RequestId>\\n<RdsPerformanceInfos>\\n <TotalSessions>162</TotalSessions>\\n <SpaceUsage>4145144777</SpaceUsage>\\n <Cpu>0.26</Cpu>\\n <Iops>17.62</Iops>\\n <RdsId>rm-**************</RdsId>\\n <ActiveSessions>0</ActiveSessions>\\n</RdsPerformanceInfos>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeRdsPerformanceSummary', - 'summary' => 'You can call the interface DescribeRdsPerformanceSummary to query RDS instance\'s performance details, such as CPU.', + 'title' => 'Query DRDS parameter list', + 'summary' => 'Invokes the DescribeDrdsParams operation to query the query parameter list.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeRdsSuperAccountInstances' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsParams'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsParams', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\",\\n \\"List\\": [\\n {\\n \\"ParamDefaultValue\\": \\"1000\\",\\n \\"ParamLevel\\": \\"INSTANCE\\",\\n \\"ParamName\\": \\"慢SQL阈值\\",\\n \\"ParamType\\": \\"CONFIG\\",\\n \\"ParamValue\\": \\"1000\\",\\n \\"NeedRestart\\": true,\\n \\"ParamRanges\\": \\"[1000-900000]\\",\\n \\"DbName\\": \\"drds_test\\",\\n \\"ParamEnglishName\\": \\"SLOW_SQL_TIME\\",\\n \\"ParamDesc\\": \\"慢SQL阈值(单位:ms)\\",\\n \\"ParamVariableName\\": \\"slowSqlTime\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'DescribeDrdsRdsInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'none', + 'abilityTreeCode' => '76007', + 'abilityTreeNodes' => ['FEATUREdrdsD0NTUP'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], - ], - [ - 'name' => 'DbInstType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the ApsaraDB RDS for MySQL instances. Default value: **RDS**.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'RDS', - 'default' => 'RDS', - ], - ], - [ - 'name' => 'RdsInstance', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'string', - 'description' => 'The IDs of the ApsaraDB RDS for MySQL instances.'."\n", - ], - 'required' => true, - 'example' => '[\'rm-*****************\',\'rm-*****************\']', - 'maxItems' => 30, - ], + 'schema' => ['description' => '<props="china">The ID of the PolarDB-X instance.</props>'."\n" + .'<props="intl">The ID of the DRDS instance.</props>'."\n" + .'> You can call [DescribeDrdsInstances](~~139284~~) to query the details of all instances under the target account, including instance IDs.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*************', 'title' => ''], ], ], 'responses' => [ @@ -4814,102 +4143,164 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '5D64DE5944A1E541E0******', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '123DB16B-02F2-45F7-A571-843991******', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'DbInstances' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'DbInstance' => [ - 'description' => 'The privileged accounts.'."\n", + 'description' => 'The details of the private custom ApsaraDB RDS instances in the storage layer.', 'type' => 'array', 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DBInstanceCPU' => ['description' => 'The number of CPU cores of the private custom ApsaraDB RDS instance in the storage layer.', 'type' => 'string', 'example' => '8', 'title' => ''], + 'DBInstanceMemory' => ['description' => 'The memory size of the private custom ApsaraDB RDS instance in the storage layer. Unit: MB.', 'type' => 'integer', 'format' => 'int64', 'example' => '8192', 'title' => ''], + 'PayType' => ['description' => 'The billing method of the private custom ApsaraDB RDS instance in the storage layer. Valid values:'."\n" + ."\n" + .'* Postpaid: pay-as-you-go'."\n" + .'* Prepaid: subscription.', 'type' => 'string', 'example' => 'PostPaid', 'title' => ''], + 'DBInstanceStatus' => ['description' => 'The status of the private custom ApsaraDB RDS instance in the storage layer. Valid values:'."\n" + .'* 0: Being created.'."\n" + .'* 1: Running.'."\n" + .'* 3: Being deleted.'."\n" + .'* 5: Being restarted.'."\n" + .'* 6: Being upgraded or downgraded.'."\n" + .'* 7: Backup in progress.'."\n" + .'* 8: Switching between internal network and public network.'."\n" + .'* 9: Being migrated.'."\n" + .'* 11: Migrating data.'."\n" + .'* 12: Generating a disaster recovery instance.'."\n" + .'* 13: Data import in progress.'."\n" + .'* 14: Importing data from another ApsaraDB RDS instance.'."\n" + .'* 15: Performing a disaster recovery switchover.'."\n" + .'* 16: Creating a temporary instance.'."\n" + .'* 17: Creating a network.'."\n" + .'* 18: Cloning an instance.'."\n" + .'* 19: Switching links.'."\n" + .'* 20: Read-only instance migration in progress.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'NetworkType' => ['description' => 'The network type of the private custom ApsaraDB RDS instance in the storage layer. The value is fixed as VPC (virtual private cloud).', 'type' => 'string', 'example' => 'VPC', 'title' => ''], + 'Port' => ['description' => 'The internal network connection port.', 'type' => 'integer', 'format' => 'int32', 'example' => '3306', 'title' => ''], + 'EngineVersion' => ['description' => 'The DPI engine version number of the private custom ApsaraDB RDS instance in the storage layer. The value is fixed as 8.0.', 'type' => 'string', 'example' => '8.0', 'title' => ''], + 'DmInstanceId' => ['description' => 'The resource ID.', 'type' => 'string', 'example' => 'dm-*************', 'title' => ''], + 'DBInstanceStorage' => ['description' => 'The storage capacity of the private custom ApsaraDB RDS instance in the storage layer. Unit: GB.', 'type' => 'integer', 'format' => 'int64', 'example' => '20', 'title' => ''], + 'ConnectUrl' => ['description' => 'The internal endpoint of the private custom ApsaraDB RDS instance in the storage layer.', 'type' => 'string', 'example' => 'rm-***************.mysql.rds.aliyuncs.com', 'title' => ''], + 'ReadWeight' => ['description' => 'The read and write weight of the private custom ApsaraDB RDS instance in the storage layer.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'RdsInstType' => ['description' => 'The type of the private custom ApsaraDB RDS instance in the storage layer. Valid values:'."\n" + ."\n" + .'* Primary: primary instance'."\n" + .'* Readonly: read-only instance.', 'type' => 'string', 'example' => 'Primary', 'title' => ''], + 'DBInstanceClassType' => ['description' => 'The instance family. Valid values:'."\n" + ."\n" + .'* **x**: general-purpose'."\n" + .'* **d**: dedicated package'."\n" + .'* **h**: dedicated host.', 'type' => 'string', 'example' => 'x', 'title' => ''], + 'DBInstanceId' => ['description' => 'The instance ID of the private custom ApsaraDB RDS instance in the storage layer.', 'type' => 'string', 'example' => 'rm-*****************', 'title' => ''], + 'Engine' => ['description' => 'The engine type of the private custom ApsaraDB RDS instance in the storage layer. The value is fixed as MySQL.', 'type' => 'string', 'example' => 'MySQL', 'title' => ''], + 'DbInstType' => ['description' => 'The storage layer instance type. The value is fixed as RDS.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'LockMode' => ['description' => 'The lock status of the ApsaraDB RDS instance. Valid values: 0|1|2|3|4|5'."\n" + ."\n" + .' 0: Normal.'."\n" + ."\n" + .'1: Manually locked.'."\n" + ."\n" + .'2: Automatically locked due to instance expiration.'."\n" + ."\n" + .'3: Automatically locked before instance rollback.'."\n" + ."\n" + .'4: Automatically locked because the instance storage is full.'."\n" + ."\n" + .'5: Automatically locked because the read-only instance storage is full.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'LockReason' => ['description' => 'The reason why the ApsaraDB RDS instance is locked.', 'type' => 'string', 'example' => '手动触发锁', 'title' => ''], + ], 'description' => '', - 'type' => 'string', - 'example' => 'rm-*****************', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"5D64DE5944A1E541E0******\\",\\n \\"DbInstances\\": {\\n \\"DbInstance\\": [\\n \\"rm-*****************\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>4DFD4978-FA5F-4C3C-A30D-AD4D164AD674</RequestId>\\n<DbInstances>\\n</DbInstances>","errorExample":""}]', - 'title' => 'DescribeRdsSuperAccountInstances', - 'summary' => 'Queries the privileged accounts of ApsaraDB RDS for MySQL instances.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"123DB16B-02F2-45F7-A571-843991******\\",\\n \\"Success\\": true,\\n \\"DbInstances\\": {\\n \\"DbInstance\\": [\\n {\\n \\"DBInstanceCPU\\": \\"8\\",\\n \\"DBInstanceMemory\\": 8192,\\n \\"PayType\\": \\"PostPaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"8.0\\",\\n \\"DmInstanceId\\": \\"dm-*************\\",\\n \\"DBInstanceStorage\\": 20,\\n \\"ConnectUrl\\": \\"rm-***************.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 0,\\n \\"RdsInstType\\": \\"Primary\\",\\n \\"DBInstanceClassType\\": \\"x\\",\\n \\"DBInstanceId\\": \\"rm-*****************\\",\\n \\"Engine\\": \\"MySQL\\",\\n \\"DbInstType\\": \\"RDS\\",\\n \\"LockMode\\": 1,\\n \\"LockReason\\": \\"手动触发锁\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Private custom RDS instance details', + 'summary' => 'Queries the details of all private custom ApsaraDB RDS instances under a specified PolarDB-X instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsDBCluster' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2024-07-16T13:04:40.000Z', 'description' => 'Response parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsRdsInstances'], + ], ], - 'security' => [ + 'ramActions' => [ [ - 'AK' => [], + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsRdsInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '75988', - 'abilityTreeNodes' => [ - 'FEATUREdrdsDBGOD6', + ], + 'DescribeDrdsShardingDbs' => [ + 'summary' => 'Queries horizontally sharded databases under a PolarDB-X instance by calling the DescribeDrdsShardingDbs operation.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], ], ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of a DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => 'The instance ID of the PolarDB-X instance.', 'type' => 'string', 'required' => true, 'example' => 'drdshbgaf3c63qbo', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the DRDS database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds_test', - ], + 'schema' => ['description' => 'The name of the database on the PolarDB-X instance.', 'type' => 'string', 'required' => true, 'example' => 'drds_test', 'title' => ''], ], [ - 'name' => 'DbInstanceId', + 'name' => 'DbNamePattern', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB cluster.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pc-*****************', - ], + 'schema' => ['description' => 'The database name matching pattern.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '20', 'title' => ''], ], ], 'responses' => [ @@ -4917,269 +4308,150 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '60A77FD6-0DE4-4A34-B6FB-9C2673******', - ], - 'DbInstance' => [ - 'description' => 'The details of each PolarDB cluster.'."\n", + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '509BDE17-505A-4B3B-854D-30D3F092502F', 'title' => ''], + 'ShardingDbs' => [ 'type' => 'object', + 'itemNode' => true, 'properties' => [ - 'ExpireTime' => [ - 'description' => 'The time when the PolarDB cluster expires.'."\n", - 'type' => 'string', - 'example' => '2019-09-27 11:22:33', - ], - 'PayType' => [ - 'description' => 'The billing method of the PolarDB cluster.'."\n", - 'type' => 'string', - 'example' => 'Postpaid', - ], - 'DBInstanceStatus' => [ - 'description' => 'The status of the PolarDB instance.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'NetworkType' => [ - 'description' => 'The network type of the PolarDB cluster.'."\n", - 'type' => 'string', - 'example' => 'VPC', - ], - 'Port' => [ - 'description' => 'The PolarDB access port.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3306', - ], - 'EngineVersion' => [ - 'description' => 'The version of the DRDS database storage engine.'."\n", - 'type' => 'string', - 'example' => '8.0', - ], - 'RdsInstType' => [ - 'description' => 'The type of RDS instance. PolarDB cluster does not support this parameter.'."\n", - 'type' => 'string', - 'example' => 'ignore', - ], - 'RemainDays' => [ - 'description' => 'The number of days remaining on the PolarDB for MySQL instance.'."\n", - 'type' => 'string', - 'example' => '0', - ], - 'DBInstanceId' => [ - 'description' => 'The ID of the PolarDB cluster.'."\n", - 'type' => 'string', - 'example' => 'pc-*****************', - ], - 'DbInstType' => [ - 'description' => 'The type of storage used by the DRDS database.', - 'type' => 'string', - 'example' => 'POLARDB', - ], - 'Engine' => [ - 'description' => 'The type of the DRDS database storage engine.', - 'type' => 'string', - 'example' => 'POLARDB', - ], - 'ReadMode' => [ - 'description' => 'This parameter specifies the Read mode when the database storage type is PolarDB.'."\n" - ."\n" - .'Valid values:'."\n" - ."\n" - .'* **DEFAULT**: the default mode (that is, all read traffic is sent to the PolarDB read /write node).'."\n" - .'* **CUSTOM**: Custom mode (you can customize the ratio of traffic sent to read /write nodes and read-only nodes).'."\n" - .'* **BALANCE**: read balancing mode (the read traffic is automatically distributed by the read load module of the PolarDB cluster, which can also be understood as the read traffic being evenly distributed to each node).'."\n", - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'Endpoints' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Endpoint' => [ - 'description' => 'The endpoint of the PolarDB read /write splitting endpoint'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ReadWeight' => [ - 'description' => 'The read ratio of this connection address managed by the DRDS database.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '85', - ], - 'EndpointId' => [ - 'description' => 'The ID of the PolarDB connection address.'."\n", - 'type' => 'string', - 'example' => 'pe-*****************', - ], - 'NodeIds' => [ - 'description' => 'The ID list of the nodes in the PolarDB connection string. Separate multiple nodes with commas (,).'."\n", - 'type' => 'string', - 'example' => 'pi-*****************,pi-*****************', - ], - ], - ], - ], - ], - ], - 'DBNodes' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'DBNode' => [ - 'description' => 'The information about the nodes in the PolarDB Cluster.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'DBNodeRole' => [ - 'description' => 'The role of a node in the apsaradb for PolarDB cluster. Valid values:'."\n" - ."\n" - .'* **Reader**'."\n" - .'* **Writer**'."\n", - 'type' => 'string', - 'example' => 'Reader', - ], - 'ZoneId' => [ - 'description' => 'The ID of the zone where the node of the PolarDB cluster resides.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-i', - ], - 'DBNodeId' => [ - 'description' => 'The ID of the node in the apsaradb for PolarDB cluster.'."\n", - 'type' => 'string', - 'example' => 'pi-***************', - ], - 'DBNodeStatus' => [ - 'description' => 'The status of the nodes in the PolarDB cluster.'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - ], - ], + 'ShardingDb' => [ + 'description' => 'The list of returned results.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MinPoolSize' => ['description' => 'The minimum number of connections in the connection pool.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'MaxPoolSize' => ['description' => 'The maximum number of connections in the connection pool.', 'type' => 'integer', 'format' => 'int32', 'example' => '60', 'title' => ''], + 'DbInstanceId' => ['description' => 'The instance ID of the ApsaraDB RDS instance.', 'type' => 'string', 'example' => 'rm-bp1hjzn0yv5j2****', 'title' => ''], + 'ConnectUrl' => ['description' => 'The connection URL.', 'type' => 'string', 'example' => '100.100.64.100:11569', 'title' => ''], + 'GroupName' => ['description' => 'The name of the physical shard.', 'type' => 'string', 'example' => 'TEMP1_1568171495522SABE_KUP4_0000', 'title' => ''], + 'DbType' => ['description' => 'The database type.', 'type' => 'string', 'example' => 'mysql', 'title' => ''], + 'IdleTimeOut' => ['description' => 'The idle timeout period.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'ShardingDbName' => ['description' => 'The name of the physical sharded database.', 'type' => 'string', 'example' => 'temp1_zhk1_0000', 'title' => ''], + 'BlockingTimeout' => ['description' => 'The maximum duration that a transaction waits to acquire a lock.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'PreparedStatementCacheSize' => ['description' => 'The size of the prepared statement cache.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'ConnectionProperties' => ['description' => 'The connection string properties.', 'type' => 'string', 'example' => 'connectTimeout=3000;autoReconnect=true;failOverReadOnly=false;socketTimeout=900000;rewriteBatchedStatements=true;characterEncoding=utf8', 'title' => ''], + 'UserName' => ['description' => 'The username used to connect to the ApsaraDB RDS instance.', 'type' => 'string', 'example' => 'pg284mi8', 'title' => ''], + 'DbStatus' => ['description' => 'The database status.', 'type' => 'string', 'example' => 'running', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'PageNumber' => ['description' => 'The current page number.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'string', 'example' => '20', 'title' => ''], + 'Total' => ['description' => 'The total number of entries returned.', 'type' => 'string', 'example' => '1', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter.MasterDbInstanceRelease', - 'errorMessage' => 'The master db instance has been released', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ['errorCode' => 'ServiceUnable', 'errorMessage' => 'The service is not available now, please try again later', 'description' => ''], + ['errorCode' => 'InvalidParameter.Mismatch', 'errorMessage' => 'The specified parameter does not match.', 'description' => ''], + ['errorCode' => 'InvalidDbname.MalFormed', 'errorMessage' => 'The specified db name does not match.', 'description' => ''], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records', 'description' => ''], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records', 'description' => ''], + ], + 404 => [ + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"60A77FD6-0DE4-4A34-B6FB-9C2673******\\",\\n \\"DbInstance\\": {\\n \\"ExpireTime\\": \\"2019-09-27 11:22:33\\",\\n \\"PayType\\": \\"Postpaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"8.0\\",\\n \\"RdsInstType\\": \\"ignore\\",\\n \\"RemainDays\\": \\"0\\",\\n \\"DBInstanceId\\": \\"pc-*****************\\",\\n \\"DbInstType\\": \\"POLARDB\\",\\n \\"Engine\\": \\"POLARDB\\",\\n \\"ReadMode\\": \\"CUSTOM\\",\\n \\"Endpoints\\": {\\n \\"Endpoint\\": [\\n {\\n \\"ReadWeight\\": 85,\\n \\"EndpointId\\": \\"pe-*****************\\",\\n \\"NodeIds\\": \\"pi-*****************,pi-*****************\\"\\n }\\n ]\\n },\\n \\"DBNodes\\": {\\n \\"DBNode\\": [\\n {\\n \\"DBNodeRole\\": \\"Reader\\",\\n \\"ZoneId\\": \\"cn-hangzhou-i\\",\\n \\"DBNodeId\\": \\"pi-***************\\",\\n \\"DBNodeStatus\\": \\"Running\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>60A77FD6-0DE4-4A34-B6FB-9C2673******</RequestId>\\n<DbInstance>\\n <DbInstType>POLARDB</DbInstType>\\n <EngineVersion>8.0</EngineVersion>\\n <DBInstanceStatus>1</DBInstanceStatus>\\n <Port>3306</Port>\\n <PayType>Postpaid</PayType>\\n <Endpoints>\\n <Endpoint>\\n <ReadWeight>85</ReadWeight>\\n <NodeIds>pi-*****************</NodeIds>\\n <EndpointId>pc-*****************</EndpointId>\\n </Endpoint>\\n <Endpoint>\\n <ReadWeight>15</ReadWeight>\\n <NodeIds>pi-*****************,pi-*****************</NodeIds>\\n <EndpointId>pe-*****************</EndpointId>\\n </Endpoint>\\n </Endpoints>\\n <DBInstanceId>pc-*****************</DBInstanceId>\\n <DBNodes>\\n <DBNode>\\n <DBNodeStatus>Running</DBNodeStatus>\\n <ZoneId>cn-hangzhou-i</ZoneId>\\n <DBNodeRole>Reader</DBNodeRole>\\n <DBNodeId>pi-*****************</DBNodeId>\\n </DBNode>\\n <DBNode>\\n <DBNodeStatus>Running</DBNodeStatus>\\n <ZoneId>cn-hangzhou-i</ZoneId>\\n <DBNodeRole>Writer</DBNodeRole>\\n <DBNodeId>pi-*****************</DBNodeId>\\n </DBNode>\\n <DBNode>\\n <DBNodeStatus>Running</DBNodeStatus>\\n <ZoneId>cn-hangzhou-i</ZoneId>\\n <DBNodeRole>Reader</DBNodeRole>\\n <DBNodeId>pi-*****************</DBNodeId>\\n </DBNode>\\n </DBNodes>\\n <NetworkType>VPC</NetworkType>\\n <ReadMode>CUSTOM</ReadMode>\\n <ExpireTime/>\\n <RemainDays>0</RemainDays>\\n <Engine>POLARDB</Engine>\\n</DbInstance>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeDrdsDBCluster', - 'summary' => 'You can call this operation to query the information of the PolarDB cluster in the DRDS logical database.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DescribeRDSPerformance' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Query horizontally sharded databases under DRDS', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsShardingDbs'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsShardingDbs', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"509BDE17-505A-4B3B-854D-30D3F092502F\\",\\n \\"ShardingDbs\\": {\\n \\"ShardingDb\\": [\\n {\\n \\"MinPoolSize\\": 5,\\n \\"MaxPoolSize\\": 60,\\n \\"DbInstanceId\\": \\"rm-bp1hjzn0yv5j2****\\",\\n \\"ConnectUrl\\": \\"100.100.64.100:11569\\",\\n \\"GroupName\\": \\"TEMP1_1568171495522SABE_KUP4_0000\\",\\n \\"DbType\\": \\"mysql\\",\\n \\"IdleTimeOut\\": 30,\\n \\"ShardingDbName\\": \\"temp1_zhk1_0000\\",\\n \\"BlockingTimeout\\": 5000,\\n \\"PreparedStatementCacheSize\\": 0,\\n \\"ConnectionProperties\\": \\"connectTimeout=3000;autoReconnect=true;failOverReadOnly=false;socketTimeout=900000;rewriteBatchedStatements=true;characterEncoding=utf8\\",\\n \\"UserName\\": \\"pg284mi8\\",\\n \\"DbStatus\\": \\"running\\"\\n }\\n ]\\n },\\n \\"PageNumber\\": \\"1\\",\\n \\"PageSize\\": \\"20\\",\\n \\"Total\\": \\"1\\"\\n}","type":"json"}]', + ], + 'DescribeDrdsSlowSqls' => [ + 'summary' => 'Queries slow SQL statements of a DRDS instance.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '76009', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true, 'default' => 'center', 'description' => '', 'title' => '', 'example' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the Distributed Relational Database Service (DRDS) instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds***************', 'title' => ''], ], [ - 'name' => 'RdsInstanceId', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the storage-layer ApsaraDB RDS for MySQL instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'rm-************', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'example' => 'test_db', 'title' => ''], ], [ - 'name' => 'Keys', + 'name' => 'ExeTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The performance monitoring metrics. You can specify one or more metrics for a query at a time. Separate multiple metric parameters with commas (,).'."\n" - ."\n" - .'> For more information about the details of performance monitoring metrics, see [Storage monitoring](~~186705~~).'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'MySQL_MemCpuUsage', - ], + 'schema' => ['description' => 'The SQL execution time. Unit: milliseconds (ms).', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1000', 'title' => ''], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The start time of the query. Specify the time in the UNIX timestamp format. The time must be in UTC. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1603123290000', - ], + 'schema' => ['description' => 'The end time of the SQL query. Specify the value as a UNIX timestamp in milliseconds (UTC).', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1568269711000', 'title' => ''], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The end time of the query. Specify the time in the UNIX timestamp format. The time must be in UTC. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1603209690000', - ], + 'schema' => ['description' => 'The start time of the SQL query. Specify the value as a UNIX timestamp in milliseconds (UTC).', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1568267711000', 'title' => ''], ], [ - 'name' => 'DbInstType', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the database engine.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'mysql', - ], + 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of records per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '30', 'example' => '20', 'title' => ''], ], ], 'responses' => [ @@ -5187,180 +4459,99 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DB53EC68-463C-4187-8D2B-C2AD8C******', - ], - 'Data' => [ - 'description' => 'The result set of the query.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'The name of the monitoring metric.'."\n", - 'type' => 'string', - 'example' => 'cpuusage', - ], - 'NodeName' => [ - 'description' => 'The name of the node.'."\n" - ."\n" - .'> This parameter is returned only when the storage type of the database is PolarDB for MySQL. If the storage type of the database is ApsaraDB RDS for MySQL, this parameter is not returned.'."\n", - 'type' => 'string', - 'example' => 'pi-*************', - ], - 'Unit' => [ - 'description' => 'The unit of the monitoring metric.'."\n", - 'type' => 'string', - 'example' => '%', - ], - 'NodeNum' => [ - 'description' => 'The number of nodes.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Values' => [ - 'description' => 'The details of the monitoring metric data.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Date' => [ - 'description' => 'The time point when the value of the monitoring metric was obtained. The value is in the UNIX timestamp format. The time is displayed in UTC. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1603209660000', - ], - 'Value' => [ - 'description' => 'The value of the monitoring metric.'."\n", - 'type' => 'string', - 'example' => '0.58', - ], - ], + 'PageSize' => ['description' => 'The number of records per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '509BDE17-505A-4B3B-854D-30D3F0******', 'title' => ''], + 'Total' => ['description' => 'The total number of records.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Items' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Item' => [ + 'description' => 'The details of the slow SQL statement.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'SendTime' => ['description' => 'The time when the slow SQL statement was sent. Unit: milliseconds (ms).', 'type' => 'integer', 'format' => 'int64', 'example' => '1568267711', 'title' => ''], + 'Host' => ['description' => 'The IP address of the machine that executed the SQL statement.', 'type' => 'string', 'example' => '10.0.***.***', 'title' => ''], + 'Sql' => ['description' => 'The content of the slow SQL statement.', 'type' => 'string', 'example' => 'SELECT count(1) from payment_order where order_status = \'08\';', 'title' => ''], + 'ResponseTime' => ['description' => 'The response time. Unit: milliseconds (ms).', 'type' => 'integer', 'format' => 'int64', 'example' => '1568267711', 'title' => ''], + 'Schema' => ['description' => 'The database name.', 'type' => 'string', 'example' => 'user', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 404 => [ - [ - 'errorCode' => 'Monitor.QueryRdsFailure', - 'errorMessage' => 'Failed to query RDS monitor info.', - ], + 400 => [ + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + 404 => [ + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], + ['errorCode' => 'InvalidDbName.NotFound', 'errorMessage' => 'The Drds DbName provided does not exist in our records.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DB53EC68-463C-4187-8D2B-C2AD8C******\\",\\n \\"Data\\": [\\n {\\n \\"Key\\": \\"cpuusage\\",\\n \\"NodeName\\": \\"pi-*************\\",\\n \\"Unit\\": \\"%\\",\\n \\"NodeNum\\": 1,\\n \\"Values\\": [\\n {\\n \\"Date\\": 1603209660000,\\n \\"Value\\": \\"0.58\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeRDSPerformanceResponse>\\n<RequestId>DB53EC68-463C-4187-8D2B-C2AD8C******</RequestId>\\n<Data>\\n <NodeNum>1</NodeNum>\\n <Values>\\n <Value>0.58</Value>\\n <Date>1603209660000</Date>\\n </Values>\\n <Unit>%</Unit>\\n <Key>cpuusage</Key>\\n</Data>\\n<Data>\\n <NodeNum>1</NodeNum>\\n <Values>\\n <Value>9.75</Value>\\n <Date>1603209660000</Date>\\n </Values>\\n <Unit>%</Unit>\\n <Key>memusage</Key>\\n</Data>\\n<Success>true</Success>\\n</DescribeRDSPerformanceResponse>","errorExample":""}]', - 'title' => 'DescribeRDSPerformance', - 'summary' => 'Queries the details about the performance data of storage-layer ApsaraDB RDS for MySQL.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageSize\\": 20,\\n \\"PageNumber\\": 1,\\n \\"RequestId\\": \\"509BDE17-505A-4B3B-854D-30D3F0******\\",\\n \\"Total\\": 1,\\n \\"Success\\": true,\\n \\"Items\\": {\\n \\"Item\\": [\\n {\\n \\"SendTime\\": 1568267711,\\n \\"Host\\": \\"10.0.***.***\\",\\n \\"Sql\\": \\"SELECT count(1) from payment_order where order_status = \'08\';\\",\\n \\"ResponseTime\\": 1568267711,\\n \\"Schema\\": \\"user\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'View slow SQL statements', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDbInstances' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2025-06-10T03:11:23.000Z', 'description' => 'Error codes changed'], + ['createdAt' => '2025-03-07T06:19:46.000Z', 'description' => 'Request parameters changed'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsSlowSqls'], + ], ], - 'security' => [ + 'ramActions' => [ [ - 'AK' => [], + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsSlowSqls', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '75986', - 'abilityTreeNodes' => [ - 'FEATUREdrdsD0NTUP', + ], + 'DescribeDrdsSqlAuditStatus' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], ], ], + 'operationType' => 'read', + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of a DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], - ], - [ - 'name' => 'Search', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the storage or cluster.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'pc-***************', - ], - ], - [ - 'name' => 'DbInstType', - 'in' => 'query', - 'schema' => [ - 'description' => 'Storage layer type. Valid values: **POLARDB** or **RDS**.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'POLARDB', - 'default' => 'RDS', - ], - ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => 'The page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], - ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '30', - ], - ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], ], 'responses' => [ @@ -5368,207 +4559,103 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '293275B3-8FC0-4619-A26E-6F062FASD56R', - ], - 'Items' => [ + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DC3ABA3E-0F8A-4596-9104-F5155C******', 'title' => ''], + 'Data' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'DBInstance' => [ - 'description' => 'The details of the instance.'."\n", + 'Data' => [ + 'description' => 'The result set.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'InstanceNetworkType' => [ - 'description' => 'The network type of the storage layer. Valid values:'."\n" - ."\n" - .'* **VPC**: VPC'."\n" - .'* **CLASSIC **: Classic Network'."\n", - 'type' => 'string', - 'example' => 'VPC', - ], - 'DBInstanceType' => [ - 'description' => 'The storage layer instance type.'."\n", - 'type' => 'string', - 'example' => 'Primary', - ], - 'ZoneId' => [ - 'description' => 'The ID of the zone where the storage instance resides.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-a', - ], - 'DBInstanceStatus' => [ - 'description' => 'Storage layer instance status. Valid values:'."\n" - ."\n" - .'* **0**: creating'."\n" - .'* **1**: In use'."\n" - .'* **3**: Deleting'."\n" - .'* **5**: restarting'."\n" - .'* **6**: upgrading /Downgrading'."\n" - .'* **7**: Recovering'."\n" - .'* **8**: switching the Internet and intranet'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'DBInstanceId' => [ - 'description' => 'The ID of the storage instance.'."\n", - 'type' => 'string', - 'example' => 'rm-****************', - ], - 'Engine' => [ - 'description' => 'The engine of the storage instance.'."\n", - 'type' => 'string', - 'example' => '', - ], - 'DBInstanceDescription' => [ - 'description' => 'The description of the storage instance.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'EngineVersion' => [ - 'description' => 'The version of the engine for the storage instance.'."\n", - 'type' => 'string', - 'example' => '5.7', - ], - 'RegionId' => [ - 'description' => 'The ID of the region where the storage instance resides.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'ReadOnlyDBInstanceId' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'ReadOnlyDBInstanceId' => [ - 'description' => 'The details about a read-only storage instance.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => '[]', - ], - ], - ], - ], - 'AllowAllCategory' => [ - 'type' => 'boolean', - ], + 'ExtraSlsLogStore' => ['description' => 'The SLS LogStore for external delivery.'."\n" + .'>This parameter is displayed only when external delivery is enabled.', 'type' => 'string', 'example' => 'test', 'title' => ''], + 'DbName' => ['description' => 'The database name.', 'type' => 'string', 'example' => 'test', 'title' => ''], + 'Detailed' => ['description' => 'Indicates whether full reports are supported. Valid values: true and false.', 'type' => 'string', 'example' => 'true', 'title' => ''], + 'ExtraWriteEnabled' => ['description' => 'Indicates whether external delivery is enabled. Valid values: true and false.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'Enabled' => ['description' => 'Indicates whether the feature is available. Valid values: true and false.', 'type' => 'string', 'example' => 'true', 'title' => ''], + 'ExtraAliUid' => ['description' => 'The UID for external delivery.'."\n" + .'>This parameter is displayed only when external delivery is enabled.', 'type' => 'integer', 'format' => 'int64', 'example' => '111', 'title' => ''], + 'ExtraSlsProject' => ['description' => 'The SLS project for external delivery.'."\n" + .'>This parameter is displayed only when external delivery is enabled.', 'type' => 'string', 'example' => 'test', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], - 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ], + 'title' => 'Query DRDS SQL audit information', + 'summary' => 'Queries the SQL audit information of a DRDS instance by calling the DescribeDrdsSqlAuditStatus operation.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsSqlAuditStatus'], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsSqlAuditStatus', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"293275B3-8FC0-4619-A26E-6F062FASD56R\\",\\n \\"Items\\": {\\n \\"DBInstance\\": [\\n {\\n \\"InstanceNetworkType\\": \\"VPC\\",\\n \\"DBInstanceType\\": \\"Primary\\",\\n \\"ZoneId\\": \\"cn-hangzhou-a\\",\\n \\"DBInstanceStatus\\": 0,\\n \\"DBInstanceId\\": \\"rm-****************\\",\\n \\"Engine\\": \\"存储层实例内核。\\",\\n \\"DBInstanceDescription\\": \\"test\\",\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ReadOnlyDBInstanceId\\": {\\n \\"ReadOnlyDBInstanceId\\": [\\n \\"[]\\"\\n ]\\n },\\n \\"AllowAllCategory\\": true\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDbInstancesResponse>\\n <RequestId>293275B3-8FC0-4619-A26E-6F062FASD56R</RequestId>\\n <Items>\\n <InstanceNetworkType>VPC</InstanceNetworkType>\\n <DBInstanceType>Primary</DBInstanceType>\\n <ZoneId>cn-hangzhou-a</ZoneId>\\n <DBInstanceStatus>0</DBInstanceStatus>\\n <DBInstanceId>rm-****************</DBInstanceId>\\n <Engine>存储层实例内核。</Engine>\\n <DBInstanceDescription>test</DBInstanceDescription>\\n <EngineVersion>5.7</EngineVersion>\\n <RegionId>cn-hangzhou</RegionId>\\n <ReadOnlyDBInstanceId>[]</ReadOnlyDBInstanceId>\\n </Items>\\n</DescribeDbInstancesResponse>","errorExample":""}]', - 'title' => 'DescribeDbInstances', - 'summary' => 'Queries DescribeDbInstances of the storage layer, such as RDS or PolarDB.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DC3ABA3E-0F8A-4596-9104-F5155C******\\",\\n \\"Data\\": {\\n \\"Data\\": [\\n {\\n \\"ExtraSlsLogStore\\": \\"test\\",\\n \\"DbName\\": \\"test\\",\\n \\"Detailed\\": \\"true\\",\\n \\"ExtraWriteEnabled\\": false,\\n \\"Enabled\\": \\"true\\",\\n \\"ExtraAliUid\\": 111,\\n \\"ExtraSlsProject\\": \\"test\\"\\n }\\n ]\\n }\\n}","type":"json"}]', ], - 'DescribeDbInstanceDbs' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeDrdsTasks' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '75985', - 'abilityTreeNodes' => [ - 'FEATUREdrds8KEOBF', - ], - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], - ], - [ - 'name' => 'DbInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance in which the storage-layer databases are deployed.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'pc-****************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdsxxxxxxxxxxxx', 'title' => ''], ], [ - 'name' => 'AccountName', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the privileged account of the PolarDB-X 1.0 instance. You do not need to specify this parameter if you have no privileged account.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'Password', + 'name' => 'TaskType', 'in' => 'query', - 'schema' => [ - 'description' => 'The password of the privileged account. You do not need to specify this parameter if you have no privileged account.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'pwd_111111', - ], - ], - [ - 'name' => 'DbInstType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The engine type of the storage-layer databases. Valid values: **POLARDB** and **RDS**.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'POLARDB', - ], + 'schema' => ['description' => 'The task type.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -5576,163 +4663,101 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'E9F3D991-08DE-4B74-BE0E-06B809******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Total' => [ - 'description' => 'Indicates the total number of storage-layer databases.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'Databases' => [ + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'CD412DF7-F21D-44CE-88FF-ED24917174A8', 'title' => ''], + 'Tasks' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'Database' => [ - 'description' => 'Indicates the information about the storage-layer databases.'."\n", + 'Task' => [ + 'description' => 'The task list.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => 'Indicates the state of the storage-layer database. Valid values:'."\n" - ."\n" - .'* **0**: The database is being created.'."\n" - .'* **1**: The database is available.'."\n" - .'* **3**: The database is being deleted.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'DbName' => [ - 'description' => 'Indicates the name of a storage-layer database.'."\n", - 'type' => 'string', - 'example' => 'db_test', - ], - 'Description' => [ - 'description' => 'Indicates the description of the storage-layer database.'."\n", - 'type' => 'string', - 'example' => 'test', - ], + 'State' => ['description' => 'The task status.', 'type' => 'string', 'example' => 'FAILED', 'title' => ''], + 'Content' => ['description' => 'The task content.', 'type' => 'string', 'example' => 'upgrade_instance', 'title' => ''], + 'Id' => ['description' => 'The task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '64148', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], ], 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E9F3D991-08DE-4B74-BE0E-06B809******\\",\\n \\"Success\\": true,\\n \\"Total\\": \\"1\\",\\n \\"Databases\\": {\\n \\"Database\\": [\\n {\\n \\"Status\\": 1,\\n \\"DbName\\": \\"db_test\\",\\n \\"Description\\": \\"test\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Databases>\\n <Database>\\n <Status>1</Status>\\n <Description>test</Description>\\n <DbName>db_test</DbName>\\n </Database>\\n</Databases>\\n<total>1</total>\\n<RequestId>E9F3D991-08DE-4B74-BE0E-06B809******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeDbInstanceDbs', - 'summary' => 'Queries information about storage-layer databases in a specific storage instance.', + 'title' => 'Query instance change tasks', + 'summary' => 'Queries the change tasks of an instance by calling the DescribeDrdsTasks operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CreateInstanceAccount' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsTasks'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsTasks', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"CD412DF7-F21D-44CE-88FF-ED24917174A8\\",\\n \\"Tasks\\": {\\n \\"Task\\": [\\n {\\n \\"State\\": \\"FAILED\\",\\n \\"Content\\": \\"upgrade_instance\\",\\n \\"Id\\": 64148\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeExpandLogicTableInfoList' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'get', + 'abilityTreeCode' => '76018', + 'abilityTreeNodes' => ['FEATUREdrdsT4VUG1'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance for which you want to create the account.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdsjiii1b49****', - ], - ], - [ - 'name' => 'AccountName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The username of the account you want to create.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds_sample_account', - ], - ], - [ - 'name' => 'Password', - 'in' => 'query', - 'schema' => [ - 'description' => 'The password of the account you want to create.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds_sample_password', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'DbPrivilege', + 'name' => 'DbName', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'DbName' => [ - 'description' => 'The name of the database that you want to manage by using the account to create.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test123', - ], - 'Privilege' => [ - 'description' => 'The permissions that you want to grant to the account to manage the database.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'DDL', - ], - ], - 'required' => false, - ], - 'required' => true, - 'maxItems' => 1000, - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'example' => 'drds_flashback', 'title' => ''], ], ], 'responses' => [ @@ -5740,73 +4765,95 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'FF13E47D-4E38-4A5A-BA68-4E610EVF56DC', + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0B6B7BDC-575D-4A77-A4F8-24B7EF******', 'title' => ''], + 'Data' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'data' => [ + 'description' => 'The result.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ShardTbKey' => ['description' => 'The table shard key.', 'type' => 'string', 'example' => 'address', 'title' => ''], + 'TableName' => ['description' => 'The table name.', 'type' => 'string', 'example' => 'employee_split2', 'title' => ''], + 'ShardDbKey' => ['description' => 'The database shard key.', 'type' => 'string', 'example' => 'id', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 404 => [ - [ - 'errorCode' => 'OperationFailed.CreateAccount', - 'errorMessage' => 'Create account failed.', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"FF13E47D-4E38-4A5A-BA68-4E610EVF56DC\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateInstanceAccountResponse>\\n <Success>true</Success>\\n <RequestId>FF13E47D-4E38-4A5A-BA68-4E610EVF56DC</RequestId>\\n</CreateInstanceAccountResponse>","errorExample":""}]', - 'title' => 'CreateInstanceAccount', - 'summary' => 'Creates an account used to manage a PolarDB-X 1.0 instance.', - ], - 'RemoveInstanceAccount' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Query logical table shard keys', + 'summary' => 'Calls the DescribeExpandLogicTableInfoList operation to query shard keys.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeExpandLogicTableInfoList'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeExpandLogicTableInfoList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0B6B7BDC-575D-4A77-A4F8-24B7EF******\\",\\n \\"Data\\": {\\n \\"data\\": [\\n {\\n \\"ShardTbKey\\": \\"address\\",\\n \\"TableName\\": \\"employee_split2\\",\\n \\"ShardDbKey\\": \\"id\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeHotDbList' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [], + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '76024', + 'abilityTreeNodes' => ['FEATUREdrds7SC2V6'], + ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds**********', 'title' => ''], ], [ - 'name' => 'AccountName', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the member account.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The name of the database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -5814,111 +4861,119 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', + 'Msg' => ['description' => 'The message.', 'type' => 'string', 'example' => 'msg', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0B6B7BDC-575D-4A77-A4F8-24B7EF******', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Data' => [ + 'description' => 'The result.', + 'type' => 'object', + 'properties' => [ + 'RandomCode' => ['description' => 'The random code.', 'type' => 'string', 'example' => 'jzhz', 'title' => ''], + 'List' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'InstanceDb' => [ + 'description' => 'The list.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'InstanceName' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'instanceName', 'title' => ''], + 'HotDbList' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'data' => [ + 'type' => 'array', + 'items' => ['description' => 'The list of hot databases.', 'type' => 'string', 'example' => 'hot_dtstest0512_****_****', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'OperationFailed.RemoveInstanceAccount', - 'errorMessage' => 'Remove instance account failed', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>A3140FC7-B78B-4D8E-B0C8-926D28******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'RemoveInstanceAccount', - 'summary' => 'You can call the interface RemoveInstanceAccount to delete an account.', + 'title' => 'Query the list of hot-spot scale-out databases', + 'summary' => 'Calls the DescribeHotDbList operation to query the list of databases for hot-spot scale-out.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'EnableSqlAudit' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHotDbList'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeHotDbList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Msg\\": \\"msg\\",\\n \\"RequestId\\": \\"0B6B7BDC-575D-4A77-A4F8-24B7EF******\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"RandomCode\\": \\"jzhz\\",\\n \\"List\\": {\\n \\"InstanceDb\\": [\\n {\\n \\"InstanceName\\": \\"instanceName\\",\\n \\"HotDbList\\": {\\n \\"data\\": [\\n \\"hot_dtstest0512_****_****\\"\\n ]\\n }\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', + ], + 'DescribeInstDbLogInfo' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', + 'abilityTreeCode' => '76028', + 'abilityTreeNodes' => ['FEATUREdrdsAS582G'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds*********', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database for which you want to enable the SQL audit feature.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - ], - [ - 'name' => 'IsRecall', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to backtrack historical SQL statements for auditing.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - ], - [ - 'name' => 'RecallStartTimestamp', - 'in' => 'query', - 'schema' => [ - 'description' => 'The timestamp that indicates when the backtracking starts. Unit: milliseconds.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1568875132000', - ], - ], - [ - 'name' => 'RecallEndTimestamp', - 'in' => 'query', - 'schema' => [ - 'description' => 'The timestamp that indicates when the backtracking ends. Unit: milliseconds.'."\n" - ."\n" - .'> The end time of the backtracking must be later than the start time of the backtracking.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1568875132000', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'example' => 'drds_test', 'title' => ''], ], ], 'responses' => [ @@ -5926,78 +4981,76 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '463A5F0F-12AD-4544-A902-B2B983******', - ], - 'Result' => [ - 'description' => 'Indices whether the SQL audit feature is enabled.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A5438952-70EE-4FA5-87A9-080DB0ASD45F', 'title' => ''], + 'LogTimeRange' => [ + 'description' => 'The queryable time range.', + 'type' => 'object', + 'properties' => [ + 'SupportOldestTime' => ['description' => 'The end time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1568367711', 'title' => ''], + 'SupportLatestTime' => ['description' => 'The start time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1568267711', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"463A5F0F-12AD-4544-A902-B2B983******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Result>true</Result>\\n<RequestId>463A5F0F-12AD-4544-A902-B2B983******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'EnableSqlAudit', - 'summary' => 'Enables the SQL audit feature for a database.', + 'title' => 'Query time range for importing historical SQL data', + 'summary' => 'Queries the time range supported for importing historical SQL data into a database.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DisableSqlAudit' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstDbLogInfo'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstDbLogInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"A5438952-70EE-4FA5-87A9-080DB0ASD45F\\",\\n \\"LogTimeRange\\": {\\n \\"SupportOldestTime\\": 1568367711,\\n \\"SupportLatestTime\\": 1568267711\\n }\\n}","type":"json"}]', + ], + 'DescribeInstDbSlsInfo' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', - 'systemTags' => [ - 'operationType' => 'update', - ], + 'operationType' => 'read', + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds***********', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database for which you want to disable the SQL audit feature.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds_test', - ], + 'schema' => ['description' => 'The name of the database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -6005,68 +5058,70 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'E273749A-9A33-44CF-ABE7-0CB19C******', - ], - 'Result' => [ - 'description' => 'The return result.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DC3ABA3E-0F8A-4596-9104-F5155C******', 'title' => ''], + 'AuditInfo' => [ + 'description' => 'The SQL audit details.', + 'type' => 'object', + 'properties' => [ + 'LogStore' => ['description' => 'The name of the Logstore.', 'type' => 'string', 'example' => 'test', 'title' => ''], + 'Project' => ['description' => 'The name of the SLS project.', 'type' => 'string', 'example' => 'test', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E273749A-9A33-44CF-ABE7-0CB19C******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>E273749A-9A33-44CF-ABE7-0CB19C******</RequestId>\\n<Success>true</Success>\\n<Result>true</Result>","errorExample":""}]', - 'title' => 'DisableSqlAudit', - 'summary' => 'Disables the SQL audit feature for a database.', + 'title' => 'Query SLS project and logstore names', + 'summary' => 'Queries the names of the SLS project and Logstore used for SQL audit.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsSqlAuditStatus' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstDbSlsInfo'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstDbSlsInfo', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DC3ABA3E-0F8A-4596-9104-F5155C******\\",\\n \\"AuditInfo\\": {\\n \\"LogStore\\": \\"test\\",\\n \\"Project\\": \\"test\\"\\n }\\n}","type":"json"}]', + ], + 'DescribeInstanceAccounts' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds*********', 'title' => ''], ], ], 'responses' => [ @@ -6074,130 +5129,129 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DC3ABA3E-0F8A-4596-9104-F5155C******', - ], - 'Data' => [ + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'E2E4056D-57EB-4353-8355-2E6284******', 'title' => ''], + 'InstanceAccounts' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'Data' => [ - 'description' => 'The returned data set.'."\n", + 'InstanceAccount' => [ + 'description' => 'The list of instance accounts.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'ExtraSlsLogStore' => [ - 'description' => 'The Log Service Logstore from which logs are delivered.'."\n" - ."\n" - .'> This parameter is returned only if external log delivery is enabled.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'DbName' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'Detailed' => [ - 'description' => 'Indicates whether the complete report of the SQL audit is supported. Valid values: true and false.'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'ExtraWriteEnabled' => [ - 'description' => 'Indicates whether external log delivery is enabled. Valid values: true and false.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'Enabled' => [ - 'description' => 'Indicates whether the SQL audit feature is enabled for the database. Valid values: true and false.'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'ExtraAliUid' => [ - 'description' => 'The UID of the external delivery.'."\n" - ."\n" - .'> This parameter is returned only if external log delivery is enabled.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '111', - ], - 'ExtraSlsProject' => [ - 'description' => 'The Log Service project from which logs are delivered.'."\n" - ."\n" - .'> This parameter is returned only if external log delivery is enabled.'."\n", - 'type' => 'string', - 'example' => 'test', + 'Host' => ['description' => 'The IP address that is allowed to access the database. <note>**%** indicates that any IP address can access the database.</note>.', 'type' => 'string', 'example' => '%', 'title' => ''], + 'Description' => ['description' => 'The account description. The default description for a privileged account is **Created by DRDS**. A standard account has no description. You can customize the description in account management.', 'type' => 'string', 'example' => 'Created by DRDS', 'title' => ''], + 'AccountType' => ['description' => 'The account type. Valid values:'."\n" + .'- **0**: privileged account.'."\n" + .'- **1**: standard account.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'AccountName' => ['description' => 'The account name.', 'type' => 'string', 'example' => 'test_rds3', 'title' => ''], + 'DbPrivileges' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'DbPrivilege' => [ + 'description' => 'The database permission information.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DbName' => ['description' => 'The database name.', 'type' => 'string', 'example' => 'test_rds3', 'title' => ''], + 'Privilege' => ['description' => 'The account permissions. Valid values:'."\n" + .'- **R**: read permission.'."\n" + .'- **W**: write permission.'."\n" + .'- **DDL**: permission to perform DDL operations.'."\n" + .'- **DML**: permission to perform DML operations.', 'type' => 'string', 'example' => 'R', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ], + 404 => [ + ['errorCode' => 'InvalidDRDSInstanceId.NotFound', 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DC3ABA3E-0F8A-4596-9104-F5155C******\\",\\n \\"Data\\": {\\n \\"Data\\": [\\n {\\n \\"ExtraSlsLogStore\\": \\"test\\",\\n \\"DbName\\": \\"test\\",\\n \\"Detailed\\": \\"true\\",\\n \\"ExtraWriteEnabled\\": false,\\n \\"Enabled\\": \\"true\\",\\n \\"ExtraAliUid\\": 111,\\n \\"ExtraSlsProject\\": \\"test\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DC3ABA3E-0F8A-4596-9104-F5155C******</RequestId>\\n<Data>\\n <Data>\\n <ExtraAliUid>111</ExtraAliUid>\\n <ExtraSlsProject>test</ExtraSlsProject>\\n <ExtraWriteEnabled>false</ExtraWriteEnabled>\\n <Enabled>true</Enabled>\\n <DbName>test</DbName>\\n <ExtraSlsLogStore>test</ExtraSlsLogStore>\\n <Detailed>true</Detailed>\\n </Data>\\n</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeDrdsSqlAuditStatus', - 'summary' => 'Queries the SQL audit details of a PolarDB-X 1.0 instance.', + 'staticInfo' => [], + 'title' => 'View instance account information', + 'summary' => 'Queries the account information of an instance by calling the DescribeInstanceAccounts operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeInstDbSlsInfo' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstanceAccounts'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstanceAccounts', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"E2E4056D-57EB-4353-8355-2E6284******\\",\\n \\"InstanceAccounts\\": {\\n \\"InstanceAccount\\": [\\n {\\n \\"Host\\": \\"%\\",\\n \\"Description\\": \\"Created by DRDS\\",\\n \\"AccountType\\": 1,\\n \\"AccountName\\": \\"test_rds3\\",\\n \\"DbPrivileges\\": {\\n \\"DbPrivilege\\": [\\n {\\n \\"DbName\\": \\"test_rds3\\",\\n \\"Privilege\\": \\"R\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeInstanceSwitchAzone' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', 'systemTags' => [ 'operationType' => 'get', + 'abilityTreeCode' => '76026', + 'abilityTreeNodes' => ['FEATUREdrds7CT80F'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***********', - ], - ], - [ - 'name' => 'DbName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdsxxxxxxxxxxxx', 'title' => ''], ], ], 'responses' => [ @@ -6205,61 +5259,77 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DC3ABA3E-0F8A-4596-9104-F5155C******', - ], - 'AuditInfo' => [ - 'description' => 'The details of the SQL audit.'."\n", + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-23ERW', 'title' => ''], + 'Result' => [ + 'description' => 'The query result list.', 'type' => 'object', 'properties' => [ - 'LogStore' => [ - 'description' => 'The name of the LogStore.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'Project' => [ - 'description' => 'The name of the Log Service project.'."\n", - 'type' => 'string', - 'example' => 'test', + 'OriginAzoneId' => ['description' => 'The source zone ID.', 'type' => 'string', 'example' => 'cn-hangzhou-a', 'title' => ''], + 'SwitchAble' => ['description' => 'Indicates whether the zone can be switched.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + 'TargetAzones' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'TargetAzone' => [ + 'type' => 'array', + 'items' => ['description' => 'The target zone.', 'type' => 'string', 'example' => 'cn-hangzhou-a,cn-hangzhou-b', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DC3ABA3E-0F8A-4596-9104-F5155C******\\",\\n \\"AuditInfo\\": {\\n \\"LogStore\\": \\"test\\",\\n \\"Project\\": \\"test\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeInstDbSlsInfoResponse>\\n <AuditInfo>\\n <LogStore>test</LogStore>\\n <Project>test</Project>\\n </AuditInfo>\\n <RequestId>DC3ABA3E-0F8A-4596-9104-F5155C******</RequestId>\\n <Success>true</Success>\\n</DescribeInstDbSlsInfoResponse>","errorExample":""}]', - 'title' => 'DescribeInstDbSlsInfo', - 'summary' => 'Queries the names of the Log Service project and the Logstore used by the SQL audit feature.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-23ERW\\",\\n \\"Result\\": {\\n \\"OriginAzoneId\\": \\"cn-hangzhou-a\\",\\n \\"SwitchAble\\": true,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"TargetAzones\\": {\\n \\"TargetAzone\\": [\\n \\"cn-hangzhou-a,cn-hangzhou-b\\"\\n ]\\n }\\n }\\n}","type":"json"}]', + 'title' => 'Check whether zone switching is available', + 'summary' => 'Queries whether the zone can be switched by calling the DescribeInstanceSwitchAzone operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsSlowSqls' => [ - 'summary' => 'Queries a slow SQL query.', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstanceSwitchAzone'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstanceSwitchAzone', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeInstanceSwitchNetwork' => [ + 'summary' => 'Queries whether an instance supports network transition by calling DescribeInstanceSwitchNetwork.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6270,101 +5340,139 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '76009', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeCode' => '76027', + 'abilityTreeNodes' => ['FEATUREdrdsBRC5LQ'], ], 'parameters' => [ [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'default' => 'center', - ], - ], - [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*********', 'title' => ''], ], - [ - 'name' => 'DbName', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test_db', + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '03E12FE3-1638-483E-A9B6-1A9120SER56T', 'title' => ''], + 'VpcInfos' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'VpcInfo' => [ + 'description' => 'The details of the virtual private cloud (VPC).', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['description' => 'The ID of the VPC.', 'type' => 'string', 'example' => 'vpc_id', 'title' => ''], + 'VpcName' => ['description' => 'The name of the VPC.', 'type' => 'string', 'example' => 'vpc_name', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + 'VswitchInfos' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'VswitchInfo' => [ + 'description' => 'The list of vSwitches.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['description' => 'The ID of the VPC.', 'type' => 'string', 'example' => 'vpc_id', 'title' => ''], + 'DrdsSupported' => ['description' => 'Indicates whether the instance is supported.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'VswitchId' => ['description' => 'The ID of the vSwitch.', 'type' => 'string', 'example' => 'vswitch_id', 'title' => ''], + 'AzoneId' => ['description' => 'The zone ID.', 'type' => 'string', 'example' => 'cn-hangzhou-a', 'title' => ''], + 'VswitchName' => ['description' => 'The name of the vSwitch.', 'type' => 'string', 'example' => 'vswitch_name', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Query whether an instance supports network transition', + 'description' => '****.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstanceSwitchNetwork'], + ], + ], + 'ramActions' => [ [ - 'name' => 'ExeTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'The SQL execution time. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1000', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstanceSwitchNetwork', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"03E12FE3-1638-483E-A9B6-1A9120SER56T\\",\\n \\"VpcInfos\\": {\\n \\"VpcInfo\\": [\\n {\\n \\"VpcId\\": \\"vpc_id\\",\\n \\"VpcName\\": \\"vpc_name\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"VswitchInfos\\": {\\n \\"VswitchInfo\\": [\\n {\\n \\"VpcId\\": \\"vpc_id\\",\\n \\"DrdsSupported\\": true,\\n \\"VswitchId\\": \\"vswitch_id\\",\\n \\"AzoneId\\": \\"cn-hangzhou-a\\",\\n \\"VswitchName\\": \\"vswitch_name\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribePreCheckResult' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'StartTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'The end time of the SQL query. Specify the time in the UNIX timestamp format. The time must be in UTC. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1568269711000', - ], + 'AK' => [], ], + ], + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ [ - 'name' => 'EndTime', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The start time of the SQL query. Specify the time in the UNIX timestamp format. The time must be in UTC. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1568267711000', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'PageNumber', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdshbga76p6****', 'title' => ''], ], [ - 'name' => 'PageSize', + 'name' => 'TaskId', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - 'default' => '30', - ], + 'schema' => ['description' => 'The task ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '4561', 'title' => ''], ], ], 'responses' => [ @@ -6372,150 +5480,127 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'PageSize' => [ - 'description' => 'Indicates the number of entries returned on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'PageNumber' => [ - 'description' => 'Indicates the page number of the returned page.', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '509BDE17-505A-4B3B-854D-30D3F0******', - ], - 'Total' => [ - 'description' => 'Indicates the total number of entries.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Items' => [ + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DescribePreCheckResult', 'title' => ''], + 'PreCheckResult' => [ + 'description' => 'The pre-check result.', 'type' => 'object', - 'itemNode' => true, 'properties' => [ - 'Item' => [ - 'description' => 'Indicates the details of the slow SQL query.'."\n", + 'PreCheckName' => ['description' => 'The name of the pre-check.', 'type' => 'string', 'example' => '是否有唯一键', 'title' => ''], + 'State' => ['description' => 'The status.', 'type' => 'string', 'example' => 'FAIL', 'title' => ''], + 'SubCheckItems' => [ + 'description' => 'The details of sub pre-check tasks.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'SendTime' => [ - 'description' => 'Indicates the time when the slow SQL query was sent. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568267711', - ], - 'Host' => [ - 'description' => 'Indicates the IP address of the execution machine.'."\n", - 'type' => 'string', - 'example' => '10.0.***.***', - ], - 'Sql' => [ - 'description' => 'Indicates the content of the slow SQL query.'."\n", - 'type' => 'string', - 'example' => 'SELECT count(1) from payment_order where order_status = \'08\';', - ], - 'ResponseTime' => [ - 'description' => 'Indicates the response time. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568267711', - ], - 'Schema' => [ - 'description' => 'Indicates the name of the database.'."\n", - 'type' => 'string', - 'example' => 'user', + 'ErrorMsgCode' => ['description' => 'The error code.', 'type' => 'string', 'example' => '1004', 'title' => ''], + 'PreCheckItemName' => ['description' => 'The name of the pre-check.', 'type' => 'string', 'example' => '唯一键', 'title' => ''], + 'State' => ['description' => 'The task status.', 'type' => 'string', 'example' => '成功', 'title' => ''], + 'ErrorMsgParams' => [ + 'type' => 'array', + 'items' => ['description' => 'The error parameters.', 'type' => 'string', 'example' => 'table1', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''], ], - 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"PageSize\\": 20,\\n \\"PageNumber\\": 1,\\n \\"RequestId\\": \\"509BDE17-505A-4B3B-854D-30D3F0******\\",\\n \\"Total\\": 1,\\n \\"Success\\": true,\\n \\"Items\\": {\\n \\"Item\\": [\\n {\\n \\"SendTime\\": 1568267711,\\n \\"Host\\": \\"10.0.***.***\\",\\n \\"Sql\\": \\"SELECT count(1) from payment_order where order_status = \'08\';\\",\\n \\"ResponseTime\\": 1568267711,\\n \\"Schema\\": \\"user\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsSlowSqlsReponse>\\n<RequestId>509BDE17-505A-4B3B-854D-30D3F0******</RequestId>\\n<PageSize>20</PageSize>\\n<PageNumber>1</PageNumber>\\n<Total>1</Total>\\n<Items>\\n <Item>\\n <SendTime>1568267711</SendTime>\\n <Schema>user</Schema>\\n <ResponseTime>1568267711</ResponseTime>\\n <Host>10.0.***.***</Host>\\n <Sql>SELECT count(1) from payment_order where order_status = \'08\';</Sql>\\n </Item>\\n</Items>\\n<Success>true</Success>\\n</DescribeDrdsSlowSqlsReponse>","errorExample":""}]', - 'title' => 'DescribeDrdsSlowSqls', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DescribePreCheckResult\\",\\n \\"PreCheckResult\\": {\\n \\"PreCheckName\\": \\"是否有唯一键\\",\\n \\"State\\": \\"FAIL\\",\\n \\"SubCheckItems\\": [\\n {\\n \\"ErrorMsgCode\\": \\"1004\\",\\n \\"PreCheckItemName\\": \\"唯一键\\",\\n \\"State\\": \\"成功\\",\\n \\"ErrorMsgParams\\": [\\n \\"table1\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'View pre-check result', + 'summary' => 'Calls the DescribePreCheckResult operation to view the pre-check result.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CheckSqlAuditEnableStatus' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribePreCheckResult'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribePreCheckResult', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + ], + 'DescribeRDSPerformance' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '75944', - 'abilityTreeNodes' => [ - 'FEATUREdrdsB0CUNV', - ], - ], + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => '<props="china">Instance ID of the PolarDB-X instance.</props>'."\n" + ."\n" + .'<props="intl">Instance ID of the DRDS instance.</props>.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*********', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'RdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The instance ID of the ApsaraDB RDS instance at the storage layer.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rm-************', 'title' => ''], + ], + [ + 'name' => 'Keys', + 'in' => 'query', + 'schema' => ['description' => 'The performance monitoring metrics. You can specify multiple metrics in a single request. Separate multiple metrics with commas (,).'."\n" + .'> For more information about performance monitoring metrics, see [Storage monitoring](~~186705~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'MySQL_MemCpuUsage', 'title' => ''], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time of the query. Specify a UNIX timestamp in UTC. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1603123290000', 'title' => ''], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time of the query. Specify a UNIX timestamp in UTC. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1603209690000', 'title' => ''], + ], + [ + 'name' => 'DbInstType', + 'in' => 'query', + 'schema' => ['description' => 'The database engine type.', 'type' => 'string', 'required' => false, 'example' => 'mysql', 'title' => ''], ], ], 'responses' => [ @@ -6523,130 +5608,108 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => 'The status of the SQL audit feature. Valid values:'."\n" - ."\n" - .'* enabled: The SQL audit feature is enabled.'."\n" - .'* disabled: The SQL audit feature is disabled.'."\n", - 'type' => 'string', - 'example' => 'enabled', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'FF13E47D-4E38-4A5A-BA68-32A554******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DB53EC68-463C-4187-8D2B-C2AD8C******', 'title' => ''], + 'Data' => [ + 'description' => 'The query result set.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The name of the monitoring metrics.', 'type' => 'string', 'example' => 'cpuusage', 'title' => ''], + 'NodeName' => ['description' => 'The node name.'."\n" + .'> This parameter is returned only when the database storage type is PolarDB for MySQL. This parameter is not returned for ApsaraDB RDS for MySQL.', 'type' => 'string', 'example' => 'pi-*************', 'title' => ''], + 'Unit' => ['description' => 'The unit of the monitoring metrics.', 'type' => 'string', 'example' => '%', 'title' => ''], + 'NodeNum' => ['description' => 'The number of nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Values' => [ + 'description' => 'The details of the monitoring metrics data.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Date' => ['description' => 'The point in time when the monitoring metrics value was collected. The value is in the format of a UNIX timestamp in UTC. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1603209660000', 'title' => ''], + 'Value' => ['description' => 'The value of the monitoring metrics.', 'type' => 'string', 'example' => '0.58', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 404 => [ + ['errorCode' => 'Monitor.QueryRdsFailure', 'errorMessage' => 'Failed to query RDS monitor info.', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"enabled\\",\\n \\"RequestId\\": \\"FF13E47D-4E38-4A5A-BA68-32A554******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Status>\\"disabled\\"</Status>\\n<RequestId>FF13E47D-4E38-4A5A-BA68-32A554******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'CheckSqlAuditEnableStatus', - 'summary' => 'Checks whether the SQL audit feature is enabled for the logical database of a PolarDB-X 1.0 instance.', + 'title' => 'Query storage-layer RDS performance data', + 'summary' => 'Queries the performance data of an ApsaraDB RDS instance at the storage layer by calling the DescribeRDSPerformance operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'StartRestore' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRDSPerformance'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRDSPerformance', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DB53EC68-463C-4187-8D2B-C2AD8C******\\",\\n \\"Data\\": [\\n {\\n \\"Key\\": \\"cpuusage\\",\\n \\"NodeName\\": \\"pi-*************\\",\\n \\"Unit\\": \\"%\\",\\n \\"NodeNum\\": 1,\\n \\"Values\\": [\\n {\\n \\"Date\\": 1603209660000,\\n \\"Value\\": \\"0.58\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', + ], + 'DescribeRdsCommodity' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'update', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'rds********', - ], - ], - [ - 'name' => 'PreferredBackupTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'The restoration time of the instance, in the format of` yyyy-MM-dd HH:mm:ss `.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '2019-09-10 20:18:18', - ], - ], - [ - 'name' => 'BackupMode', - 'in' => 'query', - 'schema' => [ - 'description' => 'The backup method. Valid values:'."\n" - ."\n" - .'* logic: the logical backup.'."\n" - .'* phy: fast backup'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'phy', - ], - ], - [ - 'name' => 'BackupLevel', - 'in' => 'query', - 'schema' => [ - 'description' => 'The level of the backup. Valid values:'."\n" - ."\n" - .'* db: The database level.'."\n" - .'* instance: the instance level.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'db', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds***********', 'title' => ''], ], [ - 'name' => 'BackupDbNames', + 'name' => 'CommodityCode', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database to be restored. Separate multiple databases with commas (,).'."\n" - ."\n" - .'> If you do not specify any database name, all databases in the instance are restored by default.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test1,test2', - ], + 'schema' => ['description' => 'The commodity code.', 'type' => 'string', 'required' => true, 'example' => 'drdsPost', 'title' => ''], ], [ - 'name' => 'BackupId', + 'name' => 'OrderType', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS backup set.'."\n" - ."\n" - .'> If you do not specify this parameter, the system restores data by time (PreferredBackupTime).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '23***', - ], + 'schema' => ['description' => 'The order type.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''], ], ], 'responses' => [ @@ -6654,175 +5717,184 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '721C71DD-D3D0-4327-BFDD-678326******', - ], - 'Result' => [ - 'description' => 'Indicates whether SQL audit was disabled for the DRDS database.'."\n", - 'type' => 'string', - 'example' => 'success', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Data' => ['description' => 'The result.', 'type' => 'string', 'example' => 'test', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DC3ABA3E-0F8A-4596-9104-F5155C34315B', 'title' => ''], + 'Success' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"721C71DD-D3D0-4327-BFDD-678326******\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Result>success</Result>\\n<RequestId>721C71DD-D3D0-4327-BFDD-678326******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'StartRestore', - 'summary' => 'Starts a backup-based restoration task.', + 'title' => 'Query RDS sale-related data', + 'summary' => 'Queries the sale-related data of the storage layer by calling the DescribeRdsCommodity operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'SetBackupPolicy' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRdsCommodity'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRdsCommodity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"test\\",\\n \\"RequestId\\": \\"DC3ABA3E-0F8A-4596-9104-F5155C34315B\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'DescribeRdsPerformanceSummary' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'update', - ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'DrdsInstanceId', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'PreferredBackupPeriod', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The backup cycle. Valid values:'."\n" - ."\n" - .'* 0: Monday'."\n" - .'* 1: Tuesday'."\n" - .'* 2: Wednesday'."\n" - .'* 3: Thursday'."\n" - .'* 4: Friday'."\n" - .'* 5: Saturday'."\n" - .'* 6: Sunday'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '0', - ], + 'schema' => ['description' => 'The DRDS instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'PreferredBackupStartTime', + 'name' => 'RdsInstanceId', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The start time of the backup.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '11:30:30', + 'description' => 'The list of ApsaraDB RDS instances.', + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'required' => true, + 'example' => 'rm-*****************', + 'maxItems' => 100, + 'title' => '', ], ], - [ - 'name' => 'PreferredBackupEndTime', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The end time of the backup.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '12:30:30', + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'Indicates whether the API request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B6876277-ECFD-4658-AC1E-A7FAD8******', 'title' => ''], + 'RdsPerformanceInfos' => [ + 'description' => 'The collection of objects.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Cpu' => ['description' => 'The CPU usage of the ApsaraDB RDS instance.', 'type' => 'number', 'format' => 'float', 'example' => '0.26', 'title' => ''], + 'ActiveSessions' => ['description' => 'The number of active sessions on the current ApsaraDB RDS instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'TotalSessions' => ['description' => 'The total number of sessions on the current ApsaraDB RDS instance.', 'type' => 'integer', 'format' => 'int32', 'example' => '162', 'title' => ''], + 'RdsId' => ['description' => 'The ApsaraDB RDS instance ID.', 'type' => 'string', 'example' => 'rm-**************', 'title' => ''], + 'Iops' => ['description' => 'The IOPS data of the ApsaraDB RDS instance.', 'type' => 'number', 'format' => 'float', 'example' => '17.62', 'title' => ''], + 'SpaceUsage' => ['description' => 'The disk usage of the ApsaraDB RDS instance. Unit: MB.', 'type' => 'integer', 'format' => 'int64', 'example' => '4145144777', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'BackupMode', - 'in' => 'query', - 'schema' => [ - 'description' => 'The backup mode. Valid values:'."\n" - ."\n" - .'* **Logic **: logical backup'."\n" - .'* **phy**: physical backup'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'phy', - ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''], + ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Query RDS performance details such as CPU', + 'summary' => 'Queries the performance details (such as CPU) of ApsaraDB RDS instances by calling the DescribeRdsPerformanceSummary operation.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRdsPerformanceSummary'], ], + ], + 'ramActions' => [ [ - 'name' => 'BackupLevel', - 'in' => 'query', - 'schema' => [ - 'description' => 'The level of the backup. Valid values:'."\n" - ."\n" - .'* db: The database type.'."\n" - .'* instance: instance'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'db', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRdsPerformanceSummary', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B6876277-ECFD-4658-AC1E-A7FAD8******\\",\\n \\"RdsPerformanceInfos\\": [\\n {\\n \\"Cpu\\": 0.26,\\n \\"ActiveSessions\\": 0,\\n \\"TotalSessions\\": 162,\\n \\"RdsId\\": \\"rm-**************\\",\\n \\"Iops\\": 17.62,\\n \\"SpaceUsage\\": 4145144777\\n }\\n ]\\n}","type":"json"}]', + ], + 'DescribeRdsSuperAccountInstances' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'BackupDbNames', - 'in' => 'query', - 'schema' => [ - 'description' => 'The databases to be backed up. Separate multiple databases with commas (,).'."\n" - ."\n" - .'> This parameter takes effect only when the backup level is database level.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test1,test2', - ], + 'AK' => [], ], + ], + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ [ - 'name' => 'BackupLog', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to enable log Backup. Valid values:'."\n" - ."\n" - .'* 1: enabled.'."\n" - .'* 0: disabled.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'DataBackupRetentionPeriod', + 'name' => 'DbInstType', 'in' => 'query', - 'schema' => [ - 'description' => 'The retention period of the backup data. Value range: 7 to 730.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '7', - ], + 'schema' => ['description' => 'The type of the database instance. Default value: **RDS**.', 'type' => 'string', 'required' => false, 'default' => 'RDS', 'example' => 'RDS', 'title' => ''], ], [ - 'name' => 'LogBackupRetentionPeriod', + 'name' => 'RdsInstance', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The log retention period. Valid values: 7 to 730. This value must be less than or equal to the number of data backup days.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '7', + 'description' => 'The list of ApsaraDB RDS instance IDs.', + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'required' => true, + 'example' => '[\'rm-*****************\',\'rm-*****************\']', + 'maxItems' => 30, + 'title' => '', ], ], ], @@ -6831,82 +5903,89 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', - ], - 'Result' => [ - 'description' => 'Indicates whether the backup policy was successfully configured.'."\n", - 'type' => 'string', - 'example' => 'success', - ], - 'Success' => [ - 'description' => 'Indicates whether the database creation failure records were removed from the DRDS instance.'."\n", - 'type' => 'boolean', - 'example' => 'true', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '5D64DE5944A1E541E0******', 'title' => ''], + 'DbInstances' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'DbInstance' => [ + 'type' => 'array', + 'items' => ['description' => 'The collection of privileged accounts.', 'type' => 'string', 'example' => 'rm-*****************', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ActionUnauthorized', 'errorMessage' => 'The specified action is not available for you', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>A3140FC7-B78B-4D8E-B0C8-926D28******</RequestId>\\n<Result>success</Result>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'SetBackupPolicy', - 'summary' => 'You can call the SetBackupPolicy to set backup policy.', + 'title' => 'Retrieve RDS privileged accounts', + 'summary' => 'Calls DescribeRdsSuperAccountInstances to retrieve the privileged accounts of ApsaraDB RDS instances.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'EnableSqlFlashbackMatchSwitch' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRdsSuperAccountInstances'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRdsSuperAccountInstances', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5D64DE5944A1E541E0******\\",\\n \\"DbInstances\\": {\\n \\"DbInstance\\": [\\n \\"rm-*****************\\"\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeRecycleBinStatus' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '76062', - 'abilityTreeNodes' => [ - 'FEATUREdrds73QXOU', - ], - ], + 'operationType' => 'read', + 'systemTags' => [], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the ApsaraDB RDS for PostgreSQL instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database you want to back up.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The name of the database created on the DRDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -6914,67 +5993,78 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '463A5F0F-12AD-4544-A902-B2B983******', - ], - 'Result' => [ - 'description' => 'Indicates whether SqlFlashbackMatchSwitch is enabled or not.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was sent successfully or not.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Status' => ['description' => 'The status of the table recycle bin. Valid values:'."\n" + .'* disable: The table recycle bin is disabled.'."\n" + .'* enable: The table recycle bin is enabled.', 'type' => 'string', 'example' => 'disable', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'ACB5258F-25AF-4D7C-8FAA-B6FE60******', 'title' => ''], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"463A5F0F-12AD-4544-A902-B2B983******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Result>true</Result>\\n<RequestId>463A5F0F-12AD-4544-A902-B2B983******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'EnableSqlFlashbackMatchSwitch', - 'summary' => 'You can call this operation to implement precise data recovery during SQL flashback. In this case, the information about the execution QUERY is added to the RDS BINLOG used by the DRDS database.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"disable\\",\\n \\"RequestId\\": \\"ACB5258F-25AF-4D7C-8FAA-B6FE60******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Query table recycle bin status', + 'summary' => 'Queries the status of the table recycle bin by calling the DescribeRecycleBinStatus operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeBackMenu' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRecycleBinStatus'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:DescribeRecycleBinStatus', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + ], + 'DescribeRecycleBinTables' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'none', + 'abilityTreeCode' => '76046', + 'abilityTreeNodes' => ['FEATUREdrdsZVW4NQ'], ], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds***********', 'title' => ''], + ], + [ + 'name' => 'DbName', + 'in' => 'query', + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds_test', 'title' => ''], ], ], 'responses' => [ @@ -6982,143 +6072,106 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'The result of request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.', - 'type' => 'string', - 'example' => '60C21BE4-EDFE-454C-95ED-3A5C74******', - ], - 'List' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'list' => [ - 'description' => 'The backup information list.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Support' => [ - 'description' => 'Indicates whether backup recovery is supported.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'MenuName' => [ - 'description' => 'The backup method. Valid values:'."\n" - ."\n" - .'* **Logic **: logical backup'."\n" - .'* **phy**: physical backup'."\n", - 'type' => 'string', - 'example' => 'phy', - ], - ], - ], + 'Success' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '5D64DE5944A1E541E0CB908A', 'title' => ''], + 'Data' => [ + 'description' => 'The returned data object.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'OriginalTableName' => ['description' => 'The original table name.', 'type' => 'string', 'example' => 'BIN_T4AG3CY5WWXPKHITCHJY', 'title' => ''], + 'TableName' => ['description' => 'The table name.', 'type' => 'string', 'example' => 'test', 'title' => ''], + 'CreateTime' => ['description' => 'The creation time.', 'type' => 'string', 'example' => '2019-09-16 14:42:06', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"60C21BE4-EDFE-454C-95ED-3A5C74******\\",\\n \\"List\\": {\\n \\"list\\": [\\n {\\n \\"Support\\": true,\\n \\"MenuName\\": \\"phy\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<List>\\n <MenuName>phy</MenuName>\\n <Support>true</Support>\\n</List>\\n<List>\\n <MenuName>logic</MenuName>\\n <Support>true</Support>\\n</List>\\n<RequestId>60C21BE4-EDFE-454C-95ED-3A5C74******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeBackMenu', - 'summary' => 'Call the interface DescribeBackMenu to check whether the DRDS instance supports restorate the backup.', + 'title' => 'Query recyclable tables', + 'summary' => 'Queries the recyclable tables.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeRestoreOrder' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRecycleBinTables'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:DescribeRecycleBinTables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"5D64DE5944A1E541E0CB908A\\",\\n \\"Data\\": [\\n {\\n \\"OriginalTableName\\": \\"BIN_T4AG3CY5WWXPKHITCHJY\\",\\n \\"TableName\\": \\"test\\",\\n \\"CreateTime\\": \\"2019-09-16 14:42:06\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'DescribeRestoreOrder' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance for which to modify the backup policy.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'PreferredBackupTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The preferred backup time.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '2019-09-16 15:12:53', - ], + 'schema' => ['description' => 'The backup time.', 'type' => 'string', 'required' => false, 'example' => '2019-09-16 15:12:53', 'title' => ''], ], [ 'name' => 'BackupMode', 'in' => 'query', - 'schema' => [ - 'description' => 'The backup mode. Valid values: **logic** or **phy**.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'phy', - ], + 'schema' => ['description' => 'The backup mode. Valid values:'."\n" + .'- **logic**: logical backup'."\n" + .'- **phy**: physical backup.', 'type' => 'string', 'required' => false, 'example' => 'phy', 'title' => ''], ], [ 'name' => 'BackupLevel', 'in' => 'query', - 'schema' => [ - 'description' => 'The level of the backup. Valid values:'."\n" - ."\n" - .'* **DB**: The database Level'."\n" - .'* **instance **: instance level'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'db', - ], + 'schema' => ['description' => 'The backup level. Valid values:'."\n" + .'* **db**: database level'."\n" + .'* **instance**: instance level.', 'type' => 'string', 'required' => false, 'example' => 'db', 'title' => ''], ], [ 'name' => 'BackupDbNames', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database involved in the backup.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_flashback', - ], + 'schema' => ['description' => 'The name of the database involved in the backup.', 'type' => 'string', 'required' => false, 'example' => 'drds_flashback', 'title' => ''], ], [ 'name' => 'BackupId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the backup set.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1918df27-4563-11e9-8403-af4fbe******', - ], + 'schema' => ['description' => 'The backup ID.', 'type' => 'string', 'required' => false, 'example' => '1918df27-4563-11e9-8403-af4fbe******', 'title' => ''], ], ], 'responses' => [ @@ -7126,18 +6179,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0AD2DE5D-B86B-40B5-9678-487D37******', - ], + 'Success' => ['description' => 'Indicates whether the API request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0AD2DE5D-B86B-40B5-9678-487D37******', 'title' => ''], 'RestoreOrderDO' => [ - 'description' => 'The returned data object.'."\n", + 'description' => 'The returned data object.', 'type' => 'object', 'properties' => [ 'DrdsOrderDOList' => [ @@ -7145,195 +6190,143 @@ 'itemNode' => true, 'properties' => [ 'DrdsOrderDOList' => [ - 'description' => 'The information of the restored order.'."\n", + 'description' => 'The restoration order information.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'description' => 'The ID of the VPC network.'."\n", - 'type' => 'string', - 'example' => 'vpc-*******************', - ], - 'Network' => [ - 'description' => 'The network type. Valid values:'."\n" - ."\n" - .'* **Classic **: Classic Network'."\n" - .'* **vpc**: VPC'."\n", - 'type' => 'string', - 'example' => 'vpc', - ], - 'VSwtichId' => [ - 'description' => 'The ID of the vSwitch in the VPC.'."\n", - 'type' => 'string', - 'example' => 'vsw-*******************', - ], - 'InstSpec' => [ - 'description' => 'The instance type of the instance.'."\n", - 'type' => 'string', - 'example' => '4C8G * 2', - ], - 'AzoneId' => [ - 'description' => 'The ID of the zone for which to query resources.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-e', - ], - 'RegionId' => [ - 'description' => 'The region ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], + 'VpcId' => ['description' => 'The VPC ID.', 'type' => 'string', 'example' => 'vpc-*******************', 'title' => ''], + 'Network' => ['description' => 'The network type. Valid values:'."\n" + .'* **classic**: classic network'."\n" + .'* **vpc**: VPC.', 'type' => 'string', 'example' => 'vpc', 'title' => ''], + 'VSwtichId' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'example' => 'vsw-*******************', 'title' => ''], + 'InstSpec' => ['description' => 'The instance specifications.', 'type' => 'string', 'example' => '4C8G * 2', 'title' => ''], + 'AzoneId' => ['description' => 'The zone ID.', 'type' => 'string', 'example' => 'cn-hangzhou-e', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], 'RdsOrderDOList' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'RdsOrderDOList' => [ - 'description' => 'The information of the restored RDS order.', + 'description' => 'The restoration order information for ApsaraDB RDS.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Network' => [ - 'description' => 'The network type. Valid values: - **Classic **: Classic Network'."\n" - .'- **vpc**: VPC', - 'type' => 'string', - 'example' => 'VPC', - ], - 'Version' => [ - 'description' => 'The version of the operating system.', - 'type' => 'string', - 'example' => '5.6', - ], - 'InstanceClass' => [ - 'description' => 'The instance type of the instance.', - 'type' => 'string', - 'example' => 'rds.mysql.s2.large', - ], - 'DbInstanceStorage' => [ - 'description' => 'The capacity of disk.', - 'type' => 'string', - 'example' => '10240', - ], - 'Num' => [ - 'description' => 'The number of streams that were returned.', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Engine' => [ - 'description' => 'The storage engine of the instance.', - 'type' => 'string', - 'example' => 'MYSQL', - ], - 'AzoneId' => [ - 'description' => 'The zone ID of the node.', - 'type' => 'string', - 'example' => 'cn-hangzhou-g', - ], - 'RegionId' => [ - 'description' => 'The region ID of the instance.', - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], + 'Network' => ['description' => 'The network type. Valid values:'."\n" + .'* **classic**: classic network'."\n" + .'* **vpc**: VPC.', 'type' => 'string', 'example' => 'VPC', 'title' => ''], + 'Version' => ['description' => 'The version number.', 'type' => 'string', 'example' => '5.6', 'title' => ''], + 'InstanceClass' => ['description' => 'The instance specifications.', 'type' => 'string', 'example' => 'rds.mysql.s2.large', 'title' => ''], + 'DbInstanceStorage' => ['description' => 'The disk capacity.', 'type' => 'string', 'example' => '10240', 'title' => ''], + 'Num' => ['description' => 'The quantity.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'Engine' => ['description' => 'The storage engine.', 'type' => 'string', 'example' => 'MYSQL', 'title' => ''], + 'AzoneId' => ['description' => 'The zone ID.', 'type' => 'string', 'example' => 'cn-hangzhou-g', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], 'PolarOrderDOList' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'PolarOrderDOList' => [ - 'description' => 'The ID of the restored apsaradb for PolarDB cluster.', + 'description' => 'The restoration order information for PolarDB.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Network' => [ - 'description' => 'The network type. Valid values:'."\n" - ."\n" - .'* **Classic**: Classic Network'."\n" - .'* **vpc**: VPC', - 'type' => 'string', - 'example' => 'VPC', - ], - 'Version' => [ - 'description' => 'The version of the operating system.'."\n", - 'type' => 'string', - 'example' => '5.6', - ], - 'InstanceClass' => [ - 'description' => 'The type of the instance.'."\n", - 'type' => 'string', - 'example' => 'polar.mysql.x4.large', - ], - 'DbInstanceStorage' => [ - 'description' => 'The capacity of disk.'."\n", - 'type' => 'string', - 'example' => '10240', - ], - 'Num' => [ - 'description' => 'The number of streams that were returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Engine' => [ - 'description' => 'The storage engine of PolarDB.'."\n", - 'type' => 'string', - 'example' => 'POLARDB', - ], - 'AzoneId' => [ - 'description' => 'The zone ID of the node.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou-g', - ], - 'RegionId' => [ - 'description' => 'The region ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], + 'Network' => ['description' => 'The network type. Valid values:'."\n" + .'* **classic**: classic network'."\n" + .'* **vpc**: VPC.', 'type' => 'string', 'example' => 'VPC', 'title' => ''], + 'Version' => ['description' => 'The version number.', 'type' => 'string', 'example' => '5.6', 'title' => ''], + 'InstanceClass' => ['description' => 'The instance specifications.', 'type' => 'string', 'example' => 'polar.mysql.x4.large', 'title' => ''], + 'DbInstanceStorage' => ['description' => 'The disk capacity.', 'type' => 'string', 'example' => '10240', 'title' => ''], + 'Num' => ['description' => 'The quantity.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'Engine' => ['description' => 'The PolarDB storage engine.', 'type' => 'string', 'example' => 'POLARDB', 'title' => ''], + 'AzoneId' => ['description' => 'The zone ID.', 'type' => 'string', 'example' => 'cn-hangzhou-g', 'title' => ''], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0AD2DE5D-B86B-40B5-9678-487D37******\\",\\n \\"RestoreOrderDO\\": {\\n \\"DrdsOrderDOList\\": {\\n \\"DrdsOrderDOList\\": [\\n {\\n \\"VpcId\\": \\"vpc-*******************\\",\\n \\"Network\\": \\"vpc\\",\\n \\"VSwtichId\\": \\"vsw-*******************\\",\\n \\"InstSpec\\": \\"4C8G * 2\\",\\n \\"AzoneId\\": \\"cn-hangzhou-e\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n },\\n \\"RdsOrderDOList\\": {\\n \\"RdsOrderDOList\\": [\\n {\\n \\"Network\\": \\"VPC\\",\\n \\"Version\\": \\"5.6\\",\\n \\"InstanceClass\\": \\"rds.mysql.s2.large\\",\\n \\"DbInstanceStorage\\": \\"10240\\",\\n \\"Num\\": 1,\\n \\"Engine\\": \\"MYSQL\\",\\n \\"AzoneId\\": \\"cn-hangzhou-g\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n },\\n \\"PolarOrderDOList\\": {\\n \\"PolarOrderDOList\\": [\\n {\\n \\"Network\\": \\"VPC\\",\\n \\"Version\\": \\"5.6\\",\\n \\"InstanceClass\\": \\"polar.mysql.x4.large\\",\\n \\"DbInstanceStorage\\": \\"10240\\",\\n \\"Num\\": 1,\\n \\"Engine\\": \\"POLARDB\\",\\n \\"AzoneId\\": \\"cn-hangzhou-g\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>0AD2DE5D-B86B-40B5-9678-487D37******</RequestId>\\n<RestoreOrderDO>\\n <RdsOrderDOList>\\n </RdsOrderDOList>\\n <DrdsOrderDOList>\\n <DrdsOrderDOList>\\n <InstSpec>4C8G * 2</InstSpec>\\n <AzoneId>cn-hangzhou-e</AzoneId>\\n <Network>vpc</Network>\\n <RegionId>cn-hangzhou</RegionId>\\n <VpcId>vpc-*******************</VpcId>\\n </DrdsOrderDOList>\\n </DrdsOrderDOList>\\n <PolarOrderDOList>\\n <PolarOrderDOList>\\n <InstanceClass>polar.mysql.x4.large</InstanceClass>\\n <Num>1</Num>\\n <AzoneId>cn-hangzhou-g</AzoneId>\\n <Network>VPC</Network>\\n <RegionId>cn-hangzhou</RegionId>\\n <DbInstanceStorage>10240</DbInstanceStorage>\\n <Version>5.6</Version>\\n <Engine>POLARDB</Engine>\\n </PolarOrderDOList>\\n <PolarOrderDOList>\\n <InstanceClass>polar.mysql.x4.large</InstanceClass>\\n <Num>1</Num>\\n <AzoneId>cn-hangzhou-g</AzoneId>\\n <Network>VPC</Network>\\n <RegionId>cn-hangzhou</RegionId>\\n <DbInstanceStorage>10240</DbInstanceStorage>\\n <Version>5.6</Version>\\n <Engine>POLARDB</Engine>\\n </PolarOrderDOList>\\n </PolarOrderDOList>\\n</RestoreOrderDO>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeRestoreOrder', - 'summary' => 'You can call the DescribeRestoreOrder operation to view the details of the order.', + 'title' => 'View restoration purchase order details', + 'summary' => 'Queries the order details of the current restoration purchase.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeBackupDbs' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRestoreOrder'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRestoreOrder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0AD2DE5D-B86B-40B5-9678-487D37******\\",\\n \\"RestoreOrderDO\\": {\\n \\"DrdsOrderDOList\\": {\\n \\"DrdsOrderDOList\\": [\\n {\\n \\"VpcId\\": \\"vpc-*******************\\",\\n \\"Network\\": \\"vpc\\",\\n \\"VSwtichId\\": \\"vsw-*******************\\",\\n \\"InstSpec\\": \\"4C8G * 2\\",\\n \\"AzoneId\\": \\"cn-hangzhou-e\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n },\\n \\"RdsOrderDOList\\": {\\n \\"RdsOrderDOList\\": [\\n {\\n \\"Network\\": \\"VPC\\",\\n \\"Version\\": \\"5.6\\",\\n \\"InstanceClass\\": \\"rds.mysql.s2.large\\",\\n \\"DbInstanceStorage\\": \\"10240\\",\\n \\"Num\\": 1,\\n \\"Engine\\": \\"MYSQL\\",\\n \\"AzoneId\\": \\"cn-hangzhou-g\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n },\\n \\"PolarOrderDOList\\": {\\n \\"PolarOrderDOList\\": [\\n {\\n \\"Network\\": \\"VPC\\",\\n \\"Version\\": \\"5.6\\",\\n \\"InstanceClass\\": \\"polar.mysql.x4.large\\",\\n \\"DbInstanceStorage\\": \\"10240\\",\\n \\"Num\\": 1,\\n \\"Engine\\": \\"POLARDB\\",\\n \\"AzoneId\\": \\"cn-hangzhou-g\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', + ], + 'DescribeShardTaskInfo' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7341,37 +6334,34 @@ ], 'systemTags' => [ 'operationType' => 'get', + 'abilityTreeCode' => '76048', + 'abilityTreeNodes' => ['FEATUREdrdsD6TUSC'], ], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of a DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*********', 'title' => ''], ], [ - 'name' => 'PreferredRestoreTime', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'Query by restoration time.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1568632541236', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'jjjjjj_ppppp', 'title' => ''], ], [ - 'name' => 'BackupId', + 'name' => 'SourceTableName', 'in' => 'query', - 'schema' => [ - 'description' => 'Query by backup set ID'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '201908367', - ], + 'schema' => ['description' => 'The source table name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'a1', 'title' => ''], + ], + [ + 'name' => 'TargetTableName', + 'in' => 'query', + 'schema' => ['description' => 'The target table name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'maxLength' => 100, 'minLength' => 1, 'example' => 'a2', 'title' => ''], ], ], 'responses' => [ @@ -7379,99 +6369,138 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'The result of request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '842DFA7F-B09B-42A2-B115-E684AE******', - ], - 'DbNames' => [ + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The unique request ID. If you encounter an issue, provide this request ID for troubleshooting.', 'type' => 'string', 'example' => '5D64DE5944A1E541E0CB908A', 'title' => ''], + 'Data' => [ + 'description' => 'The returned data.', 'type' => 'object', - 'itemNode' => true, 'properties' => [ - 'dbName' => [ - 'description' => 'The details about a database.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => '["db1","db2"]', + 'Status' => ['description' => 'The status.', 'type' => 'string', 'example' => '增量追平', 'title' => ''], + 'Stage' => ['description' => 'The current stage.', 'type' => 'string', 'example' => '2', 'title' => ''], + 'Progress' => ['description' => 'The progress.', 'type' => 'string', 'example' => '70', 'title' => ''], + 'Expired' => ['description' => 'The expiration time.', 'type' => 'string', 'example' => '0', 'title' => ''], + 'TargetTableName' => ['description' => 'The target table name.', 'type' => 'string', 'example' => 'a2', 'title' => ''], + 'SourceTableName' => ['description' => 'The source table name.', 'type' => 'string', 'example' => 'a1', 'title' => ''], + 'Full' => [ + 'description' => 'The full migration information.', + 'type' => 'object', + 'properties' => [ + 'StartTime' => ['description' => 'The start time.', 'type' => 'string', 'example' => '2019-09-16 15:11:53', 'title' => ''], + 'Progress' => ['description' => 'The current progress.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''], + 'Tps' => ['description' => 'The number of transactions processed per second by the database.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Total' => ['description' => 'The number of tasks.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'Expired' => ['description' => 'The task expiration time.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'FullCheck' => [ + 'description' => 'The full check information.', + 'type' => 'object', + 'properties' => [ + 'StartTime' => ['description' => 'The start time.', 'type' => 'string', 'example' => '2019-09-16 15:12:53', 'title' => ''], + 'Progress' => ['description' => 'The current progress.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Tps' => ['description' => 'The number of transactions processed per second by the database.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Total' => ['description' => 'The total number of tasks.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Expired' => ['description' => 'The expiration time.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'FullRevise' => [ + 'description' => 'The full revision information.', + 'type' => 'object', + 'properties' => [ + 'StartTime' => ['description' => 'The start time.', 'type' => 'string', 'example' => '2019-09-16 15:12:53', 'title' => ''], + 'Progress' => ['description' => 'The current progress.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Tps' => ['description' => 'The number of transactions processed per second by the database.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Total' => ['description' => 'The number of tasks.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Expired' => ['description' => 'The expiration time.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'Review' => [ + 'description' => 'The review information.', + 'type' => 'object', + 'properties' => [ + 'StartTime' => ['description' => 'The start time.', 'type' => 'string', 'example' => '2019-09-16 15:12:53', 'title' => ''], + 'Progress' => ['description' => 'The progress.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Tps' => ['description' => 'The number of transactions processed per second by the database.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'Total' => ['description' => 'The number of tasks.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'Expired' => ['description' => 'The expiration time.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], ], + 'title' => '', + 'example' => '', + ], + 'Increment' => [ + 'description' => 'The incremental migration information.', + 'type' => 'object', + 'properties' => [ + 'Delay' => ['description' => 'The delay.', 'type' => 'integer', 'format' => 'int32', 'example' => '1568617906', 'title' => ''], + 'StartTime' => ['description' => 'The start time.', 'type' => 'string', 'example' => '2019-09-16 15:12:53', 'title' => ''], + 'Tps' => ['description' => 'The number of transactions processed per second by the database.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"842DFA7F-B09B-42A2-B115-E684AE******\\",\\n \\"DbNames\\": {\\n \\"dbName\\": [\\n \\"[\\\\\\"db1\\\\\\",\\\\\\"db2\\\\\\"]\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DbNames>\\n</DbNames>\\n<RequestId>842DFA7F-B09B-42A2-B115-E684AE******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeBackupDbs', - 'summary' => 'You can call this operation to query the list of databases that can be restored.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"5D64DE5944A1E541E0CB908A\\",\\n \\"Data\\": {\\n \\"Status\\": \\"增量追平\\",\\n \\"Stage\\": \\"2\\",\\n \\"Progress\\": \\"70\\",\\n \\"Expired\\": \\"0\\",\\n \\"TargetTableName\\": \\"a2\\",\\n \\"SourceTableName\\": \\"a1\\",\\n \\"Full\\": {\\n \\"StartTime\\": \\"2019-09-16 15:11:53\\",\\n \\"Progress\\": 100,\\n \\"Tps\\": 0,\\n \\"Total\\": 2,\\n \\"Expired\\": 0\\n },\\n \\"FullCheck\\": {\\n \\"StartTime\\": \\"2019-09-16 15:12:53\\",\\n \\"Progress\\": 0,\\n \\"Tps\\": 0,\\n \\"Total\\": 0,\\n \\"Expired\\": 0\\n },\\n \\"FullRevise\\": {\\n \\"StartTime\\": \\"2019-09-16 15:12:53\\",\\n \\"Progress\\": 0,\\n \\"Tps\\": 0,\\n \\"Total\\": 0,\\n \\"Expired\\": 0\\n },\\n \\"Review\\": {\\n \\"StartTime\\": \\"2019-09-16 15:12:53\\",\\n \\"Progress\\": 0,\\n \\"Tps\\": 10,\\n \\"Total\\": 5,\\n \\"Expired\\": 0\\n },\\n \\"Increment\\": {\\n \\"Delay\\": 1568617906,\\n \\"StartTime\\": \\"2019-09-16 15:12:53\\",\\n \\"Tps\\": 10\\n }\\n }\\n}","type":"json"}]', + 'title' => 'Query shard change tool details', + 'summary' => 'Queries the details of the shard change tool by calling DescribeShardTaskInfo.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeBackupSets' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeShardTaskInfo'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeShardTaskInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeSqlFlashbakTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'operationType' => 'read', + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***********', - ], - ], - [ - 'name' => 'StartTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'The beginning of the query time which is in timestamp format (measured in millisecond).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '1591327800000', - ], - ], - [ - 'name' => 'EndTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'The end of the query time which is in timestamp format (measured in millisecond) .'."\n" - ."\n" - .'> The end time must be later than the start time.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '1591326000000', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds****c6vxxyzd', 'title' => ''], ], ], 'responses' => [ @@ -7479,161 +6508,127 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '7103AEE3-9025-442F-B82B-BABD0A******', - ], - 'BackupSets' => [ + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '5D64DE59-44A1-E541-E0CB-B7E5C4305162', 'title' => ''], + 'SqlFlashbackTasks' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'backupSet' => [ - 'description' => 'The list of backup sets.'."\n", + 'SqlFlashbackTask' => [ + 'description' => 'The flashback task object.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'EnableRecovery' => [ - 'description' => 'Indicates whether the backup set can be restored. Valid values:'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'Status' => [ - 'description' => 'The status of the backup instance. Valid values:'."\n" - ."\n" - .'* \\-1: Failed'."\n" - .'* 0: Not started'."\n" - .'* 1: The storage instance is running.'."\n" - .'* 2: Success'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'BackupConsitentTime' => [ - 'description' => 'Backup Recovery duration.'."\n", - 'type' => 'string', - 'example' => '2020-06-05 11:31:38', - ], - 'BackupType' => [ - 'description' => 'The type of the backup. Valid values:'."\n" - ."\n" - .'* manual: indicates a manual backup.'."\n" - .'* auto: indicates an automatic backup.'."\n", - 'type' => 'string', - 'example' => 'manual', - ], - 'BackupStartTime' => [ - 'description' => 'The beginning of the backup time which is in timestamp format (measured in millisecond).'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1591327754000', - ], - 'BackupLevel' => [ - 'description' => 'The level of the backup. Valid values:'."\n" - ."\n" - .'* db: The database level.'."\n" - .'* instance: the instance level.'."\n", - 'type' => 'string', - 'example' => 'instance', - ], - 'BackupMode' => [ - 'description' => 'The backup method. Valid values:'."\n" - ."\n" - .'* logic: the logical backup.'."\n" - .'* phy: fast backup'."\n", - 'type' => 'string', - 'example' => 'logic', - ], - 'BackupEndTime' => [ - 'description' => 'The end of the backup time which is in timestamp format (measured in millisecond).'."\n" - ."\n" - .'> 0 indicates not finished.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1591327899000', - ], - 'Id' => [ - 'description' => 'The ID of the data backup file you want to use.'."\n", - 'type' => 'string', - 'example' => 'ba30d5c4-a6dc-11ea-bd40-************', - ], - 'BackupTotalSize' => [ - 'description' => 'The size of the backup set. Unit: MB.'."\n", - 'type' => 'string', - 'example' => '93.24', - ], - 'BackupDbs' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'backupDb' => [ - 'description' => 'The list of backup databases.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => '["dts********"]', - ], - ], - ], - ], + 'TableName' => ['description' => 'The name of the table to which the data belongs.', 'type' => 'string', 'example' => 'drds_params', 'title' => ''], + 'SearchEndTime' => ['description' => 'The end time of the search.', 'type' => 'integer', 'format' => 'int64', 'example' => '1568509597000', 'title' => ''], + 'ExpireTime' => ['description' => 'The expiration time of the download URL.', 'type' => 'integer', 'format' => 'int64', 'example' => '1569216270000', 'title' => ''], + 'DownloadUrl' => ['description' => 'The download URL.', 'type' => 'string', 'example' => 'http://...', 'title' => ''], + 'RecallProgress' => ['description' => 'The progress of the reverse recall.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'SqlPk' => ['description' => 'The primary key value associated with the SQL statement.', 'type' => 'string', 'example' => 'id', 'title' => ''], + 'InstId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'drdshbga76p6****', 'title' => ''], + 'RecallType' => ['description' => 'The recall type. Valid values:'."\n" + ."\n" + .'- **0**: exact search'."\n" + .'- **1**: fuzzy match.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'SearchStartTime' => ['description' => 'The start time of the search.', 'type' => 'integer', 'format' => 'int64', 'example' => '1568609597000', 'title' => ''], + 'GmtModified' => ['description' => 'The modification time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1568611469000', 'title' => ''], + 'SqlCounter' => ['description' => 'The number of recovered data rows.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''], + 'DbName' => ['description' => 'The database name of the flashback task.', 'type' => 'string', 'example' => 'drds_flashback', 'title' => ''], + 'RecallRestoreType' => ['description' => 'The restore type. Valid values:'."\n" + ."\n" + .'- **1**: image-based restore'."\n" + .'- **2**: reverse restore.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'GmtCreate' => ['description' => 'The creation time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1568611408000', 'title' => ''], + 'TraceId' => ['description' => 'The trace_id of the SQL statement.', 'type' => 'string', 'example' => 'trace', 'title' => ''], + 'Id' => ['description' => 'The primary key ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '238', 'title' => ''], + 'RecallStatus' => ['description' => 'The status of the data recall task.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'SqlType' => ['description' => 'The type of the SQL statement.', 'type' => 'string', 'example' => 'Insert,Update,Delete', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"7103AEE3-9025-442F-B82B-BABD0A******\\",\\n \\"BackupSets\\": {\\n \\"backupSet\\": [\\n {\\n \\"EnableRecovery\\": false,\\n \\"Status\\": 2,\\n \\"BackupConsitentTime\\": \\"2020-06-05 11:31:38\\",\\n \\"BackupType\\": \\"manual\\",\\n \\"BackupStartTime\\": 1591327754000,\\n \\"BackupLevel\\": \\"instance\\",\\n \\"BackupMode\\": \\"logic\\",\\n \\"BackupEndTime\\": 1591327899000,\\n \\"Id\\": \\"ba30d5c4-a6dc-11ea-bd40-************\\",\\n \\"BackupTotalSize\\": \\"93.24\\",\\n \\"BackupDbs\\": {\\n \\"backupDb\\": [\\n \\"[\\\\\\"dts********\\\\\\"]\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>7103AEE3-9025-442F-B82B-BABD0A******</RequestId>\\n<BackupSets>\\n <backupSet>\\n <Status>2</Status>\\n <BackupTotalSize>93.24</BackupTotalSize>\\n <BackupConsitentTime>2020-06-05 11:31:38</BackupConsitentTime>\\n <BackupEndTime>1591327899000</BackupEndTime>\\n <BackupMode>logic</BackupMode>\\n <BackupLevel>instance</BackupLevel>\\n <BackupStartTime>1591327754000</BackupStartTime>\\n <BackupType>manual</BackupType>\\n <BackupDbs>\\n <backupDb>dts********</backupDb>\\n </BackupDbs>\\n <Id>ba30d5c4-a6dc-11ea-bd40-************</Id>\\n <EnableRecovery>true</EnableRecovery>\\n </backupSet>\\n</BackupSets>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeBackupSets', - 'summary' => 'Queries DescribeBackupSets backup sets.', + 'title' => 'Query flashback tasks', + 'summary' => 'Queries the list of flashback tasks.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeBackupPolicy' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSqlFlashbakTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeSqlFlashbakTask', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"5D64DE59-44A1-E541-E0CB-B7E5C4305162\\",\\n \\"SqlFlashbackTasks\\": {\\n \\"SqlFlashbackTask\\": [\\n {\\n \\"TableName\\": \\"drds_params\\",\\n \\"SearchEndTime\\": 1568509597000,\\n \\"ExpireTime\\": 1569216270000,\\n \\"DownloadUrl\\": \\"http://...\\",\\n \\"RecallProgress\\": 10,\\n \\"SqlPk\\": \\"id\\",\\n \\"InstId\\": \\"drdshbga76p6****\\",\\n \\"RecallType\\": 1,\\n \\"SearchStartTime\\": 1568609597000,\\n \\"GmtModified\\": 1568611469000,\\n \\"SqlCounter\\": 0,\\n \\"DbName\\": \\"drds_flashback\\",\\n \\"RecallRestoreType\\": 1,\\n \\"GmtCreate\\": 1568611408000,\\n \\"TraceId\\": \\"trace\\",\\n \\"Id\\": 238,\\n \\"RecallStatus\\": 1,\\n \\"SqlType\\": \\"Insert,Update,Delete\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeTable' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'systemTags' => [ 'operationType' => 'get', + 'abilityTreeCode' => '76053', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdshbga71nn****', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*********', 'title' => ''], + ], + [ + 'name' => 'DbName', + 'in' => 'query', + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds_flashback', 'title' => ''], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => ['description' => 'The table name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'employee_split', 'title' => ''], ], ], 'responses' => [ @@ -7641,168 +6636,77 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '8FAF3989-79CD-4A67-8FFD-97899B64****', - ], - 'BackupPolicyDO' => [ - 'description' => 'The information about the backup policy.'."\n", + 'Success' => ['description' => 'Indicates whether the API request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The unique request ID. If an issue occurs, provide this ID to support engineers for troubleshooting.', 'type' => 'string', 'example' => 'B5644ABB-559A-4A1C-83F2-9E7209******', 'title' => ''], + 'Data' => [ + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'BackupDbName' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'LogBackupRetentionPeriod' => [ - 'description' => 'The retention period of log backup files. Unit: days.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'DataBackupRetentionPeriod' => [ - 'description' => 'The retention period of data backup files. Unit: days.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'BackupType' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'BackupLevel' => [ - 'description' => 'The backup level. Valid values:'."\n" - ."\n" - .'* **db**: database backup'."\n" - .'* **instance**: instance backup'."\n", - 'type' => 'string', - 'example' => 'instance', - ], - 'LocalLogRetentionHours' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'HighSpaceUsageProtection' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'GmtModified' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'BackupRetentionPeriod' => [ - 'description' => 'The retention period of backup files. Unit: days.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'BackupPolicyMode' => [ - 'description' => 'The type of the backup policy. Valid values:'."\n" - ."\n" - .'* **DataBackupPolicy**: a data backup policy'."\n" - .'* **LogBackupPolicy**: a log backup policy'."\n", - 'type' => 'string', - 'example' => 'DataBackupPolicy', - ], - 'PreferredBackupPeriod' => [ - 'description' => 'The backup cycle. You can specify multiple backup cycles. Separate multiple backup cycles with commas (,). Valid values:'."\n" - ."\n" - .'* **0**: every Monday'."\n" - .'* **1**: every Tuesday'."\n" - .'* **2**: every Wednesday'."\n" - .'* **3**: every Thursday'."\n" - .'* **4**: every Friday'."\n" - .'* **5**: every Saturday'."\n" - .'* **6**: every Sunday'."\n", - 'type' => 'string', - 'example' => '1,4', - ], - 'LocalLogRetentionSpace' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'BackupAppName' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'PreferredBackupTime' => [ - 'description' => 'The time range in which a backup is performed. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '22:00:00-23:00:00', - ], - 'GmtCreate' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'BackupMode' => [ - 'description' => 'The backup mode. Valid values:'."\n" - ."\n" - .'* **logic**: logical backup'."\n" - .'* **phy**: fast backup'."\n", - 'type' => 'string', - 'example' => 'phy', - ], - 'BackupLog' => [ - 'description' => 'Indicates whether the log backup feature is enabled. Valid values:'."\n" - ."\n" - .'* **1**: The log backup feature is enabled.'."\n" - .'* **0**: The log backup feature is disabled.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'NextBackupActuallyTime' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', + 'List' => [ + 'description' => 'The collection of returned data.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Index' => ['description' => 'The primary key.', 'type' => 'string', 'example' => 'PRI', 'title' => ''], + 'IsAllowNull' => ['description' => 'Indicates whether the column allows null values.', 'type' => 'string', 'example' => 'NO', 'title' => ''], + 'ColumnName' => ['description' => 'The column name.', 'type' => 'string', 'example' => 'Id', 'title' => ''], + 'IsPk' => ['description' => 'Indicates whether the column is a primary key.', 'type' => 'string', 'example' => 'YES', 'title' => ''], + 'ColumnType' => ['description' => 'The column type.', 'type' => 'string', 'example' => 'bigint(20)', 'title' => ''], + 'Extra' => ['description' => 'Extra', 'type' => 'string', 'example' => 'auto_increment', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"8FAF3989-79CD-4A67-8FFD-97899B64SD5T\\",\\n \\"BackupPolicyDO\\": {\\n \\"BackupDbName\\": \\"null\\",\\n \\"LogBackupRetentionPeriod\\": 10,\\n \\"DataBackupRetentionPeriod\\": 10,\\n \\"BackupType\\": \\"auto\\",\\n \\"BackupLevel\\": \\"db\\",\\n \\"LocalLogRetentionHours\\": 0,\\n \\"HighSpaceUsageProtection\\": 0,\\n \\"GmtModified\\": 0,\\n \\"BackupRetentionPeriod\\": 8,\\n \\"BackupPolicyMode\\": \\"DataBackupPolicy\\",\\n \\"PreferredBackupPeriod\\": \\"2\\",\\n \\"LocalLogRetentionSpace\\": 0,\\n \\"BackupAppName\\": \\"null\\",\\n \\"PreferredBackupTime\\": \\"22:00:00-23:00:00\\",\\n \\"GmtCreate\\": 0,\\n \\"BackupMode\\": \\"phy\\",\\n \\"BackupLog\\": \\"1\\",\\n \\"NextBackupActuallyTime\\": \\"null\\"\\n }\\n}","type":"json"}]', - 'title' => 'DescribeBackupPolicy', - 'summary' => 'Queries the information about a backup policy.', + 'title' => 'Retrieve table schema information', + 'summary' => 'Queries table schema information by calling the DescribeTable operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeBackupTimes' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTable'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeTable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B5644ABB-559A-4A1C-83F2-9E7209******\\",\\n \\"Data\\": {\\n \\"List\\": [\\n {\\n \\"Index\\": \\"PRI\\",\\n \\"IsAllowNull\\": \\"NO\\",\\n \\"ColumnName\\": \\"Id\\",\\n \\"IsPk\\": \\"YES\\",\\n \\"ColumnType\\": \\"bigint(20)\\",\\n \\"Extra\\": \\"auto_increment\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'DescribeTableListByType' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7810,16 +6714,51 @@ ], 'systemTags' => [ 'operationType' => 'get', + 'abilityTreeCode' => '76054', + 'abilityTreeNodes' => ['FEATUREdrdsTIBR6Q'], ], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdshbga76p6****', 'title' => ''], + ], + [ + 'name' => 'DbName', + 'in' => 'query', + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds_flash****', 'title' => ''], + ], + [ + 'name' => 'Query', + 'in' => 'query', + 'schema' => ['description' => 'The search field.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'drdshbga76p61861', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'default' => '10', 'example' => '10', 'title' => ''], + ], + [ + 'name' => 'CurrentPage', + 'in' => 'query', + 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'default' => '1', 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'TableType', + 'in' => 'query', 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", + 'description' => 'The table type.', 'type' => 'string', 'required' => true, - 'example' => 'drdshbga71nn****', + 'docRequired' => true, + 'enum' => ['SINGLE', 'SHARD'], + 'example' => 'SINGLE', + 'title' => '', ], ], ], @@ -7828,92 +6767,107 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '4780A19F-5ECB-4C56-AD20-966A3FF9DE5R', - ], - 'RestoreTime' => [ - 'description' => 'Indicates the information about the time range within which the data of the instance can be restored to a point in time.'."\n", - 'type' => 'object', - 'properties' => [ - 'EndTime' => [ - 'description' => 'Indicates the end time. The time is in the UNIX timestamp format. The time is in UTC. Unit: ms.'."\n", - 'type' => 'string', - 'example' => '1568636922671', - ], - 'StartTime' => [ - 'description' => 'Indicates the start time. The time is in the UNIX timestamp format. The time must be in UTC. Unit: ms.'."\n", - 'type' => 'string', - 'example' => '1568632853000', + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'RequestId' => ['description' => 'The unique request ID. If an issue occurs, provide this ID to help troubleshoot the problem.', 'type' => 'string', 'example' => 'B360F47B-59E3-4D1C-BA03-6BFB1C993F88', 'title' => ''], + 'Total' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'List' => [ + 'description' => 'The returned collection.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Property' => ['description' => 'The property.', 'type' => 'string', 'example' => 'single', 'title' => ''], + 'TableName' => ['description' => 'The table name.', 'type' => 'string', 'example' => 'employee_split', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"4780A19F-5ECB-4C56-AD20-966A3FF9DE5R\\",\\n \\"RestoreTime\\": {\\n \\"EndTime\\": \\"1568636922671\\",\\n \\"StartTime\\": \\"1568632853000\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>4780A19F-5ECB-4C56-AD20-966A3FF9DE5R</RequestId>\\n<Success>true</Success>\\n<RestoreTime>\\n <EndTime>1568636922671</EndTime>\\n <StartTime>1568632853000</StartTime>\\n</RestoreTime>","errorExample":""}]', - 'title' => 'DescribeBackupTimes', - 'summary' => 'Queries the time range within which the data of an instance can be restored to a point in time.', + 'title' => 'Query tables by type', + 'summary' => 'Queries a collection of tables by type by calling the DescribeTableListByType operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'RemoveBackupsSet' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTableListByType'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeTableListByType', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"RequestId\\": \\"B360F47B-59E3-4D1C-BA03-6BFB1C993F88\\",\\n \\"Total\\": 1,\\n \\"Success\\": true,\\n \\"List\\": [\\n {\\n \\"Property\\": \\"single\\",\\n \\"TableName\\": \\"employee_split\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'DescribeTables' => [ + 'summary' => 'Calls the DescribeTables operation to retrieve a list of table information.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76103', - 'abilityTreeNodes' => [ - 'FEATUREdrdsE1M93A', - ], - ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'BackupId', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the backup set. You can call the [DescribeBackupSets](~~139331~~) interface to query the ID of a backup set.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'ba30d5c4-a6dc-11ea-bd40-************', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'Query', + 'in' => 'query', + 'schema' => ['description' => 'The query condition. Set this parameter to the instance ID of the target instance.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'drds************', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'default' => '10', 'example' => '10', 'title' => ''], + ], + [ + 'name' => 'CurrentPage', + 'in' => 'query', + 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'default' => '1', 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -7921,107 +6875,93 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '70FED5BE-4DDC-4556-AD35-5A6D27******', - ], - 'Result' => [ - 'description' => 'Indicates whether SQL audit was disabled for the DRDS database.'."\n", - 'type' => 'string', - 'example' => 'success', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '83AC3D7E-461C-4D87-8ACD-6CC295******', 'title' => ''], + 'Total' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'List' => [ + 'description' => 'The list of table information returned.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => 'The status of the split task. Valid values:'."\n" + ."\n" + .'- 0: Normal. No task is running.'."\n" + .'- 1: Changing. A split task is running.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'IsLocked' => ['description' => 'Indicates whether the table is locked.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'ShardKey' => ['description' => 'The shard key.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'IsShard' => ['description' => 'Indicates whether the table is sharded.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'Broadcast' => ['description' => 'Indicates whether the table is a broadcast table.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'AllowFullTableScan' => ['description' => 'Indicates whether full table scan is allowed.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'Table' => ['description' => 'The table name.', 'type' => 'string', 'example' => 'test', 'title' => ''], + 'DbInstType' => ['description' => 'The instance type. Valid values:'."\n" + ."\n" + .'- 0: dedicated'."\n" + .'- 1: shared.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"70FED5BE-4DDC-4556-AD35-5A6D27******\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>70FED5BE-4DDC-4556-AD35-5A6D27******</RequestId>\\n<Success>true</Success>\\n<Result>success</Result>","errorExample":""}]', - 'title' => 'RemoveBackupsSet', - 'summary' => 'Deletes a backup set.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'PutStartBackup' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Retrieve table information list', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTables'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeTables', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"RequestId\\": \\"83AC3D7E-461C-4D87-8ACD-6CC295******\\",\\n \\"Total\\": 1,\\n \\"Success\\": true,\\n \\"List\\": [\\n {\\n \\"Status\\": 0,\\n \\"IsLocked\\": false,\\n \\"ShardKey\\": \\"null\\",\\n \\"IsShard\\": false,\\n \\"Broadcast\\": false,\\n \\"AllowFullTableScan\\": false,\\n \\"Table\\": \\"test\\",\\n \\"DbInstType\\": 0\\n }\\n ]\\n}","type":"json"}]', + ], + 'DisableSqlAudit' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76095', - 'abilityTreeNodes' => [ - 'FEATUREdrds8KEOBF', - ], - ], + 'operationType' => 'write', + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds****c6vxxyzd', - ], - ], - [ - 'name' => 'BackupMode', - 'in' => 'query', - 'schema' => [ - 'description' => 'The backup mode. For more information, see [backup mode](~~108631~~) and the valid values are as follows:'."\n" - ."\n" - .'* phy: fast backup'."\n" - .'* logic: Consistent backup'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'phy', - ], - ], - [ - 'name' => 'BackupLevel', - 'in' => 'query', - 'schema' => [ - 'description' => 'The backup level. Valid values:'."\n" - ."\n" - .'* instance: instance'."\n" - .'* db: The database type.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'db', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds***********', 'title' => ''], ], [ - 'name' => 'BackupDbNames', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'If you need to back up data at the database level, you must specify the list of databases to be backed up, and separate multiple databases with commas (,).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'db_1, db_2', - ], + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'example' => 'drds_test', 'title' => ''], ], ], 'responses' => [ @@ -8029,79 +6969,71 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '5D64DE5944A1E541E0******', - ], - 'Result' => [ - 'description' => 'Indicates whether the backup task was submitted.'."\n", - 'type' => 'string', - 'example' => 'success', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'E273749A-9A33-44CF-ABE7-0CB19C******', 'title' => ''], + 'Result' => ['description' => 'The returned result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the API request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"5D64DE5944A1E541E0******\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<code>200</code>\\n<data>\\n <RequestId>07D9CC74-2707-4234-BC5A-1F11AE******</RequestId>\\n <Success>true</Success>\\n <Result>success</Result>\\n</data>","errorExample":""}]', - 'title' => 'PutStartBackup', - 'summary' => 'You can call this operation to submit a data backup task.', + 'title' => 'Cancel SQL audit', + 'summary' => 'Calls the DisableSqlAudit operation to cancel SQL audit.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CreateInstanceInternetAddress' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableSqlAudit'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:DisableSqlAudit', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E273749A-9A33-44CF-ABE7-0CB19C******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'EnableInstanceIpv6Address' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'readAndWrite', 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'none', + 'abilityTreeCode' => '76059', + 'abilityTreeNodes' => ['FEATUREdrdsBRC5LQ'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds****************', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region to which the DRDS instance belongs.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The ID of the region where the instance resides.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -8109,115 +7041,82 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => 'The error code returned when the activity fails.'."\n" - ."\n" - .'> This parameter appears only when an error occurs during the API call.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '404', - ], - 'Data' => [ - 'description' => 'Indicates whether the public IP address was created.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '1DF6052F-15E2-4E69-9628-D6BCC3******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Data' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7E9F7F16-05B5-42DA-94D6-E36402******', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 404,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"1DF6052F-15E2-4E69-9628-D6BCC3******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Data>true</Data>\\n<RequestId>1DF6052F-15E2-4E69-9628-D6BCC3******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'CreateInstanceInternetAddress', - 'summary' => 'Creates CreateInstanceInternetAddress public IP address for a DRDS instance.', + 'title' => 'Create an iPv6 address', + 'summary' => 'Calls the EnableInstanceIpv6Address operation to create an IPv6 address.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'UpdateInstanceNetwork' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableInstanceIpv6Address'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:EnableInstanceIpv6Address', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"7E9F7F16-05B5-42DA-94D6-E36402******\\"\\n}","type":"json"}]', + ], + 'EnableSqlAudit' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '76149', - 'abilityTreeNodes' => [ - 'FEATUREdrdsBRC5LQ', - ], - ], + 'operationType' => 'write', + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds******', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds***********', 'title' => ''], ], [ - 'name' => 'SrcInstanceNetworkType', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The network type of the PolarDB-X 1.0 instance. Valid values:'."\n" - ."\n" - .'* vpc: Virtual Private Cloud (VPC)'."\n" - .'* classic: classic network'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'classic', - ], + 'schema' => ['description' => 'The name of the database for which to enable SQL audit.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'RetainClassic', + 'name' => 'IsRecall', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to retain the classic network endpoint.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => 'Specifies whether to recall historical SQL statements for auditing.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], [ - 'name' => 'ClassicExpiredDays', + 'name' => 'RecallStartTimestamp', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the retention period of the classic network endpoint. Unit: days.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '30', - ], + 'schema' => ['description' => 'The start time of the recall period. The value is a UNIX timestamp in milliseconds.', 'type' => 'string', 'required' => false, 'example' => '1568875132000', 'title' => ''], + ], + [ + 'name' => 'RecallEndTimestamp', + 'in' => 'query', + 'schema' => ['description' => 'The end time of the recall period. The value is a UNIX timestamp in milliseconds.'."\n" + .'>The end time must be later than the start time.', 'type' => 'string', 'required' => false, 'example' => '1568875132000', 'title' => ''], ], ], 'responses' => [ @@ -8225,79 +7124,71 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-*****', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '463A5F0F-12AD-4544-A902-B2B983******', 'title' => ''], + 'Result' => ['description' => 'Indicates whether the SQL audit feature is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ERR_INSTANCE_CANNOT_SWITCH_NETWORK_FOR_PUBLIC', - 'errorMessage' => 'Public instance cannot switch network to VPC', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DSSDF-SEWE-*****</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'UpdateInstanceNetwork', - 'summary' => 'Changes the network type of a PolarDB-X 1.0 instance.', + 'title' => 'Enable SQL audit', + 'summary' => 'Enables the SQL audit feature by calling the EnableSqlAudit operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ReleaseInstanceInternetAddress' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableSqlAudit'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:EnableSqlAudit', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"463A5F0F-12AD-4544-A902-B2B983******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'EnableSqlFlashbackMatchSwitch' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', - 'systemTags' => [], + 'operationType' => 'readAndWrite', + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '76062', + 'abilityTreeNodes' => ['FEATUREdrds73QXOU'], + ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds***********', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The region where the instance is located.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - 'default' => 'center', - ], + 'schema' => ['description' => 'The name of the target database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -8305,120 +7196,154 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'The result returned by the current API.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'FD17CD3C-3355-49E8-9231-FE2DB0******', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '463A5F0F-12AD-4544-A902-B2B983******', 'title' => ''], + 'Result' => ['description' => 'The result of the enabling operation.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"FD17CD3C-3355-49E8-9231-FE2DB0******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>FD17CD3C-3355-49E8-9231-FE2DB0******</RequestId>\\n<Data>true</Data>","errorExample":""}]', - 'title' => 'ReleaseInstanceInternetAddress', - 'summary' => 'You can call this ReleaseInstanceInternetAddress to release the public endpoint of an RDS instance. This ensures the security of the instance.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"463A5F0F-12AD-4544-A902-B2B983******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Precisely restore data with SQL flashback', + 'summary' => 'At this point, the BINLOG of the ApsaraDB RDS instance used by the DRDS database includes the information about executed queries.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ModifyDrdsIpWhiteList' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableSqlFlashbackMatchSwitch'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:EnableSqlFlashbackMatchSwitch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'FlashbackRecycleBinTable' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '76084', - 'abilityTreeNodes' => [ - 'FEATUREdrdsJOW4UL', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '76063', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the Message Queue for Apache Kafka instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds****c6vxxyzd', - ], + 'schema' => ['description' => 'The ID of the instance where the table is located.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the DRDS database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The name of the database where the table is located.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'IpWhiteList', + 'name' => 'TableName', 'in' => 'query', + 'schema' => ['description' => 'The name of the logical table that you want to restore.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The modified whitelist. Separate multiple IP addresses with commas (,).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '127.***.***.***,10.***.***.***', + 'type' => 'object', + 'properties' => [ + 'Data' => ['description' => 'Indicates whether the deleted logical table is restored.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '463A5F0F-12AD-4544-A902-B2B983******', 'title' => ''], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'FlashbackRecycleBinTable', + 'summary' => 'Restores a deleted logical table.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FlashbackRecycleBinTable'], + ], + ], + 'ramActions' => [ [ - 'name' => 'Mode', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the mode. Valid values:'."\n" - ."\n" - .'* `True`: append modifications'."\n" - .'* `False`: overwrite modification'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:FlashbackRecycleBinTable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"463A5F0F-12AD-4544-A902-B2B983******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'GetDrdsDbRdsRelationInfo' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'GroupName', + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '76066', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], + ], + 'parameters' => [ + [ + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the IP address whitelist group.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'drds_******', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdshbga948vbpd2', 'title' => ''], ], [ - 'name' => 'GroupAttribute', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The attribute of the IP address whitelist group.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testDb', 'title' => ''], ], ], 'responses' => [ @@ -8426,91 +7351,146 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '933A1EC2-8260-4D4F-A56A-73BA27******', + 'Success' => ['description' => 'Indicates whether the query was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '82FD0D9B-9A65-40D3-B1D9-8851B1D4AF75', 'title' => ''], + 'Data' => [ + 'description' => 'The list of storage instance structures. Each item corresponds to a primary storage instance.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RdsInstanceId' => ['description' => 'The storage instance ID.', 'type' => 'string', 'example' => 'rm-bp16ad920ndxxxx02', 'title' => ''], + 'UsedInstanceType' => ['description' => 'The type of the storage instance in use.', 'type' => 'string', 'example' => 'RDS', 'title' => ''], + 'UsedInstanceId' => ['description' => 'The instance ID of the storage instance in use. For a primary DRDS instance, this is the primary storage instance. For a read-only DRDS instance, this is the selected storage instance.', 'type' => 'string', 'example' => 'rm-bp1l8xi1dd9xxxxbj', 'title' => ''], + 'ReadOnlyInstanceInfo' => [ + 'type' => 'array', + 'items' => ['description' => 'The list of read-only storage instance IDs.', 'type' => 'string', 'example' => '[]', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"933A1EC2-8260-4D4F-A56A-73BA27******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>933A1EC2-8260-4D4F-A56A-73BA27******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'ModifyDrdsIpWhiteList', - 'summary' => 'You can call this operation to modify the database whitelist.', + 'title' => 'Query database storage instance structure', + 'summary' => 'Calls the GetDrdsDbRdsRelationInfo operation to query the storage instance structure of a database.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsDBIpWhiteList' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDrdsDbRdsRelationInfo'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:GetDrdsDbRdsRelationInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"82FD0D9B-9A65-40D3-B1D9-8851B1D4AF75\\",\\n \\"Data\\": [\\n {\\n \\"RdsInstanceId\\": \\"rm-bp16ad920ndxxxx02\\",\\n \\"UsedInstanceType\\": \\"RDS\\",\\n \\"UsedInstanceId\\": \\"rm-bp1l8xi1dd9xxxxbj\\",\\n \\"ReadOnlyInstanceInfo\\": [\\n \\"[]\\"\\n ]\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListTagResources' => [ + 'summary' => 'Queries the labels bound to resources by calling ListTagResources.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'systemTags' => [ 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREdrdsD0NTUP'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'default' => 'center', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'DrdsInstanceId', + 'name' => 'ResourceType', 'in' => 'query', 'schema' => [ - 'description' => 'The instance ID.'."\n", + 'description' => 'The resource type. Set this parameter to INSTANCE.', 'type' => 'string', 'required' => true, - 'example' => 'drds********', + 'docRequired' => true, + 'enum' => ['INSTANCE'], + 'example' => 'INSTANCE', + 'title' => '', ], ], [ - 'name' => 'DbName', + 'name' => 'NextToken', 'in' => 'query', + 'schema' => ['description' => 'The pagination token.', 'type' => 'string', 'required' => false, 'example' => '6ab4640a-479b-41d0-ad3c-c6e888bc3d8f', 'title' => ''], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The database name.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test_db', + 'description' => 'The list of labels.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The key of the label.', 'type' => 'string', 'required' => false, 'example' => 'color', 'title' => ''], + 'Value' => ['description' => 'The value of the label.', 'type' => 'string', 'required' => false, 'example' => 'red', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 21, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'GroupName', + 'name' => 'ResourceId', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The name of the whitelist group.'."\n", - 'type' => 'string', + 'description' => 'The list of resources.', + 'type' => 'array', + 'items' => ['description' => 'The resource ID.', 'type' => 'string', 'required' => false, 'example' => 'dm-hbgau1zp****', 'title' => ''], 'required' => false, - 'example' => 'group1', + 'maxItems' => 51, + 'title' => '', + 'example' => '', ], ], ], @@ -8519,134 +7499,141 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '017453B9-0001-4745-87BF-DD612D850ED0', - ], - 'IpWhiteList' => [ + 'NextToken' => ['description' => 'The pagination token.', 'type' => 'string', 'example' => '6ab4640a-479b-41d0-ad3c-c6e888bc3d8f', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '58CE1CB0-F0F4-4BA3-B876-135DC47DF52F', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TagResources' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'Ip' => [ - 'description' => 'The IP address whitelist.'."\n", + 'TagResource' => [ + 'description' => 'The list of label resources.', 'type' => 'array', 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ResourceType' => ['description' => 'The resource type. Set this parameter to INSTANCE.', 'type' => 'string', 'example' => 'INSTANCE', 'title' => ''], + 'TagValue' => ['description' => 'The value of the label.', 'type' => 'string', 'example' => '1', 'title' => ''], + 'ResourceId' => ['description' => 'The resource ID.', 'type' => 'string', 'example' => 'drdshzsd11****', 'title' => ''], + 'TagKey' => ['description' => 'The key of the label.', 'type' => 'string', 'example' => 'test', 'title' => ''], + ], 'description' => '', - 'type' => 'string', - 'example' => '10.23.***.***,10.23.***.***/24', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], + ['errorCode' => 'InvalidParameter.tagKey', 'errorMessage' => 'Check the parameter tagKey %s', 'description' => ''], + ['errorCode' => 'InvalidParameter.tagValue', 'errorMessage' => 'Check the parameter tagValue %s', 'description' => ''], + ['errorCode' => 'InvalidParameter.tags.exceed', 'errorMessage' => 'Tags num exceed 10', 'description' => ''], + ['errorCode' => 'InvalidParameter.instanceId.and.tags', 'errorMessage' => 'you must have one of Tags and InstanceId', 'description' => ''], + ['errorCode' => 'InvalidParameter.tags.json.error', 'errorMessage' => 'The parameter tags is not a JsonArray', 'description' => ''], + ['errorCode' => 'TagService.%s', 'errorMessage' => 'TagService return errorMsg: %s', 'description' => ''], + ['errorCode' => 'TagApi.InvalidParameter.resourceId.exceed', 'errorMessage' => 'ResourceId num exceed 50', 'description' => ''], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], - 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The Drds DbName provided does not exist in our records.', - ], + ], + 'title' => 'Query labels bound to resources', + 'changeSet' => [ + ['createdAt' => '2025-06-10T03:11:23.000Z', 'description' => 'Error codes changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:ListTagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"017453B9-0001-4745-87BF-DD612D850ED0\\",\\n \\"IpWhiteList\\": {\\n \\"Ip\\": [\\n \\"10.23.***.***,10.23.***.***/24\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsDBIpWhiteListResponse>\\n <Success>true</Success>\\n <RequestId>017453B9-0001-4745-87BF-DD612D850ED0</RequestId>\\n <IpWhiteList>10.23.***.***,10.23.***.***/24</IpWhiteList>\\n</DescribeDrdsDBIpWhiteListResponse>","errorExample":""}]', - 'title' => 'DescribeDrdsDBIpWhiteList', - 'summary' => 'Queries the IP address whitelist for a specified DRDS database.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"6ab4640a-479b-41d0-ad3c-c6e888bc3d8f\\",\\n \\"RequestId\\": \\"58CE1CB0-F0F4-4BA3-B876-135DC47DF52F\\",\\n \\"Success\\": true,\\n \\"TagResources\\": {\\n \\"TagResource\\": [\\n {\\n \\"ResourceType\\": \\"INSTANCE\\",\\n \\"TagValue\\": \\"1\\",\\n \\"ResourceId\\": \\"drdshzsd11****\\",\\n \\"TagKey\\": \\"test\\"\\n }\\n ]\\n }\\n}","type":"json"}]', ], - 'SubmitCleanTask' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ManagePrivateRds' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'DrdsInstanceId', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => '<props="china">The region ID of the PolarDB-X instance.</props>'."\n" + .'<props="intl">The region ID of the DRDS instance.</props>'."\n" + .'> You can call [DescribeDrdsInstances](~~139284~~) to query the details of all instances in the target account, including the region ID.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'cn-hanzhou', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database that is scaled out.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => '<props="china">The ID of the PolarDB-X instance.</props>'."\n" + .'<props="intl">The ID of the DRDS instance.</props>'."\n" + .'> You can call [DescribeDrdsInstances](~~139284~~) to query the details of all instances in the target account, including the instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*************', 'title' => ''], ], [ - 'name' => 'ParentJobId', + 'name' => 'DBInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the scale-out task. This parameter is returned if you send a request for the smooth scale-out task.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The ID of the private custom RDS instance in the storage layer.'."\n" + ."\n" + .'> You can call [DescribeDrdsRdsInstances](~~215526~~) to query the details of all private custom RDS instances in the storage layer, including the instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rm-***************', 'title' => ''], ], [ - 'name' => 'JobId', + 'name' => 'RdsAction', 'in' => 'query', - 'schema' => [ - 'description' => 'The job ID of the scale-out task. The value of this parameter is the same as that of the ParentJobId parameter.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The following management operations are supported for private custom RDS instances:'."\n" + .'* **DescribeDBInstanceAttribute**: Queries the details of a private custom RDS instance.'."\n" + .'* **DescribeAvailableClasses**: Queries the available instance types of a private custom RDS instance, including the instance type code and storage capacity.'."\n" + .'* **DescribeSQLCollectorPolicy**: Queries the SQL Explorer (SQL audit) status of a private custom RDS instance.'."\n" + .'* **ModifySQLCollectorPolicy**: Enables or disables the SQL Explorer (SQL audit) feature for a private custom RDS instance.'."\n" + .'* **DescribeParameters**: Queries the current parameter settings of a private custom RDS instance.'."\n" + .'* **ModifyParameter**: Modifies the parameters of a private custom RDS instance.'."\n" + .'* **DescribeDBInstanceHAConfig**: Queries the high-availability mode and data replication mode of a private custom RDS instance.'."\n" + .'* **SwitchDBInstanceHA**: Switches over the primary and secondary instances of a private custom RDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'SwitchDBInstanceHA', 'title' => ''], ], [ - 'name' => 'ExpandType', + 'name' => 'Params', 'in' => 'query', - 'schema' => [ - 'description' => 'The scale-out type. Valid values:'."\n" - ."\n" - .'* smooth_expand: smooth scale-out'."\n" - .'* hot_expand: hot-spot scale-out'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'smooth_expand', - ], + 'schema' => ['description' => 'A JSON string that contains the request parameters and their values to be forwarded to the private custom RDS API operation. All parameter values must be of the STRING type. Example: `{NodeId:"1797****"}`.'."\n" + ."\n" + .'For the request parameters and valid values of each private custom RDS API operation, see the request parameters section in the following topics:'."\n" + .'* [DescribeDBInstanceAttribute](~~26231~~)'."\n" + .'* [DescribeAvailableClasses](~~196546~~)'."\n" + .'* [DescribeSQLCollectorPolicy](~~26292~~)'."\n" + .'* [ModifySQLCollectorPolicy](~~26293~~)'."\n" + .'* [DescribeParameters](~~26285~~)'."\n" + .'* [ModifyParameter](~~26286~~)'."\n" + .'* [DescribeDBInstanceHAConfig](~~26244~~)'."\n" + .'* [SwitchDBInstanceHA](~~26251~~)'."\n" + ."\n" + .'> For the required request parameters of the preceding API operations, you do not need to specify the Action and DBInstanceId parameters. All other required request parameters must be specified.', 'type' => 'string', 'required' => false, 'default' => '{}', 'example' => '{NodeId:"1797****"}', 'title' => ''], ], ], 'responses' => [ @@ -8654,83 +7641,72 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-*****', - ], + 'Data' => ['description' => 'The result set returned by the forwarded private custom RDS API operation.', 'type' => 'string', 'example' => '{"requestId":"E63C810A-4A13-47B6-BA67-C0E23A******"}', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0237BCD2-2C7A-4F86-A766-657AF6******', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'RDSAPI.ERROR', 'errorMessage' => 'Failed to call the RDS API operation.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DSSDF-SEWE-*****</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'SubmitCleanTask', - 'summary' => 'Submits a cleanup task for the scale-out of a PolarDB-X database.', + 'title' => 'Manage private RDS instances', + 'summary' => 'Calls the ManagePrivateRds operation to manage private custom RDS instances in the storage layer.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'SubmitSmoothExpandPreCheck' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManagePrivateRds'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:ManagePrivateRds', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"{\\\\\\"requestId\\\\\\":\\\\\\"E63C810A-4A13-47B6-BA67-C0E23A******\\\\\\"}\\",\\n \\"RequestId\\": \\"0237BCD2-2C7A-4F86-A766-657AF6******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'ModifyAccountDescription' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'systemTags' => [], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds*******', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'AccountName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the PolarDB-X database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The account name.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'DbInstType', + 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the database. Valid values:'."\n" - ."\n" - .'* RDS'."\n" - .'* POLARDB'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'RDS', - ], + 'schema' => ['description' => 'The account description.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -8738,80 +7714,97 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Msg' => [ - 'description' => 'The result of the precheck task.'."\n", - 'type' => 'string', - 'example' => 'success', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'FE104D26-AC19-49B5-AC67-947F69******', - ], - 'TaskId' => [ - 'description' => 'The ID of the precheck task.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11111', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Success' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2F93CCD5-806F-4470-BBC7-20476A******', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'OperationFailed.ModifyAccountDescription', 'errorMessage' => 'Modify account description failed.', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Msg\\": \\"success\\",\\n \\"RequestId\\": \\"FE104D26-AC19-49B5-AC67-947F69******\\",\\n \\"TaskId\\": 11111,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>FE104D26-AC19-49B5-AC67-947F69******</RequestId>\\n<TaskId>97358</TaskId>\\n<Success>true</Success>\\n<Msg>success</Msg>","errorExample":""}]', - 'title' => 'SubmitSmoothExpandPreCheck', - 'summary' => 'Submits a precheck task for the smooth scale-out of a PolarDB-X database.', + 'title' => 'Modify account description', + 'summary' => 'Calls the ModifyAccountDescription operation to modify the description of an account.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CheckExpandStatus' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyAccountDescription'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:ModifyAccountDescription', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F93CCD5-806F-4470-BBC7-20476A******\\"\\n}","type":"json"}]', + ], + 'ModifyAccountPrivilege' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'systemTags' => [], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdshbgaen89****', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'AccountName', + 'in' => 'query', + 'schema' => ['description' => 'The account name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'account_sec', 'title' => ''], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'DbPrivilege', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The name of the PolarDB-X database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', + 'description' => 'The list of database permissions.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DbName' => ['description' => 'The database name.', 'type' => 'string', 'required' => false, 'example' => 'test123', 'title' => ''], + 'Privilege' => ['description' => 'The account permission.', 'type' => 'string', 'required' => false, 'example' => 'ReadWrite', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 1000, + 'title' => '', + 'example' => '', ], ], ], @@ -8820,264 +7813,238 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '7CDBA7D5-8D62-4D24-9C65-510D62******', - ], - 'Data' => [ - 'description' => 'The result of the verification.'."\n", - 'type' => 'object', - 'properties' => [ - 'Msg' => [ - 'description' => 'The additional information.'."\n", - 'type' => 'string', - 'example' => 'success', - ], - 'IsActive' => [ - 'description' => 'Indicates whether scale-out operations can be performed on the database.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '73559800-3c8c-11ec-bd40-99cfcff3fe1e', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'OperationFailed.ModifyAccountPrivilege', 'errorMessage' => 'Modify account privilege failed.', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Modify account permissions', + 'summary' => 'Modifies the permissions of an account.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyAccountPrivilege'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:ModifyAccountPrivilege', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"73559800-3c8c-11ec-bd40-99cfcff3fe1e\\"\\n}","type":"json"}]', + ], + 'ModifyDrdsInstanceDescription' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'systemTags' => ['operationType' => 'update'], + 'parameters' => [ + [ + 'name' => 'DrdsInstanceId', + 'in' => 'query', + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['description' => 'The description of the instance.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'C44CA24C-C7C4-4C0F-8AC9-1343F2******', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"7CDBA7D5-8D62-4D24-9C65-510D62******\\",\\n \\"Data\\": {\\n \\"Msg\\": \\"success\\",\\n \\"IsActive\\": true\\n }\\n}","errorExample":""},{"type":"xml","example":"<Data>\\n <IsActive>true</IsActive>\\n <Msg/>\\n</Data>\\n<RequestId>7CDBA7D5-8D62-4D24-9C65-510D62******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'CheckExpandStatus', - 'summary' => 'Verifies whether scale-out operations such as smooth scale-out can be performed on a PolarDB-X database.', + 'errorCodes' => [], + 'title' => 'Modify instance description', + 'summary' => 'Modifies the description of a Distributed Relational Database Service (DRDS) instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'SubmitHotExpandTask' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDrdsInstanceDescription'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:ModifyDrdsInstanceDescription', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"C44CA24C-C7C4-4C0F-8AC9-1343F2******\\"\\n}","type":"json"}]', + ], + 'ModifyDrdsIpWhiteList' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76135', - 'abilityTreeNodes' => [ - 'FEATUREdrdsR9AYAV', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '76084', + 'abilityTreeNodes' => ['FEATUREdrdsJOW4UL'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdshbga1138****', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds****c6vxxyzd', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'TaskName', + 'name' => 'IpWhiteList', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the task.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => 'The modified IP whitelist. Separate multiple IP addresses with commas (,).', 'type' => 'string', 'required' => true, 'example' => '127.***.***.***,10.***.***.***', 'title' => ''], ], [ - 'name' => 'TaskDesc', + 'name' => 'Mode', 'in' => 'query', - 'schema' => [ - 'description' => 'The description of the task.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => 'The modification mode. Valid values:'."\n" + .'* `true`: append mode '."\n" + .'* `false`: overwrite mode.', 'type' => 'boolean', 'required' => false, 'default' => 'false', 'example' => 'false', 'title' => ''], ], [ - 'name' => 'InstanceDbMapping', + 'name' => 'GroupName', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The information about the instance to which the hot-spot database belongs.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'DbList' => [ - 'description' => 'The name of the hot-spot database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'hot_test_****_****', - ], - 'InstanceName' => [ - 'description' => 'The name of the ApsaraDB RDS instance to which the hot-spot database belongs.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'rm-bp1t1mk5a5bdj****', - ], - ], - 'required' => false, - ], - 'required' => true, - 'maxItems' => 30, - ], + 'schema' => ['description' => 'The whitelist group name.', 'type' => 'string', 'required' => false, 'example' => 'drds_******', 'title' => ''], ], [ - 'name' => 'Mapping', + 'name' => 'GroupAttribute', 'in' => 'query', - 'style' => 'repeatList', + 'schema' => ['description' => 'The description of the whitelist group.', 'type' => 'string', 'required' => false, 'example' => '分组1', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The information about the hot-spot database.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'HotDbName' => [ - 'description' => 'The name of the hot-spot database.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'hot_test_****_****', - ], - 'ShardTbValue' => [ - 'description' => 'The value of the shard key used to split a table.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'HotTableName' => [ - 'description' => 'The name of the hot-spot table. The name must be prefixed with the name of a logical table.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test_table_*****', - ], - 'ShardDbValue' => [ - 'description' => 'The value of the shard key used to split a database.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'TbShardColumn' => [ - 'description' => 'The shard key used to split an associated table.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'platform', - ], - 'DbShardColumn' => [ - 'description' => 'The shard key used to split the database to which the associated table belongs.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'platform', - ], - 'LogicTable' => [ - 'description' => 'The name of the logical table on which you want to perform hot-spot scale-out.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test_table', - ], - ], - 'required' => false, + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'Indicates whether the API request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '933A1EC2-8260-4D4F-A56A-73BA27******', 'title' => ''], ], - 'required' => true, - 'maxItems' => 30, + 'description' => '', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Modify database IP whitelist', + 'summary' => 'Calls the ModifyDrdsIpWhiteList operation to modify the IP whitelist of a database.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2024-04-08T10:36:53.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2024-03-27T10:45:49.000Z', 'description' => 'Request parameters changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDrdsIpWhiteList'], + ], + ], + 'ramActions' => [ [ - 'name' => 'SupperAccountMapping', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The information about the privileged account.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'InstanceName' => [ - 'description' => 'The ID of the ApsaraDB RDS instance that has the privileged account.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'rm-bp1t1mk5a5bdj****', - ], - 'SupperAccount' => [ - 'description' => 'The name of the privileged account of the ApsaraDB RDS instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'SupperPassword' => [ - 'description' => 'The password of the privileged account of the ApsaraDB RDS instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '11111111', - ], - ], - 'required' => false, + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:ModifyDrdsIpWhiteList', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}'], ], - 'required' => false, - 'maxItems' => 1000, ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"933A1EC2-8260-4D4F-A56A-73BA27******\\"\\n}","type":"json"}]', + ], + 'ModifyPolarDbReadWeight' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'ExtendedMapping', + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'systemTags' => ['operationType' => 'none'], + 'parameters' => [ + [ + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The information about the database on which you want to perform hot-spot scale-out.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'SrcDb' => [ - 'description' => 'The name of the source physical database.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'SrcInstanceId' => [ - 'description' => 'The ID of the ApsaraDB RDS instance to which the source physical database belongs.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'rm-bp1t1mk5a5bdj****', - ], - ], - 'required' => false, - ], - 'required' => true, - 'maxItems' => 30, - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], + ], + [ + 'name' => 'DbName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'DbNodeIds', + 'in' => 'query', + 'schema' => ['description' => 'The list of nodes in the target PolarDB cluster. Nodes from different clusters are separated by commas (,), and nodes within the same cluster are separated by colons (:).', 'type' => 'string', 'required' => true, 'example' => 'pi-****************,pi-****************:pi-****************', 'title' => ''], + ], + [ + 'name' => 'DbInstanceId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the PolarDB cluster.', 'type' => 'string', 'required' => true, 'example' => 'pc-****************', 'title' => ''], + ], + [ + 'name' => 'Weights', + 'in' => 'query', + 'schema' => ['description' => 'The weights corresponding to PolarDB groups. Separate multiple weights with commas (,).', 'type' => 'string', 'required' => true, 'example' => '14,86', 'title' => ''], ], ], 'responses' => [ @@ -9085,104 +8052,80 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0B6B7BDC-575D-4A77-A4F8-24B7EFERV45Y', - ], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B12FC174-D5CE-4A6E-83C1-0F8F86******', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter.InvalidDbName', 'errorMessage' => 'The dbName does not exist in this drds instance', 'description' => ''], + ['errorCode' => 'InvalidParameter.ReadWeighAndRdsNotMapping', 'errorMessage' => 'The parameter read weight and rds instance not mapping', 'description' => ''], + ['errorCode' => 'InvalidParameter.InvalidReadWeight', 'errorMessage' => 'The parameter read weight is invalid', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0B6B7BDC-575D-4A77-A4F8-24B7EFERV45Y\\"\\n}","errorExample":""},{"type":"xml","example":"<SubmitHotExpandTaskResponse>\\n <Success>true</Success>\\n <RequestId>0B6B7BDC-575D-4A77-A4F8-24B7EFERV45Y</RequestId>\\n</SubmitHotExpandTaskResponse>","errorExample":""}]', - 'title' => 'SubmitHotExpandTask', - 'summary' => 'Submits a hot-spot scale-out task for a database.', + 'title' => 'Modify read and write weights of polarDB', + 'summary' => 'Modifies the read and write weights of a PolarDB cluster by calling the ModifyPolarDbReadWeight operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'SubmitHotExpandPreCheckTask' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyPolarDbReadWeight'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:ModifyPolarDbReadWeight', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B12FC174-D5CE-4A6E-83C1-0F8F86******\\"\\n}","type":"json"}]', + ], + 'ModifyRdsReadWeight' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76134', - 'abilityTreeNodes' => [ - 'FEATUREdrdsR9AYAV', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drd*********', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the PolarDB-X database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The name of the database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'DbInstType', + 'name' => 'InstanceNames', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the database. Valid values:'."\n" - ."\n" - .'* RDS'."\n" - .'* PolarDB'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'RDS', - ], + 'schema' => ['description' => 'The list of ApsaraDB RDS instances. Separate multiple instances with commas (,).', 'type' => 'string', 'required' => true, 'example' => 'rm-****************,rm-****************', 'title' => ''], ], [ - 'name' => 'TableList', + 'name' => 'Weights', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The name of the table.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - 'required' => false, - 'example' => 'test', - 'maxItems' => 30, - ], + 'schema' => ['description' => 'The weight values corresponding to each ApsaraDB RDS instance. Separate multiple weight values with commas (,).', 'type' => 'string', 'required' => true, 'example' => '14,86', 'title' => ''], ], ], 'responses' => [ @@ -9190,74 +8133,89 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Msg' => [ - 'description' => 'The result of the task.'."\n", - 'type' => 'string', - 'example' => 'scucess', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'FE104D26-AC19-49B5-AC67-947F69*****', - ], - 'TaskId' => [ - 'description' => 'The ID of the task.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11111', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B12FC174-D5CE-4A6E-83C1-0F8F86******', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter.InvalidDbName', 'errorMessage' => 'The dbName does not exist in this drds instance', 'description' => ''], + ['errorCode' => 'InvalidParameter.ReadWeighAndRdsNotMapping', 'errorMessage' => 'The parameter read weight and rds instance not mapping', 'description' => ''], + ['errorCode' => 'InvalidParameter.InvalidReadWeight', 'errorMessage' => 'The parameter read weight is invalid', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Msg\\": \\"scucess\\",\\n \\"RequestId\\": \\"FE104D26-AC19-49B5-AC67-947F69*****\\",\\n \\"TaskId\\": 11111,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>FE104D26-AC19-49B5-AC67-947F69*****</RequestId>\\n<TaskId>97358</TaskId>\\n<Success>true</Success>\\n<Msg>success</Msg>","errorExample":""}]', - 'title' => 'SubmitHotExpandPreCheckTask', - 'summary' => 'Submits a precheck task for the hot-spot scale-out of a PolarDB-X database. The task is used to check the table that does not contain the primary key.', + 'title' => 'Modify read and write weights of an apsaraDB RDS instance', + 'summary' => 'Modifies the read and write weights of an ApsaraDB RDS instance by calling the ModifyRdsReadWeight operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeSqlFlashbakTask' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyRdsReadWeight'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:ModifyRdsReadWeight', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B12FC174-D5CE-4A6E-83C1-0F8F86******\\"\\n}","type":"json"}]', + ], + 'PutStartBackup' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'none', + 'abilityTreeCode' => '76095', + 'abilityTreeNodes' => ['FEATUREdrds8KEOBF'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds****c6vxxyzd', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds****c6vxxyzd', 'title' => ''], + ], + [ + 'name' => 'BackupMode', + 'in' => 'query', + 'schema' => ['description' => 'The backup mode. For more information, see [Backup modes](~~108631~~). Valid values:'."\n" + ."\n" + .'* phy: fast backup'."\n" + .'* logic: consistent backup.', 'type' => 'string', 'required' => false, 'example' => 'phy', 'title' => ''], + ], + [ + 'name' => 'BackupLevel', + 'in' => 'query', + 'schema' => ['description' => 'The backup level. Valid values: '."\n" + .'* instance: instance-level backup '."\n" + .'* db: database-level backup.', 'type' => 'string', 'required' => false, 'example' => 'db', 'title' => ''], + ], + [ + 'name' => 'BackupDbNames', + 'in' => 'query', + 'schema' => ['description' => 'The list of databases to back up if you perform a database-level backup. Separate multiple database names with commas (,).', 'type' => 'string', 'required' => false, 'example' => 'db_1, db_2', 'title' => ''], ], ], 'responses' => [ @@ -9265,280 +8223,205 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '5D64DE59-44A1-E541-E0CB-B7E5C4305162', - ], - 'SqlFlashbackTasks' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'SqlFlashbackTask' => [ - 'description' => 'Indicates the information about flashback tasks.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'TableName' => [ - 'description' => 'Indicates the name of the table that contains the data that are flashed back.'."\n", - 'type' => 'string', - 'example' => 'drds_params', - ], - 'SearchEndTime' => [ - 'description' => 'Indicates the start time of the reverse call.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568509597000', - ], - 'ExpireTime' => [ - 'description' => 'Indicates the time when the download URL expires.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1569216270000', - ], - 'DownloadUrl' => [ - 'description' => 'Indicates the download URL.'."\n", - 'type' => 'string', - 'example' => 'http://...', - ], - 'RecallProgress' => [ - 'description' => 'Indicates the progress of the reverse call.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'SqlPk' => [ - 'description' => 'Indicates the primary key specified in the SQL statements.'."\n", - 'type' => 'string', - 'example' => 'id', - ], - 'InstId' => [ - 'description' => 'Indicates the ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'drdshbga76p6****', - ], - 'RecallType' => [ - 'description' => 'Indicates the type of the reverse call. Valid values:'."\n" - ."\n" - .'* **0**: exact search'."\n" - .'* **1**: fuzzy search'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'SearchStartTime' => [ - 'description' => 'Indicates the end time of the reverse call.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568609597000', - ], - 'GmtModified' => [ - 'description' => 'Indicates the point in time when the flashback task is performed.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568611469000', - ], - 'SqlCounter' => [ - 'description' => 'Indicates the number of data rows that are flashed back.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'DbName' => [ - 'description' => 'Indicates the name of the database on which a flashback task is performed.'."\n", - 'type' => 'string', - 'example' => 'drds_flashback', - ], - 'RecallRestoreType' => [ - 'description' => 'Indicates the type of the flashback task. Valid values:'."\n" - ."\n" - .'* **1**: image restoration'."\n" - .'* **2**: reverse restoration'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'GmtCreate' => [ - 'description' => 'Indicates the point in time when the instance was created.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568611408000', - ], - 'TraceId' => [ - 'description' => 'Indicates the ID of the trace of the SQL query.'."\n", - 'type' => 'string', - 'example' => 'trace', - ], - 'Id' => [ - 'description' => 'Indicates the ID of the primary key that corresponds to a table used in the flashback task.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '238', - ], - 'RecallStatus' => [ - 'description' => 'Indicates the status of the data recall task.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'SqlType' => [ - 'description' => 'Indicates the types of the SQL statements.'."\n", - 'type' => 'string', - 'example' => 'Insert,Update,Delete', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '5D64DE5944A1E541E0******', 'title' => ''], + 'Result' => ['description' => 'The description of the request result.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the API request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"5D64DE59-44A1-E541-E0CB-B7E5C4305162\\",\\n \\"SqlFlashbackTasks\\": {\\n \\"SqlFlashbackTask\\": [\\n {\\n \\"TableName\\": \\"drds_params\\",\\n \\"SearchEndTime\\": 1568509597000,\\n \\"ExpireTime\\": 1569216270000,\\n \\"DownloadUrl\\": \\"http://...\\",\\n \\"RecallProgress\\": 10,\\n \\"InstId\\": \\"drdshbga76p6****\\",\\n \\"SqlPk\\": \\"id\\",\\n \\"RecallType\\": 1,\\n \\"GmtModified\\": 1568611469000,\\n \\"SearchStartTime\\": 1568609597000,\\n \\"DbName\\": \\"drds_flashback\\",\\n \\"SqlCounter\\": 0,\\n \\"RecallRestoreType\\": 1,\\n \\"GmtCreate\\": 1568611408000,\\n \\"TraceId\\": \\"trace\\",\\n \\"Id\\": 238,\\n \\"SqlType\\": \\"Insert,Update,Delete\\",\\n \\"RecallStatus\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<SqlFlashbackTasks>\\n <SqlFlashbackTask>\\n <GmtModified>1568611469000</GmtModified>\\n <SearchEndTime>1568509597000</SearchEndTime>\\n <RecallStatus>1</RecallStatus>\\n <SqlPk>id</SqlPk>\\n <RecallRestoreType>1</RecallRestoreType>\\n <TableName>drds_params</TableName>\\n <GmtCreate>1568611408000</GmtCreate>\\n <SearchStartTime>1568609597000</SearchStartTime>\\n <InstId>drdshbga76p6****</InstId>\\n <RecallType>1</RecallType>\\n <TraceId>trace</TraceId>\\n <SqlType>Insert,Update,Delete</SqlType>\\n <DbName>drds_flashback</DbName>\\n <Id>238</Id>\\n <ExpireTime>1569216270000</ExpireTime>\\n <SqlCounter>0</SqlCounter>\\n <RecallProgress>10</RecallProgress>\\n <DownloadUrl>http://...</DownloadUrl>\\n </SqlFlashbackTask>\\n</SqlFlashbackTasks>\\n<RequestId>5D64DE59-44A1-E541-E0CB-B7E5C4305162</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeSqlFlashbakTask', - 'summary' => 'Queries the flashback tasks that are performed on a PolarDB-X 1.0 instance.', + 'title' => 'Submit a data backup task', + 'summary' => 'Submits a data backup task by calling the PutStartBackup operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'SubmitSqlFlashbackTask' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutStartBackup'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:PutStartBackup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5D64DE5944A1E541E0******\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'RefreshDrdsAtomUrl' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [], + 'operationType' => 'write', + 'systemTags' => ['operationType' => 'none'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of a DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => 'The ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', + 'schema' => ['description' => 'The name of the database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The name of the DRDS database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B12FC174-D5CE-4A6E-83C1-0F8F86******', 'title' => ''], + 'Result' => ['description' => 'The result of refreshing the shard connections.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the API request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Refresh DRDS shard connections', + 'summary' => 'After an RDS connection changes, refreshes the DRDS shard connections to ensure connectivity to RDS.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RefreshDrdsAtomUrl'], + ], + ], + 'ramActions' => [ [ - 'name' => 'StartTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'The start time of the flashback SQL statement.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '2019-09-10 20:23:23', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RefreshDrdsAtomUrl', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B12FC174-D5CE-4A6E-83C1-0F8F86******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'ReleaseInstanceInternetAddress' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'EndTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'The time when the SQL flashback task ends.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '2019-09-10 23:23:23', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'systemTags' => [], + 'parameters' => [ [ - 'name' => 'TraceId', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The Trace ID of the flashback SQL.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ase*****', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'TableName', + 'name' => 'RegionId', 'in' => 'query', + 'schema' => ['description' => 'The region in which the instance resides.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-beijing', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The name of the table where the flashback SQL operation was performed.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', + 'type' => 'object', + 'properties' => [ + 'Data' => ['description' => 'The result returned by the current API operation.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FD17CD3C-3355-49E8-9231-FE2DB0******', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', 'description' => ''], + ], + ], + 'title' => 'Release the public endpoint of an instance', + 'summary' => 'Ensures instance security.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ReleaseInstanceInternetAddress'], + ], + ], + 'ramActions' => [ [ - 'name' => 'SqlType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the SQL statement. Valid values: INSERT, UPDATE, and DELETE. Separate multiple types with commas (,).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'INSERT,UPDATE', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:ReleaseInstanceInternetAddress', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"FD17CD3C-3355-49E8-9231-FE2DB0******\\"\\n}","type":"json"}]', + ], + 'RemoveBackupsSet' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'SqlPk', - 'in' => 'query', - 'schema' => [ - 'description' => 'The primary key of flashback SQL.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '11111', - ], + 'AK' => [], ], + ], + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '76103', + 'abilityTreeNodes' => ['FEATUREdrdsE1M93A'], + ], + 'parameters' => [ [ - 'name' => 'RecallType', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'Exact match or fuzzy match. Valid values:'."\n" - ."\n" - .'* 0: the exact match.'."\n" - .'* 1: the fuzzy match.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'RecallRestoreType', + 'name' => 'BackupId', 'in' => 'query', - 'schema' => [ - 'description' => 'The restoration type. Valid values:'."\n" - ."\n" - .'* 1: Image restoration'."\n" - .'* 0: reverse recovery'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '0', - ], + 'schema' => ['description' => 'The ID of the backup set. You can call the [DescribeBackupSets](~~139331~~) operation to query the backup set ID.', 'type' => 'string', 'required' => true, 'example' => 'ba30d5c4-a6dc-11ea-bd40-************', 'title' => ''], ], ], 'responses' => [ @@ -9546,130 +8429,136 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-*****', - ], - 'Success' => [ - 'description' => 'Indicates whether the database creation failure records were removed from the DRDS instance.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TaskId' => [ - 'description' => 'The ID of the replication task.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1111', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '70FED5BE-4DDC-4556-AD35-5A6D27******', 'title' => ''], + 'Result' => ['description' => 'The returned result.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the API request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\",\\n \\"Success\\": true,\\n \\"TaskId\\": 1111\\n}","errorExample":""},{"type":"xml","example":"<SubmitSqlFlashbackTaskResponse>\\n\\t<RequestId>DSSDF-SEWE-*****</RequestId>\\n\\t<Success>True</Success>\\n <TaskId>1111</TaskId>\\n</SubmitSqlFlashbackTaskResponse>","errorExample":""}]', - 'title' => 'SubmitSqlFlashbackTask', - 'summary' => 'Call the SubmitSqlFlashbackTask API to submit a flashback SQL task.', + 'title' => 'Delete a backup set', + 'summary' => 'Calls the RemoveBackupsSet operation to delete a backup set.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CreateShardTask' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveBackupsSet'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RemoveBackupsSet', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"70FED5BE-4DDC-4556-AD35-5A6D27******\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'RemoveDrdsDb' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '75963', - 'abilityTreeNodes' => [ - 'FEATUREdrdsD6TUSC', - ], - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the resource group resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], - ], - [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance to which the target database belongs.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', + 'schema' => ['description' => 'The name of the target database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The name of the DRDS database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', + 'type' => 'object', + 'properties' => [ + 'Success' => ['description' => 'Indicates whether the API request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B12FC174-D5CE-4A6E-83C1-0F8F86******', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'title' => 'Delete a database', + 'summary' => 'Deletes a database from a DRDS instance.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveDrdsDb'], + ], + ], + 'ramActions' => [ [ - 'name' => 'SourceTableName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the source table.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test_tb1', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:RemoveDrdsDb', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B12FC174-D5CE-4A6E-83C1-0F8F86******\\"\\n}","type":"json"}]', + ], + 'RemoveDrdsDbFailedRecord' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '76107', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], + ], + 'parameters' => [ [ - 'name' => 'TargetTableName', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the destination table.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test_tb2', - 'maxLength' => 100, - 'minLength' => 1, - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'TaskType', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the task. Valid values:` SHARD_TO_SINGLE `,` SINGLE_TO_SHARD `,` SHARD_TO_SHARD `.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'SINGLE_TO_SHARD', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -9677,67 +8566,66 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'Task creation result'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'F8997D95-94AD-416A-AE70-E24D08******', - ], - 'Success' => [ - 'description' => 'The result of the operation.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D98BC610-5A91-453A-BC44-5873EF******', 'title' => ''], + 'Result' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidDbName.Empty', 'errorMessage' => 'DbName can not be empty', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"F8997D95-94AD-416A-AE70-E24D08******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Data>true</Data>\\n<RequestId>F8997D95-94AD-416A-AE70-E24D08******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'CreateShardTask', - 'summary' => 'Call CreateShardTask to create a sharding task.', + 'title' => 'Delete a failed database creation record', + 'summary' => 'Calls the RemoveDrdsDbFailedRecord operation to delete a failed database creation record.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeInstanceAccounts' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveDrdsDbFailedRecord'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RemoveDrdsDbFailedRecord', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D98BC610-5A91-453A-BC44-5873EF******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'RemoveDrdsInstance' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], ], 'responses' => [ @@ -9745,158 +8633,73 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'E2E4056D-57EB-4353-8355-2E6284******', - ], - 'InstanceAccounts' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'InstanceAccount' => [ - 'description' => 'Indicates the information about the instance accounts.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Host' => [ - 'description' => 'Indicates an IP address that is allowed to access the database. The value **%** indicates that each IP address is allowed to access the database. \\</note>'."\n", - 'type' => 'string', - 'example' => '%', - ], - 'Description' => [ - 'description' => 'Indicates the description of an account. By default, if 0 is the value of the AccountType parameter, **Created by DRDS** is returned as the value of the Description parameter. If 1 is the value of the AccountType parameter, an empty string is returned as the value of the Description parameter. You can modify the description of an account on the Accounts page in the PolarDB-X console.', - 'type' => 'string', - 'example' => 'Created by DRDS', - ], - 'AccountType' => [ - 'description' => 'Indicates the type of an instance account. Valid values:'."\n" - ."\n" - .'* **0**: The instance account is a privileged account.'."\n" - .'* **1**: The instance account is a standard account.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'AccountName' => [ - 'description' => 'Indicates the username of an instance account.'."\n", - 'type' => 'string', - 'example' => 'test_rds3', - ], - 'DbPrivileges' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'DbPrivilege' => [ - 'description' => 'Indicates the information about the permissions of an account on a database.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'DbName' => [ - 'description' => 'Indicates the name of a database.'."\n", - 'type' => 'string', - 'example' => 'test_rds3', - ], - 'Privilege' => [ - 'description' => 'Indicates the permissions that an account is granted on the database. Valid values:'."\n" - ."\n" - .'* **R**: The account is granted the permissions that are required to read the data of the database.'."\n" - .'* **W**: The account is granted the permissions that are required to write data to the database.'."\n" - .'* **DDL**: The account is granted the permissions that are required to perform DDL operations on the database.'."\n" - .'* **DML**: The account is granted the permissions that are required to perform DML operations on the database.'."\n", - 'type' => 'string', - 'example' => 'R', - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - ], - 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], + ['errorCode' => 'ReleasePrepayInstance', 'errorMessage' => 'The pay type of this drds instance is prepay', 'description' => ''], + ['errorCode' => 'RemoveDrdsDBFirst', 'errorMessage' => 'There are Drds DB exist in this instance. Please delete drds db first', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'ERR_INSTANCE_RELEASE_ALREADY', 'errorMessage' => '实例已释放', 'description' => ''], + ['errorCode' => 'ERR_INSTANCE_CAN_NOT_RELEASE', 'errorMessage' => '实例暂时无法释放', 'description' => ''], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'staticInfo' => [], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"E2E4056D-57EB-4353-8355-2E6284******\\",\\n \\"InstanceAccounts\\": {\\n \\"InstanceAccount\\": [\\n {\\n \\"Host\\": \\"%\\",\\n \\"Description\\": \\"Created by DRDS\\",\\n \\"AccountType\\": 1,\\n \\"AccountName\\": \\"test_rds3\\",\\n \\"DbPrivileges\\": {\\n \\"DbPrivilege\\": [\\n {\\n \\"DbName\\": \\"test_rds3\\",\\n \\"Privilege\\": \\"R\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeInstanceAccountsResponse>\\n <InstanceAccounts>\\n <InstanceAccount>\\n <Description>Created by DRDS</Description>\\n <DbPrivileges>\\n <DbPrivilege>\\n <DbName>drds_flashback</DbName>\\n <Privilege>ROOT</Privilege>\\n </DbPrivilege>\\n </DbPrivileges>\\n <Host>%</Host>\\n <AccountName>drds_flashback</AccountName>\\n <AccountType>0</AccountType>\\n </InstanceAccount>\\n \\n </InstanceAccounts>\\n <RequestId>2D77B55F-50C4-4FC5-A89A-7746B7D5781D</RequestId>\\n <Success>true</Success>\\n</DescribeInstanceAccountsResponse>","errorExample":""}]', - 'title' => 'DescribeInstanceAccounts', - 'summary' => 'Queries information about an instance account.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\"\\n}","type":"json"}]', + 'title' => 'Release a target instance', + 'summary' => 'Calls the RemoveDrdsInstance operation to release a target instance.', + 'description' => '> * Only pay-as-you-go (postpaid) instances can be released.'."\n" + .'* You cannot call this operation to release an instance that is undergoing a specification change or is associated with databases.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeExpandLogicTableInfoList' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveDrdsInstance'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:RemoveDrdsInstance', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + ], + 'RemoveInstanceAccount' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '76018', - 'abilityTreeNodes' => [ - 'FEATUREdrdsT4VUG1', - ], - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds***********', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'AccountName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds_flashback', - ], + 'schema' => ['description' => 'The name of the account.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -9904,131 +8707,83 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0B6B7BDC-575D-4A77-A4F8-24B7EF******', - ], - 'Data' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'data' => [ - 'description' => 'Indicates the result that is returned.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ShardTbKey' => [ - 'description' => 'Indicates the table sharding key.'."\n", - 'type' => 'string', - 'example' => 'address', - ], - 'TableName' => [ - 'description' => 'Indicates the name of the table.'."\n", - 'type' => 'string', - 'example' => 'employee_split2', - ], - 'ShardDbKey' => [ - 'description' => 'Indicates the database sharding key.'."\n", - 'type' => 'string', - 'example' => 'id', - ], - ], - ], - ], - ], - ], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'OperationFailed.RemoveInstanceAccount', 'errorMessage' => 'Remove instance account failed', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0B6B7BDC-575D-4A77-A4F8-24B7EF******\\",\\n \\"Data\\": {\\n \\"data\\": [\\n {\\n \\"ShardTbKey\\": \\"address\\",\\n \\"TableName\\": \\"employee_split2\\",\\n \\"ShardDbKey\\": \\"id\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeExpandLogicTableInfoListReponse>\\n<RequestId>0B6B7BDC-575D-4A77-A4F8-24B7EF******</RequestId>\\n<Data>\\n <data>\\n <TableName>employee_split2</TableName>\\n <ShardTbKey>address</ShardTbKey>\\n <ShardDbKey>id</ShardDbKey>\\n </data>\\n</Data>\\n<Success>true</Success>\\n</DescribeExpandLogicTableInfoListReponse>","errorExample":""}]', - 'title' => 'DescribeExpandLogicTableInfoList', - 'summary' => 'Queries sharding keys.', + 'title' => 'Delete an Instance Management Account', + 'summary' => 'Calls the RemoveInstanceAccount operation to delete an instance management account.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeTable' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveInstanceAccount'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:RemoveInstanceAccount', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\"\\n}","type":"json"}]', + ], + 'RemoveRecycleBinTable' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '76053', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '76111', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the PolarDB-X 1.0 instance is created.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds_flashback', - ], + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], [ 'name' => 'TableName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the table.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'employee_split', - ], + 'schema' => ['description' => 'The name of the DRDS logical table.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -10036,187 +8791,138 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the unique ID of the request. If the request fails, provide this ID for technical support to troubleshoot the failure.', - 'type' => 'string', - 'example' => 'B5644ABB-559A-4A1C-83F2-9E7209******', - ], - 'Data' => [ - 'description' => 'Indicates the returned data.'."\n", - 'type' => 'object', - 'properties' => [ - 'List' => [ - 'description' => 'Indicates the details about the table schema.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Index' => [ - 'description' => 'Indicates the primary key of the table.'."\n", - 'type' => 'string', - 'example' => 'PRI', - ], - 'IsAllowNull' => [ - 'description' => 'Indicates whether the column can be empty.'."\n", - 'type' => 'string', - 'example' => 'NO', - ], - 'ColumnName' => [ - 'description' => 'Indicates the name of a column.'."\n", - 'type' => 'string', - 'example' => 'Id', - ], - 'IsPk' => [ - 'description' => 'Indicates whether the column is the primary key column of the table.'."\n", - 'type' => 'string', - 'example' => 'YES', - ], - 'ColumnType' => [ - 'description' => 'Indicates the type of the column.'."\n", - 'type' => 'string', - 'example' => 'bigint(20)', - ], - 'Extra' => [ - 'description' => 'Extra'."\n", - 'type' => 'string', - 'example' => 'auto_increment', - ], - ], - ], - ], - ], - ], + 'Data' => ['description' => 'Indicates whether the table was purged from the recycle bin.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', 'title' => ''], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B5644ABB-559A-4A1C-83F2-9E7209******\\",\\n \\"Data\\": {\\n \\"List\\": [\\n {\\n \\"Index\\": \\"PRI\\",\\n \\"IsAllowNull\\": \\"NO\\",\\n \\"ColumnName\\": \\"Id\\",\\n \\"IsPk\\": \\"YES\\",\\n \\"ColumnType\\": \\"bigint(20)\\",\\n \\"Extra\\": \\"auto_increment\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>B5644ABB-559A-4A1C-83F2-9E7209******</RequestId>\\n<Data>\\n <List>\\n <ColumnName>Id</ColumnName>\\n <ColumnType>bigint(20)</ColumnType>\\n <Extra>auto_increment</Extra>\\n <IsAllowNull>NO</IsAllowNull>\\n <IsPk>YES</IsPk>\\n <Index>PRI</Index>\\n </List>\\n</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeTable', - 'summary' => 'Queries information about the schema of a table.', + 'title' => 'Purge a table from the recycle bin', + 'summary' => 'Purges a table from the recycle bin.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeTableListByType' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveRecycleBinTable'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RemoveRecycleBinTable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'RestartDrdsInstance' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '76054', - 'abilityTreeNodes' => [ - 'FEATUREdrdsTIBR6Q', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '76113', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], - ], - [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdshbga76p6****', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], - [ - 'name' => 'DbName', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds_flash****', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', 'title' => ''], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TaskId' => ['description' => 'The asynchronous task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true,\\n \\"TaskId\\": 1\\n}","type":"json"}]', + 'title' => 'Restart an instance', + 'summary' => 'Restarts a Distributed Relational Database Service (DRDS) instance.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RestartDrdsInstance'], + ], + ], + 'ramActions' => [ [ - 'name' => 'Query', - 'in' => 'query', - 'schema' => [ - 'description' => 'The field that you specify for your query.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'drdshbga76p61861', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RestartDrdsInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + ], + 'RollbackInstanceVersion' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '76115', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], + ], + 'parameters' => [ [ - 'name' => 'CurrentPage', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'TableType', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of tables. Valid values:'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'SINGLE', - 'enum' => [ - 'SINGLE', - 'SHARD', - ], - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -10224,150 +8930,77 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'PageSize' => [ - 'description' => 'Indicates the number of entries returned per page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => 'Indicates the page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'RequestId' => [ - 'description' => 'Indicates the unique ID of the request. If the request fails, provide this ID for technical support to troubleshoot the failure.'."\n", - 'type' => 'string', - 'example' => 'B360F47B-59E3-4D1C-BA03-6BFB1C993F88', - ], - 'Total' => [ - 'description' => 'Indicates the total number of returned tables.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'List' => [ - 'description' => 'Indicates the information about tables.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Property' => [ - 'description' => 'Indicates the property of a table.'."\n", - 'type' => 'string', - 'example' => 'single', - ], - 'TableName' => [ - 'description' => 'Indicates the name of the table.'."\n", - 'type' => 'string', - 'example' => 'employee_split', - ], - ], - ], - ], + 'Data' => ['description' => 'Indicates whether the instance version is rolled back.', 'type' => 'string', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-*****', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"RequestId\\": \\"B360F47B-59E3-4D1C-BA03-6BFB1C993F88\\",\\n \\"Total\\": 1,\\n \\"Success\\": true,\\n \\"List\\": [\\n {\\n \\"Property\\": \\"single\\",\\n \\"TableName\\": \\"employee_split\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<PageSize>10</PageSize>\\n<RequestId>B360F47B-59E3-4D1C-BA03-6BFB1C993F88</RequestId>\\n<PageNumber>1</PageNumber>\\n<Total>1</Total>\\n<List>\\n <TableName>employee_split</TableName>\\n <Property>single</Property>\\n</List>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeTableListByType', - 'summary' => 'Queries tables based on a table type.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"true\\",\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","type":"json"}]', + 'title' => 'Roll back the version of a DRDS instance', + 'summary' => 'Rolls back the version of a DRDS instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeShardTaskInfo' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RollbackInstanceVersion'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RollbackInstanceVersion', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'SetBackupLocal' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '76048', - 'abilityTreeNodes' => [ - 'FEATUREdrdsD6TUSC', - ], - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], - ], - [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => 'The DRDS instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdshbgag23d13fds', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'LocalLogRetentionHours', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'jjjjjj_ppppp', - ], + 'schema' => ['description' => 'The number of hours for which log backups are retained locally. Valid values: 0 to 168 (7 × 24). A value of 0 indicates that log backups are not retained. Default value: 18.', 'type' => 'string', 'required' => false, 'example' => '12', 'title' => ''], ], [ - 'name' => 'SourceTableName', + 'name' => 'LocalLogRetentionSpace', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the table that you want to convert or shard.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'a1', - ], + 'schema' => ['description' => 'The maximum space usage of binary logs, in percentage. Valid values: 0 to 50. This is a loop space. Default value: 30.', 'type' => 'string', 'required' => false, 'example' => '30', 'title' => ''], ], [ - 'name' => 'TargetTableName', + 'name' => 'HighSpaceUsageProtection', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the table that is generated after you convert or shard the table.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'a2', - 'maxLength' => 100, - 'minLength' => 1, - ], + 'schema' => ['description' => 'Specifies whether to unconditionally clean up binary logs when the instance storage usage is 90% or higher, or the remaining storage is less than 5 GB. Valid values:'."\n" + .'- 1: enabled.'."\n" + .'- 0: disabled.', 'type' => 'string', 'required' => false, 'example' => '80', 'title' => ''], ], ], 'responses' => [ @@ -10375,328 +9008,120 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the unique ID of the request. If the request fails, provide this ID for technical support to troubleshoot the failure.'."\n", - 'type' => 'string', - 'example' => '5D64DE5944A1E541E0CB908A', - ], - 'Data' => [ - 'description' => 'Indicates the data that is returned.'."\n", - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'description' => 'Indicates the state of the tasks to shard tables or convert tables.'."\n", - 'type' => 'string', - 'example' => '', - ], - 'Stage' => [ - 'description' => 'Indicates the current stage of the task.'."\n", - 'type' => 'string', - 'example' => '2', - ], - 'Progress' => [ - 'description' => 'Indicates the incremental data synchronization progress.'."\n", - 'type' => 'string', - 'example' => '70', - ], - 'Expired' => [ - 'description' => 'Indicates the number of remaining days before the tasks to shard tables or convert tables expire.'."\n", - 'type' => 'string', - 'example' => '0', - ], - 'TargetTableName' => [ - 'description' => 'Indicates the name of the table after you convert or shard the table.'."\n", - 'type' => 'string', - 'example' => 'a2', - ], - 'SourceTableName' => [ - 'description' => 'Indicates the name of the table that you convert or shard.'."\n", - 'type' => 'string', - 'example' => 'a1', - ], - 'Full' => [ - 'description' => 'Indicates information about full migration tasks.'."\n", - 'type' => 'object', - 'properties' => [ - 'StartTime' => [ - 'description' => 'Indicates the start time when the tasks are performed.'."\n", - 'type' => 'string', - 'example' => '2019-09-16 15:11:53', - ], - 'Progress' => [ - 'description' => 'Indicates the progress of the tasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'Tps' => [ - 'description' => 'Indicates the number of transactions processed by the database per second.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Total' => [ - 'description' => 'Indicates the number of tasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'Expired' => [ - 'description' => 'Indicates the number of remaining days before the tasks expire.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - ], - ], - 'FullCheck' => [ - 'description' => 'Indicates information about full check tasks.'."\n", - 'type' => 'object', - 'properties' => [ - 'StartTime' => [ - 'description' => 'Indicates the start time when the tasks are performed.'."\n", - 'type' => 'string', - 'example' => '2019-09-16 15:12:53', - ], - 'Progress' => [ - 'description' => 'Indicates the progress of the tasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Tps' => [ - 'description' => 'Indicates the number of transactions processed by the database per second.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Total' => [ - 'description' => 'Indicates the number of tasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Expired' => [ - 'description' => 'Indicates the number of remaining days before the tasks expire.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - ], - ], - 'FullRevise' => [ - 'description' => 'Indicates information about full correction tasks.'."\n", - 'type' => 'object', - 'properties' => [ - 'StartTime' => [ - 'description' => 'Indicates the start time when the tasks are performed.'."\n", - 'type' => 'string', - 'example' => '2019-09-16 15:12:53', - ], - 'Progress' => [ - 'description' => 'Indicates the progress of the tasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Tps' => [ - 'description' => 'Indicates the number of transactions processed by the database per second.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Total' => [ - 'description' => 'Indicates the number of tasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Expired' => [ - 'description' => 'Indicates the number of remaining days before the tasks expire.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - ], - ], - 'Review' => [ - 'description' => 'Indicates check tasks.'."\n", - 'type' => 'object', - 'properties' => [ - 'StartTime' => [ - 'description' => 'Indicates the start time when the tasks are performed.'."\n", - 'type' => 'string', - 'example' => '2019-09-16 15:12:53', - ], - 'Progress' => [ - 'description' => 'Indicates the progress of the tasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Tps' => [ - 'description' => 'Indicates the number of transactions processed by the database per second.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'Total' => [ - 'description' => 'Indicates the number of tasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'Expired' => [ - 'description' => 'Indicates the number of remaining days before the tasks expire.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - ], - ], - 'Increment' => [ - 'description' => 'Indicates information about incremental data synchronization.'."\n", - 'type' => 'object', - 'properties' => [ - 'Delay' => [ - 'description' => 'Indicates the latency of the incremental data synchronization.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1568617906', - ], - 'StartTime' => [ - 'description' => 'Indicates the start time when the incremental data synchronization is performed.'."\n", - 'type' => 'string', - 'example' => '2019-09-16 15:12:53', - ], - 'Tps' => [ - 'description' => 'Indicates the number of transactions processed by the database per second.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '6F70CE62-5077-4B7B-95BC-4DAC45614DBE', 'title' => ''], + 'Result' => ['description' => 'The result of the operation.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'Success' => ['description' => 'The result of the API call.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"5D64DE5944A1E541E0CB908A\\",\\n \\"Data\\": {\\n \\"Status\\": \\"增量追平\\",\\n \\"Stage\\": \\"2\\",\\n \\"Progress\\": \\"70\\",\\n \\"Expired\\": \\"0\\",\\n \\"TargetTableName\\": \\"a2\\",\\n \\"SourceTableName\\": \\"a1\\",\\n \\"Full\\": {\\n \\"StartTime\\": \\"2019-09-16 15:11:53\\",\\n \\"Progress\\": 100,\\n \\"Tps\\": 0,\\n \\"Total\\": 2,\\n \\"Expired\\": 0\\n },\\n \\"FullCheck\\": {\\n \\"StartTime\\": \\"2019-09-16 15:12:53\\",\\n \\"Progress\\": 0,\\n \\"Tps\\": 0,\\n \\"Total\\": 0,\\n \\"Expired\\": 0\\n },\\n \\"FullRevise\\": {\\n \\"StartTime\\": \\"2019-09-16 15:12:53\\",\\n \\"Progress\\": 0,\\n \\"Tps\\": 0,\\n \\"Total\\": 0,\\n \\"Expired\\": 0\\n },\\n \\"Review\\": {\\n \\"StartTime\\": \\"2019-09-16 15:12:53\\",\\n \\"Progress\\": 0,\\n \\"Tps\\": 10,\\n \\"Total\\": 5,\\n \\"Expired\\": 0\\n },\\n \\"Increment\\": {\\n \\"Delay\\": 1568617906,\\n \\"StartTime\\": \\"2019-09-16 15:12:53\\",\\n \\"Tps\\": 10\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>5D64DE5944A1E541E0CB908A</RequestId>\\n<Data>\\n <Status>增量追平</Status>\\n <SourceTableName>a1</SourceTableName>\\n <Progress>70</Progress>\\n <Stage>2</Stage>\\n <Expired>0</Expired>\\n <TargetTableName>a2</TargetTableName>\\n <Full>\\n <Progress>100</Progress>\\n <Tps>0</Tps>\\n <Total>2</Total>\\n <StartTime>2019-09-16 15:11:53</StartTime>\\n <Expired>0</Expired>\\n </Full>\\n <FullCheck>\\n <Progress>0</Progress>\\n <Tps>0</Tps>\\n <Total>0</Total>\\n <StartTime>2019-09-16 15:12:53</StartTime>\\n <Expired>0</Expired>\\n </FullCheck>\\n <FullRevise>\\n <Progress>0</Progress>\\n <Tps>0</Tps>\\n <Total>0</Total>\\n <StartTime>2019-09-16 15:12:53</StartTime>\\n <Expired>0</Expired>\\n </FullRevise>\\n <Review>\\n <Progress>0</Progress>\\n <Tps>10</Tps>\\n <Total>5</Total>\\n <StartTime>2019-09-16 15:12:53</StartTime>\\n <Expired>0</Expired>\\n </Review>\\n <Increment>\\n <Tps>10</Tps>\\n <StartTime>2019-09-16 15:12:53</StartTime>\\n <Delay>1568617906</Delay>\\n </Increment>\\n</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeShardTaskInfo', - 'summary' => 'Queries information about a tool used to perform conversion and sharding.', + 'title' => 'Set local backup set policy', + 'summary' => 'Modifies the backup policy.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ValidateShardTask' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetBackupLocal'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SetBackupLocal', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6F70CE62-5077-4B7B-95BC-4DAC45614DBE\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'SetBackupPolicy' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76153', - 'abilityTreeNodes' => [ - 'FEATUREdrdsTIBR6Q', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the PolarDB-X 1.0 instance is created.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds************', 'title' => ''], ], [ - 'name' => 'DrdsInstanceId', + 'name' => 'PreferredBackupPeriod', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds23ds****', - ], + 'schema' => ['description' => 'The backup cycle. Valid values:'."\n" + .'* 0: Monday'."\n" + .'* 1: Tuesday'."\n" + .'* 2: Wednesday'."\n" + .'* 3: Thursday'."\n" + .'* 4: Friday'."\n" + .'* 5: Saturday'."\n" + .'* 6: Sunday', 'type' => 'string', 'required' => false, 'example' => '0', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'PreferredBackupStartTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The start time of the backup.', 'type' => 'string', 'required' => false, 'example' => '11:30:30', 'title' => ''], ], [ - 'name' => 'SourceTableName', + 'name' => 'PreferredBackupEndTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the table or table shard on which you want to perform the task.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'buyer', - ], + 'schema' => ['description' => 'The end time of the backup.', 'type' => 'string', 'required' => false, 'example' => '12:30:30', 'title' => ''], ], [ - 'name' => 'TargetTableName', + 'name' => 'BackupMode', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the table or table shard on which you perform the task.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'buyer_new', - 'maxLength' => 100, - 'minLength' => 1, - ], + 'schema' => ['description' => 'The backup mode. Valid values:'."\n" + .'* **logic**: logical backup'."\n" + .'* **phy**: physical backup', 'type' => 'string', 'required' => false, 'example' => 'phy', 'title' => ''], ], [ - 'name' => 'TaskType', + 'name' => 'BackupLevel', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the task. Valid values:'."\n" - ."\n" - .'* **SINGLE_TO_SHARD**: converts a single table to a table shard.'."\n" - .'* **SHARD_TO_SINGLE**: converts a table shard to a single table.'."\n" - .'* **SHARD_TO_SHARD**: converts a table shard to another table shard.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'SINGLE_TO_SHARD', - 'minLength' => 1, - ], + 'schema' => ['description' => 'The backup level. Valid values:'."\n" + .'* db: database level'."\n" + .'* instance: instance level', 'type' => 'string', 'required' => false, 'example' => 'db', 'title' => ''], + ], + [ + 'name' => 'BackupDbNames', + 'in' => 'query', + 'schema' => ['description' => 'The databases to back up. Separate multiple databases with commas (,).'."\n" + .'> This parameter takes effect only when the backup level is set to database level.', 'type' => 'string', 'required' => false, 'example' => 'test1,test2', 'title' => ''], + ], + [ + 'name' => 'BackupLog', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to enable backup logging. Valid values:'."\n" + .'* 1: enabled'."\n" + .'* 0: disabled', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'DataBackupRetentionPeriod', + 'in' => 'query', + 'schema' => ['description' => 'The number of days for which data backups are retained. Valid values: 7 to 730.', 'type' => 'string', 'required' => false, 'example' => '7', 'title' => ''], + ], + [ + 'name' => 'LogBackupRetentionPeriod', + 'in' => 'query', + 'schema' => ['description' => 'The number of days for which log backups are retained. Valid values: 7 to 730. The value must be less than or equal to the data backup retention period.', 'type' => 'string', 'required' => false, 'example' => '7', 'title' => ''], ], ], 'responses' => [ @@ -10704,67 +9129,50 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '0B6B7BDC-575D-4A77-A4F8-24B7EFAS45FG', - ], - 'List' => [ - 'description' => 'Indicates the check results.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Result' => [ - 'description' => 'Indicates the result of the check item. Valid values:'."\n" - ."\n" - .'* **0**: indicates the task is valid.'."\n" - .'* **1**: indicates the task is invalid.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Item' => [ - 'description' => 'Indicates the name of a check item.'."\n", - 'type' => 'string', - 'example' => 'same_schema', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', 'title' => ''], + 'Result' => ['description' => 'Indicates whether the backup policy is set.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0B6B7BDC-575D-4A77-A4F8-24B7EFAS45FG\\",\\n \\"List\\": [\\n {\\n \\"Result\\": 0,\\n \\"Item\\": \\"same_schema\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<RequestId>0B6B7BDC-575D-4A77-A4F8-24B7EFAS45FG</RequestId>\\n<List>\\n <Item>same_schema</Item>\\n <Result>0</Result>\\n</List>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'ValidateShardTask', - 'summary' => 'Checks whether a task to convert a table shard or shard a table is valid.', + 'title' => 'Set backup policy', + 'summary' => 'Sets a backup policy.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'SetupBroadcastTables' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetBackupPolicy'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:SetBackupPolicy', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'SetupBroadcastTables' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -10773,68 +9181,41 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '76118', - 'abilityTreeNodes' => [ - 'FEATUREdrds6IJXJ3', - ], + 'abilityTreeNodes' => ['FEATUREdrds6IJXJ3'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region in which the PolarDB-X 1.0 instance resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The region ID of the instance.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database for which you want to configure a broadcast table.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], [ 'name' => 'Active', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to activate a broadcast table for the database.'."\n", - 'type' => 'boolean', - 'required' => true, - 'docRequired' => true, - 'example' => 'true', - ], + 'schema' => ['description' => 'Specifies whether to activate the broadcast table feature.', 'type' => 'boolean', 'required' => true, 'docRequired' => true, 'example' => 'true', 'title' => ''], ], [ 'name' => 'TableName', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The name of the table.'."\n", + 'description' => 'The name of the DRDS table.', 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], 'required' => true, 'example' => 'test', 'maxItems' => 20, + 'title' => '', ], ], ], @@ -10843,131 +9224,108 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'Indicates whether the broadcast table is configured.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Data' => ['description' => 'Indicates whether the broadcast table was set up successfully.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the API request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>A3140FC7-B78B-4D8E-B0C8-926D28******</RequestId>\\n<Data>true</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'SetupBroadcastTables', - 'summary' => 'Configures a broadcast table for a database.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Set up broadcast tables', + 'summary' => 'Calls the SetupBroadcastTables operation to set up broadcast tables.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeBroadcastTables' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetupBroadcastTables'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:SetupBroadcastTables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'PolarDBXInstance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + ], + 'SetupDrdsParams' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '75974', - 'abilityTreeNodes' => [ - 'FEATUREdrdsTIBR6Q', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '76119', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdsjiii1b49****', 'title' => ''], ], [ - 'name' => 'DbName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test_db', - ], - ], - [ - 'name' => 'Query', - 'in' => 'query', - 'schema' => [ - 'description' => 'The content of the query.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'tb1', - ], - ], - [ - 'name' => 'PageSize', + 'name' => 'ParamLevel', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['description' => 'The level at which the parameters are configured. Valid values:'."\n" + ."\n" + .'- **NSTANCE**: instance level'."\n" + .'- **DB**: database level.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DB', 'title' => ''], ], [ - 'name' => 'CurrentPage', + 'name' => 'Data', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The number of the page to return.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', + 'description' => 'The list of parameters.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DbName' => ['description' => 'The name of the database to which the parameter applies.', 'type' => 'string', 'required' => false, 'example' => 'test_db', 'title' => ''], + 'ParamType' => ['description' => 'The parameter type. Valid values:'."\n" + ."\n" + .'- **ATOM**: a configuration item in the Layer 3 data source.'."\n" + .'- **CONFIG**: a configuration item in Server Config.'."\n" + .'- **DIAMOND**: a configuration item in Diamond.', 'type' => 'string', 'required' => false, 'example' => 'ATOM', 'title' => ''], + 'ParamValue' => ['description' => 'The parameter value.', 'type' => 'string', 'required' => false, 'example' => 'true', 'title' => ''], + 'ParamVariableName' => ['description' => 'The parameter name.', 'type' => 'string', 'required' => false, 'example' => 'FORBID_EXECUTE_DML_ALL', 'title' => ''], + 'ParamRanges' => ['description' => 'The valid value range of the parameter.', 'type' => 'string', 'required' => false, 'example' => '[true|false]', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => true, + 'maxItems' => 20, + 'title' => '', + 'example' => '', ], ], ], @@ -10976,164 +9334,80 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'Indicates the ID of the request.'."\n", - 'type' => 'string', - 'example' => '86E420ED-43F2-4788-A58C-921849******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'IsShard' => [ - 'description' => 'Indicates whether the database is sharded.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'PageNumber' => [ - 'description' => 'Indicates the page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => 'Indicates the number of entries returned per page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '40', - ], - 'Total' => [ - 'description' => 'Indicates the total number of entries returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'List' => [ - 'description' => 'Indicates information about broadcast tables.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'description' => 'Indicates the activation state of the broadcast table. Valid values:'."\n" - ."\n" - .'* **1**: The broadcast table is activated.'."\n" - .'* **2**: The broadcast table is being activated.'."\n" - .'* **3**: An exception occurs when the broadcast table is being activated.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'IsShard' => [ - 'description' => 'Indicates whether the broadcast table was sharded.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'Broadcast' => [ - 'description' => 'Indicates whether a table is a broadcast table.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Table' => [ - 'description' => 'Indicates the name of the table.'."\n", - 'type' => 'string', - 'example' => 'nation', - ], - 'DbInstType' => [ - 'description' => 'Indicates the storage type of the database. Valid values:'."\n" - ."\n" - .'* **0**: RDS'."\n" - .'* **4**: PolarDB'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'BroadcastType' => [ - 'description' => 'Indicates the type of the broadcast table. Valid values:'."\n" - ."\n" - .'* **1**: multi-write mode'."\n" - .'* **2**: synchronous mode'."\n", - 'type' => 'string', - 'example' => '1', - ], - ], - ], - ], + 'Data' => ['description' => 'The returned result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '9B2F3840-5C98-475C-B269-2D5C3A31797C', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"86E420ED-43F2-4788-A58C-921849******\\",\\n \\"Success\\": true,\\n \\"IsShard\\": true,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 40,\\n \\"Total\\": 2,\\n \\"List\\": [\\n {\\n \\"Status\\": 1,\\n \\"IsShard\\": false,\\n \\"Broadcast\\": true,\\n \\"Table\\": \\"nation\\",\\n \\"DbInstType\\": 0,\\n \\"BroadcastType\\": \\"1\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeBroadcastTablesReponse>\\n <IsShard>true</IsShard>\\n <RequestId>86E420ED-43F2-4788-A58C-921849******</RequestId>\\n <PageSize>40</PageSize>\\n <PageNumber>1</PageNumber>\\n <Total>2</Total>\\n <List>\\n <Status>1</Status>\\n <DbInstType>0</DbInstType>\\n <IsShard>false</IsShard>\\n <Table>nation</Table>\\n <Broadcast>true</Broadcast>\\n <BroadcastType>1</BroadcastType>\\n </List>\\n <Success>true</Success>\\n</DescribeBroadcastTablesReponse>","errorExample":""}]', - 'title' => 'DescribeBroadcastTables', - 'summary' => 'Queries broadcast tables.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'SwitchGlobalBroadcastType' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Configure instance parameters', + 'summary' => 'Configures the parameters of an instance by calling the SetupDrdsParams operation.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetupDrdsParams'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:SetupDrdsParams', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"9B2F3840-5C98-475C-B269-2D5C3A31797C\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'SetupRecycleBinStatus' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', - 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76146', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], - ], + 'operationType' => 'write', + 'systemTags' => [], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds********', - ], + 'schema' => ['description' => 'The DRDS instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'StatusAction', + 'in' => 'query', + 'schema' => ['description' => 'The enabling status of the table recycle bin. Valid values:'."\n" + ."\n" + .'* enable'."\n" + .'* disable.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'enable', 'title' => ''], ], ], 'responses' => [ @@ -11141,49 +9415,50 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'Indicates whether the mode of broadcast tables was switched from the multi-write mode to the asynchronous link mode.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-*****', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Data' => ['description' => 'Indicates whether the table recycle bin is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', 'title' => ''], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DSSDF-SEWE-*****</RequestId>\\n<Data>true</Data>\\n<success>true</success>","errorExample":""}]', - 'title' => 'SwitchGlobalBroadcastType', - 'summary' => 'Switches the mode of broadcast tables from the multi-write mode to the asynchronous link mode.', + 'title' => 'Enable table recycle bin', + 'summary' => 'Calls the SetupRecycleBinStatus operation to enable the table recycle bin.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'SetupTable' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetupRecycleBinStatus'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SetupRecycleBinStatus', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'SetupTable' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -11192,69 +9467,41 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '76121', - 'abilityTreeNodes' => [ - 'FEATUREdrdsTIBR6Q', - ], + 'abilityTreeNodes' => ['FEATUREdrdsTIBR6Q'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the streaming domain resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds************', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database in which the table resides.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The name of the database to which the table belongs.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], [ 'name' => 'AllowFullTableScan', 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to enable full table scan.'."\n", - 'type' => 'boolean', - 'required' => true, - 'docRequired' => true, - 'example' => 'true', - ], + 'schema' => ['description' => 'Specifies whether to allow full table scan.', 'type' => 'boolean', 'required' => true, 'docRequired' => true, 'example' => 'true', 'title' => ''], ], [ 'name' => 'TableName', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The names of the associated tables.', 'type' => 'array', - 'items' => [ - 'type' => 'string', - 'description' => 'The name of the associated table.'."\n", - ], + 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], 'required' => true, 'example' => 'test', 'maxItems' => 20, + 'title' => '', ], ], ], @@ -11263,131 +9510,94 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'Specifies whether to use a full table scan.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Data' => ['description' => 'Indicates whether the full table scan is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>A3140FC7-B78B-4D8E-B0C8-926D28******</RequestId>\\n<Data>true</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'SetupTable', - 'summary' => 'You can call the SetupTable operation to perform a full table scan.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Enable full table scan', + 'summary' => 'Calls the SetupTable operation to enable full table scan.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeTables' => [ - 'summary' => 'Queries all tables of a specific database within a PolarDB-X 1.0 instance.', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetupTable'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:SetupTable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'StartRestore' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'rds********', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'PreferredBackupTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database whose tables you want to query.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The restoration time of the instance. The value is in the `yyyy-MM-dd HH:mm:ss` format.', 'type' => 'string', 'required' => false, 'example' => '2019-09-10 20:18:18', 'title' => ''], ], [ - 'name' => 'Query', + 'name' => 'BackupMode', 'in' => 'query', - 'schema' => [ - 'description' => 'The query condition. The value of this parameter is the ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The backup mode. Valid values:'."\n" + ."\n" + .'* logic: logical backup'."\n" + .'* phy: fast backup.', 'type' => 'string', 'required' => false, 'example' => 'phy', 'title' => ''], ], [ - 'name' => 'PageSize', + 'name' => 'BackupLevel', 'in' => 'query', - 'schema' => [ - 'description' => 'The number of tables returned on each page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['description' => 'The backup level. Valid values:'."\n" + ."\n" + .'* db: database level'."\n" + .'* instance: instance level.', 'type' => 'string', 'required' => false, 'example' => 'db', 'title' => ''], ], [ - 'name' => 'CurrentPage', + 'name' => 'BackupDbNames', 'in' => 'query', - 'schema' => [ - 'description' => 'The page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => 'The list of database names to restore. Separate multiple database names with commas (,).'."\n" + .'> If you do not specify any database names, all databases in the instance are restored by default.', 'type' => 'string', 'required' => false, 'example' => 'test1,test2', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'BackupId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The ID of the DRDS backup set.'."\n" + .'> If you do not specify this parameter, the restoration is performed based on the point in time specified by PreferredBackupTime.', 'type' => 'string', 'required' => false, 'example' => '23***', 'title' => ''], ], ], 'responses' => [ @@ -11395,214 +9605,84 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'PageSize' => [ - 'description' => 'The number of tables returned per page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => 'The number of returned pages.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '83AC3D7E-461C-4D87-8ACD-6CC295******', - ], - 'Total' => [ - 'description' => 'The total number of returned tables.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'List' => [ - 'description' => 'The list of returned tables.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'description' => 'Indicates whether sharding tasks are performed on the table. Valid values:'."\n" - ."\n" - .'* 0: No sharding task is performed on the table.'."\n" - .'* 1: Sharding tasks are performed on the table.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'IsLocked' => [ - 'description' => 'Indicates whether the table is locked.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'ShardKey' => [ - 'description' => 'The shard key of the table.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'IsShard' => [ - 'description' => 'Indicates whether the table is sharded.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'Broadcast' => [ - 'description' => 'Indicates whether the table is a replicated table.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'AllowFullTableScan' => [ - 'description' => 'Indicates whether full table scanning is allowed.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'Table' => [ - 'description' => 'The name of the table.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'DbInstType' => [ - 'description' => 'The type of the PolarDB-X 1.0 instance. Valid values:'."\n" - ."\n" - .'* 0: The instance is a dedicated instance.'."\n" - .'* 1: The instance is a shard instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '721C71DD-D3D0-4327-BFDD-678326******', 'title' => ''], + 'Result' => ['description' => 'The returned result.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'Success' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"RequestId\\": \\"83AC3D7E-461C-4D87-8ACD-6CC295******\\",\\n \\"Total\\": 1,\\n \\"Success\\": true,\\n \\"List\\": [\\n {\\n \\"Status\\": 0,\\n \\"IsLocked\\": false,\\n \\"ShardKey\\": \\"null\\",\\n \\"IsShard\\": false,\\n \\"Broadcast\\": false,\\n \\"AllowFullTableScan\\": false,\\n \\"Table\\": \\"test\\",\\n \\"DbInstType\\": 0\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeTablesResponse>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <RequestId>83AC3D7E-461C-4D87-8ACD-6CC295******</RequestId>\\n <Total>1</Total>\\n <Success>true</Success>\\n <List>\\n <Status>0</Status>\\n <IsLocked>false</IsLocked>\\n <ShardKey>null</ShardKey>\\n <IsShard>false</IsShard>\\n <Broadcast>false</Broadcast>\\n <AllowFullTableScan>false</AllowFullTableScan>\\n <Table>test</Table>\\n <DbInstType>0</DbInstType>\\n </List>\\n</DescribeTablesResponse>","errorExample":""}]', - 'title' => ' DescribeTables', - ], - 'SetupDrdsParams' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Start a backup-based restoration task', + 'summary' => 'Starts a backup-based restoration task by calling the StartRestore operation.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartRestore'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:StartRestore', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"721C71DD-D3D0-4327-BFDD-678326******\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'SubmitCleanTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '76119', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region in which the PolarDB-X 1.0 instance is located.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds*********', 'title' => ''], ], [ - 'name' => 'DrdsInstanceId', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance for which you want to configure parameters.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdsjiii1b49****', - ], + 'schema' => ['description' => 'The name of the database to be scaled.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'ParamLevel', + 'name' => 'ParentJobId', 'in' => 'query', - 'schema' => [ - 'description' => 'The resource for which you want to configure parameters. Valid values:'."\n" - ."\n" - .'* **INSTANCE**: Configure parameters for the instance.'."\n" - .'* **DB**: Configure parameters for the databases of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'DB', - ], + 'schema' => ['description' => 'The task ID of the scaling task. This ID is returned when you submit the scaling task request.', 'type' => 'string', 'required' => true, 'example' => '123', 'title' => ''], ], [ - 'name' => 'Data', + 'name' => 'JobId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'DbName' => [ - 'description' => 'The name of the parameter that you want to configure for a database.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test_db', - ], - 'ParamType' => [ - 'description' => 'The type of the parameter that you want to configure. Valid values:'."\n" - ."\n" - .'* **ATOM**: the configuration item in the layer-3 data source.'."\n" - .'* **CONFIG**: the configuration item in ConfigServer.'."\n" - .'* **DIAMOND**: the configuration item in Diamond.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ATOM', - ], - 'ParamValue' => [ - 'description' => 'The value of parameter that you want to configure.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'true', - ], - 'ParamVariableName' => [ - 'description' => 'The name of the parameter that you want to configure.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'FORBID_EXECUTE_DML_ALL', - ], - 'ParamRanges' => [ - 'description' => 'The valid values of the parameter.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '[true|false]', - ], - ], - 'required' => false, - ], - 'required' => true, - 'maxItems' => 20, - ], + 'schema' => ['description' => 'The job ID of the scaling task. The value is the same as that of ParentJobId.', 'type' => 'string', 'required' => true, 'example' => '123', 'title' => ''], + ], + [ + 'name' => 'ExpandType', + 'in' => 'query', + 'schema' => ['description' => 'The scaling type. Valid values:'."\n" + ."\n" + .'* **smooth_expand**: smooth scale-out'."\n" + .'* **hot_expand**: hotspot update.', 'type' => 'string', 'required' => true, 'example' => 'smooth_expand', 'title' => ''], ], ], 'responses' => [ @@ -11610,147 +9690,89 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '9B2F3840-5C98-475C-B269-2D5C3A31797C', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-*****', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => '%s', - 'errorMessage' => '%s', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"9B2F3840-5C98-475C-B269-2D5C3A31797C\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<SetupDrdsParamsResponse>\\n <Data>true</Data>\\n <RequestId>9B2F3840-5C98-475C-B269-2D5C3A31797C</RequestId>\\n <Success>true</Success>\\n</SetupDrdsParamsResponse>","errorExample":""}]', - 'title' => 'SetupDrdsParams', - 'summary' => 'Configures parameters for a PolarDB-X 1.0 instance.', - ], - 'ListTagResources' => [ - 'summary' => 'Queries the tags of a resource.', - 'methods' => [ - 'post', - 'get', + 'title' => 'Submit a cleanup task for a scaling operation', + 'summary' => 'Submits a cleanup task for a scaling operation by calling the SubmitCleanTask operation.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitCleanTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SubmitCleanTask', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","type":"json"}]', + ], + 'SubmitHotExpandPreCheckTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREdrdsD0NTUP', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '76134', + 'abilityTreeNodes' => ['FEATUREdrdsR9AYAV'], ], 'parameters' => [ [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region in which the resource is located.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ResourceType', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The resource type. Set the value to INSTANCE.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'INSTANCE', - 'enum' => [ - 'INSTANCE', - ], - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drd*********', 'title' => ''], ], [ - 'name' => 'NextToken', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'Specify the token that is used to display the returned tags on multiple pages.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '6ab4640a-479b-41d0-ad3c-c6e888bc3d8f', - ], + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'Tag', + 'name' => 'DbInstType', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'The key of the tag that you want to query.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'color', - ], - 'Value' => [ - 'description' => 'The value of the tag that you want to query.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'red', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => 'The type of the database. Valid values:'."\n" + .'* RDS'."\n" + .'* POLARDB.', 'type' => 'string', 'required' => true, 'example' => 'RDS', 'title' => ''], ], [ - 'name' => 'ResourceId', + 'name' => 'TableList', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The table name.', 'type' => 'array', - 'items' => [ - 'description' => 'The ID of the resource.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'dm-hbgau1zp****', - ], + 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], 'required' => false, - 'maxItems' => 51, + 'example' => 'test', + 'maxItems' => 30, + 'title' => '', ], ], ], @@ -11759,108 +9781,51 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'description' => 'The token that is used to display the returned tags on multiple pages.'."\n", - 'type' => 'string', - 'example' => '6ab4640a-479b-41d0-ad3c-c6e888bc3d8f', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '58CE1CB0-F0F4-4BA3-B876-135DC47DF52F', - ], - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TagResources' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'TagResource' => [ - 'description' => 'The list of returned tags.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ResourceType' => [ - 'description' => 'The resource type. The value of this parameter is fixed to INSTANCE.'."\n", - 'type' => 'string', - 'example' => 'INSTANCE', - ], - 'TagValue' => [ - 'description' => 'The value of the tag.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'ResourceId' => [ - 'description' => 'The ID of the resource.'."\n", - 'type' => 'string', - 'example' => 'drdshzsd11****', - ], - 'TagKey' => [ - 'description' => 'The key of the tag.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - ], - ], + 'Msg' => ['description' => 'The result of the task submission.', 'type' => 'string', 'example' => 'scucess', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FE104D26-AC19-49B5-AC67-947F69*****', 'title' => ''], + 'TaskId' => ['description' => 'The task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '11111', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'InvalidParameter.tagKey', - 'errorMessage' => 'Check the parameter tagKey %s', - ], - [ - 'errorCode' => 'InvalidParameter.tagValue', - 'errorMessage' => 'Check the parameter tagValue %s', - ], - [ - 'errorCode' => 'InvalidParameter.tags.exceed', - 'errorMessage' => 'Tags num exceed 10', - ], - [ - 'errorCode' => 'InvalidParameter.instanceId.and.tags', - 'errorMessage' => 'you must have one of Tags and InstanceId', - ], - [ - 'errorCode' => 'InvalidParameter.tags.json.error', - 'errorMessage' => 'The parameter tags is not a JsonArray', - ], - [ - 'errorCode' => 'TagService.%s', - 'errorMessage' => 'TagService return errorMsg: %s', - ], - [ - 'errorCode' => 'TagApi.InvalidParameter.resourceId.exceed', - 'errorMessage' => 'ResourceId num exceed 50', - ], - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"NextToken\\": \\"6ab4640a-479b-41d0-ad3c-c6e888bc3d8f\\",\\n \\"RequestId\\": \\"58CE1CB0-F0F4-4BA3-B876-135DC47DF52F\\",\\n \\"Success\\": true,\\n \\"TagResources\\": {\\n \\"TagResource\\": [\\n {\\n \\"ResourceType\\": \\"INSTANCE\\",\\n \\"TagValue\\": \\"1\\",\\n \\"ResourceId\\": \\"drdshzsd11****\\",\\n \\"TagKey\\": \\"test\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListTagResourcesResponse>\\n <NextToken>6ab4640a-479b-41d0-ad3c-c6e888bc3d8f</NextToken>\\n <RequestId>58CE1CB0-F0F4-4BA3-B876-135DC47DF52F</RequestId>\\n <Success>true</Success>\\n <TagResources>\\n <ResourceType>INSTANCE</ResourceType>\\n <TagValue>1</TagValue>\\n <ResourceId>drdshzsd11****</ResourceId>\\n <TagKey>test</TagKey>\\n </TagResources>\\n</ListTagResourcesResponse>","errorExample":""}]', - 'title' => ' ListTagResources', - ], - 'TagResources' => [ - 'methods' => [ - 'post', - 'get', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Msg\\": \\"scucess\\",\\n \\"RequestId\\": \\"FE104D26-AC19-49B5-AC67-947F69*****\\",\\n \\"TaskId\\": 11111,\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Submit a hotspot scaling dry run task', + 'summary' => 'Performs checks that mainly include checking for table without primary key.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitHotExpandPreCheckTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:SubmitHotExpandPreCheckTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'SubmitHotExpandTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -11868,236 +9833,130 @@ ], 'systemTags' => [ 'operationType' => 'none', - 'abilityTreeCode' => '76147', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeCode' => '76135', + 'abilityTreeNodes' => ['FEATUREdrdsR9AYAV'], ], 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region in which the resource is located.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drdshbga1138****', 'title' => ''], ], [ - 'name' => 'ResourceType', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The resource type. Set the value to INSTANCE.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'INSTANCE', - 'enum' => [ - 'INSTANCE', - ], - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'Tag', + 'name' => 'TaskName', + 'in' => 'query', + 'schema' => ['description' => 'The task name.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'TaskDesc', + 'in' => 'query', + 'schema' => ['description' => 'The task description.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'InstanceDbMapping', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The list of target instance data.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => 'The key of the tag that you want to add.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'color', - ], - 'Value' => [ - 'description' => 'The value of the tag that you want to add.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'red', - ], + 'DbList' => ['description' => 'The target hotspot sharded databases.', 'type' => 'string', 'required' => true, 'example' => 'hot_test_****_****', 'title' => ''], + 'InstanceName' => ['description' => 'The name of the ApsaraDB RDS instance where the target hotspot database resides.', 'type' => 'string', 'required' => false, 'example' => 'rm-bp1t1mk5a5bdj****', 'title' => ''], ], 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => true, - 'maxItems' => 21, + 'maxItems' => 30, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'ResourceId', + 'name' => 'Mapping', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The list of target database data.', 'type' => 'array', 'items' => [ - 'description' => 'The ID of the resource.'."\n", - 'type' => 'string', + 'type' => 'object', + 'properties' => [ + 'HotDbName' => ['description' => 'The name of the hotspot database.', 'type' => 'string', 'required' => false, 'example' => 'hot_test_****_****', 'title' => ''], + 'ShardTbValue' => ['description' => 'The table-level shard key value.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], + 'HotTableName' => ['description' => 'The name of the hotspot sharded table. The name must use the logical table name as a prefix.', 'type' => 'string', 'required' => false, 'example' => 'test_table_*****', 'title' => ''], + 'ShardDbValue' => ['description' => 'The database-level shard key value.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], + 'TbShardColumn' => ['description' => 'The table shard key of the associated table.', 'type' => 'string', 'required' => false, 'example' => 'platform', 'title' => ''], + 'DbShardColumn' => ['description' => 'The database shard key of the associated table.', 'type' => 'string', 'required' => false, 'example' => 'platform', 'title' => ''], + 'LogicTable' => ['description' => 'The name of the logical table for hotspot scale-out.', 'type' => 'string', 'required' => false, 'example' => 'test_table', 'title' => ''], + ], 'required' => false, - 'example' => 'dm-hbgau1zp****', + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => true, - 'maxItems' => 51, - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'FE5D94E3-3C93-3594-95D9-AAED2A980915', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'InvalidParameter.tagKey', - 'errorMessage' => 'Check the parameter tagKey %s', - ], - [ - 'errorCode' => 'InvalidParameter.tagValue', - 'errorMessage' => 'Check the parameter tagValue %s', - ], - [ - 'errorCode' => 'InvalidParameter.tags.exceed', - 'errorMessage' => 'Tags num exceed 10', - ], - [ - 'errorCode' => 'InvalidParameter.tags.notFound', - 'errorMessage' => 'Tags connot be empty', - ], - [ - 'errorCode' => 'TagService.%s', - 'errorMessage' => 'TagService return errorMsg: %s', - ], - [ - 'errorCode' => 'TagApi.InvalidParameter.resourceId.exceed', - 'errorMessage' => 'ResourceId num exceed 50', - ], - ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], - ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"FE5D94E3-3C93-3594-95D9-AAED2A980915\\"\\n}","errorExample":""},{"type":"xml","example":"<TagResourcesResponse>\\n <Success>true</Success>\\n <RequestId>FE5D94E3-3C93-3594-95D9-AAED2A980915</RequestId>\\n</TagResourcesResponse>","errorExample":""}]', - 'title' => ' TagResources', - 'summary' => 'Adds tags to a resource.', - ], - 'UntagResources' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '76148', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], - ], - 'parameters' => [ - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ResourceType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the resource. Set the value to INSTANCE.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'INSTANCE', - 'enum' => [ - 'INSTANCE', - ], - ], - ], - [ - 'name' => 'All', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to delete all tags of the resource.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', + 'maxItems' => 30, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'ResourceId', + 'name' => 'SupperAccountMapping', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The list of privileged account data.', 'type' => 'array', 'items' => [ - 'type' => 'string', - 'description' => 'The ID of the resource.'."\n", + 'type' => 'object', + 'properties' => [ + 'InstanceName' => ['description' => 'The instance ID of the ApsaraDB RDS instance that has a privileged account.', 'type' => 'string', 'required' => false, 'example' => 'rm-bp1t1mk5a5bdj****', 'title' => ''], + 'SupperAccount' => ['description' => 'The name of the privileged account for the ApsaraDB RDS instance.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], + 'SupperPassword' => ['description' => 'The password of the privileged account for the ApsaraDB RDS instance.', 'type' => 'string', 'required' => false, 'example' => '11111111', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], - 'required' => true, - 'example' => 'drds********', - 'maxItems' => 51, + 'required' => false, + 'maxItems' => 1000, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'TagKey', + 'name' => 'ExtendedMapping', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The list of scale-out data.', 'type' => 'array', 'items' => [ - 'type' => 'string', - 'description' => 'The key of the tag.'."\n" - ."\n" - .'> '."\n" - ."\n" - .'N specifies the serial number of the tag. For example,'."\n" - ."\n" - .'* Tag.1.Key represents the key of the first tag passed in.'."\n" - .'* Tag.2.Key indicates the key of the second tag.'."\n", + 'type' => 'object', + 'properties' => [ + 'SrcDb' => ['description' => 'The name of the source physical sharded database.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], + 'SrcInstanceId' => ['description' => 'The instance ID of the ApsaraDB RDS instance where the source physical database sharding resides.', 'type' => 'string', 'required' => false, 'example' => 'rm-bp1t1mk5a5bdj****', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], - 'required' => false, - 'example' => 'color', - 'maxItems' => 21, + 'required' => true, + 'maxItems' => 30, + 'title' => '', + 'example' => '', ], ], ], @@ -12106,103 +9965,72 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the database creation failure records were removed from the DRDS instance.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-*****', - ], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0B6B7BDC-575D-4A77-A4F8-24B7EFERV45Y', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'InvalidParameter.tagKey', - 'errorMessage' => 'Check the parameter tagKey %s', - ], - [ - 'errorCode' => 'InvalidParameter.tagValue', - 'errorMessage' => 'Check the parameter tagValue %s', - ], - [ - 'errorCode' => 'InvalidParameter.tags.exceed', - 'errorMessage' => 'Tags num exceed 10', - ], - [ - 'errorCode' => 'InvalidParameter.tags.notFound', - 'errorMessage' => 'Tags connot be empty', - ], - [ - 'errorCode' => 'InvalidParameter.tags.json.error', - 'errorMessage' => 'Thr parameter tags is not a JsonArray', - ], - [ - 'errorCode' => 'TagService.%s', - 'errorMessage' => 'TagService return errorMsg: %s', - ], - [ - 'errorCode' => 'TagApi.InvalidParameter.resourceId.exceed', - 'errorMessage' => 'ResourceId num exceed 50', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DSSDF-SEWE-*****</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'UntagResources', - 'summary' => 'You can call this operation to untag resources.', + 'title' => 'Submit a hotspot scale-out task', + 'summary' => 'Calls the SubmitHotExpandTask operation to submit a hotspot scale-out task.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsInstanceVersion' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitHotExpandTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:SubmitHotExpandTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0B6B7BDC-575D-4A77-A4F8-24B7EFERV45Y\\"\\n}","type":"json"}]', + ], + 'SubmitSmoothExpandPreCheck' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance whose version you want to query.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdshbga1138****', - ], + 'schema' => ['description' => 'The DRDS instance ID.', 'type' => 'string', 'required' => true, 'example' => 'drds*******', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'DbInstType', + 'in' => 'query', + 'schema' => ['description' => 'The type of the database. Valid values:'."\n" + .'* RDS'."\n" + .'* POLARDB.', 'type' => 'string', 'required' => true, 'example' => 'RDS', 'title' => ''], ], ], 'responses' => [ @@ -12210,90 +10038,71 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', - ], - 'Data' => [ - 'description' => 'The details about the instance version.'."\n", - 'type' => 'object', - 'properties' => [ - 'NewestVersion' => [ - 'description' => 'The latest version of the instance.'."\n", - 'type' => 'string', - 'example' => '5.4.12-16315258', - ], - 'InstanceVersion' => [ - 'description' => 'The current version of the instance.'."\n", - 'type' => 'string', - 'example' => '5.3.12-15682777', - ], - ], - ], + 'Msg' => ['description' => 'The result of the task submission.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FE104D26-AC19-49B5-AC67-947F69******', 'title' => ''], + 'TaskId' => ['description' => 'The task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '11111', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - ], - 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\",\\n \\"Data\\": {\\n \\"NewestVersion\\": \\"5.4.12-16315258\\",\\n \\"InstanceVersion\\": \\"5.3.12-15682777\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsInstanceVersionResponse>\\n <Success>true</Success>\\n <RequestId>2F7F8080-9132-4279-85D0-B7E5C4305162</RequestId>\\n <Data>\\n <NewestVersion>5.4.12-16315258</NewestVersion>\\n <InstanceVersion>5.3.12-15682777</InstanceVersion>\\n </Data>\\n</DescribeDrdsInstanceVersionResponse>","errorExample":""}]', - 'title' => 'DescribeDrdsInstanceVersion', - 'summary' => 'Queries the version of a specific PolarDB-X 1.0 instance.', + 'title' => 'Submit a smooth scale-out precheck task', + 'summary' => 'Submits a smooth scale-out precheck task by calling the SubmitSmoothExpandPreCheck operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsInstanceLevelTasks' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitSmoothExpandPreCheck'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SubmitSmoothExpandPreCheck', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Msg\\": \\"success\\",\\n \\"RequestId\\": \\"FE104D26-AC19-49B5-AC67-947F69******\\",\\n \\"TaskId\\": 11111,\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'SubmitSmoothExpandPreCheckTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'none', + 'abilityTreeCode' => '76140', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance of which the unfinished tasks you want to query.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdssen12****', - ], + 'schema' => ['description' => 'The ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds823s4esd', 'title' => ''], + ], + [ + 'name' => 'DbName', + 'in' => 'query', + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -12301,121 +10110,51 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', - ], - 'Tasks' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Task' => [ - 'description' => 'The list of returned unfinished tasks.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'TaskType' => [ - 'description' => 'The type of the task.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '11', - ], - 'TaskPhase' => [ - 'description' => 'The phase of the task.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'Progress' => [ - 'description' => 'The progress of the task. Valid values: 0 to 100.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '99', - ], - 'AllowCancel' => [ - 'description' => 'Indicates whether the task can be canceled.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'TaskStatus' => [ - 'description' => 'The state of the task. Valid values:'."\n" - ."\n" - .'* 0: The task is being executed.'."\n" - .'* 1: The task is executed.'."\n" - .'* 2: The task failed to be executed.'."\n" - .'* 3: The task is canceled.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'ShowProgress' => [ - 'description' => 'Indicates whether the progress of the task is displayed.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TaskName' => [ - 'description' => 'The name of the task.'."\n", - 'type' => 'string', - 'example' => 'upgrade_instance', - ], - 'ProgressDescription' => [ - 'description' => 'The description of the task progress.'."\n", - 'type' => 'string', - 'example' => '', - ], - 'GmtCreate' => [ - 'description' => 'The timestamp when the task is created.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1568705520000', - ], - 'TargetId' => [ - 'description' => 'The ID of the task.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12312', - ], - 'ErrMsg' => [ - 'description' => 'The error message returned for the task.'."\n", - 'type' => 'string', - 'example' => '', - ], - ], - ], - ], - ], - ], + 'Msg' => ['description' => 'The result information of the submitted task.', 'type' => 'string', 'example' => 'scucess', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-23ERW', 'title' => ''], + 'TaskId' => ['description' => 'The task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '2321', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\",\\n \\"Tasks\\": {\\n \\"Task\\": [\\n {\\n \\"TaskType\\": 11,\\n \\"TaskPhase\\": \\"1\\",\\n \\"Progress\\": 99,\\n \\"AllowCancel\\": false,\\n \\"TaskStatus\\": 0,\\n \\"ShowProgress\\": true,\\n \\"TaskName\\": \\"upgrade_instance\\",\\n \\"ProgressDescription\\": \\"正在执行\\",\\n \\"GmtCreate\\": 1568705520000,\\n \\"TargetId\\": 12312,\\n \\"ErrMsg\\": \\"实例状态异常\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsInstanceLevelTasksResponse>\\n <Success>true</Success>\\n <RequestId>2F7F8080-9132-4279-85D0-B7E5C4305162</RequestId>\\n <Tasks>\\n <TaskType>11</TaskType>\\n <TaskPhase>1</TaskPhase>\\n <Progress>99</Progress>\\n <AllowCancel>false</AllowCancel>\\n <TaskStatus>0</TaskStatus>\\n <ShowProgress>true</ShowProgress>\\n <TaskName>upgrade_instance</TaskName>\\n <ProgressDescription>正在执行</ProgressDescription>\\n <GmtCreate>1568705520000</GmtCreate>\\n <TargetId>12312</TargetId>\\n <ErrMsg>实例状态异常</ErrMsg>\\n </Tasks>\\n</DescribeDrdsInstanceLevelTasksResponse>","errorExample":""}]', - 'title' => 'DescribeDrdsInstanceLevelTasks', - 'summary' => 'Queries the unfinished tasks of PolarDB-X 1.0 instances.', - ], - 'UpgradeInstanceVersion' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Submit a smooth scale-out dry run task', + 'summary' => 'Submits a dry run task for smooth scale-out.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitSmoothExpandPreCheckTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:SubmitSmoothExpandPreCheckTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Msg\\": \\"scucess\\",\\n \\"RequestId\\": \\"DSSDF-SEWE-23ERW\\",\\n \\"TaskId\\": 2321,\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'SubmitSqlFlashbackTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -12426,166 +10165,56 @@ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance that you want to upgrade.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdshbgaen89****', - ], + 'schema' => ['description' => 'The ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'example' => 'drds*********', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'Rpm', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The version number of the PolarDB-X 1.0 instance. You can leave this parameter unspecified.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 't-drds-server-5.4.12-16348095.noarch.rpm', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Data' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'string', - 'example' => 'success', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', - ], + 'schema' => ['description' => 'The start time for executing the flashback SQL.', 'type' => 'string', 'required' => true, 'example' => '2019-09-10 20:23:23', 'title' => ''], ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": \\"success\\",\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\"\\n}","errorExample":""},{"type":"xml","example":"<UpgradeInstanceVersionResponse>\\n <Data>success</Data>\\n <RequestId>2F7F8080-9132-4279-85D0-B7E5C4305162</RequestId>\\n</UpgradeInstanceVersionResponse>","errorExample":""}]', - 'title' => 'UpgradeInstanceVersion', - 'summary' => 'Upgrades the version of a PolarDB-X 1.0 instance.', - ], - 'DescribeDrdsInstanceMonitor' => [ - 'summary' => 'Queries the details of the monitoring data of a specified instance.', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREdrdsD0NTUP', + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time for executing the flashback SQL.', 'type' => 'string', 'required' => true, 'example' => '2019-09-10 23:23:23', 'title' => ''], ], - ], - 'parameters' => [ [ - 'name' => 'DrdsInstanceId', + 'name' => 'TraceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*********', - ], + 'schema' => ['description' => 'The trace ID of the flashback SQL.', 'type' => 'string', 'required' => false, 'example' => 'ase*****', 'title' => ''], ], [ - 'name' => 'Key', + 'name' => 'TableName', 'in' => 'query', - 'schema' => [ - 'description' => 'The performance monitoring metrics. You can specify one or more metrics. Separate multiple metric names with commas (,).'."\n" - ."\n" - .'> For more information about performance monitoring metrics, see [Monitor instances](~~186703~~).'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cpu', - ], + 'schema' => ['description' => 'The name of the table on which the flashback SQL operation is performed.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], ], [ - 'name' => 'StartTime', + 'name' => 'SqlType', 'in' => 'query', - 'schema' => [ - 'description' => 'The start time of the query. Specify the value in the UNIX timestamp format. The timestamp must be in UTC. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1603123290000', - ], + 'schema' => ['description' => 'The type of SQL statement. Valid values: INSERT, UPDATE, and DELETE. Separate multiple values with commas (,).', 'type' => 'string', 'required' => false, 'example' => 'INSERT,UPDATE', 'title' => ''], ], [ - 'name' => 'EndTime', + 'name' => 'SqlPk', 'in' => 'query', - 'schema' => [ - 'description' => 'The end time of the query. Specify the value in the UNIX timestamp format. The timestamp must be in UTC. Unit: ms.'."\n" - ."\n" - .'> If the time range that you specify is less than 1 hour, the monitoring data that is collected in a 1-hour period before the end time is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1603209690000', - ], + 'schema' => ['description' => 'The primary key of the flashback SQL.', 'type' => 'string', 'required' => false, 'example' => '11111', 'title' => ''], ], [ - 'name' => 'PeriodMultiple', + 'name' => 'RecallType', 'in' => 'query', - 'schema' => [ - 'description' => 'The multiple of the default time interval that you want to use to collect monitoring data. By default, the system collects monitoring data of resources at an interval of 1 minute. If you set the value of this parameter to 2, the system collects monitoring data of the instance at an interval of 2 minutes.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '0', - ], + 'schema' => ['description' => 'The match type. Valid values:'."\n" + .'* 0: exact match.'."\n" + .'* 1: fuzzy match.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'RecallRestoreType', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region where the instance is deployed.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The restore type. Valid values:'."\n" + .'* 1: image restore.'."\n" + .'* 0: reverse restore.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0', 'title' => ''], ], ], 'responses' => [ @@ -12593,194 +10222,76 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '2F7F8080-9132-4279-85D0-B7E5C4', - ], - 'Data' => [ - 'description' => 'The result set of the query.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'The name of the metric.'."\n", - 'type' => 'string', - 'example' => 'cpu', - ], - 'Unit' => [ - 'description' => 'The unit of the metric value.'."\n", - 'type' => 'string', - 'example' => '%', - ], - 'NodeNum' => [ - 'description' => 'The number of nodes.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Values' => [ - 'description' => 'The details of the monitoring data of the metric.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Date' => [ - 'description' => 'The point in time when the value of the metric was collected. The value is in the UNIX timestamp format. The timestamp is displayed in UTC. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1603163400000', - ], - 'Value' => [ - 'description' => 'The value of the metric.'."\n", - 'type' => 'string', - 'example' => '1.40', - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-*****', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TaskId' => ['description' => 'The task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1111', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'Invalid parameter of key', - ], - [ - 'errorCode' => 'InvalidParameter.time', - 'errorMessage' => 'The startTime and endTime must in one week', - ], - [ - 'errorCode' => 'InvalidParameter.periodMultiple', - 'errorMessage' => 'The periodMultiple is too larger than the time between startTime and endTime', - ], - [ - 'errorCode' => 'DrdsInstance.NotExists', - 'errorMessage' => 'The drds instance does not exist.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => 'invalid parameter.', - ], - ], - 404 => [ - [ - 'errorCode' => 'Monitor.QueryRdsFailure', - 'errorMessage' => 'Failed to query RDS monitor info.', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4\\",\\n \\"Data\\": [\\n {\\n \\"Key\\": \\"cpu\\",\\n \\"Unit\\": \\"%\\",\\n \\"NodeNum\\": 1,\\n \\"Values\\": [\\n {\\n \\"Date\\": 1603163400000,\\n \\"Value\\": \\"1.40\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<RequestId>2F7F8080-9132-4279-85D0-B7E5C4</RequestId>\\n<Data>\\n <NodeNum>1</NodeNum>\\n <Unit>%</Unit>\\n <Key>cpu</Key>\\n <Values>\\n <Value>1.40</Value>\\n <Date>1603163400000</Date>\\n </Values>\\n</Data>","errorExample":""}]', - 'title' => 'DescribeDrdsInstanceMonitor', + 'title' => 'Submit an SQL flashback task', + 'summary' => 'Calls the SubmitSqlFlashbackTask operation to submit an SQL flashback task.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeDrdsInstanceDbMonitor' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitSqlFlashbackTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SubmitSqlFlashbackTask', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\",\\n \\"Success\\": true,\\n \\"TaskId\\": 1111\\n}","type":"json"}]', + ], + 'SwitchGlobalBroadcastType' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'none', + 'abilityTreeCode' => '76146', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the Distributed Relational Database Service (DRDS) instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*************', - ], - ], - [ - 'name' => 'DbName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds_test', - ], - ], - [ - 'name' => 'Key', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The performance monitoring metrics. You can specify one or more metrics for a query at a time. Separate multiple metric parameters with commas (,).'."\n" - ."\n" - .'> For more information about the details of performance monitoring metrics, see [Database monitoring](~~186704~~).'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'qps', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'StartTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'The start time. Specify the time in the UNIX timestamp format. The time must be in UTC. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1603162800000', - ], - ], - [ - 'name' => 'EndTime', + 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The end time. Specify the time in the UNIX timestamp format. The time must be in UTC. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1603166400000', - ], + 'schema' => ['description' => 'The instance ID of the DRDS instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds********', 'title' => ''], ], [ - 'name' => 'RegionId', + 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The name of the DRDS database.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ @@ -12788,141 +10299,115 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '2F7F8080-9132-4279-85D0-B7E5C4******', - ], - 'Data' => [ - 'description' => 'The list of monitoring data.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'The name of the monitoring metric.'."\n", - 'type' => 'string', - 'example' => 'qps', - ], - 'Unit' => [ - 'description' => 'The unit of the monitoring metric.'."\n", - 'type' => 'string', - 'example' => 'qps', - ], - 'Values' => [ - 'description' => 'The details about the value of monitoring data.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Date' => [ - 'description' => 'The time point when the value of monitoring data was obtained. The value is in the UNIX timestamp format. Unit: ms.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1603162805000', - ], - 'Value' => [ - 'description' => 'The data value.'."\n", - 'type' => 'string', - 'example' => '0', - ], - ], - ], - ], - ], - ], - ], + 'Data' => ['description' => 'Indicates whether the broadcast table is successfully switched from multi-write mode to asynchronous link mode.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-*****', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - [ - 'errorCode' => 'InvalidParameter.Mismatch', - 'errorMessage' => 'Invalid parameter of key', - ], - [ - 'errorCode' => 'InvalidParameter.time', - 'errorMessage' => 'The startTime and endTime must in one week', - ], - ], - 404 => [ - [ - 'errorCode' => 'InvalidDbName.NotFound', - 'errorMessage' => 'The DrdsInstanceId or DbName provided does not exist in our records.', - ], - ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4******\\",\\n \\"Data\\": [\\n {\\n \\"Key\\": \\"qps\\",\\n \\"Unit\\": \\"qps\\",\\n \\"Values\\": [\\n {\\n \\"Date\\": 1603162805000,\\n \\"Value\\": \\"0\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeDrdsInstanceDbMonitorResponse>\\n<RequestId>01685B03-4099-414F-B9E1-DB994947CA8E</RequestId>\\n<Data>\\n <Values>\\n <Value>0</Value>\\n <Date>1602234005000</Date>\\n </Values>\\n <Unit>qps</Unit>\\n <Key>qps</Key>\\n</Data>\\n<Success>true</Success>\\n</DescribeDrdsInstanceDbMonitorResponse>","errorExample":""}]', - 'title' => 'DescribeDrdsInstanceDbMonitor', - 'summary' => 'Queries the performance monitoring data of a specified database.', + 'title' => 'Switch a broadcast table from multi-write to asynchronous link mode', + 'summary' => 'Switches a broadcast table from multi-write mode to asynchronous link mode by calling the SwitchGlobalBroadcastType operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ChangeAccountPassword' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SwitchGlobalBroadcastType'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:SwitchGlobalBroadcastType', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'TagResources' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'systemTags' => [ 'operationType' => 'none', + 'abilityTreeCode' => '76147', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ - 'name' => 'DrdsInstanceId', + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'ResourceType', 'in' => 'query', 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", + 'description' => 'The resource type. Set this parameter to INSTANCE.', 'type' => 'string', 'required' => true, - 'example' => 'drds********', + 'docRequired' => true, + 'enum' => ['INSTANCE'], + 'example' => 'INSTANCE', + 'title' => '', ], ], [ - 'name' => 'AccountName', + 'name' => 'Tag', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The name of the member account.'."\n", - 'type' => 'string', + 'description' => 'The labels.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The key of the label.', 'type' => 'string', 'required' => false, 'example' => 'color', 'title' => ''], + 'Value' => ['description' => 'The value of the label.', 'type' => 'string', 'required' => false, 'example' => 'red', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], 'required' => true, - 'example' => 'test', + 'maxItems' => 21, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'Password', + 'name' => 'ResourceId', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The new password.'."\n", - 'type' => 'string', + 'description' => 'The resources.', + 'type' => 'array', + 'items' => ['description' => 'The resource ID.', 'type' => 'string', 'required' => false, 'example' => 'dm-hbgau1zp****', 'title' => ''], 'required' => true, - 'example' => 'test', + 'maxItems' => 51, + 'title' => '', + 'example' => '', ], ], ], @@ -12931,376 +10416,207 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-*****', - ], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FE5D94E3-3C93-3594-95D9-AAED2A980915', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ActionUnauthorized', - 'errorMessage' => 'The specified action is not available for you', - ], - ], - 404 => [ - [ - 'errorCode' => 'InvalidDRDSInstanceId.NotFound', - 'errorMessage' => 'The DrdsInstanceId provided does not exist in our records.', - ], + ['errorCode' => 'InvalidParameter.tagKey', 'errorMessage' => 'Check the parameter tagKey %s', 'description' => ''], + ['errorCode' => 'InvalidParameter.tagValue', 'errorMessage' => 'Check the parameter tagValue %s', 'description' => ''], + ['errorCode' => 'InvalidParameter.tags.exceed', 'errorMessage' => 'Tags num exceed 10', 'description' => ''], + ['errorCode' => 'InvalidParameter.tags.notFound', 'errorMessage' => 'Tags connot be empty', 'description' => ''], + ['errorCode' => 'TagService.%s', 'errorMessage' => 'TagService return errorMsg: %s', 'description' => ''], + ['errorCode' => 'TagApi.InvalidParameter.resourceId.exceed', 'errorMessage' => 'ResourceId num exceed 50', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DSSDF-SEWE-*****</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'ChangeAccountPassword', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ChangeInstanceAzone' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Add labels to resources', + 'summary' => 'Calls the TagResources operation to add labels to resources.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:TagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"FE5D94E3-3C93-3594-95D9-AAED2A980915\\"\\n}","type":"json"}]', + ], + 'UntagResources' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '75934', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '76148', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ - 'name' => 'DrdsInstanceId', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdsjiii1b49****', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'OriginAzoneId', + 'name' => 'ResourceType', 'in' => 'query', 'schema' => [ - 'description' => 'The source zone of the PolarDB-X 1.0 instance.'."\n", + 'description' => 'The resource type. Set this parameter to INSTANCE.', 'type' => 'string', 'required' => true, 'docRequired' => true, - 'example' => 'cn-hangzhou-B', + 'enum' => ['INSTANCE'], + 'example' => 'INSTANCE', + 'title' => '', ], ], [ - 'name' => 'TargetAzoneId', + 'name' => 'All', 'in' => 'query', - 'schema' => [ - 'description' => 'The destination zone to which you want to modify'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou-A', - ], + 'schema' => ['description' => 'Specifies whether to remove all tags from the resources.', 'type' => 'boolean', 'required' => false, 'default' => 'false', 'example' => 'false', 'title' => ''], ], [ - 'name' => 'DrdsRegionId', + 'name' => 'ResourceId', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', + 'description' => 'The resource ID.', + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ChangeVSwitch', - 'in' => 'query', - 'allowEmptyValue' => true, - 'schema' => [ - 'type' => 'boolean', - 'required' => false, + 'example' => 'drds********', + 'maxItems' => 51, + 'title' => '', ], ], [ - 'name' => 'NewVSwitch', + 'name' => 'TagKey', 'in' => 'query', - 'allowEmptyValue' => true, + 'style' => 'repeatList', 'schema' => [ - 'type' => 'string', + 'description' => 'The key of the tag.'."\n" + .'> N specifies the sequence number of the tag key. For example: * Tag.1.Key specifies the key of the first tag. * Tag.2.Key specifies the key of the second tag.', + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], 'required' => false, + 'example' => 'color', + 'maxItems' => 21, + 'title' => '', ], ], ], 'responses' => [ 200 => [ - 'headers' => [], 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', - ], + 'Success' => ['description' => 'The request result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-*****', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ERR_INSTANCE_NOT_RUNNING_STATUS', - 'errorMessage' => 'The instance status is not running', - ], - [ - 'errorCode' => 'ERR_OTHER_MULTI_AZONE_SWITCH', - 'errorMessage' => 'Change to multiple azone should have even number of nodes', - ], + ['errorCode' => 'InvalidParameter.tagKey', 'errorMessage' => 'Check the parameter tagKey %s', 'description' => ''], + ['errorCode' => 'InvalidParameter.tagValue', 'errorMessage' => 'Check the parameter tagValue %s', 'description' => ''], + ['errorCode' => 'InvalidParameter.tags.exceed', 'errorMessage' => 'Tags num exceed 10', 'description' => ''], + ['errorCode' => 'InvalidParameter.tags.notFound', 'errorMessage' => 'Tags connot be empty', 'description' => ''], + ['errorCode' => 'InvalidParameter.tags.json.error', 'errorMessage' => 'Thr parameter tags is not a JsonArray', 'description' => ''], + ['errorCode' => 'TagService.%s', 'errorMessage' => 'TagService return errorMsg: %s', 'description' => ''], + ['errorCode' => 'TagApi.InvalidParameter.resourceId.exceed', 'errorMessage' => 'ResourceId num exceed 50', 'description' => ''], ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\"\\n}","errorExample":""},{"type":"xml","example":"<ChangeInstanceAzoneResponse>\\n <Success>true</Success>\\n <RequestId>2F7F8080-9132-4279-85D0-B7E5C4305162</RequestId>\\n</ChangeInstanceAzoneResponse>","errorExample":""}]', - 'title' => 'ChangeInstanceAzone', - 'summary' => 'Changes the zone of a PolarDB-X 1.0 instance.', - ], - 'DescribeBackupLocal' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + 'title' => 'Remove tags from resources', + 'summary' => 'Calls the UntagResources operation to remove tags from resources.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'], ], ], - 'systemTags' => [], - 'parameters' => [ + 'ramActions' => [ [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'FDC9CFD5-306D-4A23-9D8C-057274C6****', - ], - 'BackupPolicyDO' => [ - 'description' => 'The information about the backup policy.'."\n", - 'type' => 'object', - 'properties' => [ - 'BackupDbName' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'LogBackupRetentionPeriod' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'DataBackupRetentionPeriod' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'BackupType' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'BackupLevel' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'LocalLogRetentionHours' => [ - 'description' => 'The number of hours for which log backup files are retained on the instance. Valid values: 0 to 168. Default value: **18**. The value **0** indicates that log backup files are not retained.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '18', - ], - 'HighSpaceUsageProtection' => [ - 'description' => 'Indicates whether the feature is enabled to forcibly delete binary log files if the used storage space of the instance exceeds 90% of the total storage space or the remaining storage space is less than 5 GB. Valid values:'."\n" - ."\n" - .'* 1: The feature is enabled.'."\n" - .'* 0: The feature is disabled.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'GmtModified' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'BackupRetentionPeriod' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'BackupPolicyMode' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'PreferredBackupPeriod' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'LocalLogRetentionSpace' => [ - 'description' => 'The maximum storage usage that is allowed for local log files. Valid values: 0 to 50. Default value: 30.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30', - ], - 'BackupAppName' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'PreferredBackupTime' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'GmtCreate' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'BackupMode' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'BackupLog' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - 'NextBackupActuallyTime' => [ - 'description' => 'No value is returned.'."\n", - 'type' => 'string', - 'example' => 'null', - ], - ], - ], + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'drds:UntagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], - ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"FDC9CFD5-306D-4A23-9D8C-057274C6****\\",\\n \\"BackupPolicyDO\\": {\\n \\"BackupDbName\\": \\"null\\",\\n \\"LogBackupRetentionPeriod\\": 0,\\n \\"DataBackupRetentionPeriod\\": 0,\\n \\"BackupType\\": \\"null\\",\\n \\"BackupLevel\\": \\"null\\",\\n \\"LocalLogRetentionHours\\": 18,\\n \\"HighSpaceUsageProtection\\": 1,\\n \\"GmtModified\\": 0,\\n \\"BackupRetentionPeriod\\": 0,\\n \\"BackupPolicyMode\\": \\"null\\",\\n \\"PreferredBackupPeriod\\": \\"null\\",\\n \\"LocalLogRetentionSpace\\": 30,\\n \\"BackupAppName\\": \\"null\\",\\n \\"PreferredBackupTime\\": \\"null\\",\\n \\"GmtCreate\\": 0,\\n \\"BackupMode\\": \\"null\\",\\n \\"BackupLog\\": \\"null\\",\\n \\"NextBackupActuallyTime\\": \\"null\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeBackupLocalResponse>\\n\\t<RequestId>FDC9CFD5-306D-4A23-9D8C-057274C6****</RequestId>\\n\\t<Success>true</Success>\\n\\t<BackupPolicyDO>\\n\\t\\t<LocalLogRetentionHours>18</LocalLogRetentionHours>\\n\\t\\t<LocalLogRetentionSpace>30</LocalLogRetentionSpace>\\n\\t\\t<HighSpaceUsageProtection>1</HighSpaceUsageProtection>\\n\\t</BackupPolicyDO>\\n</DescribeBackupLocalResponse>","errorExample":""}]', - 'title' => 'DescribeBackupLocal', - 'summary' => 'Queries the backup settings of local logs.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","type":"json"}]', ], - 'DescribeDrdsRdsInstances' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateInstanceNetwork' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76007', - 'abilityTreeNodes' => [ - 'FEATUREdrdsD0NTUP', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '76149', + 'abilityTreeNodes' => ['FEATUREdrdsBRC5LQ'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X instance.'."\n" - ."\n" - .'> You can call the [DescribeDrdsInstances](~~139284~~) operation to query the information about instances in the specified account, such as the IDs of the instances.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*************', - ], + 'schema' => ['description' => 'The DRDS instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds******', 'title' => ''], + ], + [ + 'name' => 'SrcInstanceNetworkType', + 'in' => 'query', + 'schema' => ['description' => 'The current network type of the DRDS instance. Valid values:'."\n" + .'* vpc: virtual private cloud (VPC)'."\n" + .'* classic: classic network.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'classic', 'title' => ''], + ], + [ + 'name' => 'RetainClassic', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to retain the classic network endpoint.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'ClassicExpiredDays', + 'in' => 'query', + 'schema' => ['description' => 'The number of days for classic network address reservation.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''], ], ], 'responses' => [ @@ -13308,235 +10624,105 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '123DB16B-02F2-45F7-A571-843991******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'DbInstances' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'DbInstance' => [ - 'description' => 'The information about the custom ApsaraDB RDS for MySQL instances at the storage layer.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'DBInstanceCPU' => [ - 'description' => 'The number of CPU cores of the custom ApsaraDB RDS for MySQL instance at the storage layer.'."\n", - 'type' => 'string', - 'example' => '8', - ], - 'DBInstanceMemory' => [ - 'description' => 'The memory size of the custom ApsaraDB RDS for MySQL instance at the storage layer. Unit: MB.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '8192', - ], - 'PayType' => [ - 'description' => 'The billing method of the custom ApsaraDB RDS for MySQL instance at the storage layer. Valid values:'."\n" - ."\n" - .'* Postpaid: pay-as-you-go'."\n" - .'* Prepaid: subscription'."\n", - 'type' => 'string', - 'example' => 'PostPaid', - ], - 'DBInstanceStatus' => [ - 'description' => 'The status of the custom ApsaraDB RDS for MySQL instance at the storage layer. Valid values:'."\n" - ."\n" - .'* 0: The instance is being created.'."\n" - .'* 1: The instance is running.'."\n" - .'* 3: The instance is being deleted.'."\n" - .'* 5: The instance is being restarted.'."\n" - .'* 6: The instance is being upgraded or downgraded.'."\n" - .'* 7: The instance is being backed up.'."\n" - .'* 8: The network type of the instance is being changed.'."\n" - .'* 9: The instance is being migrated.'."\n" - .'* 11: The data stored on the instance is being migrated.'."\n" - .'* 12: A disaster recovery instance is being generated.'."\n" - .'* 13: Data is being imported to the instance.'."\n" - .'* 14: Data is being imported from another RDS instance to the instance.'."\n" - .'* 15: A switchover is being performed.'."\n" - .'* 16: A temporary instance is being created.'."\n" - .'* 17: The network of the instance is being created.'."\n" - .'* 18: The instance is being cloned.'."\n" - .'* 19: The link is being changed.'."\n" - .'* 20: The read-only RDS instances of the instance are being migrated.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'NetworkType' => [ - 'description' => 'The network type of the custom ApsaraDB RDS for MySQL instance at the storage layer. The value is VPC.'."\n", - 'type' => 'string', - 'example' => 'VPC', - ], - 'Port' => [ - 'description' => 'The port used to connect to the instance over an internal network.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3306', - ], - 'EngineVersion' => [ - 'description' => 'The engine version of the custom ApsaraDB RDS for MySQL instance at the storage layer. The value is 8.0.'."\n", - 'type' => 'string', - 'example' => '8.0', - ], - 'DmInstanceId' => [ - 'description' => 'The ID of the resource.'."\n", - 'type' => 'string', - 'example' => 'dm-*************', - ], - 'DBInstanceStorage' => [ - 'description' => 'The storage space of the custom ApsaraDB RDS for MySQL instance at the storage layer. Unit: GB.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '20', - ], - 'ConnectUrl' => [ - 'description' => 'The internal endpoint of the custom ApsaraDB RDS for MySQL instance at the storage layer.'."\n", - 'type' => 'string', - 'example' => 'rm-***************.mysql.rds.aliyuncs.com', - ], - 'ReadWeight' => [ - 'description' => 'The read and write weights of the custom ApsaraDB RDS for MySQL instance at the storage layer.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'RdsInstType' => [ - 'description' => 'The type of the custom ApsaraDB RDS for MySQL instance at the storage layer. Valid values:'."\n" - ."\n" - .'* Primary: primary instance'."\n" - .'* Readonly: read-only instance'."\n", - 'type' => 'string', - 'example' => 'Primary', - ], - 'DBInstanceClassType' => [ - 'description' => 'The instance family of the custom ApsaraDB RDS for MySQL instance at the storage layer. Valid values:'."\n" - ."\n" - .'* **x**: general-purpose instance family'."\n" - .'* **d**: dedicated instance family'."\n" - .'* **h**: dedicated host instance family'."\n", - 'type' => 'string', - 'example' => 'x', - ], - 'DBInstanceId' => [ - 'description' => 'The ID of the custom ApsaraDB RDS for MySQL instance at the storage layer.'."\n", - 'type' => 'string', - 'example' => 'rm-*****************', - ], - 'Engine' => [ - 'description' => 'The engine type of the custom ApsaraDB RDS for MySQL instance at the storage layer. The value is MySQL.'."\n", - 'type' => 'string', - 'example' => 'MySQL', - ], - 'DbInstType' => [ - 'description' => 'The type of the instance at the storage layer. The value is RDS.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'LockMode' => [ - 'description' => 'The lock mode of the RDS instance. Valid values:'."\n" - ."\n" - .'0: The instance is not locked.'."\n" - ."\n" - .'1: The instance is manually locked.'."\n" - ."\n" - .'2: The instance is automatically locked if the instance expires.'."\n" - ."\n" - .'3: The instance is automatically locked if the instance is rolled back.'."\n" - ."\n" - .'4: The instance is automatically locked if the storage space of the instance reaches the upper limit.'."\n" - ."\n" - .'5: The instance is automatically locked if the storage space of the read-only instances reaches the upper limit.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'LockReason' => [ - 'description' => 'The reason why the RDS instance is locked.'."\n", - 'type' => 'string', - 'example' => 'Manually Locked'."\n", - ], - ], - ], - ], - ], - ], + 'Success' => ['description' => 'The result of the request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-*****', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ERR_INSTANCE_CANNOT_SWITCH_NETWORK_FOR_PUBLIC', 'errorMessage' => 'Public instance cannot switch network to VPC', 'description' => ''], + ], 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"123DB16B-02F2-45F7-A571-843991******\\",\\n \\"Success\\": true,\\n \\"DbInstances\\": {\\n \\"DbInstance\\": [\\n {\\n \\"DBInstanceCPU\\": \\"8\\",\\n \\"DBInstanceMemory\\": 8192,\\n \\"PayType\\": \\"PostPaid\\",\\n \\"DBInstanceStatus\\": \\"1\\",\\n \\"NetworkType\\": \\"VPC\\",\\n \\"Port\\": 3306,\\n \\"EngineVersion\\": \\"8.0\\",\\n \\"DmInstanceId\\": \\"dm-*************\\",\\n \\"DBInstanceStorage\\": 20,\\n \\"ConnectUrl\\": \\"rm-***************.mysql.rds.aliyuncs.com\\",\\n \\"ReadWeight\\": 0,\\n \\"RdsInstType\\": \\"Primary\\",\\n \\"DBInstanceClassType\\": \\"x\\",\\n \\"DBInstanceId\\": \\"rm-*****************\\",\\n \\"Engine\\": \\"MySQL\\",\\n \\"DbInstType\\": \\"RDS\\",\\n \\"LockMode\\": 1,\\n \\"LockReason\\": \\"手动触发锁\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>123DB16B-02F2-45F7-A571-843991******</RequestId>\\n<DbInstances>\\n <DbInstance>\\n <DbInstType>RDS</DbInstType>\\n <DBInstanceMemory>8192</DBInstanceMemory>\\n <EngineVersion>8</EngineVersion>\\n <DBInstanceStatus>6</DBInstanceStatus>\\n <Port>3306</Port>\\n <PayType>PostPaid</PayType>\\n <DBInstanceCPU>4</DBInstanceCPU>\\n <DBInstanceClassType>x</DBInstanceClassType>\\n <ConnectUrl>rm-************.mysql.rds.aliyuncs.com</ConnectUrl>\\n <ReadWeight>0</ReadWeight>\\n <DBInstanceId>rm-************</DBInstanceId>\\n <NetworkType>VPC</NetworkType>\\n <DBInstanceStorage>20</DBInstanceStorage>\\n <RdsInstType>Primary</RdsInstType>\\n <DmInstanceId>dm-************</DmInstanceId>\\n <Engine>MySQL</Engine>\\n </DbInstance>\\n</DbInstances>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeDrdsRdsInstances', - 'summary' => 'Queries the information about all custom ApsaraDB RDS for MySQL instances in a PolarDB-X instance.', + 'title' => 'Switch the network type of a DRDS instance', + 'summary' => 'Switches the network type of a DRDS instance by calling the UpdateInstanceNetwork operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeRecycleBinStatus' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateInstanceNetwork'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:UpdateInstanceNetwork', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","type":"json"}]', + ], + 'UpdatePrivateRdsClass' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'systemTags' => [], + 'operationType' => 'readAndWrite', + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '76150', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], + ], 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'RdsClass', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The specification code of the storage-layer custom ApsaraDB RDS instance after the update.'."\n" + ."\n" + .'> You can call the [DescribeAvailableClasses](~~196546~~) operation to query the available specifications of storage-layer custom ApsaraDB RDS instances, including specification codes and storage capacity ranges.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'rds.mysql.c1.xlarge', 'title' => ''], ], [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => '<props="china">The PolarDB-X instance ID.</props>'."\n" + .'<props="intl">The DRDS instance ID.</props>'."\n" + .'> You can call the [DescribeDrdsInstances](~~139284~~) operation to query the details of all instances under the target account, including instance IDs.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds*************', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'DBInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database that is created in the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The ID of the storage-layer custom ApsaraDB RDS instance.'."\n" + ."\n" + .'<props="china">> You can call the [DescribeDrdsRdsInstances](~~xxxx~~) operation to query the details of all storage-layer custom ApsaraDB RDS instances under the target PolarDB-X instance, including instance IDs.</props>'."\n" + ."\n" + .'<props="intl">> You can call the [DescribeDrdsRdsInstances](~~xxxx~~) operation to query the details of all storage-layer ApsaraDB RDS instances under the target DRDS instance, including instance IDs.</props>.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rm-***************', 'title' => ''], + ], + [ + 'name' => 'Storage', + 'in' => 'query', + 'schema' => ['description' => 'The storage capacity of the storage-layer custom ApsaraDB RDS instance after the update.'."\n" + ."\n" + .'> You can call the [DescribeAvailableClasses](~~196546~~) operation to query the available specifications of storage-layer custom ApsaraDB RDS instances, including specification codes and storage capacity ranges.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '50', 'title' => ''], + ], + [ + 'name' => 'AutoUseCoupon', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to use vouchers to offset the purchase cost. Valid values: **true** and **false** (default).'."\n" + ."\n" + .'> After vouchers are used, if you need to downgrade the specifications, the amount offset by vouchers will not be refunded.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'PrePayDuration', + 'in' => 'query', + 'schema' => ['description' => 'Invalid field.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '12', 'title' => ''], ], ], 'responses' => [ @@ -13544,98 +10730,81 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => 'The status of the table recycle bin. Valid values:'."\n" - ."\n" - .'* disable: The table recycle bin is enabled.'."\n" - .'* enable: The table recycle bin is disabled.'."\n", - 'type' => 'string', - 'example' => 'disable', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'ACB5258F-25AF-4D7C-8FAA-B6FE60******', - ], - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Data' => ['description' => 'The order ID.', 'type' => 'string', 'example' => '{ "orderId": "209136011******" }', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '57D86AB4-8703-4DF4-BAB6-F7DE44******', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'ModifyRdsClassApiError', 'errorMessage' => 'Failed to modify the class of the RDS instance.', 'description' => ''], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"disable\\",\\n \\"RequestId\\": \\"ACB5258F-25AF-4D7C-8FAA-B6FE60******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Status>enable</Status>\\n<RequestId>ACB5258F-25AF-4D7C-8FAA-B6FE60******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeRecycleBinStatus', - 'summary' => 'Queries the status of the table recycle bin.', + 'title' => 'Upgrade or downgrade a storage-layer custom RDS instance', + 'summary' => 'Upgrades or downgrades the specifications of a storage-layer custom ApsaraDB RDS instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeRecycleBinTables' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdatePrivateRdsClass'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:UpdatePrivateRdsClass', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"{ \\\\\\"orderId\\\\\\": \\\\\\"209136011******\\\\\\" }\\",\\n \\"RequestId\\": \\"57D86AB4-8703-4DF4-BAB6-F7DE44******\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'UpdateResourceGroupAttribute' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76046', - 'abilityTreeNodes' => [ - 'FEATUREdrdsZVW4NQ', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '53946', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The region ID of the target instance.'."\n" + .'> You can call the [DescribeDrdsInstances](~~139284~~) operation to query the details of instances under your account, including the region ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds***********', - ], + 'schema' => ['description' => 'The ID of the target instance.'."\n" + .'> You can call the [DescribeDrdsInstances](~~139284~~) operation to query the details of instances under your account, including the instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds***********', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'NewResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds_test', - ], + 'schema' => ['description' => 'The ID of the target resource group.'."\n" + .'> You can call the [ListResourceGroups](~~158855~~) operation to query the details of resource groups, including the resource group ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rg-***************', 'title' => ''], ], ], 'responses' => [ @@ -13643,103 +10812,73 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '5D64DE5944A1E541E0CB908A', - ], - 'Data' => [ - 'description' => 'The data object returned.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'OriginalTableName' => [ - 'description' => 'The original name of the table.'."\n", - 'type' => 'string', - 'example' => 'BIN_T4AG3CY5WWXPKHITCHJY', - ], - 'TableName' => [ - 'description' => 'The name of the table.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'description' => 'The time when the table was created.'."\n", - 'type' => 'string', - 'example' => '2019-09-16 14:42:06', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '91C7CAB5-3B2E-4FB6-893C-0162C0******', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + 404 => [ + ['errorCode' => 'DRDSDB.NotExist', 'errorMessage' => 'The database does not exist.', 'description' => 'The database does not exist.'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"5D64DE5944A1E541E0CB908A\\",\\n \\"Data\\": [\\n {\\n \\"OriginalTableName\\": \\"BIN_T4AG3CY5WWXPKHITCHJY\\",\\n \\"TableName\\": \\"test\\",\\n \\"CreateTime\\": \\"2019-09-16 14:42:06\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<RequestId>EC985705-2D6B-4B84-9732-BF8F5D******</RequestId>\\n<Data>\\n <OriginalTableName>BIN_T4AG3CY5WWXPKHITCHJY</OriginalTableName>\\n <TableName>test</TableName>\\n <CreateTime>2019-09-16 14:42:06</CreateTime>\\n</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'DescribeRecycleBinTables', - 'summary' => 'Queries the tables that can be restored in the recycle bin.', + 'title' => 'Transfer an instance to a new resource group', + 'summary' => 'Calls the UpdateResourceGroupAttribute operation to transfer an instance to a new resource group.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'EnableInstanceIpv6Address' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceGroupAttribute'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:UpdateResourceGroupAttribute', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"91C7CAB5-3B2E-4FB6-893C-0162C0******\\"\\n}","type":"json"}]', + ], + 'UpgradeHiStoreInstance' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', 'systemTags' => [ 'operationType' => 'none', - 'abilityTreeCode' => '76059', - 'abilityTreeNodes' => [ - 'FEATUREdrdsBRC5LQ', - ], + 'abilityTreeCode' => '76151', + 'abilityTreeNodes' => ['FEATUREdrds25BO3L'], ], 'parameters' => [ [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The DRDS instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdssad23sdfc', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region in which the instance resides.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'HistoreInstanceId', + 'in' => 'query', + 'schema' => ['description' => 'The DRDS column-oriented calculation instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'hi-sesex2e', 'title' => ''], ], ], 'responses' => [ @@ -13747,101 +10886,70 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '7E9F7F16-05B5-42DA-94D6-E36402******', - ], + 'Data' => ['description' => 'Indicates whether the version upgrade request is successful. The value true is returned if the request is successful. An error message is returned if the request fails.', 'type' => 'string', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DSSDF-SEWE-23ERW', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"7E9F7F16-05B5-42DA-94D6-E36402******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>7E9F7F16-05B5-42DA-94D6-E36402******</RequestId>\\n<Data>true</Data>","errorExample":""}]', - 'title' => 'EnableInstanceIpv6Address', - 'summary' => 'Creates an IPv6 address.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"true\\",\\n \\"RequestId\\": \\"DSSDF-SEWE-23ERW\\"\\n}","type":"json"}]', + 'title' => 'Upgrade a histore instance', + 'summary' => 'Upgrades the version of a DRDS column-oriented calculation instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'FlashbackRecycleBinTable' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpgradeHiStoreInstance'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:UpgradeHiStoreInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpgradeInstanceVersion' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', - 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76063', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', - ], - ], - [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance to which the table belongs.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drdshbgaen89****', 'title' => ''], ], [ - 'name' => 'DbName', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database to which the table belongs.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], ], [ - 'name' => 'TableName', + 'name' => 'Rpm', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the logical table to be restored.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The version number. You do not need to specify this parameter.', 'type' => 'string', 'required' => false, 'example' => 't-drds-server-5.4.12-16348095.noarch.rpm', 'title' => ''], ], ], 'responses' => [ @@ -13849,85 +10957,89 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Data' => [ - 'description' => 'Indicates whether the deleted logical table is restored.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '463A5F0F-12AD-4544-A902-B2B983******', - ], - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'Data' => ['description' => 'The request result.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2F7F8080-9132-4279-85D0-B7E5C4305162', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"463A5F0F-12AD-4544-A902-B2B983******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Result>true</Result>\\n<RequestId>463A5F0F-12AD-4544-A902-B2B983******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'FlashbackRecycleBinTable', - 'summary' => 'Restores a logical table that is deleted.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'GetDrdsDbRdsRelationInfo' => [ - 'methods' => [ - 'post', - 'get', + 'title' => 'Upgrade the version of a DRDS instance', + 'summary' => 'Upgrades the version of a DRDS instance.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpgradeInstanceVersion'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:UpgradeInstanceVersion', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"success\\",\\n \\"RequestId\\": \\"2F7F8080-9132-4279-85D0-B7E5C4305162\\"\\n}","type":"json"}]', + ], + 'ValidateShardTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', - 'abilityTreeCode' => '76066', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', - ], + 'abilityTreeCode' => '76153', + 'abilityTreeNodes' => ['FEATUREdrdsTIBR6Q'], ], 'parameters' => [ [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'default' => 'center', 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ 'name' => 'DrdsInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdshbga948vbpd2', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'drds23ds****', 'title' => ''], ], [ 'name' => 'DbName', 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the DRDS database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testDb', - ], + 'schema' => ['description' => 'The database name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'SourceTableName', + 'in' => 'query', + 'schema' => ['description' => 'The source table name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'buyer', 'title' => ''], + ], + [ + 'name' => 'TargetTableName', + 'in' => 'query', + 'schema' => ['description' => 'The target table name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'maxLength' => 100, 'minLength' => 1, 'example' => 'buyer_new', 'title' => ''], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => ['description' => 'The task type. Valid values:'."\n" + .'* **SINGLE\\_TO\\_SHARD**: converts a single table to a sharded table.'."\n" + .'* **SHARD\\_TO\\_SINGLE**: converts a sharded table to a single table.'."\n" + .'* **SHARD\\_TO\\_SHARD**: converts a sharded table to another sharded table.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'minLength' => 1, 'example' => 'SINGLE_TO_SHARD', 'title' => ''], ], ], 'responses' => [ @@ -13935,1607 +11047,1748 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the call was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '82FD0D9B-9A65-40D3-B1D9-8851B1D4AF75', - ], - 'Data' => [ - 'description' => 'The structure information about the storage instances of the DRDS database. Each entry corresponds to a primary storage instance.'."\n", + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0B6B7BDC-575D-4A77-A4F8-24B7EFAS45FG', 'title' => ''], + 'List' => [ + 'description' => 'The list of check results.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'RdsInstanceId' => [ - 'description' => 'The ID of the storage instance.'."\n", - 'type' => 'string', - 'example' => 'rm-bp16ad920ndxxxx02', - ], - 'UsedInstanceType' => [ - 'description' => 'The type of the storage instance that is in use.'."\n", - 'type' => 'string', - 'example' => 'RDS', - ], - 'UsedInstanceId' => [ - 'description' => 'The ID of the storage instance that is in use. If the specified instance in the request is a primary DRDS instance, the value of this parameter is the ID of the primary storage instance. If the specified instance in the request is a read-only DRDS instance, the value of this parameter is the ID of the secondary storage instance.'."\n", - 'type' => 'string', - 'example' => 'rm-bp1l8xi1dd9xxxxbj', - ], - 'ReadOnlyInstanceInfo' => [ - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => '[]', - ], - 'description' => 'The IDs of the read-only storage instances.'."\n", - ], + 'Result' => ['description' => 'The check result. Valid values:'."\n" + .'* **0**: passed.'."\n" + .'* **1**: failed.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Item' => ['description' => 'The check item.', 'type' => 'string', 'example' => 'same_schema', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"82FD0D9B-9A65-40D3-B1D9-8851B1D4AF75\\",\\n \\"Data\\": [\\n {\\n \\"RdsInstanceId\\": \\"rm-bp16ad920ndxxxx02\\",\\n \\"UsedInstanceType\\": \\"RDS\\",\\n \\"UsedInstanceId\\": \\"rm-bp1l8xi1dd9xxxxbj\\",\\n \\"ReadOnlyInstanceInfo\\": [\\n \\"[]\\"\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<RequestId>82FD0D9B-9A65-40D3-B1D9-8851B1D4AF75</RequestId>\\n<Data>\\n <UsedInstanceId>rm-bp1l8xi1dd9xxxxbj</UsedInstanceId>\\n <UsedInstanceType>RDS</UsedInstanceType>\\n <RdsInstanceId>rm-bp16ad920ndxxxx02</RdsInstanceId>\\n <ReadOnlyInstanceInfo>[]</ReadOnlyInstanceInfo>\\n</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'GetDrdsDbRdsRelationInfo', - 'summary' => 'Queries the structure of storage instances for a Distributed Relational Database Service (DRDS) database.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0B6B7BDC-575D-4A77-A4F8-24B7EFAS45FG\\",\\n \\"List\\": [\\n {\\n \\"Result\\": 0,\\n \\"Item\\": \\"same_schema\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => 'Check whether a sharding change task is valid', + 'summary' => 'Calls the ValidateShardTask operation to check whether a sharding change task is valid.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ManagePrivateRds' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ValidateShardTask'], ], ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [], - 'parameters' => [ + 'ramActions' => [ [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region in which the PolarDB-X 1.0 instance resides.'."\n" - ."\n" - .'> You can call the [DescribeDrdsInstances](~~139284~~) operation to query the details of all PolarDB-X 1.0 instances within an Alibaba Cloud account, including the IDs of regions in which the instances reside.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'cn-hanzhou', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:ValidateShardTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'PolarDBXInstance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], ], ], - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n" - ."\n" - .'> You can call the [DescribeDrdsInstances](~~139284~~) operation to query the details of all PolarDB-X 1.0 instances within an Alibaba Cloud account, including the IDs of the instances.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*************', + ], + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.cn-beijing.aliyuncs.com', 'endpoint' => 'drds.cn-beijing.aliyuncs.com', 'vpc' => 'drds-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.cn-qingdao.aliyuncs.com', 'endpoint' => 'drds.cn-qingdao.aliyuncs.com', 'vpc' => 'drds-vpc.cn-qingdao.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.cn-shanghai.aliyuncs.com', 'endpoint' => 'drds.cn-shanghai.aliyuncs.com', 'vpc' => 'drds-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.cn-hongkong.aliyuncs.com', 'endpoint' => 'drds.cn-hongkong.aliyuncs.com', 'vpc' => 'drds-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'drds.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'drds-vpc.cn-zhangjiakou.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.cn-shenzhen.aliyuncs.com', 'endpoint' => 'drds.cn-shenzhen.aliyuncs.com', 'vpc' => 'drds-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.ap-northeast-1.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.aliyuncs.com', 'endpoint' => 'drds.aliyuncs.com', 'vpc' => 'drds-vpc.cn-chengdu.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-2', 'regionName' => 'Australia (Sydney) Closed', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.ap-southeast-2.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.ap-southeast-3.aliyuncs.com'], + ['regionId' => 'cn-huhehaote', 'regionName' => 'China (Hohhot)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.cn-huhehaote.aliyuncs.com', 'endpoint' => 'drds.cn-huhehaote.aliyuncs.com', 'vpc' => 'drds-vpc.cn-huhehaote.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.ap-southeast-5.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'drds.cn-hangzhou.aliyuncs.com', 'endpoint' => 'drds.cn-hangzhou.aliyuncs.com', 'vpc' => 'drds-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'drds.us-east-1.aliyuncs.com', 'endpoint' => 'drds.us-east-1.aliyuncs.com', 'vpc' => 'drds-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'eu-west-1', 'regionName' => 'UK (London)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.eu-west-1.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.us-west-1.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.eu-central-1.aliyuncs.com'], + ['regionId' => 'me-east-1', 'regionName' => 'UAE (Dubai)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.me-east-1.aliyuncs.com'], + ['regionId' => 'ap-south-1', 'regionName' => 'India (Mumbai) Closed', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'drds.ap-southeast-1.aliyuncs.com', 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', 'vpc' => 'drds-vpc.ap-south-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-finance', 'regionName' => 'China East 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'drds.aliyuncs.com', 'endpoint' => 'drds.aliyuncs.com', 'vpc' => 'drds-vpc.cn-hangzhou-finance.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => 'China South 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'drds.cn-shenzhen-finance-1.aliyuncs.com', 'endpoint' => 'drds.cn-shenzhen-finance-1.aliyuncs.com', 'vpc' => 'drds-vpc.cn-shenzhen-finance-1.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'drds.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'drds.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'drds-vpc.cn-shanghai-finance-1.aliyuncs.com'], + ['regionId' => 'cn-north-2-gov-1', 'regionName' => 'Beijing Government Cloud', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'drds.cn-north-2-gov-1.aliyuncs.com', 'endpoint' => 'drds.cn-north-2-gov-1.aliyuncs.com', 'vpc' => 'drds-vpc.cn-north-2-gov-1.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-1', 'regionName' => 'China North 2 Finance (Preview)', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'drds.aliyuncs.com', 'endpoint' => 'drds.aliyuncs.com', 'vpc' => ''], + ], + 'errorCodes' => [ + ['code' => 'DRDSDB.Creating', 'message' => 'The database is being created.', 'http_code' => 404, 'description' => 'The database is being created.'], + ['code' => 'DRDSDB.NotExist', 'message' => 'The database does not exist.', 'http_code' => 404, 'description' => 'The database does not exist.'], + ['code' => 'DrdsInstance.NotExists', 'message' => 'The DRDS instance does not exist.', 'http_code' => 404, 'description' => 'The DRDS instance does not exist.'], + ['code' => 'IllegalTimestamp', 'message' => 'The input parameter “Timestamp” that is mandatory for processing this request is not supplied.', 'http_code' => null, 'description' => ''], + ['code' => 'InternalError', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 400, 'description' => ''], + ['code' => 'InvalidAccessKeyId.NotFound', 'message' => 'The Access Key ID provided does not exist in our records.', 'http_code' => null, 'description' => 'The specified access key ID does not exist in our records.'], + ['code' => 'InvalidAccountName.Duplicate', 'message' => 'The account already exists.', 'http_code' => 400, 'description' => 'The account already exists.'], + ['code' => 'InvalidParameter', 'message' => 'invalid parameter.', 'http_code' => 400, 'description' => 'Parameter exception'], + ['code' => 'InvalidParameter.time', 'message' => 'the start time and end time must be in one weak.', 'http_code' => 400, 'description' => 'Start time and end time must be within a week'], + ['code' => 'ModifyRdsClassApiError', 'message' => 'Failed to modify the class of the RDS instance.', 'http_code' => 400, 'description' => 'Failed to modify the class of the RDS instance.'], + ['code' => 'Monitor.QueryRdsFailure', 'message' => 'Failed to query RDS monitor info', 'http_code' => 404, 'description' => 'Failed to query RDS monitor information.'], + ['code' => 'RDSAPI.ERROR', 'message' => 'Failed to call the RDS API operation.', 'http_code' => 400, 'description' => 'Failed to call the RDS API operation.'], + ['code' => 'UpdatePrivateRdsClassError', 'message' => 'Failed to modify the class of the RDS instance. Caused by %s.', 'http_code' => 400, 'description' => 'Failed to modify the class of the RDS instance.'], + ], + 'changeSet' => [ + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsInstances'], + ], + 'createdAt' => '2025-11-24T17:16:38.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsSlowSqls'], + ], + 'createdAt' => '2025-03-07T06:20:06.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'DescribeDrdsInstance'], + ], + 'createdAt' => '2025-02-26T03:01:50.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsInstances'], + ], + 'createdAt' => '2024-12-25T02:27:17.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsInstances'], + ], + 'createdAt' => '2024-12-24T13:37:25.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'DescribeDrdsRdsInstances'], + ], + 'createdAt' => '2024-07-16T13:05:00.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed, Response parameters changed', 'api' => 'DescribeDbInstances'], + ], + 'createdAt' => '2024-04-24T14:29:16.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsInstances'], + ], + 'createdAt' => '2024-04-10T08:05:43.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'DescribeDrdsInstances'], + ], + 'createdAt' => '2024-04-10T07:51:22.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ModifyDrdsIpWhiteList'], + ], + 'createdAt' => '2024-04-08T10:37:11.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'ModifyDrdsIpWhiteList'], + ], + 'createdAt' => '2024-03-27T10:46:03.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsInstances'], + ], + 'createdAt' => '2024-03-21T01:44:53.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsDBs'], + ], + 'createdAt' => '2023-04-07T07:54:17.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'ChangeInstanceAzone'], + ], + 'createdAt' => '2023-03-24T08:25:30.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsDBs'], + ], + 'createdAt' => '2022-12-07T03:49:52.000Z', + 'description' => '修改RegionId为必填', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsDBIpWhiteList'], + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsDBIpWhiteList'], + ], + 'createdAt' => '2022-09-16T07:17:30.000Z', + 'description' => 'DescribeDrdsDBIpWhiteList 增加RegionId必填用户参数', + ], + [ + 'apis' => [ + ['description' => 'Response parameters changed', 'api' => 'DescribeDrdsInstances'], + ], + 'createdAt' => '2022-08-17T08:11:52.000Z', + 'description' => '增加vip.dns ', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'DescribeDrdsInstances'], + ], + 'createdAt' => '2021-12-14T04:01:17.000Z', + 'description' => 'DescribeDrdsInstances 获取实例列表超时时间增加,解决部分用户获取列表超时报错的问题。', + ], + [ + 'apis' => [ + ['description' => 'Request parameters changed', 'api' => 'CreateDrdsInstance'], + ], + 'createdAt' => '2021-12-07T15:38:09.000Z', + 'description' => '修复部分bug', + ], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDbInstanceDbs'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitSmoothExpandPreCheck'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyAccountDescription'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDrdsInstanceDescription'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackMenu'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetBackupLocal'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstanceMonitor'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetBackupPolicy'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitHotExpandTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupDbs'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RollbackInstanceVersion'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateShardTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRdsSuperAccountInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsRdsInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRdsCommodity'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveRecycleBinTable'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SwitchGlobalBroadcastType'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstanceDbMonitor'], + ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeShardTaskInfo'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDBs'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstanceLevelTasks'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstDbSlsInfo'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableSqlAudit'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupTimes'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveDrdsInstance'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeInstanceAzone'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyAccountPrivilege'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupLocal'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyRdsReadWeight'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckDrdsDbName'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RefreshDrdsAtomUrl'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDBCluster'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckSqlAuditEnableStatus'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeAccountPassword'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsTasks'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ReleaseInstanceInternetAddress'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetupDrdsParams'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateInstanceNetwork'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupSets'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FlashbackRecycleBinTable'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeExpandLogicTableInfoList'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRdsPerformanceSummary'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstanceSwitchAzone'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpgradeInstanceVersion'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDB'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTable'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableInstanceIpv6Address'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpgradeHiStoreInstance'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDrdsIpWhiteList'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDrdsDB'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveDrdsDb'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetupTable'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyPolarDbReadWeight'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDrdsInstance'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutStartBackup'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribePreCheckResult'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDBIpWhiteList'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsParams'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsShardingDbs'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveDrdsDbFailedRecord'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableSqlFlashbackMatchSwitch'], + ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRDSPerformance'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveBackupsSet'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTables'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateOrderForRds'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsSqlAuditStatus'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHotDbList'], + ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstance'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRestoreOrder'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDbInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManagePrivateRds'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitCleanTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitSqlFlashbackTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDbInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveInstanceAccount'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableSqlAudit'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RestartDrdsInstance'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstanceVersion'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTableListByType'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitSmoothExpandPreCheckTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRecycleBinStatus'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitHotExpandPreCheckTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetupBroadcastTables'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartRestore'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDrdsDbRdsRelationInfo'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBroadcastTables'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ValidateShardTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateInstanceInternetAddress'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsInstances'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSqlFlashbakTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetupRecycleBinStatus'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckExpandStatus'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstDbLogInfo'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDbRdsNameList'], + ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRecycleBinTables'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstanceSwitchNetwork'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsDbInstance'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceGroupAttribute'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdatePrivateRdsClass'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupPolicy'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateInstanceAccount'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDrdsSlowSqls'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstanceAccounts'], + ], + ], + 'ram' => [ + 'productCode' => 'DRDS', + 'productName' => 'PolarDB-X', + 'ramCodes' => ['drds', 'polardbx'], + 'ramLevel' => 'RESOURCE', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'DescribeDrdsDbRdsNameList', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDbRdsNameList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], - [ - 'name' => 'DBInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the custom ApsaraDB RDS instance at the storage layer.'."\n" - ."\n" - .'> You can call the [DescribeDrdsRdsInstances](~~215526~~) operation to query the details of all ApsaraDB RDS instances, including the ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'rm-***************', + ], + [ + 'apiName' => 'SubmitCleanTask', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SubmitCleanTask', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], - [ - 'name' => 'RdsAction', - 'in' => 'query', - 'schema' => [ - 'description' => 'The operation that you want to perform on the custom ApsaraDB RDS instance. Valid values:'."\n" - ."\n" - .'* **DescribeDBInstanceAttribute**: queries the details of the custom ApsaraDB RDS instance.'."\n" - .'* **DescribeAvailableClasses**: queries the specifications that are supported for a custom ApsaraDB RDS instance. The specifications include the instance type and the storage capacity.'."\n" - .'* **DescribeSQLCollectorPolicy**: queries whether the SQL Explorer (SQL Audit) feature is enabled for custom ApsaraDB RDS instance.'."\n" - .'* **ModifySQLCollectorPolicy**: enables or disables the SQL Explorer (SQL Audit) feature for the custom ApsaraDB RDS instance.'."\n" - .'* **DescribeParameters**: queries the parameter settings of the custom ApsaraDB RDS instance.'."\n" - .'* **ModifyParameter**: modifies the parameters of the custom ApsaraDB RDS instance.'."\n" - .'* **DescribeDBInstanceHAConfig**: queries the high availability mode and data replication mode of the custom ApsaraDB RDS instance.'."\n" - .'* **SwitchDBInstanceHA**: switches workloads between the primary and secondary custom ApsaraDB RDS instances.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'SwitchDBInstanceHA', + ], + [ + 'apiName' => 'RemoveDrdsDbFailedRecord', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RemoveDrdsDbFailedRecord', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'Params', - 'in' => 'query', - 'schema' => [ - 'description' => 'The JSON string that consists of request parameters and the values of the request parameters of an operation that you need to call for the custom ApsaraDB RDS instance. The value of a request parameter is of the STRING type. Example: `{NodeId:"1797****"}`.'."\n" - ."\n" - .'For more information about the request parameters and valid values of the request parameters of each operation, see the request parameter sections in the following topics:'."\n" - ."\n" - .'* [DescribeDBInstanceAttribute](~~26231~~)'."\n" - .'* [DescribeAvailableClasses](~~196546~~)'."\n" - .'* [DescribeSQLCollectorPolicy](~~26292~~)'."\n" - .'* [ModifySQLCollectorPolicy](~~26293~~)'."\n" - .'* [DescribeParameters](~~26285~~)'."\n" - .'* [ModifyParameter](~~26286~~)'."\n" - .'* [DescribeDBInstanceHAConfig](~~26244~~)'."\n" - .'* [SwitchDBInstanceHA](~~26251~~)'."\n" - ."\n" - .'> Among the required request parameters of the preceding operations, you do not need to specify the `Action` and `DBInstanceId` parameters. You must specify all the other required request parameters.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '{NodeId:"1797****"}', - 'default' => '{}', + ], + [ + 'apiName' => 'EnableSqlAudit', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:EnableSqlAudit', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Data' => [ - 'description' => 'The parameter result set returned for the operation that is called for the custom ApsaraDB RDS instance.'."\n", - 'type' => 'string', - 'example' => '{"requestId":"E63C810A-4A13-47B6-BA67-C0E23A******"}', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0237BCD2-2C7A-4F86-A766-657AF6******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - ], + [ + 'apiName' => 'ModifyDrdsInstanceDescription', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:ModifyDrdsInstanceDescription', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'RDSAPI.ERROR', - 'errorMessage' => 'Failed to call the RDS API operation.', + [ + 'apiName' => 'GetDrdsDbRdsRelationInfo', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:GetDrdsDbRdsRelationInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": \\"{\\\\\\"requestId\\\\\\":\\\\\\"E63C810A-4A13-47B6-BA67-C0E23A******\\\\\\"}\\",\\n \\"RequestId\\": \\"0237BCD2-2C7A-4F86-A766-657AF6******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>0237BCD2-2C7A-4F86-A766-657AF6******</RequestId>\\n<Data>{\\"requestId\\":\\"E63C810A-4A13-47B6-BA67-C0E23A******\\"}</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'ManagePrivateRds', - 'summary' => 'Manages a custom ApsaraDB RDS instance at the storage layer.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ModifyAccountDescription' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'CreateDrdsDB', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateDrdsDB', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], ], ], - 'operationType' => 'write', - 'systemTags' => [], - 'parameters' => [ - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the ApsaraDB RDS for PostgreSQL instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', + [ + 'apiName' => 'DescribeDrdsRdsInstances', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsRdsInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'AccountName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the member account.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', + ], + [ + 'apiName' => 'RemoveInstanceAccount', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:RemoveInstanceAccount', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - [ - 'name' => 'Description', - 'in' => 'query', - 'schema' => [ - 'description' => 'The description of the account.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', + ], + [ + 'apiName' => 'ModifyDrdsIpWhiteList', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:ModifyDrdsIpWhiteList', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request was sent successfully or not.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '2F93CCD5-806F-4470-BBC7-20476A******', - ], - ], + [ + 'apiName' => 'CreateInstanceInternetAddress', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateInstanceInternetAddress', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'OperationFailed.ModifyAccountDescription', - 'errorMessage' => 'Modify account description failed.', + [ + 'apiName' => 'ChangeInstanceAzone', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:ChangeInstanceAzone', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ], + [ + 'apiName' => 'ModifyRdsReadWeight', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:ModifyRdsReadWeight', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"2F93CCD5-806F-4470-BBC7-20476A******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>2F93CCD5-806F-4470-BBC7-20476A******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'ModifyAccountDescription', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ModifyAccountPrivilege' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'DescribeInstDbSlsInfo', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstDbSlsInfo', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], ], ], - 'operationType' => 'write', - 'systemTags' => [], - 'parameters' => [ - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdshbgaen89****', + [ + 'apiName' => 'CreateInstanceAccount', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateInstanceAccount', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - [ - 'name' => 'AccountName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The username of the account that you want to modify.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'account_sec', + ], + [ + 'apiName' => 'CheckSqlAuditEnableStatus', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:CheckSqlAuditEnableStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region in which the PolarDB-X 1.0 instance is located.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', + ], + [ + 'apiName' => 'CreateShardTask', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateShardTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'DbPrivilege', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'DbName' => [ - 'description' => 'The name of the database that you want to manage by using the account to modify.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test123', - ], - 'Privilege' => [ - 'description' => 'The permissions that you want to grant to the account.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ReadWrite', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 1000, + ], + [ + 'apiName' => 'DescribePreCheckResult', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribePreCheckResult', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the request is successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '73559800-3c8c-11ec-bd40-99cfcff3fe1e', - ], - ], + [ + 'apiName' => 'DescribeBroadcastTables', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBroadcastTables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'OperationFailed.ModifyAccountPrivilege', - 'errorMessage' => 'Modify account privilege failed.', + [ + 'apiName' => 'DescribeTables', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeTables', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ], + [ + 'apiName' => 'RestartDrdsInstance', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RestartDrdsInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"73559800-3c8c-11ec-bd40-99cfcff3fe1e\\"\\n}","errorExample":""},{"type":"xml","example":"<ModifyAccountPrivilegeResponse>\\n <Success>true</Success>\\n <RequestId>73559800-3c8c-11ec-bd40-99cfcff3fe1e</RequestId>\\n</ModifyAccountPrivilegeResponse>","errorExample":""}]', - 'title' => 'ModifyAccountPrivilege', - 'summary' => 'Modifies the permissions that are granted to an account.', - ], - 'ModifyPolarDbReadWeight' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'FlashbackRecycleBinTable', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:FlashbackRecycleBinTable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'operationType' => 'write', - 'systemTags' => [ + [ + 'apiName' => 'PutStartBackup', + 'description' => '', 'operationType' => 'none', - ], - 'parameters' => [ - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of a DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', + 'ramAction' => [ + 'action' => 'drds:PutStartBackup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'DbName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', + ], + [ + 'apiName' => 'DescribeDbInstanceDbs', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDbInstanceDbs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'DbNodeIds', - 'in' => 'query', - 'schema' => [ - 'description' => 'The node list in the destination apsaradb for PolarDB cluster. The nodes in each cluster are separated with commas (,) and colons (:).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pi-****************,pi-****************:pi-****************', + ], + [ + 'apiName' => 'DescribeDrdsInstanceDbMonitor', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstanceDbMonitor', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], - [ - 'name' => 'DbInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'Polar cluster ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pc-****************', + ], + [ + 'apiName' => 'SubmitSmoothExpandPreCheck', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SubmitSmoothExpandPreCheck', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], - [ - 'name' => 'Weights', - 'in' => 'query', - 'schema' => [ - 'description' => 'The weight of the PolarDB cluster. Separate multiple weights with commas (,).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '14,86', + ], + [ + 'apiName' => 'DescribeRestoreOrder', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRestoreOrder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Success' => [ - 'description' => 'Indicates whether the database creation failure records were removed from the PolarDB-X instance.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'B12FC174-D5CE-4A6E-83C1-0F8F86******', - ], - ], + [ + 'apiName' => 'SetBackupPolicy', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:SetBackupPolicy', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'InvalidParameter.InvalidDbName', - 'errorMessage' => 'The dbName does not exist in this drds instance', - ], - [ - 'errorCode' => 'InvalidParameter.ReadWeighAndRdsNotMapping', - 'errorMessage' => 'The parameter read weight and rds instance not mapping', + [ + 'apiName' => 'DescribeDrdsDbInstance', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDbInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], - [ - 'errorCode' => 'InvalidParameter.InvalidReadWeight', - 'errorMessage' => 'The parameter read weight is invalid', + ], + ], + [ + 'apiName' => 'DescribeDrdsInstanceLevelTasks', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstanceLevelTasks', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ], + [ + 'apiName' => 'DescribeShardTaskInfo', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeShardTaskInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"B12FC174-D5CE-4A6E-83C1-0F8F86******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>B12FC174-D5CE-4A6E-83C1-0F8F86******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'ModifyPolarDbReadWeight', - 'summary' => 'You can call this operation ModifyPolarDbReadWeight to modify read/write weights of a specified PolarDB cluster.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'RefreshDrdsAtomUrl' => [ - 'methods' => [ - 'post', - 'get', + [ + 'apiName' => 'DescribeDrdsDBIpWhiteList', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDBIpWhiteList', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'CreateOrderForRds', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateOrderForRds', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'DescribeDbInstances', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDbInstances', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId1}/*'], + ], ], ], - 'operationType' => 'write', - 'systemTags' => [ + [ + 'apiName' => 'ModifyPolarDbReadWeight', + 'description' => '', 'operationType' => 'none', - ], - 'parameters' => [ - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', + 'ramAction' => [ + 'action' => 'drds:ModifyPolarDbReadWeight', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'DbName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the DRDS database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', + ], + [ + 'apiName' => 'SetupBroadcastTables', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:SetupBroadcastTables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'PolarDBXInstance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'B12FC174-D5CE-4A6E-83C1-0F8F86******', - ], - 'Result' => [ - 'description' => 'Indicates whether the connection after refresh was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - ], + [ + 'apiName' => 'DescribeSqlFlashbakTask', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeSqlFlashbakTask', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + [ + 'apiName' => 'DescribeDrdsInstance', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B12FC174-D5CE-4A6E-83C1-0F8F86******\\",\\n \\"Result\\": true,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>B12FC174-D5CE-4A6E-83C1-0F8F86******</RequestId>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'RefreshDrdsAtomUrl', - 'summary' => 'After the connection to the RDS instance is changed, you can call the RefreshDrdsAtomUrl to refresh the connections between DRDS and apsaradb for RDS instances.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'RemoveRecycleBinTable' => [ - 'methods' => [ - 'post', - 'get', + [ + 'apiName' => 'DescribeBackupPolicy', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupPolicy', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'UntagResources', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'drds:UntagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'DescribeInstanceSwitchAzone', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstanceSwitchAzone', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'operationType' => 'write', - 'systemTags' => [ + [ + 'apiName' => 'RefreshDrdsAtomUrl', + 'description' => '', 'operationType' => 'none', - 'abilityTreeCode' => '76111', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', + 'ramAction' => [ + 'action' => 'drds:RefreshDrdsAtomUrl', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', + [ + 'apiName' => 'DescribeDrdsDB', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDB', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', + ], + [ + 'apiName' => 'SubmitSmoothExpandPreCheckTask', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:SubmitSmoothExpandPreCheckTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'DbName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', + ], + [ + 'apiName' => 'RemoveBackupsSet', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RemoveBackupsSet', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'TableName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the logical table.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'test', + ], + [ + 'apiName' => 'UpdateResourceGroupAttribute', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:UpdateResourceGroupAttribute', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Data' => [ - 'description' => 'Indicates whether the table in the recycle bin is deleted.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', - ], - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - ], + [ + 'apiName' => 'CheckExpandStatus', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:CheckExpandStatus', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + [ + 'apiName' => 'UpdatePrivateRdsClass', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:UpdatePrivateRdsClass', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>A3140FC7-B78B-4D8E-B0C8-926D28******</RequestId>\\n<Success>true</Success>\\n<Data>true</Data>","errorExample":""}]', - 'title' => 'RemoveRecycleBinTable', - 'summary' => 'Deletes a table in the recycle bin.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'RestartDrdsInstance' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'DescribeBackupTimes', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupTimes', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], - 'operationType' => 'write', - 'systemTags' => [ + [ + 'apiName' => 'RemoveRecycleBinTable', + 'description' => '', 'operationType' => 'none', - 'abilityTreeCode' => '76113', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', + 'ramAction' => [ + 'action' => 'drds:RemoveRecycleBinTable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of a DRDS instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds************', + [ + 'apiName' => 'StartRestore', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:StartRestore', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', - ], - 'Success' => [ - 'description' => 'Indicates whether the database creation failure records were removed from the PolarDB-X instance.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TaskId' => [ - 'description' => 'The ID of the task.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - ], + [ + 'apiName' => 'DescribeDrdsShardingDbs', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsShardingDbs', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + [ + 'apiName' => 'DescribeDrdsDBs', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDBs', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true,\\n \\"TaskId\\": 1\\n}","errorExample":""},{"type":"xml","example":"<RequestId>A3140FC7-B78B-4D8E-B0C8-926D28******</RequestId>\\n<Success>true</Success>\\n<TaskId>1</TaskId>","errorExample":""}]', - 'title' => 'RestartDrdsInstance', - 'summary' => 'Call the RestartDrdsInstance operation to restart the instance.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'RollbackInstanceVersion' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'DescribeTable', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeTable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'operationType' => 'write', - 'systemTags' => [ + [ + 'apiName' => 'SubmitHotExpandTask', + 'description' => '', 'operationType' => 'none', - 'abilityTreeCode' => '76115', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', + 'ramAction' => [ + 'action' => 'drds:SubmitHotExpandTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', + [ + 'apiName' => 'SubmitSqlFlashbackTask', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SubmitSqlFlashbackTask', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The region ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', + ], + [ + 'apiName' => 'DescribeRecycleBinTables', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:DescribeRecycleBinTables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Data' => [ - 'description' => 'Indicates whether the instance version was rolled back.'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-*****', - ], - ], + [ + 'apiName' => 'ModifyAccountPrivilege', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:ModifyAccountPrivilege', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', + [ + 'apiName' => 'CheckDrdsDbName', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:CheckDrdsDbName', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": \\"true\\",\\n \\"RequestId\\": \\"DSSDF-SEWE-*****\\"\\n}","errorExample":""},{"type":"xml","example":"<RollbackInstanceVersionResponse>\\n<RequestId>DSSDF-SEWE-*****</RequestId>\\n<Data>true</Data>\\n</RollbackInstanceVersionResponse>","errorExample":""}]', - 'title' => 'RollbackInstanceVersion', - 'summary' => 'Rolls back the version of a specified instance.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'SetBackupLocal' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'DescribeBackMenu', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackMenu', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], - 'systemTags' => [], - 'parameters' => [ - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drdshbgag23d13fds', + [ + 'apiName' => 'DescribeDrdsTasks', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsTasks', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - [ - 'name' => 'LocalLogRetentionHours', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of hours for which log backup files are retained on the instance. Valid values: 0 to 168. Default value: 18. A value of 0 indicates that log backup files are not retained.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '12', + ], + [ + 'apiName' => 'DescribeExpandLogicTableInfoList', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeExpandLogicTableInfoList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'LocalLogRetentionSpace', - 'in' => 'query', - 'schema' => [ - 'description' => 'The maximum storage space usage that is allowed for log files on the instance. Valid values: 0 to 50. Default value: 30.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '30', + ], + [ + 'apiName' => 'RemoveDrdsInstance', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:RemoveDrdsInstance', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - [ - 'name' => 'HighSpaceUsageProtection', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to enable the feature to forcibly delete binary log files if the used storage space reaches 90% of the total storage space or the remaining storage space is less than 5 GB. Valid values: 1 and 0. A value of 1 specifies to enable this feature. A value of 0 specifies not to enable this feature.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '80', + ], + [ + 'apiName' => 'DescribeDrdsInstanceVersion', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstanceVersion', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '6F70CE62-5077-4B7B-95BC-4DAC45614DBE', - ], - 'Result' => [ - 'description' => 'The result returned.'."\n", - 'type' => 'string', - 'example' => 'success', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - ], + [ + 'apiName' => 'DescribeRDSPerformance', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRDSPerformance', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + [ + 'apiName' => 'DescribeBackupSets', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupSets', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6F70CE62-5077-4B7B-95BC-4DAC45614DBE\\",\\n \\"Result\\": \\"success\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<SetBackupLocalResponse>\\n\\t <RequestId>A3140FC7-B78B-4D8E-B0C8-926D28669934</RequestId>\\n\\t <Success>true</Success>\\n\\t <Result>success</Result>\\n</SetBackupLocalResponse>","errorExample":""}]', - 'title' => 'SetBackupLocal', - 'summary' => 'Modifies a backup policy.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'SetupRecycleBinStatus' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'DescribeDrdsSqlAuditStatus', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsSqlAuditStatus', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], - 'operationType' => 'write', - 'systemTags' => [], - 'parameters' => [ - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', + [ + 'apiName' => 'DescribeInstanceAccounts', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstanceAccounts', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds************', + ], + [ + 'apiName' => 'DescribeDrdsSlowSqls', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsSlowSqls', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'DbName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the database.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', + ], + [ + 'apiName' => 'UpdateInstanceNetwork', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:UpdateInstanceNetwork', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'StatusAction', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies the status of the table recycle bin. Valid values:'."\n" - ."\n" - .'* enable: The table recycle bin is enabled.'."\n" - .'* disable: The table recycle bin is disabled.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'enable', + ], + [ + 'apiName' => 'DescribeBackupDbs', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupDbs', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Data' => [ - 'description' => 'Indicates whether the table recycle bin is enabled.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A3140FC7-B78B-4D8E-B0C8-926D28******', - ], - 'Success' => [ - 'description' => 'The result of the request.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - ], + [ + 'apiName' => 'EnableSqlFlashbackMatchSwitch', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:EnableSqlFlashbackMatchSwitch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + [ + 'apiName' => 'ValidateShardTask', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:ValidateShardTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'PolarDBXInstance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"A3140FC7-B78B-4D8E-B0C8-926D28******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>A3140FC7-B78B-4D8E-B0C8-926D28******</RequestId>\\n<Data>true</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'SetupRecycleBinStatus', - 'summary' => 'Enables the table recycle bin for a database.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'SubmitSmoothExpandPreCheckTask' => [ - 'methods' => [ - 'post', - 'get', + [ + 'apiName' => 'DescribeDrdsInstanceMonitor', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstanceMonitor', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'CreateDrdsInstance', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'drds:CreateDrdsInstance', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ReleaseInstanceInternetAddress', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:ReleaseInstanceInternetAddress', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], - 'systemTags' => [ + [ + 'apiName' => 'SwitchGlobalBroadcastType', + 'description' => '', 'operationType' => 'none', - 'abilityTreeCode' => '76140', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', + 'ramAction' => [ + 'action' => 'drds:SwitchGlobalBroadcastType', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'drds823s4esd', + [ + 'apiName' => 'ManagePrivateRds', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:ManagePrivateRds', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - [ - 'name' => 'DbName', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the PolarDB-X 1.0 database.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'test', + ], + [ + 'apiName' => 'EnableInstanceIpv6Address', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:EnableInstanceIpv6Address', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Msg' => [ - 'description' => 'Indicates whether the precheck task was submitted.'."\n", - 'type' => 'string', - 'example' => 'scucess', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-23ERW', - ], - 'TaskId' => [ - 'description' => 'The ID of the task.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2321', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - ], + [ + 'apiName' => 'SetupDrdsParams', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:SetupDrdsParams', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + [ + 'apiName' => 'TagResources', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:TagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Msg\\": \\"scucess\\",\\n \\"RequestId\\": \\"DSSDF-SEWE-23ERW\\",\\n \\"TaskId\\": 2321,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<SubmitSmoothExpandPreCheckTaskResponse>\\n <Msg>success</Msg>\\n <RequestId>FE104D26-AC19-49B5-AC67-947F6915E07E</RequestId>\\n <Success>true</Success>\\n <TaskId>97358</TaskId>\\n</SubmitSmoothExpandPreCheckTaskResponse>","errorExample":""}]', - 'title' => 'SubmitSmoothExpandPreCheckTask', - 'summary' => 'Submits a precheck task for the smooth scale-out of a PolarDB-X 1.0 database.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'UpdatePrivateRdsClass' => [ - 'methods' => [ - 'post', - 'get', + [ + 'apiName' => 'ListTagResources', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:ListTagResources', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'SetupRecycleBinStatus', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SetupRecycleBinStatus', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ChangeAccountPassword', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:ChangeAccountPassword', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'operationType' => 'readAndWrite', - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '76150', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', + [ + 'apiName' => 'DescribeTableListByType', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeTableListByType', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'RdsClass', - 'in' => 'query', - 'schema' => [ - 'description' => 'The new instance type of the custom ApsaraDB RDS instance at the storage layer.'."\n" - ."\n" - .'> You can call the [DescribeAvailableClasses](~~196546~~) operation to view the specifications that are supported for a custom ApsaraDB RDS instance. The specifications include the instance type and the storage capacity.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'rds.mysql.c1.xlarge', + [ + 'apiName' => 'SubmitHotExpandPreCheckTask', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:SubmitHotExpandPreCheckTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n" - ."\n" - .'> You can call the [DescribeDrdsInstances](~~139284~~) operation to query the details of all PolarDB-X 1.0 instances within an Alibaba Cloud account, including the IDs of the instances.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drds*************', + ], + [ + 'apiName' => 'DescribeDrdsDBCluster', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDBCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'DBInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the custom ApsaraDB RDS instance at the storage layer.'."\n" - ."\n" - .'> You can call the [DescribeDrdsRdsInstances](~~xxxx~~) operation to query the details of all ApsaraDB RDS instances at the storage layer of a PolarDB-X 1.0 instance, including the IDs of the ApsaraDB RDS instances.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'rm-***************', + ], + [ + 'apiName' => 'DescribeRdsSuperAccountInstances', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRdsSuperAccountInstances', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - [ - 'name' => 'Storage', - 'in' => 'query', - 'schema' => [ - 'description' => 'The new storage capacity of the custom ApsaraDB RDS instance at the storage layer.'."\n" - ."\n" - .'> You can call the [DescribeAvailableClasses](~~196546~~) operation to view the specifications that are supported for a custom ApsaraDB RDS instance. The specifications include the instance type and the storage capacity.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => '50', + ], + [ + 'apiName' => 'RemoveDrdsDb', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:RemoveDrdsDb', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], - [ - 'name' => 'AutoUseCoupon', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to use vouchers to offset the purchase fees. Valid values: **true** and **false**. Default value: false.'."\n" - ."\n" - .'> If you downgrade the specifications of an instance after you use the vouchers, the vouchers used for the purchase cannot be refunded.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', + ], + [ + 'apiName' => 'DescribeDrdsParams', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsParams', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - [ - 'name' => 'PrePayDuration', - 'in' => 'query', - 'schema' => [ - 'description' => 'This parameter is discontinued.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '12', + ], + [ + 'apiName' => 'DescribeInstDbLogInfo', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstDbLogInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Data' => [ - 'description' => 'The ID of the order.'."\n", - 'type' => 'string', - 'example' => '{ "orderId": "209136011******" }', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '57D86AB4-8703-4DF4-BAB6-F7DE44******', - ], - 'Success' => [ - 'description' => 'Indicates whether the request was successful.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - ], + [ + 'apiName' => 'DescribeRecycleBinStatus', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:DescribeRecycleBinStatus', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'ModifyRdsClassApiError', - 'errorMessage' => 'Failed to modify the class of the RDS instance.', + [ + 'apiName' => 'DescribeInstanceSwitchNetwork', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeInstanceSwitchNetwork', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error.', + ], + ], + [ + 'apiName' => 'RollbackInstanceVersion', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:RollbackInstanceVersion', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": \\"{ \\\\\\"orderId\\\\\\": \\\\\\"209136011******\\\\\\" }\\",\\n \\"RequestId\\": \\"57D86AB4-8703-4DF4-BAB6-F7DE44******\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>65C49036-181C-40A3-9034-465E417C6491</RequestId>\\n<Data>\\n <orderId>209136011******</orderId>\\n</Data>\\n<Success>true</Success>","errorExample":""}]', - 'title' => 'UpdatePrivateRdsClass', - 'summary' => 'Updates the specifications of a custom ApsaraDB RDS instance at the storage layer.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'UpgradeHiStoreInstance' => [ - 'methods' => [ - 'post', - 'get', + [ + 'apiName' => 'UpgradeHiStoreInstance', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'drds:UpgradeHiStoreInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'DescribeDrdsDbInstances', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsDbInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'SetBackupLocal', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:SetBackupLocal', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '76151', - 'abilityTreeNodes' => [ - 'FEATUREdrds25BO3L', + [ + 'apiName' => 'DescribeRdsPerformanceSummary', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRdsPerformanceSummary', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'DrdsInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the PolarDB-X 1.0 instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'drdssad23sdfc', + [ + 'apiName' => 'DescribeDrdsInstances', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeDrdsInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - 'default' => 'center', + ], + [ + 'apiName' => 'ModifyAccountDescription', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:ModifyAccountDescription', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], - [ - 'name' => 'HistoreInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the column-oriented storage instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'hi-sesex2e', + ], + [ + 'apiName' => 'SetupTable', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:SetupTable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Data' => [ - 'description' => 'Indicates whether the request was successful. A value of true indicates that the request was successful. An error message was returned if the request failed.'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DSSDF-SEWE-23ERW', - ], - ], + [ + 'apiName' => 'DisableSqlAudit', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'drds:DisableSqlAudit', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'The request processing has failed due to some unknown error. 默认错误码', + [ + 'apiName' => 'DescribeRdsCommodity', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeRdsCommodity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": \\"true\\",\\n \\"RequestId\\": \\"DSSDF-SEWE-23ERW\\"\\n}","errorExample":""},{"type":"xml","example":"<UpgradeHiStoreInstanceResponse>\\n\\t<RequestId>DSSDF-SEWE-23ERW</RequestId>\\n\\t<Data>True</Data>\\n</UpgradeHiStoreInstanceResponse>","errorExample":""}]', - 'title' => 'UpgradeHiStoreInstance', - 'summary' => 'Upgrades the version of a column-oriented storage instance of a PolarDB-X 1.0 instance.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - ], - 'endpoints' => [ - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2-pop', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-pop', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-gov-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-nu16-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-edge-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-fujian', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-haidian-cm12-c01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-bj-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-prod-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-2', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-3', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-test-306', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong-finance-pop', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao-nebula', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et15-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et2-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-inner', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-internal-test-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-inner', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-st4-d01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-su18-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wuhan', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-yushanfang', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangbei-na61-b01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou-na62-a01', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhengzhou-nebula-1', - 'endpoint' => 'drds.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1-oxs', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'rus-west-1-pop', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'drds.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'drds.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'drds.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'drds.cn-hongkong.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'drds.cn-huhehaote.aliyuncs.com', - ], - [ - 'regionId' => 'cn-north-2-gov-1', - 'endpoint' => 'drds.cn-north-2-gov-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'drds.cn-qingdao.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'drds.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'drds.cn-shanghai-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'drds.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'drds.cn-shenzhen-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'drds.cn-zhangjiakou.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'drds.us-east-1.aliyuncs.com', + [ + 'apiName' => 'DescribeHotDbList', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'drds:DescribeHotDbList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpgradeInstanceVersion', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:UpgradeInstanceVersion', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], + [ + 'apiName' => 'DescribeBackupLocal', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'drds:DescribeBackupLocal', + 'authLevel' => '', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DRDS', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ], + ], + ], + ], + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ['validationType' => 'always', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*'], + ['validationType' => 'always', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}'], + ['validationType' => 'always', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId1}/*'], + ['validationType' => 'always', 'resourceType' => 'PolarDBXInstance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/{#DbName}'], + ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/*'], + ['validationType' => 'always', 'resourceType' => 'PolarDBXInstance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}'], + ['validationType' => 'always', 'resourceType' => 'instance', 'arn' => 'acs:drds:{#regionId}:{#accountId}:instance/*'], ], ], ]; |
