summaryrefslogtreecommitdiff
path: root/data/zh_cn/dbs
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/dbs
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/zh_cn/dbs')
-rw-r--r--data/zh_cn/dbs/2019-03-06/api-docs.php8321
-rw-r--r--data/zh_cn/dbs/2021-01-01/api-docs.php4849
2 files changed, 3357 insertions, 9813 deletions
diff --git a/data/zh_cn/dbs/2019-03-06/api-docs.php b/data/zh_cn/dbs/2019-03-06/api-docs.php
index c66fa3d..4c72dd4 100644
--- a/data/zh_cn/dbs/2019-03-06/api-docs.php
+++ b/data/zh_cn/dbs/2019-03-06/api-docs.php
@@ -1,104 +1,56 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'Dbs',
- 'version' => '2019-03-06',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'Dbs', 'version' => '2019-03-06'],
'directories' => [
[
- 'children' => [
- 'CreateBackupPlan',
- 'CreateAndStartBackupPlan',
- 'StartBackupPlan',
- 'EnableBackupLog',
- 'StopBackupPlan',
- 'DisableBackupLog',
- 'ModifyBackupObjects',
- 'ModifyBackupSourceEndpoint',
- 'ModifyStorageStrategy',
- 'ModifyBackupPlanName',
- 'ModifyBackupStrategy',
- 'DescribeBackupPlanList',
- 'DescribeRestoreRangeInfo',
- 'DescribeBackupPlanBilling',
- 'ConfigureBackupPlan',
- 'RenewBackupPlan',
- 'UpgradeBackupPlan',
- 'ReleaseBackupPlan',
- ],
+ 'children' => ['CreateBackupPlan', 'CreateAndStartBackupPlan', 'StartBackupPlan', 'EnableBackupLog', 'StopBackupPlan', 'DisableBackupLog', 'ModifyBackupObjects', 'ModifyBackupSourceEndpoint', 'ModifyStorageStrategy', 'ModifyBackupPlanName', 'ModifyBackupStrategy', 'DescribeBackupPlanList', 'DescribeRestoreRangeInfo', 'DescribeBackupPlanBilling', 'ConfigureBackupPlan', 'RenewBackupPlan', 'UpgradeBackupPlan', 'ReleaseBackupPlan'],
'type' => 'directory',
'title' => '备份计划',
'id' => 46961,
],
[
- 'children' => [
- 'DescribeIncrementBackupList',
- 'DescribeFullBackupList',
- ],
+ 'children' => ['DescribeIncrementBackupList', 'DescribeFullBackupList'],
'type' => 'directory',
'title' => '备份任务',
'id' => 46980,
],
[
- 'children' => [
- 'CreateRestoreTask',
- 'StartRestoreTask',
- 'DescribeRestoreTaskList',
- ],
+ 'children' => ['CreateRestoreTask', 'StartRestoreTask', 'DescribeRestoreTaskList'],
'type' => 'directory',
'title' => '恢复任务',
'id' => 46983,
],
[
- 'children' => [
- 'DescribeBackupGatewayList',
- ],
+ 'children' => ['DescribeBackupGatewayList'],
'type' => 'directory',
'title' => '备份网关',
'id' => 46987,
],
[
- 'children' => [
- 'CreateFullBackupSetDownload',
- 'CreateIncrementBackupSetDownload',
- 'ModifyBackupSetDownloadRules',
- 'DescribeBackupSetDownloadTaskList',
- ],
+ 'children' => ['CreateFullBackupSetDownload', 'CreateIncrementBackupSetDownload', 'ModifyBackupSetDownloadRules', 'DescribeBackupSetDownloadTaskList'],
'type' => 'directory',
'title' => '备份集下载',
'id' => 46998,
],
[
- 'children' => [
- 'CreateGetDBListFromAgentTask',
- 'DescribeNodeCidrList',
- 'DescribeJobErrorCode',
- 'DescribePreCheckProgressList',
- 'DescribeDLAService',
- 'GetDBListFromAgent',
- 'DescribeRegions',
- 'InitializeDbsServiceLinkedRole',
- ],
+ 'children' => ['CreateGetDBListFromAgentTask', 'DescribeNodeCidrList', 'DescribeJobErrorCode', 'DescribePreCheckProgressList', 'DescribeDLAService', 'GetDBListFromAgent', 'InitializeDbsServiceLinkedRole'],
'type' => 'directory',
'title' => '服务管理',
'id' => 46989,
],
+ [
+ 'children' => ['DescribeRegions'],
+ 'title' => '其他',
+ 'type' => 'directory',
+ ],
],
'components' => [
'schemas' => [],
],
'apis' => [
'ConfigureBackupPlan' => [
- 'summary' => '该接口用于配置一个DBS备份计划。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -109,366 +61,231 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi0*******',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi0*******'],
],
[
'name' => 'SourceEndpointInstanceType',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库所在位置,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。取值如下:'."\n"
- ."\n"
- .'- **RDS**'."\n"
- .'- **ECS**'."\n"
- .'- **Express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
- .'- **Agent**:通过备份网关接入的数据库'."\n"
- .'- **DDS**:云MongoDB'."\n"
- .'- **Other**:通过IP:Port直连的数据库',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'RDS',
- ],
+ 'schema' => ['description' => '数据库所在位置,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。取值如下:'."\n"
+ ."\n"
+ .'- **RDS**'."\n"
+ .'- **ECS**'."\n"
+ .'- **Express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
+ .'- **Agent**:通过备份网关接入的数据库'."\n"
+ .'- **DDS**:云MongoDB'."\n"
+ .'- **Other**:通过IP:Port直连的数据库', 'type' => 'string', 'required' => true, 'example' => 'RDS'],
],
[
'name' => 'SourceEndpointRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库地域,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpointInstanceType**为RDS、ECS、DDS、Express、Agent时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '数据库地域,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpointInstanceType**为RDS、ECS、DDS、Express、Agent时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'SourceEndpointInstanceID',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库实例ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpoint**.**InstanceType**为**RDS**、**ECS**、**DDS**、**Express**时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-uf6wjk5*********',
- ],
+ 'schema' => ['description' => '数据库实例ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpoint**.**InstanceType**为**RDS**、**ECS**、**DDS**、**Express**时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'rm-uf6wjk5*********'],
],
[
'name' => 'SourceEndpointIP',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库连接地址,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpointInstanceType**为**express**、**agent**、**other**时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-uf6wjk5*******.mysql.rds.aliyuncs.com',
- ],
+ 'schema' => ['description' => '数据库连接地址,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpointInstanceType**为**express**、**agent**、**other**时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'rm-uf6wjk5*******.mysql.rds.aliyuncs.com'],
],
[
'name' => 'SourceEndpointPort',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库端口,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpoint**.**InstanceType**为**express**、**agent**、**other**、**ECS**时,该参数必传。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '3306',
- ],
+ 'schema' => ['description' => '数据库端口,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpoint**.**InstanceType**为**express**、**agent**、**other**、**ECS**时,该参数必传。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3306'],
],
[
'name' => 'SourceEndpointDatabaseName',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库名称,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> 数据库类型为**PostgreSQL**、**MongoDB**时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'testRDS',
- ],
+ 'schema' => ['description' => '数据库名称,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> 数据库类型为**PostgreSQL**、**MongoDB**时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'testRDS'],
],
[
'name' => 'SourceEndpointUserName',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库账号。'."\n"
- ."\n"
- .'> 数据库类型为**Redis**,或者数据库所在位置为**agent**且数据库类型为**SQL Server**时该参数非必须,其他场景均必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'testRDS',
- ],
+ 'schema' => ['description' => '数据库账号。'."\n"
+ ."\n"
+ .'> 数据库类型为**Redis**,或者数据库所在位置为**agent**且数据库类型为**SQL Server**时该参数非必须,其他场景均必传。', 'type' => 'string', 'required' => false, 'example' => 'testRDS'],
],
[
'name' => 'SourceEndpointPassword',
'in' => 'query',
- 'schema' => [
- 'description' => '密码。'."\n"
- ."\n"
- .'> 数据库类型为**Redis**,或者数据库所在位置为**agent**且数据库类型为**SQL Server**时该参数非必须,其他场景均必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'testPassword',
- ],
+ 'schema' => ['description' => '密码。'."\n"
+ ."\n"
+ .'> 数据库类型为**Redis**,或者数据库所在位置为**agent**且数据库类型为**SQL Server**时该参数非必须,其他场景均必传。', 'type' => 'string', 'required' => false, 'example' => 'testPassword'],
],
[
'name' => 'BackupGatewayId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份网关ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpointInstanceType**为**agent**时,该参数必传。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '23313123312',
- ],
+ 'schema' => ['description' => '备份网关ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpointInstanceType**为**agent**时,该参数必传。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '23313123312'],
],
[
'name' => 'OSSBucketName',
'in' => 'query',
- 'schema' => [
- 'description' => 'OSS Bucket名称。'."\n"
- ."\n"
- .'> 系统默认自动生成新的名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestOssBucket',
- ],
+ 'schema' => ['description' => 'OSS Bucket名称。'."\n"
+ ."\n"
+ .'> 系统默认自动生成新的名称。', 'type' => 'string', 'required' => false, 'example' => 'TestOssBucket'],
],
[
'name' => 'BackupObjects',
'in' => 'query',
- 'schema' => [
- 'description' => '备份对象,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[ { "DBName":"待备份库名", "SchemaName":"待备份 Schema 名", "TableIncludes":[{ "TableName":"待备份表表名" }], "TableExcludes":[{ "TableName":"待备份库名不需要备份表的表名" }] } ]',
- ],
+ 'schema' => ['description' => '备份对象,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => false, 'example' => '[ { "DBName":"待备份库名", "SchemaName":"待备份 Schema 名", "TableIncludes":[{ "TableName":"待备份表表名" }], "TableExcludes":[{ "TableName":"待备份库名不需要备份表的表名" }] } ]'],
],
[
'name' => 'BackupPeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份周期,取值:'."\n"
- .'- **Monday**:周一'."\n"
- .'- **Tuesday**:周二'."\n"
- .'- **Wednesday**:周三'."\n"
- .'- **Thursday**:周四'."\n"
- .'- **Friday**:周五'."\n"
- .'- **Saturday**:周六'."\n"
- .'- **Sunday**:周日',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Monday',
- ],
+ 'schema' => ['description' => '全量备份周期,取值:'."\n"
+ .'- **Monday**:周一'."\n"
+ .'- **Tuesday**:周二'."\n"
+ .'- **Wednesday**:周三'."\n"
+ .'- **Thursday**:周四'."\n"
+ .'- **Friday**:周五'."\n"
+ .'- **Saturday**:周六'."\n"
+ .'- **Sunday**:周日', 'type' => 'string', 'required' => false, 'example' => 'Monday'],
],
[
'name' => 'BackupStartTime',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份开始时间,格式为<i>HH:mm</i>Z(UTC时间)。可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '14:22',
- ],
+ 'schema' => ['description' => '全量备份开始时间,格式为<i>HH:mm</i>Z(UTC时间)。可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => false, 'example' => '14:22'],
],
[
'name' => 'EnableBackupLog',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启增量日志备份,取值:'."\n"
- .'- **true**:开启'."\n"
- .'- **false**:关闭',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => '是否开启增量日志备份,取值:'."\n"
+ .'- **true**:开启'."\n"
+ .'- **false**:关闭', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'BackupLogIntervalSeconds',
'in' => 'query',
- 'schema' => [
- 'description' => '增量时间间隔,以秒(s)为单位。'."\n"
- .'> 仅支持物理备份。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1000',
- ],
+ 'schema' => ['description' => '增量时间间隔,以秒(s)为单位。'."\n"
+ .'> 仅支持物理备份。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
],
[
'name' => 'BackupRetentionPeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '备份数据保留时间,取值:0 ~ 1825,默认为730天。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '730',
- ],
+ 'schema' => ['description' => '备份数据保留时间,取值:0 ~ 1825,默认为730天。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '730'],
],
[
'name' => 'DuplicationInfrequentAccessPeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '转为低频访问存储时间,默认为180天。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '180',
- ],
+ 'schema' => ['description' => '转为低频访问存储时间,默认为180天。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '180'],
],
[
'name' => 'DuplicationArchivePeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '转为归档冷备存储时间,默认为365天。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '365',
- ],
+ 'schema' => ['description' => '转为归档冷备存储时间,默认为365天。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '365'],
],
[
'name' => 'BackupPlanName',
'in' => 'query',
- 'schema' => [
- 'description' => '自定义备份计划名称,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi0*******',
- ],
+ 'schema' => ['description' => '自定义备份计划名称,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi0*******'],
],
[
'name' => 'SourceEndpointOracleSID',
'in' => 'query',
- 'schema' => [
- 'description' => 'Oracle SID名称。'."\n"
- ."\n"
- .'> 数据库类型为Oracle时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'Oracle SID名称。'."\n"
+ ."\n"
+ .'> 数据库类型为Oracle时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'BackupStorageType',
'in' => 'query',
- 'schema' => [
- 'description' => '内置存储类型:'."\n"
- .'- 空(默认):备份数据存储在用户OSS上。'."\n"
- .'- system :备份数据存储在DBS的内置OSS上。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '无',
- ],
+ 'schema' => ['description' => '内置存储类型:'."\n"
+ .'- 空(默认):备份数据存储在用户OSS上。'."\n"
+ .'- system :备份数据存储在DBS的内置OSS上。', 'type' => 'string', 'required' => false, 'example' => '无'],
],
[
'name' => 'BackupSpeedLimit',
'in' => 'query',
- 'schema' => [
- 'description' => '磁盘IO限制 , 单位为KB/s。'."\n"
- .'> 仅对MySQL物理备份生效。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '262144',
- ],
+ 'schema' => ['description' => '磁盘IO限制 , 单位为KB/s。'."\n"
+ .'> 仅对MySQL物理备份生效。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '262144'],
],
[
'name' => 'BackupRateLimit',
'in' => 'query',
- 'schema' => [
- 'description' => '网络带宽限制, 单位为KB/s ,最大允许10GB。'."\n"
- .'> 仅对MySQL物理备份生效。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '262144',
- ],
+ 'schema' => ['description' => '网络带宽限制, 单位为KB/s ,最大允许10GB。'."\n"
+ .'> 仅对MySQL物理备份生效。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '262144'],
],
[
'name' => 'BackupStrategyType',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份周期,取值:'."\n"
- .'- **simple**:周期备份,和BackupPeriod、BackupStartTime配合使用。'."\n"
- .'- **manual**:手动备份。'."\n"
- ."\n"
- .'> 默认为**simple**。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'simple',
- ],
+ 'schema' => ['description' => '全量备份周期,取值:'."\n"
+ .'- **simple**:周期备份,和BackupPeriod、BackupStartTime配合使用。'."\n"
+ .'- **manual**:手动备份。'."\n"
+ ."\n"
+ .'> 默认为**simple**。', 'type' => 'string', 'required' => false, 'example' => 'simple'],
],
[
'name' => 'CrossAliyunId',
'in' => 'query',
- 'schema' => [
- 'description' => '跨阿里云账号备份的UID,可通过调用[DescribeRestoreTaskList](~~2869838~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2xxx7778xxxxxxxxxx',
- ],
+ 'schema' => ['description' => '跨阿里云账号备份的UID,可通过调用[DescribeRestoreTaskList](~~2869838~~)接口获取该参数的值。', 'type' => 'string', 'required' => false, 'example' => '2xxx7778xxxxxxxxxx'],
],
[
'name' => 'CrossRoleName',
'in' => 'query',
- 'schema' => [
- 'description' => '跨阿里云账号备份的RAM角色名称,可通过调用[DescribeRestoreTaskList](~~2869838~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test123',
- ],
+ 'schema' => ['description' => '跨阿里云账号备份的RAM角色名称,可通过调用[DescribeRestoreTaskList](~~2869838~~)接口获取该参数的值。', 'type' => 'string', 'required' => false, 'example' => 'test123'],
],
[
'name' => 'AutoStartBackup',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启自动备份。'."\n"
- ."\n"
- .'- **true**:开启'."\n"
- .'- **false**:不开启',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'schema' => ['description' => '是否开启自动备份。'."\n"
+ ."\n"
+ .'- **true**:开启'."\n"
+ .'- **false**:不开启', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'description' => '资源组ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-aekzecovzti****',
- ],
+ 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzecovzti****'],
+ ],
+ [
+ 'name' => 'EnableSourceEndpointSsl',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => 'true'],
+ ],
+ [
+ 'name' => 'BackupStorageEncryptMethod',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => 'encrypted'],
+ ],
+ [
+ 'name' => 'SslCaPem',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => '-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----'],
+ ],
+ [
+ 'name' => 'SourceEndpointOracleHome',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => '/home/test'],
+ ],
+ [
+ 'name' => 'EnableMysqlPhysicalBackupBinlog',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => 'true'],
],
],
'responses' => [
@@ -477,77 +294,36 @@
'description' => '详情信息如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'F1FB49D4-B504-47F1-9F43-D7EAB33F****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi01ex****',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'F1FB49D4-B504-47F1-9F43-D7EAB33F****'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi01ex****'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '配置备份计划',
+ 'summary' => '该接口用于配置一个DBS备份计划。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-28T07:13:06.000Z',
- 'description' => '请求参数发生变更',
- ],
- [
- 'createdAt' => '2022-07-12T03:54:11.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-28T07:13:06.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2022-07-12T03:54:11.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ConfigureBackupPlan',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ConfigureBackupPlan'],
],
],
'ramActions' => [
@@ -558,12 +334,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -572,14 +343,8 @@
],
'CreateAndStartBackupPlan' => [
'summary' => '该接口用于创建、配置并启动备份计划。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -590,504 +355,288 @@
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => ' '."\n"
- .'备份计划ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbstooi0*******',
- ],
+ 'schema' => ['description' => ' '."\n"
+ .'备份计划ID。', 'type' => 'string', 'required' => false, 'example' => 'dbstooi0*******'],
],
[
'name' => 'Region',
'in' => 'query',
- 'schema' => [
- 'description' => 'DBS支持地域,可调用[DescribeRegions](~~2869853~~)接口查看。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => 'DBS支持地域,可调用[DescribeRegions](~~2869853~~)接口查看。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'InstanceClass',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划的规格,取值:'."\n"
- .'- **micro**'."\n"
- .'- **small**'."\n"
- .'- **medium**'."\n"
- .'- **large**'."\n"
- .'- **xlarge**'."\n"
- ."\n"
- .'> 规格越高,备份与恢复的性能越高。更多信息,请参见[规格说明](~~84372~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'micro',
- ],
+ 'schema' => ['description' => '备份计划的规格,取值:'."\n"
+ .'- **micro**'."\n"
+ .'- **small**'."\n"
+ .'- **medium**'."\n"
+ .'- **large**'."\n"
+ .'- **xlarge**'."\n"
+ ."\n"
+ .'> 规格越高,备份与恢复的性能越高。更多信息,请参见[规格说明](~~84372~~)。', 'type' => 'string', 'required' => true, 'example' => 'micro'],
],
[
'name' => 'DatabaseType',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库类型,取值:'."\n"
- .'- **MySQL**'."\n"
- .'- **MSSQL**'."\n"
- .'- **Oracle**'."\n"
- .'- **MariaDB**'."\n"
- .'- **PostgreSQL**'."\n"
- .'- **DRDS**'."\n"
- .'- **MongoDB**'."\n"
- .'- **Redis**',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'MySQL',
- ],
+ 'schema' => ['description' => '数据库类型,取值:'."\n"
+ .'- **MySQL**'."\n"
+ .'- **MSSQL**'."\n"
+ .'- **Oracle**'."\n"
+ .'- **MariaDB**'."\n"
+ .'- **PostgreSQL**'."\n"
+ .'- **DRDS**'."\n"
+ .'- **MongoDB**'."\n"
+ .'- **Redis**', 'type' => 'string', 'required' => true, 'example' => 'MySQL'],
],
[
'name' => 'BackupMethod',
'in' => 'query',
- 'schema' => [
- 'description' => '备份方式,取值:'."\n"
- .'- **logical**:逻辑备份'."\n"
- .'- **physical**:物理备份',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'logical',
- ],
+ 'schema' => ['description' => '备份方式,取值:'."\n"
+ .'- **logical**:逻辑备份'."\n"
+ .'- **physical**:物理备份', 'type' => 'string', 'required' => true, 'example' => 'logical'],
],
[
'name' => 'Period',
'in' => 'query',
- 'schema' => [
- 'description' => '指定预付费实例为包年或者包月类型,取值:'."\n"
- .'- **Year**:包年'."\n"
- .'- **Month**:包月',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Year',
- ],
+ 'schema' => ['description' => '指定预付费实例为包年或者包月类型,取值:'."\n"
+ .'- **Year**:包年'."\n"
+ .'- **Month**:包月', 'type' => 'string', 'required' => false, 'example' => 'Year'],
],
[
'name' => 'UsedTime',
'in' => 'query',
- 'schema' => [
- 'description' => '指定购买时长,取值:'."\n"
- .'- 当参数**Period**为**Year**时,**UsedTime**取值为1~5。'."\n"
- .'- 当参数**Period**为**Month**时,**UsedTime**取值为1~11。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '指定购买时长,取值:'."\n"
+ .'- 当参数**Period**为**Year**时,**UsedTime**取值为1~5。'."\n"
+ .'- 当参数**Period**为**Month**时,**UsedTime**取值为1~11。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PayType',
'in' => 'query',
- 'schema' => [
- 'description' => '支付方式,取值:'."\n"
- ."\n"
- .' **prepay**:预付费(包年包月)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'postpay',
- ],
+ 'schema' => ['description' => '支付方式,取值:'."\n"
+ ."\n"
+ .' **prepay**:预付费(包年包月)', 'type' => 'string', 'required' => false, 'example' => 'prepay'],
],
[
'name' => 'DatabaseRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '数据库地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'StorageRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '存储地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '存储地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'InstanceType',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库实例类型,取值:'."\n"
- .'- **RDS**'."\n"
- .'- **PolarDB**'."\n"
- .'- **DDS**:阿里云MongoDB'."\n"
- .'- **Kvstore**:阿里云Redis'."\n"
- .'- **Other**:通过IP:Port接入的数据库'."\n"
- .'- **dg**:无公网IP:Port的自建数据库(通过数据库网关DG接入)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'RDS',
- ],
+ 'schema' => ['description' => '数据库实例类型,取值:'."\n"
+ .'- **RDS**'."\n"
+ .'- **PolarDB**'."\n"
+ .'- **DDS**:阿里云MongoDB'."\n"
+ .'- **Kvstore**:阿里云Redis'."\n"
+ .'- **Other**:通过IP:Port接入的数据库'."\n"
+ .'- **dg**:无公网IP:Port的自建数据库(通过数据库网关DG接入)', 'type' => 'string', 'required' => false, 'example' => 'RDS'],
],
[
'name' => 'StorageType',
'in' => 'query',
- 'schema' => [
- 'description' => '该参数暂未开放使用。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '无',
- ],
+ 'schema' => ['description' => '该参数暂未开放使用。', 'type' => 'string', 'required' => false, 'example' => '无'],
],
[
'name' => 'FromApp',
'in' => 'query',
- 'schema' => [
- 'description' => '用于备注请求来源,默认值为OpenApi,无需手动设置。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OpenApi',
- ],
+ 'schema' => ['description' => '用于备注请求来源,默认值为OpenApi,无需手动设置。', 'type' => 'string', 'required' => false, 'example' => 'OpenApi'],
],
[
'name' => 'SourceEndpointInstanceType',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库所在位置,取值:'."\n"
- .'- **RDS**'."\n"
- .'- **ECS**'."\n"
- .'- **Express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
- .'- **Agent**:通过备份网关接入的数据库'."\n"
- .'- **DDS**:云MongoDB'."\n"
- .'- **Other**:通过IP:Port直连的数据库'."\n"
- .'- **dg**:无公网IP:Port的自建数据库(通过数据库网关DG接入)',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'RDS',
- ],
+ 'schema' => ['description' => '数据库所在位置,取值:'."\n"
+ .'- **RDS**'."\n"
+ .'- **ECS**'."\n"
+ .'- **Express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
+ .'- **Agent**:通过备份网关接入的数据库'."\n"
+ .'- **DDS**:云MongoDB'."\n"
+ .'- **Other**:通过IP:Port直连的数据库'."\n"
+ .'- **dg**:无公网IP:Port的自建数据库(通过数据库网关DG接入)', 'type' => 'string', 'required' => true, 'example' => 'RDS'],
],
[
'name' => 'SourceEndpointRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库地域。'."\n"
- .'> **SourceEndpoint**.**InstanceType**为**RDS**、**ECS**、**DDS**、**Express**、**Agent**时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '数据库地域。'."\n"
+ .'> **SourceEndpoint**.**InstanceType**为**RDS**、**ECS**、**DDS**、**Express**、**Agent**时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'SourceEndpointInstanceID',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库实例ID。'."\n"
- ."\n"
- .'> **SourceEndpoint**.**InstanceType**为**RDS**、**ECS**、**DDS**、**Express**时,该参数必传。'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-uf6wjk5xxxxxxxxxx',
- ],
+ 'schema' => ['description' => '数据库实例ID。'."\n"
+ ."\n"
+ .'> **SourceEndpoint**.**InstanceType**为**RDS**、**ECS**、**DDS**、**Express**时,该参数必传。'."\n", 'type' => 'string', 'required' => false, 'example' => 'rm-uf6wjk5xxxxxxxxxx'],
],
[
'name' => 'SourceEndpointIP',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库连接地址。'."\n"
- ."\n"
- .'> **SourceEndpoint**.**InstanceType**为**express**、**agent**、**other**时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-uf6wjk5xxxxxxx.mysql.rds.aliyuncs.com',
- ],
+ 'schema' => ['description' => '数据库连接地址。'."\n"
+ ."\n"
+ .'> **SourceEndpoint**.**InstanceType**为**express**、**agent**、**other**时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'rm-uf6wjk5xxxxxxx.mysql.rds.aliyuncs.com'],
],
[
'name' => 'SourceEndpointPort',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库端口。'."\n"
- ."\n"
- .'> **SourceEndpoint**.**InstanceType**为**express**、**agent**、**other**、**ECS**时,该参数必传。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '3306',
- ],
+ 'schema' => ['description' => '数据库端口。'."\n"
+ ."\n"
+ .'> **SourceEndpoint**.**InstanceType**为**express**、**agent**、**other**、**ECS**时,该参数必传。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3306'],
],
[
'name' => 'SourceEndpointDatabaseName',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库名称。'."\n"
- ."\n"
- .'> 数据库类型为**PostgreSQL**、**MongoDB**时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'testRDS',
- ],
+ 'schema' => ['description' => '数据库名称。'."\n"
+ ."\n"
+ .'> 数据库类型为**PostgreSQL**、**MongoDB**时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'testRDS'],
],
[
'name' => 'SourceEndpointUserName',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库账号。'."\n"
- ."\n"
- .'> 数据库类型为**Redis**,或者数据库所在位置为**agent**且数据库类型为**MSSQL**时该参数非必须,其他场景均必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'testRDS',
- ],
+ 'schema' => ['description' => '数据库账号。'."\n"
+ ."\n"
+ .'> 数据库类型为**Redis**,或者数据库所在位置为**agent**且数据库类型为**MSSQL**时该参数非必须,其他场景均必传。', 'type' => 'string', 'required' => false, 'example' => 'testRDS'],
],
[
'name' => 'SourceEndpointPassword',
'in' => 'query',
- 'schema' => [
- 'description' => '密码。'."\n"
- ."\n"
- .'> 数据库类型为**Redis**,或者数据库所在位置为**agent**且数据库类型为**MSSQL**时该参数非必须,其他场景均必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'testPassword',
- ],
+ 'schema' => ['description' => '密码。'."\n"
+ ."\n"
+ .'> 数据库类型为**Redis**,或者数据库所在位置为**agent**且数据库类型为**MSSQL**时该参数非必须,其他场景均必传。', 'type' => 'string', 'required' => false, 'example' => 'testPassword'],
],
[
'name' => 'BackupGatewayId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份网关ID。'."\n"
- ."\n"
- .'> - **SourceEndpoint**.**InstanceType**为**agent**时,该参数必传。'."\n"
- .'> - 如何创建备份网关,请参见[添加备份网关](~~93250~~)。'."\n"
- .'> - 您可以通过[DescribeBackupGatewayList](~~2869840~~)查看已有备份网关列表。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '23313123312',
- ],
+ 'schema' => ['description' => '备份网关ID。'."\n"
+ ."\n"
+ .'> - **SourceEndpoint**.**InstanceType**为**agent**时,该参数必传。'."\n"
+ .'> - 如何创建备份网关,请参见[添加备份网关](~~93250~~)。'."\n"
+ .'> - 您可以通过[DescribeBackupGatewayList](~~2869840~~)查看已有备份网关列表。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '23313123312'],
],
[
'name' => 'OSSBucketName',
'in' => 'query',
- 'schema' => [
- 'description' => 'OSS Bucket名称。'."\n"
- .'默认:系统自动生成新的名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestOssBucket',
- ],
+ 'schema' => ['description' => 'OSS Bucket名称。'."\n"
+ .'默认:系统自动生成新的名称。', 'type' => 'string', 'required' => false, 'example' => 'TestOssBucket'],
],
[
'name' => 'BackupObjects',
'in' => 'query',
- 'schema' => [
- 'description' => '备份对象。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[ { "DBName":"待备份库名", "SchemaName":"待备份 Schema 名", "TableIncludes":[{ "TableName":"待备份表表名" }], "TableExcludes":[{ "TableName":"待备份库名不需要备份表的表名" }] } ]',
- ],
+ 'schema' => ['description' => '备份对象。', 'type' => 'string', 'required' => false, 'example' => '[ { "DBName":"待备份库名", "SchemaName":"待备份 Schema 名", "TableIncludes":[{ "TableName":"待备份表表名" }], "TableExcludes":[{ "TableName":"待备份库名不需要备份表的表名" }] } ]'],
],
[
'name' => 'BackupPeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份周期,取值:'."\n"
- .'- **Monday**:周一'."\n"
- .'- **Tuesday**:周二'."\n"
- .'- **Wednesday**:周三'."\n"
- .'- **Thursday**:周四'."\n"
- .'- **Friday**:周五'."\n"
- .'- **Saturday**:周六'."\n"
- .'- **Sunday**:周日'."\n"
- ."\n"
- .'> 支持选择多个取值,用英文逗号(,)分开。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Monday',
- ],
+ 'schema' => ['description' => '全量备份周期,取值:'."\n"
+ .'- **Monday**:周一'."\n"
+ .'- **Tuesday**:周二'."\n"
+ .'- **Wednesday**:周三'."\n"
+ .'- **Thursday**:周四'."\n"
+ .'- **Friday**:周五'."\n"
+ .'- **Saturday**:周六'."\n"
+ .'- **Sunday**:周日'."\n"
+ ."\n"
+ .'> 支持选择多个取值,用英文逗号(,)分开。', 'type' => 'string', 'required' => false, 'example' => 'Monday'],
],
[
'name' => 'BackupStartTime',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份开始时间,格式为<i>HH:mm</i>(UTC时间)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '14:22',
- ],
+ 'schema' => ['description' => '全量备份开始时间,格式为<i>HH:mm</i>(UTC时间)。', 'type' => 'string', 'required' => false, 'example' => '14:22'],
],
[
'name' => 'EnableBackupLog',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启增量日志备份,取值:'."\n"
- .'- **true**:开启'."\n"
- .'- **false**:关闭',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => '是否开启增量日志备份,取值:'."\n"
+ .'- **true**:开启'."\n"
+ .'- **false**:关闭', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'BackupLogIntervalSeconds',
'in' => 'query',
- 'schema' => [
- 'description' => '增量时间间隔,以秒(s)为单位。'."\n"
- .'> 仅选择**物理备份**时需要传入该参数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1000',
- ],
+ 'schema' => ['description' => '增量时间间隔,以秒(s)为单位。'."\n"
+ .'> 仅选择**物理备份**时需要传入该参数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
],
[
'name' => 'BackupRetentionPeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '备份数据保留时间,取值:0~1825,默认为730天。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '730',
- ],
+ 'schema' => ['description' => '备份数据保留时间,取值:0~1825,默认为730天。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '730'],
],
[
'name' => 'DuplicationInfrequentAccessPeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '转为低频访问存储时间,默认为180天。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '180',
- ],
+ 'schema' => ['description' => '转为低频访问存储时间,默认为180天。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '180'],
],
[
'name' => 'DuplicationArchivePeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '转为归档冷备存储时间,默认为365天。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '365',
- ],
+ 'schema' => ['description' => '转为归档冷备存储时间,默认为365天。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '365'],
],
[
'name' => 'BackupPlanName',
'in' => 'query',
- 'schema' => [
- 'description' => '自定义备份计划名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi0*******',
- ],
+ 'schema' => ['description' => '自定义备份计划名称。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi0*******'],
],
[
'name' => 'SourceEndpointOracleSID',
'in' => 'query',
- 'schema' => [
- 'description' => 'Oracle SID名称,数据库类型为Oracle时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'Oracle SID名称,数据库类型为Oracle时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'BackupStorageType',
'in' => 'query',
- 'schema' => [
- 'description' => '内置存储类型:'."\n"
- .'- 空(默认):备份数据存储在用户OSS上。'."\n"
- .'- system :备份数据存储在DBS的内置OSS上。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '无',
- ],
+ 'schema' => ['description' => '内置存储类型:'."\n"
+ .'- 空(默认):备份数据存储在用户OSS上。'."\n"
+ .'- system :备份数据存储在DBS的内置OSS上。', 'type' => 'string', 'required' => false, 'example' => '无'],
],
[
'name' => 'BackupSpeedLimit',
'in' => 'query',
- 'schema' => [
- 'description' => '磁盘IO限制, 单位为KB/s。'."\n"
- .'> 该参数仅对MySQL物理备份生效。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '262144',
- ],
+ 'schema' => ['description' => '磁盘IO限制, 单位为KB/s。'."\n"
+ .'> 该参数仅对MySQL物理备份生效。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '262144'],
],
[
'name' => 'BackupRateLimit',
'in' => 'query',
- 'schema' => [
- 'description' => '网络带宽限制,单位为KB/s,最大允许10 GB。'."\n"
- .'> 该参数仅对MySQL物理备份生效。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '262144',
- ],
+ 'schema' => ['description' => '网络带宽限制,单位为KB/s,最大允许10 GB。'."\n"
+ .'> 该参数仅对MySQL物理备份生效。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '262144'],
],
[
'name' => 'BackupStrategyType',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份周期,取值:'."\n"
- .'- **simple**:周期备份,和BackupPeriod、BackupStartTime配合使用。'."\n"
- .'- **manual**:手动备份。'."\n"
- ."\n"
- .'> 默认为**simple**。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'simple',
- ],
+ 'schema' => ['description' => '全量备份周期,取值:'."\n"
+ .'- **simple**:周期备份,和BackupPeriod、BackupStartTime配合使用。'."\n"
+ .'- **manual**:手动备份。'."\n"
+ ."\n"
+ .'> 默认为**simple**。', 'type' => 'string', 'required' => false, 'example' => 'simple'],
],
[
'name' => 'CrossAliyunId',
'in' => 'query',
- 'schema' => [
- 'description' => '跨阿里云账号备份的UID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1648821913******',
- ],
+ 'schema' => ['description' => '跨阿里云账号备份的UID。', 'type' => 'string', 'required' => false, 'example' => '1648821913******'],
],
[
'name' => 'CrossRoleName',
'in' => 'query',
- 'schema' => [
- 'description' => '跨阿里云账号备份的RAM角色名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test123',
- ],
+ 'schema' => ['description' => '跨阿里云账号备份的RAM角色名称。', 'type' => 'string', 'required' => false, 'example' => 'test123'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ASDASDASDSADASFCZXVZ',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ASDASDASDSADASFCZXVZ'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'description' => '资源组ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-aekzecovzti****',
- ],
+ 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzecovzti****'],
],
],
'responses' => [
@@ -1096,85 +645,38 @@
'description' => '返回参数详情如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058',
- ],
- 'CreateBackupSet' => [
- 'description' => '是否开启备份集,返回值如下:'."\n"
- .'- **true**:开启'."\n"
- .'- **false**:关闭',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否请求成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbs1hvb0wwwe****',
- ],
- 'OrderId' => [
- 'description' => '订单ID。',
- 'type' => 'string',
- 'example' => '2056157***',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058'],
+ 'CreateBackupSet' => ['description' => '是否开启备份集,返回值如下:'."\n"
+ .'- **true**:开启'."\n"
+ .'- **false**:关闭', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否请求成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbs1hvb0wwwe****'],
+ 'OrderId' => ['description' => '订单ID。', 'type' => 'string', 'example' => '2056157***'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"4F1888AC-1138-4995-B9FE-D2734F61C058\\",\\n \\"CreateBackupSet\\": true,\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid.\\",\\n \\"BackupPlanId\\": \\"dbs1hvb0wwwe****\\",\\n \\"OrderId\\": \\"2056157***\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateAndStartBackupPlanResponse>\\n <RequestId>3321E2F6-98E3-4B81-ADEC-9FD1BC06249A</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <BackupPlanId>dbs1hrlzt68t7ko1</BackupPlanId>\\n <OrderId>208422747270728</OrderId>\\n <Success>true</Success>\\n</CreateAndStartBackupPlanResponse>","errorExample":""}]',
'title' => '创建并启动备份计划',
'description' => '请确保在使用该接口前,已充分了解数据库备份DBS产品的[收费方式和价格](~~70005~~)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-28T06:48:28.000Z',
- 'description' => '请求参数发生变更',
- ],
- [
- 'createdAt' => '2022-07-12T03:54:06.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-28T06:48:28.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2022-07-12T03:54:06.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateAndStartBackupPlan',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAndStartBackupPlan'],
],
],
'ramActions' => [
@@ -1185,28 +687,16 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"4F1888AC-1138-4995-B9FE-D2734F61C058\\",\\n \\"CreateBackupSet\\": true,\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid.\\",\\n \\"BackupPlanId\\": \\"dbs1hvb0wwwe****\\",\\n \\"OrderId\\": \\"2056157***\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateAndStartBackupPlanResponse>\\n <RequestId>3321E2F6-98E3-4B81-ADEC-9FD1BC06249A</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <BackupPlanId>dbs1hrlzt68t7ko1</BackupPlanId>\\n <OrderId>208422747270728</OrderId>\\n <Success>true</Success>\\n</CreateAndStartBackupPlanResponse>","errorExample":""}]',
],
'CreateBackupPlan' => [
'summary' => '该接口用于创建一个DBS备份计划。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1217,184 +707,111 @@
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'Region',
'in' => 'query',
- 'schema' => [
- 'description' => 'DBS地域,该参数为必填项,可通过[DescribeRegions](~~2869853~~)查看DBS支持地域。'."\n"
- ."\n"
- .'> 更多详情信息,请参见[服务接入点](~~2869810~~)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => 'DBS地域,该参数为必填项,可通过[DescribeRegions](~~2869853~~)查看DBS支持地域。'."\n"
+ ."\n"
+ .'> 更多详情信息,请参见[服务接入点](~~2869810~~)。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'InstanceClass',
'in' => 'query',
- 'schema' => [
- 'description' => '规格,取值如下:'."\n"
- ."\n"
- .'- **micro**:入门型'."\n"
- .'- **small**:低配型'."\n"
- .'- **medium**:中配型'."\n"
- .'- **large**:高配型'."\n"
- .'- **xlarge**:高配型(无流量上限)'."\n"
- ."\n"
- .'> 规格越高,备份与恢复的性能越高,更多信息,请参见[规格说明](~~84372~~)。'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'micro',
- ],
+ 'schema' => ['description' => '规格,取值如下:'."\n"
+ ."\n"
+ .'- **micro**:入门型'."\n"
+ .'- **small**:低配型'."\n"
+ .'- **medium**:中配型'."\n"
+ .'- **large**:高配型'."\n"
+ .'- **xlarge**:高配型(无流量上限)'."\n"
+ ."\n"
+ .'> 规格越高,备份与恢复的性能越高,更多信息,请参见[规格说明](~~84372~~)。'."\n", 'type' => 'string', 'required' => true, 'example' => 'micro'],
],
[
'name' => 'DatabaseType',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库类型,取值如下:'."\n"
- ."\n"
- .'- **MySQL**'."\n"
- .'- **MSSQL**'."\n"
- .'- **Oracle**'."\n"
- .'- **MariaDB**'."\n"
- .'- **PostgreSQL**'."\n"
- .'- **DRDS**'."\n"
- .'- **MongoDB**'."\n"
- .'- **Redis**',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'MySQL',
- ],
+ 'schema' => ['description' => '数据库类型,取值如下:'."\n"
+ ."\n"
+ .'- **MySQL**'."\n"
+ .'- **MSSQL**'."\n"
+ .'- **Oracle**'."\n"
+ .'- **MariaDB**'."\n"
+ .'- **PostgreSQL**'."\n"
+ .'- **DRDS**'."\n"
+ .'- **MongoDB**'."\n"
+ .'- **Redis**', 'type' => 'string', 'required' => true, 'example' => 'MySQL'],
],
[
'name' => 'BackupMethod',
'in' => 'query',
- 'schema' => [
- 'description' => '备份方式,取值如下:'."\n"
- .'- **logical**:逻辑备份'."\n"
- .'- **physical**:物理备份',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'logical',
- ],
+ 'schema' => ['description' => '备份方式,取值如下:'."\n"
+ .'- **logical**:逻辑备份'."\n"
+ .'- **physical**:物理备份', 'type' => 'string', 'required' => true, 'example' => 'logical'],
],
[
'name' => 'Period',
'in' => 'query',
- 'schema' => [
- 'description' => '指定预付费实例为包年或者包月类型,取值如下:'."\n"
- .'- **Year**:包年'."\n"
- .'- **Month**:包月',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Month',
- ],
+ 'schema' => ['description' => '指定预付费实例为包年或者包月类型,取值如下:'."\n"
+ .'- **Year**:包年'."\n"
+ .'- **Month**:包月', 'type' => 'string', 'required' => false, 'example' => 'Month'],
],
[
'name' => 'UsedTime',
'in' => 'query',
- 'schema' => [
- 'description' => '指定购买时长,取值如下:'."\n"
- .'- 当参数**Period**为**Year**时,**UsedTime**取值为1~5。'."\n"
- .'- 当参数**Period**为**Month**时,**UsedTime**取值为1~11。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '指定购买时长,取值如下:'."\n"
+ .'- 当参数**Period**为**Year**时,**UsedTime**取值为1~5。'."\n"
+ .'- 当参数**Period**为**Month**时,**UsedTime**取值为1~11。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PayType',
'in' => 'query',
- 'schema' => [
- 'description' => '支付方式,取值如下:'."\n"
- ."\n"
- .' **prepay**:预付费(包年包月)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'prepay',
- ],
+ 'schema' => ['description' => '支付方式,取值如下:'."\n"
+ ."\n"
+ .' **prepay**:预付费(包年包月)', 'type' => 'string', 'required' => false, 'example' => 'prepay'],
],
[
'name' => 'DatabaseRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '数据库地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'StorageRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '存储地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '存储地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'InstanceType',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库实例类型,取值如下:'."\n"
- .'- **RDS**'."\n"
- .'- **PolarDB**'."\n"
- .'- **DDS**:阿里云MongoDB'."\n"
- .'- **Kvstore**:阿里云Redis'."\n"
- .'- **Other**:通过IP:Port接入的数据库'."\n"
- .'- **dg**:无公网IP:Port的自建数据库(通过数据库网关DG接入)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'RDS',
- ],
+ 'schema' => ['description' => '数据库实例类型,取值如下:'."\n"
+ .'- **RDS**'."\n"
+ .'- **PolarDB**'."\n"
+ .'- **DDS**:阿里云MongoDB'."\n"
+ .'- **Kvstore**:阿里云Redis'."\n"
+ .'- **Other**:通过IP:Port接入的数据库'."\n"
+ .'- **dg**:无公网IP:Port的自建数据库(通过数据库网关DG接入)', 'type' => 'string', 'required' => false, 'example' => 'RDS'],
],
[
'name' => 'StorageType',
'in' => 'query',
- 'schema' => [
- 'description' => '该参数暂未开放使用。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '无',
- ],
+ 'schema' => ['description' => '该参数暂未开放使用。', 'type' => 'string', 'required' => false, 'example' => '无'],
],
[
'name' => 'FromApp',
'in' => 'query',
- 'schema' => [
- 'description' => '用于备注请求来源,默认值为OpenAPI,无需手动设置。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OpenAPI',
- ],
+ 'schema' => ['description' => '用于备注请求来源,默认值为OpenAPI,无需手动设置。', 'type' => 'string', 'required' => false, 'example' => 'OpenAPI'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '输入任意字符串,用于保证请求幂等性。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'KJSAHKJFHKJSHFKASHFKJADFHKDXXXX',
- ],
+ 'schema' => ['description' => '输入任意字符串,用于保证请求幂等性。', 'type' => 'string', 'required' => false, 'example' => 'KJSAHKJFHKJSHFKASHFKJADFHKDXXXX'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'description' => '资源组ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-aekzecovzti****',
- ],
+ 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzecovzti****'],
],
],
'responses' => [
@@ -1403,77 +820,33 @@
'description' => '返回值详情如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '7BCF6D62-885F-5A4A-91A1-679760E7****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbsrhahrsu2****',
- ],
- 'OrderId' => [
- 'description' => '订单ID。',
- 'type' => 'string',
- 'example' => '21437345592****',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '7BCF6D62-885F-5A4A-91A1-679760E7****'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbsrhahrsu2****'],
+ 'OrderId' => ['description' => '订单ID。', 'type' => 'string', 'example' => '21437345592****'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '创建备份计划',
'description' => '本接口对应的控制台操作,请参见[购买备份计划](~~65909~~)。',
'changeSet' => [
- [
- 'createdAt' => '2022-07-28T06:48:28.000Z',
- 'description' => '请求参数发生变更',
- ],
- [
- 'createdAt' => '2022-07-12T03:54:06.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-28T06:48:28.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2022-07-12T03:54:06.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateBackupPlan',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateBackupPlan'],
],
],
'ramActions' => [
@@ -1484,12 +857,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -1498,14 +866,8 @@
],
'CreateFullBackupSetDownload' => [
'summary' => '该接口用于创建并启动全量备份集下载任务。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1516,46 +878,29 @@
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupSetId',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份集ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbs1hvXXXXX',
- ],
+ 'schema' => ['description' => '全量备份集ID。', 'type' => 'string', 'required' => true, 'example' => 'dbs1hvXXXXX'],
],
[
'name' => 'BackupSetDataFormat',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份集下载格式。取值:'."\n"
- .'- **Native**'."\n"
- .'- **SQL**'."\n"
- .'- **CSV** '."\n"
- .'- **JSON**'."\n"
- ."\n"
- .'> 默认CSV。'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'SQL',
- ],
+ 'schema' => ['description' => '全量备份集下载格式。取值:'."\n"
+ .'- **Native**'."\n"
+ .'- **SQL**'."\n"
+ .'- **CSV** '."\n"
+ .'- **JSON**'."\n"
+ ."\n"
+ .'> 默认CSV。'."\n", 'type' => 'string', 'required' => false, 'example' => 'SQL'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -1563,37 +908,12 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupSetDownloadTaskId' => [
- 'description' => '备份集下载任务ID。',
- 'type' => 'string',
- 'example' => 'dbstooi01exxxxx',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupSetDownloadTaskId' => ['description' => '备份集下载任务ID。', 'type' => 'string', 'example' => 'dbstooi01exxxxx'],
],
'description' => '',
],
@@ -1601,11 +921,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '创建全量备份集下载任务',
@@ -1613,19 +929,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:54:06.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:54:06.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateFullBackupSetDownload',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFullBackupSetDownload'],
],
],
'ramActions' => [
@@ -1636,12 +944,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -1650,14 +953,8 @@
],
'CreateGetDBListFromAgentTask' => [
'summary' => '该接口用于通过备份网关获取数据库列表任务。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1668,84 +965,50 @@
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupGatewayId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份网关ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口查看。'."\n"
- ."\n"
- .'> 此参数为必填项。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '160813',
- ],
+ 'schema' => ['description' => '备份网关ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口查看。'."\n"
+ ."\n"
+ .'> 此参数为必填项。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '160813'],
],
[
'name' => 'DatabaseType',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库类型,取值:'."\n"
- ."\n"
- .'- **MySQL**'."\n"
- .'- **MSSQL**'."\n"
- .'- **Oracle**'."\n"
- .'- **MariaDB**'."\n"
- .'- **PostgreSQL**'."\n"
- .'- **DRDS**'."\n"
- .'- **MongoDB**'."\n"
- .'- **Redis**',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MySQL',
- ],
+ 'schema' => ['description' => '数据库类型,取值:'."\n"
+ ."\n"
+ .'- **MySQL**'."\n"
+ .'- **MSSQL**'."\n"
+ .'- **Oracle**'."\n"
+ .'- **MariaDB**'."\n"
+ .'- **PostgreSQL**'."\n"
+ .'- **DRDS**'."\n"
+ .'- **MongoDB**'."\n"
+ .'- **Redis**', 'type' => 'string', 'required' => false, 'example' => 'MySQL'],
],
[
'name' => 'SourceEndpointRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '备份网关地域ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '备份网关地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'SourceEndpointIP',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库连接地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123.0.XX.XX',
- ],
+ 'schema' => ['description' => '数据库连接地址。', 'type' => 'string', 'required' => false, 'example' => '123.0.XX.XX'],
],
[
'name' => 'SourceEndpointPort',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库连接端口。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '3306',
- ],
+ 'schema' => ['description' => '数据库连接端口。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3306'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。'."\n"
- ."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。'."\n"
+ ."\n", 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxxxxx'],
],
],
'responses' => [
@@ -1753,38 +1016,12 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => '错误码值。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '400',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'EB4DFD5E-3618-498D-BE35-4DBEA0072122',
- ],
- 'ErrCode' => [
- 'description' => '错误码字符串。'."\n",
- 'type' => 'string',
- 'example' => 'InvalidParameter',
- ],
- 'Success' => [
- 'description' => '请求状态。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'This backupPlan can\'t support this action',
- ],
- 'TaskId' => [
- 'description' => '异步任务ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '123456',
- ],
+ 'HttpStatusCode' => ['description' => '错误码值。', 'type' => 'integer', 'format' => 'int32', 'example' => '400'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EB4DFD5E-3618-498D-BE35-4DBEA0072122'],
+ 'ErrCode' => ['description' => '错误码字符串。'."\n", 'type' => 'string', 'example' => 'InvalidParameter'],
+ 'Success' => ['description' => '请求状态。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This backupPlan can\'t support this action'],
+ 'TaskId' => ['description' => '异步任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'],
],
'description' => '',
],
@@ -1792,11 +1029,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '创建数据库列表任务',
@@ -1805,19 +1038,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:54:06.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:54:06.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateGetDBListFromAgentTask',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGetDBListFromAgentTask'],
],
],
'ramActions' => [
@@ -1828,12 +1053,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -1842,14 +1062,8 @@
],
'CreateIncrementBackupSetDownload' => [
'summary' => '该接口用于创建并启动增量备份集下载任务。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1860,56 +1074,34 @@
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupSetId',
'in' => 'query',
- 'schema' => [
- 'description' => '增量备份集任务ID,可调用[DescribeIncrementBackupList](~~2869833~~)接口获取**BackupSetJobId**。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 't4yh0g0g****',
- ],
+ 'schema' => ['description' => '增量备份集任务ID,可调用[DescribeIncrementBackupList](~~2869833~~)接口获取**BackupSetJobId**。', 'type' => 'string', 'required' => true, 'example' => 't4yh0g0g****'],
],
[
'name' => 'BackupSetName',
'in' => 'query',
- 'schema' => [
- 'description' => '增量备份ID,可调用[DescribeIncrementBackupList](~~2869833~~)接口获取**BackupSetId**。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'mysql-bin.000054',
- ],
+ 'schema' => ['description' => '增量备份ID,可调用[DescribeIncrementBackupList](~~2869833~~)接口获取**BackupSetId**。', 'type' => 'string', 'required' => true, 'example' => 'mysql-bin.000054'],
],
[
'name' => 'BackupSetDataFormat',
'in' => 'query',
- 'schema' => [
- 'description' => '增量备份集下载格式。取值:'."\n"
- .'- **Native**'."\n"
- .'- **SQL**'."\n"
- .'- **CSV** '."\n"
- .'- **JSON**'."\n"
- ."\n"
- .'> 默认 Native。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Native',
- ],
+ 'schema' => ['description' => '增量备份集下载格式。取值:'."\n"
+ .'- **Native**'."\n"
+ .'- **SQL**'."\n"
+ .'- **CSV** '."\n"
+ .'- **JSON**'."\n"
+ ."\n"
+ .'> 默认 Native。', 'type' => 'string', 'required' => false, 'example' => 'Native'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCz********',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCz********'],
],
],
'responses' => [
@@ -1917,37 +1109,12 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupSetDownloadTaskId' => [
- 'description' => '备份集下载任务ID。',
- 'type' => 'string',
- 'example' => '1jydacm******',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupSetDownloadTaskId' => ['description' => '备份集下载任务ID。', 'type' => 'string', 'example' => '1jydacm******'],
],
'description' => '',
],
@@ -1955,11 +1122,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '创建增量备份集下载任务',
@@ -1967,19 +1130,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:54:06.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:54:06.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateIncrementBackupSetDownload',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIncrementBackupSetDownload'],
],
],
'ramActions' => [
@@ -1990,12 +1145,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -2004,14 +1154,8 @@
],
'CreateRestoreTask' => [
'summary' => '该接口用于创建DBS恢复任务。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2022,255 +1166,208 @@
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbs1hvb0ww****',
- ],
+ 'schema' => ['description' => '备份计划ID。', 'type' => 'string', 'required' => true, 'example' => 'dbs1hvb0ww****'],
],
[
'name' => 'DestinationEndpointInstanceType',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库所在位置,取值:'."\n"
- .'- **RDS**'."\n"
- .'- **ECS**'."\n"
- .'- **Express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
- .'- **Agent**:通过备份网关接入的数据库'."\n"
- .'- **DDS**:云MongoDB'."\n"
- .'- **Other**:通过IP:Port直连的数据库'."\n"
- .'- **dg**:无公网IP:Port的自建数据库(通过数据库网关DG接入)',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'RDS',
- ],
+ 'schema' => ['description' => '数据库所在位置,取值:'."\n"
+ .'- **RDS**'."\n"
+ .'- **ECS**'."\n"
+ .'- **Express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
+ .'- **Agent**:通过备份网关接入的数据库'."\n"
+ .'- **DDS**:云MongoDB'."\n"
+ .'- **Other**:通过IP:Port直连的数据库'."\n"
+ .'- **dg**:无公网IP:Port的自建数据库(通过数据库网关DG接入)', 'type' => 'string', 'required' => true, 'example' => 'RDS'],
],
[
'name' => 'DestinationEndpointRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库实例的地域。'."\n"
- .'>**DestinationEndpointInstanceType**为RDS、ECS、DDS、Express、Agent时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '数据库实例的地域。'."\n"
+ .'>**DestinationEndpointInstanceType**为RDS、ECS、DDS、Express、Agent时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'DestinationEndpointInstanceID',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库实例ID。'."\n"
- ."\n"
- .'> **DestinationEndpointInstanceType**为RDS、ECS、DDS、Express时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-bp1p8c29*****',
- ],
+ 'schema' => ['description' => '数据库实例ID。'."\n"
+ ."\n"
+ .'> **DestinationEndpointInstanceType**为RDS、ECS、DDS、Express时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'rm-bp1p8c29*****'],
],
[
'name' => 'DestinationEndpointIP',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库连接地址。'."\n"
- ."\n"
- .'> **DestinationEndpointInstanceType**为express、agent、other,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-bp*****9jv8pxero.mysql.rds.aliyuncs.com',
- ],
+ 'schema' => ['description' => '数据库连接地址。'."\n"
+ ."\n"
+ .'> **DestinationEndpointInstanceType**为express、agent、other,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'rm-bp*****9jv8pxero.mysql.rds.aliyuncs.com'],
],
[
'name' => 'DestinationEndpointPort',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库端口。'."\n"
- ."\n"
- .'> **DestinationEndpointInstanceType**为express、agent、other、ECS,该参数必传。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '3306',
- ],
+ 'schema' => ['description' => '数据库端口。'."\n"
+ ."\n"
+ .'> **DestinationEndpointInstanceType**为express、agent、other、ECS,该参数必传。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3306'],
],
[
'name' => 'DestinationEndpointDatabaseName',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库名称。'."\n"
- ."\n"
- .'> 数据库类型为PostgreSQL、MongoDB时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '数据库名称。'."\n"
+ ."\n"
+ .'> 数据库类型为PostgreSQL、MongoDB时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'DestinationEndpointUserName',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库账号。'."\n"
- ."\n"
- .'> 数据库类型为Redis,或者数据库所在位置为agent且数据库类型为MSSQL时该参数非必须,其他场景均必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '数据库账号。'."\n"
+ ."\n"
+ .'> 数据库类型为Redis,或者数据库所在位置为agent且数据库类型为MSSQL时该参数非必须,其他场景均必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'DestinationEndpointPassword',
'in' => 'query',
- 'schema' => [
- 'description' => '密码。'."\n"
- ."\n"
- .'> 数据库类型为Redis,或者数据库所在位置为agent且数据库类型为MSSQL时该参数非必须,其他场景均必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Test',
- ],
+ 'schema' => ['description' => '密码。'."\n"
+ ."\n"
+ .'> 数据库类型为Redis,或者数据库所在位置为agent且数据库类型为MSSQL时该参数非必须,其他场景均必传。', 'type' => 'string', 'required' => false, 'example' => 'Test'],
],
[
'name' => 'BackupGatewayId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份网关ID。'."\n"
- ."\n"
- .'> **DestinationEndpointInstanceType**为agent时,该参数必传。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '4312****',
- ],
+ 'schema' => ['description' => '备份网关ID。'."\n"
+ ."\n"
+ .'> **DestinationEndpointInstanceType**为agent时,该参数必传。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '4312****'],
],
[
'name' => 'RestoreObjects',
'in' => 'query',
- 'schema' => [
- 'description' => '恢复对象。'."\n"
- ."\n"
- .'- 详情请参见下面的**RestoreObjects**参数定义,当数据库所在位置为agent时,该参数非必须,其他场景均必传。'."\n"
- .'- 传入模板:`[{ "DBName": "待恢复库名", "NewDBName": "目标待恢复库名" }] `'."\n"
- ."\n"
- .'> 使用本API接口恢复对象仅支持恢复到数据库级别,如需配置指定表的恢复,请前往控制台进行操作。具体请参见[恢复数据库](~~85543~~)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MySQL表级别恢复示例如下:'."\n"
- .'[{\\"DBName\\":\\"dbname\\", \\"NewDBName\\":\\"dbname1\\"}]',
- ],
+ 'schema' => ['description' => '恢复对象。'."\n"
+ ."\n"
+ .'- 详情请参见下面的**RestoreObjects**参数定义,当数据库所在位置为agent时,该参数非必须,其他场景均必传。'."\n"
+ .'- 传入模板:`[{ "DBName": "待恢复库名", "NewDBName": "目标待恢复库名" }] `'."\n"
+ ."\n"
+ .'> 使用本API接口恢复对象仅支持恢复到数据库级别,如需配置指定表的恢复,请前往控制台进行操作。具体请参见[恢复数据库](~~85543~~)。', 'type' => 'string', 'required' => false, 'example' => 'MySQL表级别恢复示例如下:'."\n"
+ .'[{\\"DBName\\":\\"dbname\\", \\"NewDBName\\":\\"dbname1\\"}]'],
],
[
'name' => 'RestoreTime',
'in' => 'query',
- 'schema' => [
- 'description' => '恢复时间,取值:1554560477000。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1554560477000',
- ],
+ 'schema' => ['description' => '恢复时间,取值:1554560477000。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1554560477000'],
],
[
'name' => 'BackupSetId',
'in' => 'query',
- 'schema' => [
- 'description' => '恢复所使用的全量备份集ID,和RestoreTime互斥。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbs1hvb0w*****',
- ],
+ 'schema' => ['description' => '恢复所使用的全量备份集ID,和RestoreTime互斥。', 'type' => 'string', 'required' => false, 'example' => 'dbs1hvb0w*****'],
],
[
'name' => 'RestoreTaskName',
'in' => 'query',
- 'schema' => [
- 'description' => '恢复任务名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '恢复任务名称。', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
[
'name' => 'DestinationEndpointOracleSID',
'in' => 'query',
- 'schema' => [
- 'description' => 'Oracle SID名称。'."\n"
- ."\n"
- .'> 数据库类型为Oracle时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'Oracle SID名称。'."\n"
+ ."\n"
+ .'> 数据库类型为Oracle时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'RestoreDir',
'in' => 'query',
- 'schema' => [
- 'description' => '**DestinationEndpointInstanceType**为agent且备份计划为MySQL时必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '**DestinationEndpointInstanceType**为agent且备份计划为MySQL时必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'RestoreHome',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库程序目录。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '数据库程序目录。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'DuplicateConflict',
'in' => 'query',
- 'schema' => [
- 'description' => '同名对象冲突处理方式,当前支持:'."\n"
- ."\n"
- .'**renamenew**:遇到同名对象则重命名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'renamenew',
- ],
+ 'schema' => ['description' => '同名对象冲突处理方式,当前支持:'."\n"
+ ."\n"
+ .'**renamenew**:遇到同名对象则重命名', 'type' => 'string', 'required' => false, 'example' => 'renamenew'],
],
[
'name' => 'CrossAliyunId',
'in' => 'query',
- 'schema' => [
- 'description' => '跨阿里云账号备份的UID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2749528728********',
- ],
+ 'schema' => ['description' => '跨阿里云账号备份的UID。', 'type' => 'string', 'required' => false, 'example' => '2749528728********'],
],
[
'name' => 'CrossRoleName',
'in' => 'query',
- 'schema' => [
- 'description' => '跨阿里云账号备份的RAM角色名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test123',
- ],
+ 'schema' => ['description' => '跨阿里云账号备份的RAM角色名称。', 'type' => 'string', 'required' => false, 'example' => 'test123'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOC********',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOC********'],
+ ],
+ [
+ 'name' => 'RestoreDestinationMode',
+ 'in' => 'query',
+ 'schema' => ['title' => '恢复目的端方式', 'description' => '恢复至目的端方式'."\n"
+ ."\n"
+ .'- **EXIST_INSTANCE**:恢复到已有实例'."\n"
+ .'- **NEW_INSTANCE**:恢复到新建实例', 'type' => 'string', 'required' => false, 'example' => 'EXIST_INSTANCE'],
+ ],
+ [
+ 'name' => 'EnableDestinationEndpointSsl',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否开启目的端数据库SSL安全连接', 'description' => '是否通过SSL安全加密连接目的端', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ ],
+ [
+ 'name' => 'SslCaPem',
+ 'in' => 'query',
+ 'schema' => ['title' => '恢复目的端数据库SSL安全连接PEM证书', 'description' => '目的端SSL安全加密连接凭证', 'type' => 'string', 'required' => false, 'example' => '-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----'],
+ ],
+ [
+ 'name' => 'DestDatabaseInstanceType',
+ 'in' => 'query',
+ 'schema' => ['title' => '恢复新建数据库实例类型', 'description' => '恢复新建数据库实例类型', 'type' => 'string', 'required' => false, 'example' => 'rds'],
+ ],
+ [
+ 'name' => 'DestDatabaseInstanceRegion',
+ 'in' => 'query',
+ 'schema' => ['title' => '恢复新建数据库所在地域', 'description' => '恢复新建数据库实例地域', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'],
+ ],
+ [
+ 'name' => 'DestDatabaseInstanceVpc',
+ 'in' => 'query',
+ 'schema' => ['title' => '恢复新建数据库专有网络', 'description' => '恢复新建数据库专有网络', 'type' => 'string', 'required' => false, 'example' => 'vpc-xx'],
+ ],
+ [
+ 'name' => 'DestDatabaseInstanceClass',
+ 'in' => 'query',
+ 'schema' => ['title' => '恢复新建数据库实例规格', 'description' => '恢复新建数据库实例规格', 'type' => 'string', 'required' => false, 'example' => 'mysql.x4.large.2'],
+ ],
+ [
+ 'name' => 'DestDatabaseInstanceStorageSize',
+ 'in' => 'query',
+ 'schema' => ['title' => '恢复新建数据库实例存储大小', 'description' => '恢复新建数据库实例存储大小', 'type' => 'string', 'required' => false, 'example' => '500'],
+ ],
+ [
+ 'name' => 'DestDatabaseInstanceVSwitch',
+ 'in' => 'query',
+ 'schema' => ['description' => '恢复新建数据库实例交换机', 'type' => 'string', 'required' => false, 'example' => 'vsw-xx'],
+ ],
+ [
+ 'name' => 'DestDatabaseInstanceDatabaseVersion',
+ 'in' => 'query',
+ 'schema' => ['description' => '恢复新建数据库实例数据库版本', 'type' => 'string', 'required' => false, 'example' => '8.0'],
+ ],
+ [
+ 'name' => 'AutoOpenDatabase',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Oracle物理备份恢复是否自动启动实例', 'type' => 'string', 'required' => false, 'example' => 'true'],
+ ],
+ [
+ 'name' => 'AutoShutdownDatabase',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Oracle 物理备份恢复是否自动关闭实例', 'type' => 'string', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
@@ -2279,75 +1376,34 @@
'description' => '返回参数详情如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'RestoreTaskId' => [
- 'description' => '恢复任务ID。',
- 'type' => 'string',
- 'example' => 's102h*****',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'RestoreTaskId' => ['description' => '恢复任务ID。', 'type' => 'string', 'example' => 's102h*****'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"RestoreTaskId\\": \\"s102h*****\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateRestoreTaskResponse>\\n<RestoreTaskId>s102hXXXXX</RestoreTaskId>\\n<RequestId>60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<Success>true</Success>\\n</CreateRestoreTaskResponse>\\n","errorExample":""}]',
'title' => '创建恢复任务',
'description' => '### 相关操作文档'."\n"
."\n"
.'- [恢复数据库](~~85543~~)'."\n"
.'- [各类数据库恢复配置教程](~~197144~~)',
- 'requestParamsDescription' => ' ',
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:54:06.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:54:06.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10000',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateRestoreTask',
- ],
+ ['threshold' => '10000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateRestoreTask'],
],
],
'ramActions' => [
@@ -2358,28 +1414,16 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"RestoreTaskId\\": \\"s102h*****\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateRestoreTaskResponse>\\n<RestoreTaskId>s102hXXXXX</RestoreTaskId>\\n<RequestId>60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<Success>true</Success>\\n</CreateRestoreTaskResponse>\\n","errorExample":""}]',
],
'DescribeBackupGatewayList' => [
'summary' => '该接口用于查看DBS备份网关列表。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2390,77 +1434,48 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'Region',
'in' => 'query',
- 'schema' => [
- 'description' => 'DBS地域,取值:'."\n"
- .'- **cn-hangzhou**:公有云杭州'."\n"
- .'- **cn-shanghai**:公有云上海'."\n"
- .'- **cn-qingdao**:公有云青岛'."\n"
- .'- **cn-beijing**:公有云北京'."\n"
- .'- **cn-shenzhen**:公有云深圳'."\n"
- .'- **cn-hongkong**:公有云中国香港'."\n"
- .'- **ap-southeat-1**:公有云新加坡'."\n"
- .'- **cn-hangzhou-finance**:金融云杭州'."\n"
- .'- **cn-shanghai-finance**:金融云上海'."\n"
- .'- **cn-shenzhen-finance**:金融云深圳',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => 'DBS地域,取值:'."\n"
+ .'- **cn-hangzhou**:公有云杭州'."\n"
+ .'- **cn-shanghai**:公有云上海'."\n"
+ .'- **cn-qingdao**:公有云青岛'."\n"
+ .'- **cn-beijing**:公有云北京'."\n"
+ .'- **cn-shenzhen**:公有云深圳'."\n"
+ .'- **cn-hongkong**:公有云中国香港'."\n"
+ .'- **ap-southeat-1**:公有云新加坡'."\n"
+ .'- **cn-hangzhou-finance**:金融云杭州'."\n"
+ .'- **cn-shanghai-finance**:金融云上海'."\n"
+ .'- **cn-shenzhen-finance**:金融云深圳', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'Identifier',
'in' => 'query',
- 'schema' => [
- 'description' => '备份网关唯一标识,支持多个查询,用英文逗号(,)分隔。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '7213527653217',
- ],
+ 'schema' => ['description' => '备份网关唯一标识,支持多个查询,用英文逗号(,)分隔。', 'type' => 'string', 'required' => false, 'example' => '7213527653217'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的记录数,取值:'."\n"
- .'- **30**'."\n"
- .'- **50**'."\n"
- .'- **100**'."\n"
- ."\n"
- .'> 默认为30。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => '每页的记录数,取值:'."\n"
+ .'- **30**'."\n"
+ .'- **50**'."\n"
+ .'- **100**'."\n"
+ ."\n"
+ .'> 默认为30。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
],
[
'name' => 'PageNum',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,大于等于0且不超过Integer的最大值,默认值为:0。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码,大于等于0且不超过Integer的最大值,默认值为:0。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -2468,56 +1483,15 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'PageNum' => [
- 'description' => '页码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '46361705-8531-492F-807E-A97E482DD4A1',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'TotalPages' => [
- 'description' => '总页数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'TotalElements' => [
- 'description' => '总备份网关数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'PageSize' => [
- 'description' => '每页的记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'PageNum' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '46361705-8531-492F-807E-A97E482DD4A1'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'TotalElements' => ['description' => '总备份网关数。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'PageSize' => ['description' => '每页的记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '30'],
'Items' => [
'type' => 'object',
'itemNode' => true,
@@ -2528,62 +1502,20 @@
'items' => [
'type' => 'object',
'properties' => [
- 'DisplayName' => [
- 'description' => '备份网关显示名称。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'BackupGatewayCreateTime' => [
- 'description' => '备份网关创建时间,取值1554560477000。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1554560477000',
- ],
- 'BackupGatewayId' => [
- 'description' => '备份网关ID。',
- 'type' => 'string',
- 'example' => '2321313123',
- ],
- 'Region' => [
- 'description' => '地域。',
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- 'Identifier' => [
- 'description' => '备份网关唯一标识。',
- 'type' => 'string',
- 'example' => 'sgdsajhdgu',
- ],
- 'SourceEndpointInternetIP' => [
- 'description' => '安装备份网关的主机公网IP。',
- 'type' => 'string',
- 'example' => 'XX.XX.XX.XX',
- ],
- 'BackupGatewayStatus' => [
- 'description' => '备份网关状态,取值:'."\n"
- .'- ONLINE:在线'."\n"
- .'- OFFLINE:离线'."\n"
- .'- STOPPED:停止'."\n"
- .'- UPGRADING:升级中',
- 'type' => 'string',
- 'example' => 'ONLINE',
- ],
- 'SourceEndpointIntranetIP' => [
- 'description' => '安装备份网关的主机私网IP。',
- 'type' => 'string',
- 'example' => 'XX.XX.XX.XX',
- ],
- 'LastHeartbeatTime' => [
- 'description' => '上次心跳汇报时间,取值:1554560477000。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1554560477000',
- ],
- 'SourceEndpointHostname' => [
- 'description' => '安装备份网关的主机名称。',
- 'type' => 'string',
- 'example' => 'test',
- ],
+ 'DisplayName' => ['description' => '备份网关显示名称。', 'type' => 'string', 'example' => 'test'],
+ 'BackupGatewayCreateTime' => ['description' => '备份网关创建时间,取值1554560477000。', 'type' => 'integer', 'format' => 'int64', 'example' => '1554560477000'],
+ 'BackupGatewayId' => ['description' => '备份网关ID。', 'type' => 'string', 'example' => '2321313123'],
+ 'Region' => ['description' => '地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'Identifier' => ['description' => '备份网关唯一标识。', 'type' => 'string', 'example' => 'sgdsajhdgu'],
+ 'SourceEndpointInternetIP' => ['description' => '安装备份网关的主机公网IP。', 'type' => 'string', 'example' => 'XX.XX.XX.XX'],
+ 'BackupGatewayStatus' => ['description' => '备份网关状态,取值:'."\n"
+ .'- ONLINE:在线'."\n"
+ .'- OFFLINE:离线'."\n"
+ .'- STOPPED:停止'."\n"
+ .'- UPGRADING:升级中', 'type' => 'string', 'example' => 'ONLINE'],
+ 'SourceEndpointIntranetIP' => ['description' => '安装备份网关的主机私网IP。', 'type' => 'string', 'example' => 'XX.XX.XX.XX'],
+ 'LastHeartbeatTime' => ['description' => '上次心跳汇报时间,取值:1554560477000。', 'type' => 'integer', 'format' => 'int64', 'example' => '1554560477000'],
+ 'SourceEndpointHostname' => ['description' => '安装备份网关的主机名称。', 'type' => 'string', 'example' => 'test'],
],
'description' => '',
],
@@ -2598,11 +1530,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看备份网关列表',
@@ -2610,19 +1538,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:54:06.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:54:06.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'DescribeBackupGatewayList',
- ],
+ ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeBackupGatewayList'],
],
],
'ramActions' => [
@@ -2633,12 +1553,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -2646,14 +1561,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 1,\\n \\"RequestId\\": \\"46361705-8531-492F-807E-A97E482DD4A1\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 0,\\n \\"PageSize\\": 30,\\n \\"Items\\": {\\n \\"BackupGateway\\": [\\n {\\n \\"DisplayName\\": \\"test\\",\\n \\"BackupGatewayCreateTime\\": 1554560477000,\\n \\"BackupGatewayId\\": \\"2321313123\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Identifier\\": \\"sgdsajhdgu\\",\\n \\"SourceEndpointInternetIP\\": \\"XX.XX.XX.XX\\",\\n \\"BackupGatewayStatus\\": \\"ONLINE\\",\\n \\"SourceEndpointIntranetIP\\": \\"XX.XX.XX.XX\\",\\n \\"LastHeartbeatTime\\": 1554560477000,\\n \\"SourceEndpointHostname\\": \\"test\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<PageSize>30</PageSize>\\n<RequestId>46361705-8531-492F-807E-A97E482DD4A1</RequestId>\\n<PageNum>0</PageNum>\\n<HttpStatusCode>200</HttpStatusCode>\\n<TotalElements>0</TotalElements>\\n<Items/>\\n<TotalPages>0</TotalPages>\\n<Success>true</Success>","errorExample":""}]',
],
'DescribeBackupPlanBilling' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2664,40 +1573,23 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi01ex****',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi01ex****'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。'."\n", 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxxxxx'],
],
[
'name' => 'ShowStorageType',
'in' => 'query',
- 'schema' => [
- 'description' => '是否展示存储类型。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => '是否展示存储类型。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
@@ -2705,122 +1597,35 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => '错误码值。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '400',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'DD7BC7F5-4E3A-5DF3-BFF9-831503C4D9E3',
- ],
- 'ErrCode' => [
- 'description' => '错误码字符串。',
- 'type' => 'string',
- 'example' => 'InvalidParameter',
- ],
- 'Success' => [
- 'description' => '请求成功状态。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'This backupPlan can\'t support this action',
- ],
+ 'HttpStatusCode' => ['description' => '错误码值。', 'type' => 'integer', 'format' => 'int32', 'example' => '400'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'DD7BC7F5-4E3A-5DF3-BFF9-831503C4D9E3'],
+ 'ErrCode' => ['description' => '错误码字符串。', 'type' => 'string', 'example' => 'InvalidParameter'],
+ 'Success' => ['description' => '请求成功状态。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This backupPlan can\'t support this action'],
'Item' => [
'description' => '备份计划计费信息列表。',
'type' => 'object',
'properties' => [
- 'BuyCreateTimestamp' => [
- 'description' => '实例购买时间,格式为时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1658372830000',
- ],
- 'FullStorageSize' => [
- 'description' => '实例全量备份数据内置存储量,单位为字节(B)。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '151',
- ],
- 'BuyExpiredTimestamp' => [
- 'description' => '实例到期时间,格式为时间戳。'."\n"
- .'> 该参数仅在BuyChargeType选择PREPAY时显示。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1661097600000',
- ],
- 'BuySpec' => [
- 'description' => '实例规格。',
- 'type' => 'string',
- 'example' => 'micro',
- ],
- 'QuotaEndTimestamp' => [
- 'description' => '免费备份流量计费周期结束时间,格式为时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1659283200000',
- ],
- 'IsExpired' => [
- 'description' => '实例是否过期。'."\n"
- .'> 该参数仅在BuyChargeType选择PREPAY时显示。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'QuotaStartTimestamp' => [
- 'description' => '免费备份流量计费周期开始时间,格式为时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1656604800000',
- ],
- 'TotalFreeBytes' => [
- 'description' => '当月免费备份总流量,单位为字节(B)。'."\n"
- .'> 该参数仅在BuyChargeType选择PREPAY且IsFreeBytesUnlimited为false时显示。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '858993459200',
- ],
- 'PaiedBytes' => [
- 'description' => '当月付费备份流量合计,单位为字节(B)。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'UsedFullBytes' => [
- 'description' => '当月付费全量备份流量,单位为字节(B)。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'IsFreeBytesUnlimited' => [
- 'description' => '实例是否为无备份流量上限规格。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ContStorageSize' => [
- 'description' => '实例增量备份数据内置存储量,单位为字节(B)。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10437039',
- ],
- 'BuyChargeType' => [
- 'description' => '购买费用类型,返回值如下:'."\n"
- ."\n"
- .'- **PREPAY**:预付费(包年包月)'."\n"
- .'- **POSTPAY**:后付费(按量付费)',
- 'type' => 'string',
- 'example' => 'PREPAY',
- ],
- 'UsedIncrementBytes' => [
- 'description' => '当月付费增量备份流量,单位为字节(B)。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '9406734',
- ],
+ 'BuyCreateTimestamp' => ['description' => '实例购买时间,格式为时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1658372830000'],
+ 'FullStorageSize' => ['description' => '实例全量备份数据内置存储量,单位为字节(B)。', 'type' => 'integer', 'format' => 'int64', 'example' => '151'],
+ 'BuyExpiredTimestamp' => ['description' => '实例到期时间,格式为时间戳。'."\n"
+ .'> 该参数仅在BuyChargeType选择PREPAY时显示。', 'type' => 'integer', 'format' => 'int64', 'example' => '1661097600000'],
+ 'BuySpec' => ['description' => '实例规格。', 'type' => 'string', 'example' => 'micro'],
+ 'QuotaEndTimestamp' => ['description' => '免费备份流量计费周期结束时间,格式为时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1659283200000'],
+ 'IsExpired' => ['description' => '实例是否过期。'."\n"
+ .'> 该参数仅在BuyChargeType选择PREPAY时显示。', 'type' => 'boolean', 'example' => 'true'],
+ 'QuotaStartTimestamp' => ['description' => '免费备份流量计费周期开始时间,格式为时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1656604800000'],
+ 'TotalFreeBytes' => ['description' => '当月免费备份总流量,单位为字节(B)。'."\n"
+ .'> 该参数仅在BuyChargeType选择PREPAY且IsFreeBytesUnlimited为false时显示。', 'type' => 'integer', 'format' => 'int64', 'example' => '858993459200'],
+ 'PaiedBytes' => ['description' => '当月付费备份流量合计,单位为字节(B)。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'UsedFullBytes' => ['description' => '当月付费全量备份流量,单位为字节(B)。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'IsFreeBytesUnlimited' => ['description' => '实例是否为无备份流量上限规格。', 'type' => 'boolean', 'example' => 'true'],
+ 'ContStorageSize' => ['description' => '实例增量备份数据内置存储量,单位为字节(B)。', 'type' => 'integer', 'format' => 'int64', 'example' => '10437039'],
+ 'BuyChargeType' => ['description' => '购买费用类型,返回值如下:'."\n"
+ ."\n"
+ .'- **PREPAY**:预付费(包年包月)'."\n"
+ .'- **POSTPAY**:后付费(按量付费)', 'type' => 'string', 'example' => 'PREPAY'],
+ 'UsedIncrementBytes' => ['description' => '当月付费增量备份流量,单位为字节(B)。', 'type' => 'integer', 'format' => 'int64', 'example' => '9406734'],
],
],
],
@@ -2830,11 +1635,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看备份计划计费信息',
@@ -2843,27 +1644,13 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-08-18T07:56:56.000Z',
- 'description' => '响应参数发生变更',
- ],
- [
- 'createdAt' => '2022-07-28T06:48:28.000Z',
- 'description' => '响应参数发生变更',
- ],
- [
- 'createdAt' => '2022-07-12T03:54:06.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-08-18T07:56:56.000Z', 'description' => '响应参数发生变更'],
+ ['createdAt' => '2022-07-28T06:48:28.000Z', 'description' => '响应参数发生变更'],
+ ['createdAt' => '2022-07-12T03:54:06.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeBackupPlanBilling',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupPlanBilling'],
],
],
'ramActions' => [
@@ -2874,12 +1661,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -2888,14 +1670,8 @@
],
'DescribeBackupPlanList' => [
'summary' => '该接口用于查看一个DBS备份计划。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2906,102 +1682,78 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,支持查询多个备份计划,英文逗号“,”分隔。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbstooi01exXXXX',
- ],
+ 'schema' => ['description' => '备份计划ID,支持查询多个备份计划,英文逗号“,”分隔。', 'type' => 'string', 'required' => false, 'example' => 'dbstooi01exXXXX'],
],
[
'name' => 'Region',
'in' => 'query',
- 'schema' => [
- 'description' => 'DBS地域,可通过调用[DescribeRegions](~~2869853~~)接口查看DBS支持地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => 'DBS地域,可通过调用[DescribeRegions](~~2869853~~)接口查看DBS支持地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的记录数,取值为1~100。'."\n"
- ."\n"
- .'> 默认为**30**。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => '每页的记录数,取值为1~100。'."\n"
+ ."\n"
+ .'> 默认为**30**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
],
[
'name' => 'PageNum',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,大于等于0且不超过Integer的最大值,默认值为:0。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码,大于等于0且不超过Integer的最大值,默认值为:0。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'BackupPlanName',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test123',
- ],
+ 'schema' => ['description' => '备份计划名称。', 'type' => 'string', 'required' => false, 'example' => 'test123'],
],
[
'name' => 'BackupPlanStatus',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划状态,取值:'."\n"
- ."\n"
- .'* **wait**:未配置'."\n"
- .'* **init**:未启动(预检查失败)'."\n"
- .'* **running**:运行中'."\n"
- .'* **stop**:失败'."\n"
- .'* **pause**:暂停'."\n"
- .'* **locked**:锁定中'."\n"
- .'* **check_pass**:预检查通过',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'wait',
- ],
+ 'schema' => ['description' => '备份计划状态,取值:'."\n"
+ ."\n"
+ .'* **wait**:未配置'."\n"
+ .'* **init**:未启动(预检查失败)'."\n"
+ .'* **running**:运行中'."\n"
+ .'* **stop**:失败'."\n"
+ .'* **pause**:暂停'."\n"
+ .'* **locked**:锁定中'."\n"
+ .'* **check_pass**:预检查通过', 'type' => 'string', 'required' => false, 'example' => 'wait'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ASDASDASDSADASFCZXVZ',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ASDASDASDSADASFCZXVZ'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'description' => '资源组ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-aekzecovzti****',
- ],
+ 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzecovzti****'],
+ ],
+ [
+ 'name' => 'ShowStorageStrategyInfo',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否展示存储策略信息', 'description' => '是否展示存储策略信息', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'true'],
+ ],
+ [
+ 'name' => 'ShowBackupStrategyInfo',
+ 'in' => 'query',
+ 'schema' => ['description' => '显示备份策略信息', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
+ ],
+ [
+ 'name' => 'ShowRecoverTimeRange',
+ 'in' => 'query',
+ 'schema' => ['description' => '显示恢复时间范围', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
+ ],
+ [
+ 'name' => 'BackupMethod',
+ 'in' => 'query',
+ 'schema' => ['title' => '备份方式', 'description' => '备份方式', 'type' => 'string', 'required' => false, 'example' => 'logical'],
],
],
'responses' => [
@@ -3010,56 +1762,15 @@
'description' => '返回参数详情如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'PageNum' => [
- 'description' => '页码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'InvalidParameterValid',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'TotalPages' => [
- 'description' => '总页数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4',
- ],
- 'TotalElements' => [
- 'description' => '总备份计划数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'PageSize' => [
- 'description' => '每页的记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'PageNum' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InvalidParameterValid'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
+ 'TotalElements' => ['description' => '总备份计划数。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'PageSize' => ['description' => '每页的记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '30'],
'Items' => [
'type' => 'object',
'itemNode' => true,
@@ -3071,243 +1782,102 @@
'description' => '返回值。',
'type' => 'object',
'properties' => [
- 'CrossRoleName' => [
- 'description' => '跨阿里云账号备份的RAM角色名称。',
- 'type' => 'string',
- 'example' => 'test123',
- ],
- 'SourceEndpointInstanceType' => [
- 'description' => '数据库所在位置,返回值如下:'."\n"
- .'- **rds**'."\n"
- .'- **ecs**'."\n"
- .'- **express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
- .'- **agent**:通过备份网关接入的数据库'."\n"
- .'- **dds**:云MongoDB'."\n"
- .'- **other**:通过IP:Port直连的数据库',
- 'type' => 'string',
- 'example' => 'rds',
- ],
- 'BackupSetDownloadDir' => [
- 'description' => '备份集下载服务器目录。',
- 'type' => 'string',
- 'example' => '*/test/test123',
- ],
- 'SourceEndpointIpPort' => [
- 'description' => '数据库连接地址。',
- 'type' => 'string',
- 'example' => '100.*.*.10:33204',
- ],
- 'CrossAliyunId' => [
- 'description' => '跨阿里云账号备份的uid。',
- 'type' => 'string',
- 'example' => '2xxx7778xxxxxxxxxx',
- ],
- 'DuplicationArchivePeriod' => [
- 'description' => '转为归档冷备存储时间(天)。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '365',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi01eXXXX',
- ],
- 'EndTimestampForRestore' => [
- 'description' => '数据库可恢复时间段的结束时间,格式为时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1554560477000',
- ],
- 'BackupPlanStatus' => [
- 'description' => '备份计划状态,返回值如下:'."\n"
- .'- **wait**:未配置'."\n"
- .'- **init**:未启动(预检查失败)'."\n"
- .'- **running**:运行中'."\n"
- .'- **stop**:失败'."\n"
- .'- **pause**:暂停'."\n"
- .'- **locked**:锁定中'."\n"
- .'- **check_pass**:预检查通过',
- 'type' => 'string',
- 'example' => 'init',
- ],
- 'BackupSetDownloadFullDataFormat' => [
- 'description' => '备份集下载全量数据格式:'."\n"
- .'* **Native**'."\n"
- .'* **SQL**'."\n"
- .'* **CSV**'."\n"
- .'* **JSON**',
- 'type' => 'string',
- 'example' => 'SQL',
- ],
- 'BackupRetentionPeriod' => [
- 'description' => '备份数据保留时间,返回值:0~1825(天)。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '365',
- ],
- 'OSSBucketRegion' => [
- 'description' => 'OSS Bucket地域。',
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- 'SourceEndpointOracleSID' => [
- 'description' => 'Oracle SID名称。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'BackupStorageType' => [
- 'description' => '内置存储类型,返回值如下:'."\n"
- ."\n"
- .'- 空(默认):备份数据存储在用户OSS上。'."\n"
- .'- system :备份数据存储在DBS的内置OSS上。',
- 'type' => 'string',
- 'example' => 'system',
- ],
- 'BackupMethod' => [
- 'description' => '备份方式,返回值如下:'."\n"
- .'- **logical**:逻辑备份'."\n"
- .'- **physical**:物理备份'."\n"
- .'- **duplication**:转储备份',
- 'type' => 'string',
- 'example' => 'logical',
- ],
- 'SourceEndpointRegion' => [
- 'description' => '数据库地域。',
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- 'BackupPeriod' => [
- 'description' => '全量备份周期,返回值如下:'."\n"
- .'- **Monday**:周一'."\n"
- .'- **Tuesday**:周二'."\n"
- .'- **Wednesday**:周三'."\n"
- .'- **Thursday**:周四'."\n"
- .'- **Friday**:周五'."\n"
- .'- **Saturday**:周六'."\n"
- .'- **Sunday**:周日',
- 'type' => 'string',
- 'example' => 'Monday',
- ],
- 'SourceEndpointDatabaseName' => [
- 'description' => '数据库名称。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'BackupSetDownloadGatewayId' => [
- 'description' => '备份集下载备份网关ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '123123',
- ],
- 'BackupPlanCreateTime' => [
- 'description' => '备份计划创建时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1582527713000',
- ],
- 'InstanceClass' => [
- 'description' => '规格,返回值如下:'."\n"
- ."\n"
- .'- **micro**:入门型'."\n"
- .'- **small**:低配型'."\n"
- .'- **medium**:中配型'."\n"
- .'- **large**:高配型'."\n"
- .'- **xlarge**:高配型(无流量上限)',
- 'type' => 'string',
- 'example' => 'micro',
- ],
- 'BackupSetDownloadTargetType' => [
- 'description' => '备份集下载目标类型。'."\n"
- ."\n"
- .'> 唯一取值:agent,表示已安装备份网关。',
- 'type' => 'string',
- 'example' => 'agent',
- ],
- 'DuplicationInfrequentAccessPeriod' => [
- 'description' => '转为低频访问存储时间(天)。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '180',
- ],
- 'BackupStartTime' => [
- 'description' => '全量备份开始时间,格式为HH:mm。',
- 'type' => 'string',
- 'example' => '14:22',
- ],
- 'ErrMessage' => [
- 'description' => '预检查任务异常信息。',
- 'type' => 'string',
- 'example' => ' can not connect to oracle instance orcl with user dbs',
- ],
- 'BackupObjects' => [
- 'description' => '备份对象。',
- 'type' => 'string',
- 'example' => '[ { \\"DBName\\":\\"待备份库名\\", \\"SchemaName\\":\\"待备份 Schema 名\\", \\"TableIncludes\\":[{ \\"TableName\\":\\"待备份表表名\\" }], \\"TableExcludes\\":[{ \\"TableName\\":\\"待备份库名不需要备份表的表名\\" }] } ]',
- ],
- 'BeginTimestampForRestore' => [
- 'description' => '可数据库恢复时间段的开始时间,返回值:1554560477000。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1554560477000',
- ],
- 'SourceEndpointInstanceID' => [
- 'description' => '数据库实例ID。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'OpenBackupSetAutoDownload' => [
- 'description' => '是否开启自动备份集下载功能。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'BackupPlanName' => [
- 'description' => '备份计划名称。',
- 'type' => 'string',
- 'example' => 'dbstooi01e****',
- ],
- 'OSSBucketName' => [
- 'description' => 'OSS Bucket名称。',
- 'type' => 'string',
- 'example' => 'dbs-backup-1857XXXXX489',
- ],
- 'BackupGatewayId' => [
- 'description' => '备份网关ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '827362187368736',
- ],
- 'SourceEndpointUserName' => [
- 'description' => '数据库账号。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'BackupSetDownloadIncrementDataFormat' => [
- 'description' => '备份集下载全量数据格式:'."\n"
- .'* **Native**'."\n"
- .'* **SQL**'."\n"
- .'* **CSV**'."\n"
- .'* **JSON**',
- 'type' => 'string',
- 'example' => 'SQL',
- ],
- 'EnableBackupLog' => [
- 'description' => '是否开启增量日志备份,返回值如下:'."\n"
- .'- **true**:开启'."\n"
- .'- **false**:关闭',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ResourceGroupId' => [
- 'description' => '资源组ID。',
- 'type' => 'string',
- 'example' => 'rg-aekzecovzti****',
- ],
- 'DatabaseType' => [
- 'description' => '数据库类型。',
- 'type' => 'string',
- 'example' => 'MySQL',
- ],
+ 'CrossRoleName' => ['description' => '跨阿里云账号备份的RAM角色名称。', 'type' => 'string', 'example' => 'test123'],
+ 'SourceEndpointInstanceType' => ['description' => '数据库所在位置,返回值如下:'."\n"
+ .'- **rds**'."\n"
+ .'- **ecs**'."\n"
+ .'- **express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
+ .'- **agent**:通过备份网关接入的数据库'."\n"
+ .'- **dds**:云MongoDB'."\n"
+ .'- **other**:通过IP:Port直连的数据库', 'type' => 'string', 'example' => 'rds'],
+ 'BackupSetDownloadDir' => ['description' => '备份集下载服务器目录。', 'type' => 'string', 'example' => '*/test/test123'],
+ 'SourceEndpointIpPort' => ['description' => '数据库连接地址。', 'type' => 'string', 'example' => '100.*.*.10:33204'],
+ 'CrossAliyunId' => ['description' => '跨阿里云账号备份的uid。', 'type' => 'string', 'example' => '2xxx7778xxxxxxxxxx'],
+ 'DuplicationArchivePeriod' => ['description' => '转为归档冷备存储时间(天)。', 'type' => 'integer', 'format' => 'int32', 'example' => '365'],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi01eXXXX'],
+ 'EndTimestampForRestore' => ['description' => '数据库可恢复时间段的结束时间,格式为时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1554560477000'],
+ 'BackupPlanStatus' => ['description' => '备份计划状态,返回值如下:'."\n"
+ .'- **wait**:未配置'."\n"
+ .'- **init**:未启动(预检查失败)'."\n"
+ .'- **running**:运行中'."\n"
+ .'- **stop**:失败'."\n"
+ .'- **pause**:暂停'."\n"
+ .'- **locked**:锁定中'."\n"
+ .'- **check_pass**:预检查通过', 'type' => 'string', 'example' => 'init'],
+ 'BackupSetDownloadFullDataFormat' => ['description' => '备份集下载全量数据格式:'."\n"
+ .'* **Native**'."\n"
+ .'* **SQL**'."\n"
+ .'* **CSV**'."\n"
+ .'* **JSON**', 'type' => 'string', 'example' => 'SQL'],
+ 'BackupRetentionPeriod' => ['description' => '备份数据保留时间,返回值:0~1825(天)。', 'type' => 'integer', 'format' => 'int32', 'example' => '365'],
+ 'OSSBucketRegion' => ['description' => 'OSS Bucket地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'SourceEndpointOracleSID' => ['description' => 'Oracle SID名称。', 'type' => 'string', 'example' => 'test'],
+ 'BackupStorageType' => ['description' => '内置存储类型,返回值如下:'."\n"
+ ."\n"
+ .'- 空(默认):备份数据存储在用户OSS上。'."\n"
+ .'- system :备份数据存储在DBS的内置OSS上。', 'type' => 'string', 'example' => 'system'],
+ 'BackupMethod' => ['description' => '备份方式,返回值如下:'."\n"
+ .'- **logical**:逻辑备份'."\n"
+ .'- **physical**:物理备份'."\n"
+ .'- **duplication**:转储备份', 'type' => 'string', 'example' => 'logical'],
+ 'SourceEndpointRegion' => ['description' => '数据库地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'BackupPeriod' => ['description' => '全量备份周期,返回值如下:'."\n"
+ .'- **Monday**:周一'."\n"
+ .'- **Tuesday**:周二'."\n"
+ .'- **Wednesday**:周三'."\n"
+ .'- **Thursday**:周四'."\n"
+ .'- **Friday**:周五'."\n"
+ .'- **Saturday**:周六'."\n"
+ .'- **Sunday**:周日', 'type' => 'string', 'example' => 'Monday'],
+ 'SourceEndpointDatabaseName' => ['description' => '数据库名称。', 'type' => 'string', 'example' => 'test'],
+ 'BackupSetDownloadGatewayId' => ['description' => '备份集下载备份网关ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '123123'],
+ 'BackupPlanCreateTime' => ['description' => '备份计划创建时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1582527713000'],
+ 'InstanceClass' => ['description' => '规格,返回值如下:'."\n"
+ ."\n"
+ .'- **micro**:入门型'."\n"
+ .'- **small**:低配型'."\n"
+ .'- **medium**:中配型'."\n"
+ .'- **large**:高配型'."\n"
+ .'- **xlarge**:高配型(无流量上限)', 'type' => 'string', 'example' => 'micro'],
+ 'BackupSetDownloadTargetType' => ['description' => '备份集下载目标类型。'."\n"
+ ."\n"
+ .'> 唯一取值:agent,表示已安装备份网关。', 'type' => 'string', 'example' => 'agent'],
+ 'DuplicationInfrequentAccessPeriod' => ['description' => '转为低频访问存储时间(天)。', 'type' => 'integer', 'format' => 'int32', 'example' => '180'],
+ 'BackupStartTime' => ['description' => '全量备份开始时间,格式为HH:mm。', 'type' => 'string', 'example' => '14:22'],
+ 'ErrMessage' => ['description' => '预检查任务异常信息。', 'type' => 'string', 'example' => ' can not connect to oracle instance orcl with user dbs'],
+ 'BackupObjects' => ['description' => '备份对象。', 'type' => 'string', 'example' => '[ { \\"DBName\\":\\"待备份库名\\", \\"SchemaName\\":\\"待备份 Schema 名\\", \\"TableIncludes\\":[{ \\"TableName\\":\\"待备份表表名\\" }], \\"TableExcludes\\":[{ \\"TableName\\":\\"待备份库名不需要备份表的表名\\" }] } ]'],
+ 'BeginTimestampForRestore' => ['description' => '可数据库恢复时间段的开始时间,返回值:1554560477000。', 'type' => 'integer', 'format' => 'int64', 'example' => '1554560477000'],
+ 'SourceEndpointInstanceID' => ['description' => '数据库实例ID。', 'type' => 'string', 'example' => 'test'],
+ 'OpenBackupSetAutoDownload' => ['description' => '是否开启自动备份集下载功能。', 'type' => 'boolean', 'example' => 'true'],
+ 'BackupPlanName' => ['description' => '备份计划名称。', 'type' => 'string', 'example' => 'dbstooi01e****'],
+ 'OSSBucketName' => ['description' => 'OSS Bucket名称。', 'type' => 'string', 'example' => 'dbs-backup-1857XXXXX489'],
+ 'BackupGatewayId' => ['description' => '备份网关ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '827362187368736'],
+ 'SourceEndpointUserName' => ['description' => '数据库账号。', 'type' => 'string', 'example' => 'test'],
+ 'BackupSetDownloadIncrementDataFormat' => ['description' => '备份集下载全量数据格式:'."\n"
+ .'* **Native**'."\n"
+ .'* **SQL**'."\n"
+ .'* **CSV**'."\n"
+ .'* **JSON**', 'type' => 'string', 'example' => 'SQL'],
+ 'EnableBackupLog' => ['description' => '是否开启增量日志备份,返回值如下:'."\n"
+ .'- **true**:开启'."\n"
+ .'- **false**:关闭', 'type' => 'boolean', 'example' => 'true'],
+ 'ResourceGroupId' => ['description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-aekzecovzti****'],
+ 'DatabaseType' => ['description' => '数据库类型。', 'type' => 'string', 'example' => 'MySQL'],
+ 'BackupPlanRegion' => ['title' => '备份计划地域', 'description' => '备份计划地域', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'SourceEndpointHost' => ['title' => '备份源连接地址', 'description' => '备份源连接地址', 'type' => 'string', 'example' => '127.0.0.1'],
+ 'InstanceChargeType' => ['title' => '备份计划实例购买费用类型', 'description' => '备份计划实例购买费用类型', 'type' => 'string', 'example' => 'PREPAY'],
+ 'InstanceExpiredTimestamp' => ['title' => '备份计划实例到期时间', 'description' => '备份计划实例到期时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1764051253000'],
+ 'SourceEndpointEnableSsl' => ['title' => '备份源数据库是否开启SSL安全连接'."\n", 'description' => '备份源数据库是否开启SSL安全连接'."\n", 'type' => 'string', 'example' => 'true'],
+ 'StorageEncryptMethod' => ['title' => '备份计划存储加密方式', 'description' => '备份计划存储加密方式', 'type' => 'string', 'example' => 'encrypted'],
+ 'SourceEndpointPort' => ['title' => '备份源数据库端口', 'description' => '备份源数据库端口', 'type' => 'string', 'example' => '3306'],
+ 'IncrementBackupRetentionPeriod' => ['title' => '增量备份数据保留时间', 'description' => '增量备份数据保留时间', 'type' => 'string', 'example' => '365'],
+ 'IncrementDuplicationInfrequentAccessPeriod' => ['title' => '增量备份数据转为低频访问存储时间', 'description' => '增量备份数据转为低频访问存储时间', 'type' => 'string', 'example' => '365'],
+ 'IncrementDuplicationArchivePeriod' => ['title' => '增量备份数据转为归档冷备存储时间', 'description' => '增量备份数据转为归档冷备存储时间', 'type' => 'string', 'example' => '365'],
+ 'LogBackupRetentionPeriod' => ['title' => '日志备份数据保留时间', 'description' => '日志备份数据保留时间', 'type' => 'string', 'example' => '365'],
+ 'LogDuplicationInfrequentAccessPeriod' => ['title' => '日志备份数据转为低频访问存储时间', 'description' => '日志备份数据转为低频访问存储时间', 'type' => 'string', 'example' => '365'],
+ 'LogDuplicationArchivePeriod' => ['title' => '日志备份数据转为归档冷备存储时间', 'description' => '日志备份数据转为归档冷备存储时间', 'type' => 'string', 'example' => '365'],
+ 'BackupGatewayIdentifier' => ['title' => '备份网关唯一标识码', 'description' => '备份网关唯一标识码', 'type' => 'string', 'example' => 'TESTGATEWAY'],
+ 'EnableMysqlPhysicalBackupBinLog' => ['title' => '是否开启MySQL物理备份日志备份', 'description' => '是否开启MySQL物理备份日志备份', 'type' => 'boolean', 'example' => 'false'],
],
],
],
@@ -3320,44 +1890,24 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 1,\\n \\"RequestId\\": \\"4F1888AC-1138-4995-B9FE-D2734F61C058\\",\\n \\"ErrCode\\": \\"InvalidParameterValid\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"TotalPages\\": 4,\\n \\"TotalElements\\": 100,\\n \\"PageSize\\": 30,\\n \\"Items\\": {\\n \\"BackupPlanDetail\\": [\\n {\\n \\"CrossRoleName\\": \\"test123\\",\\n \\"SourceEndpointInstanceType\\": \\"rds\\",\\n \\"BackupSetDownloadDir\\": \\"*/test/test123\\",\\n \\"SourceEndpointIpPort\\": \\"100.*.*.10:33204\\",\\n \\"CrossAliyunId\\": \\"2xxx7778xxxxxxxxxx\\",\\n \\"DuplicationArchivePeriod\\": 365,\\n \\"BackupPlanId\\": \\"dbstooi01eXXXX\\",\\n \\"EndTimestampForRestore\\": 1554560477000,\\n \\"BackupPlanStatus\\": \\"init\\",\\n \\"BackupSetDownloadFullDataFormat\\": \\"SQL\\",\\n \\"BackupRetentionPeriod\\": 365,\\n \\"OSSBucketRegion\\": \\"cn-hangzhou\\",\\n \\"SourceEndpointOracleSID\\": \\"test\\",\\n \\"BackupStorageType\\": \\"system\\",\\n \\"BackupMethod\\": \\"logical\\",\\n \\"SourceEndpointRegion\\": \\"cn-hangzhou\\",\\n \\"BackupPeriod\\": \\"Monday\\",\\n \\"SourceEndpointDatabaseName\\": \\"test\\",\\n \\"BackupSetDownloadGatewayId\\": 123123,\\n \\"BackupPlanCreateTime\\": 1582527713000,\\n \\"InstanceClass\\": \\"micro\\",\\n \\"BackupSetDownloadTargetType\\": \\"agent\\",\\n \\"DuplicationInfrequentAccessPeriod\\": 180,\\n \\"BackupStartTime\\": \\"14:22\\",\\n \\"ErrMessage\\": \\" can not connect to oracle instance orcl with user dbs\\",\\n \\"BackupObjects\\": \\"[ { \\\\\\\\\\\\\\"DBName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"待备份库名\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"SchemaName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"待备份 Schema 名\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"TableIncludes\\\\\\\\\\\\\\":[{ \\\\\\\\\\\\\\"TableName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"待备份表表名\\\\\\\\\\\\\\" }], \\\\\\\\\\\\\\"TableExcludes\\\\\\\\\\\\\\":[{ \\\\\\\\\\\\\\"TableName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"待备份库名不需要备份表的表名\\\\\\\\\\\\\\" }] } ]\\",\\n \\"BeginTimestampForRestore\\": 1554560477000,\\n \\"SourceEndpointInstanceID\\": \\"test\\",\\n \\"OpenBackupSetAutoDownload\\": true,\\n \\"BackupPlanName\\": \\"dbstooi01e****\\",\\n \\"OSSBucketName\\": \\"dbs-backup-1857XXXXX489\\",\\n \\"BackupGatewayId\\": 827362187368736,\\n \\"SourceEndpointUserName\\": \\"test\\",\\n \\"BackupSetDownloadIncrementDataFormat\\": \\"SQL\\",\\n \\"EnableBackupLog\\": true,\\n \\"ResourceGroupId\\": \\"rg-aekzecovzti****\\",\\n \\"DatabaseType\\": \\"MySQL\\",\\n \\"BackupPlanRegion\\": \\"cn-beijing\\",\\n \\"SourceEndpointHost\\": \\"127.0.0.1\\",\\n \\"InstanceChargeType\\": \\"PREPAY\\",\\n \\"InstanceExpiredTimestamp\\": 1764051253000,\\n \\"SourceEndpointEnableSsl\\": \\"true\\",\\n \\"StorageEncryptMethod\\": \\"encrypted\\",\\n \\"SourceEndpointPort\\": \\"3306\\",\\n \\"IncrementBackupRetentionPeriod\\": \\"365\\",\\n \\"IncrementDuplicationInfrequentAccessPeriod\\": \\"365\\",\\n \\"IncrementDuplicationArchivePeriod\\": \\"365\\",\\n \\"LogBackupRetentionPeriod\\": \\"365\\",\\n \\"LogDuplicationInfrequentAccessPeriod\\": \\"365\\",\\n \\"LogDuplicationArchivePeriod\\": \\"365\\",\\n \\"BackupGatewayIdentifier\\": \\"TESTGATEWAY\\",\\n \\"EnableMysqlPhysicalBackupBinLog\\": false\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeBackupPlanListResponse>\\n <PageSize>30</PageSize>\\n <RequestId>4F1888AC-1138-4995-B9FE-D2734F61C058</RequestId>\\n <PageNum>0</PageNum>\\n <HttpStatusCode>200</HttpStatusCode>\\n <TotalElements>1</TotalElements>\\n <Items>\\n <BackupPlanDetail>\\n <BackupPlanName>dbXXXXX7ltj</BackupPlanName>\\n <BackupMethod>logical</BackupMethod>\\n <BackupPlanCreateTime>1583000</BackupPlanCreateTime>\\n <BackupPeriod>MONDAY</BackupPeriod>\\n <BackupObjects>[ { \\"DBName\\":\\"Database name to be backed up\\", \\"SchemaName\\":\\"Schema name to be backed up\\", \\"TableIncludes\\":[{ \\"TableName\\":\\"Table name of the table to be backed up\\" }], \\"TableExcludes\\":[{ \\"TableName\\":\\"The name of the database to be backed up does not need the name of the table to be backed up\\" }] } ]</BackupObjects>\\n <SourceEndpointInstanceID>rm-bp1p8XXXXXv8pxe</SourceEndpointInstanceID>\\n <InstanceClass>medium</InstanceClass>\\n <OSSBucketRegion>cn-hangzhou</OSSBucketRegion>\\n <SourceEndpointRegion>cn-hangzhou</SourceEndpointRegion>\\n <SourceEndpointIpPort>100.X.X.10:33204</SourceEndpointIpPort>\\n <DuplicationArchivePeriod>365</DuplicationArchivePeriod>\\n <OSSBucketName>dbs-backup-1857XXXXX489</OSSBucketName>\\n <BackupPlanStatus>init</BackupPlanStatus>\\n <BackupStartTime>14:22</BackupStartTime>\\n <EnableBackupLog>true</EnableBackupLog>\\n <BackupPlanId>dbXXXXXx7ltj</BackupPlanId>\\n <BackupRetentionPeriod>730</BackupRetentionPeriod>\\n <SourceEndpointInstanceType>rds</SourceEndpointInstanceType>\\n <SourceEndpointUserName>test</SourceEndpointUserName>\\n <DuplicationInfrequentAccessPeriod>180</DuplicationInfrequentAccessPeriod>\\n </BackupPlanDetail>\\n </Items>\\n <TotalPages>1</TotalPages>\\n <Success>true</Success>\\n</DescribeBackupPlanListResponse>","errorExample":""}]',
'title' => '查看备份计划',
'description' => '请在使用本接口前,提前开通OSS服务,更多信息请参见[对象存储OSS](~~31817~~)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2023-03-28T07:35:02.000Z',
- 'description' => '响应参数发生变更',
- ],
- [
- 'createdAt' => '2022-08-12T03:51:12.000Z',
- 'description' => '响应参数发生变更',
- ],
- [
- 'createdAt' => '2022-07-28T06:48:28.000Z',
- 'description' => '请求参数发生变更、响应参数发生变更',
- ],
- [
- 'createdAt' => '2022-07-12T03:54:06.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2023-03-28T07:35:02.000Z', 'description' => '响应参数发生变更'],
+ ['createdAt' => '2022-08-12T03:51:12.000Z', 'description' => '响应参数发生变更'],
+ ['createdAt' => '2022-07-28T06:48:28.000Z', 'description' => '请求参数发生变更、响应参数发生变更'],
+ ['createdAt' => '2022-07-12T03:54:06.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '50',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'DescribeBackupPlanList',
- ],
+ ['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeBackupPlanList'],
],
],
'ramActions' => [
@@ -3368,28 +1918,16 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 1,\\n \\"RequestId\\": \\"4F1888AC-1138-4995-B9FE-D2734F61C058\\",\\n \\"ErrCode\\": \\"InvalidParameterValid\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"TotalPages\\": 4,\\n \\"TotalElements\\": 100,\\n \\"PageSize\\": 30,\\n \\"Items\\": {\\n \\"BackupPlanDetail\\": [\\n {\\n \\"CrossRoleName\\": \\"test123\\",\\n \\"SourceEndpointInstanceType\\": \\"rds\\",\\n \\"BackupSetDownloadDir\\": \\"*/test/test123\\",\\n \\"SourceEndpointIpPort\\": \\"100.*.*.10:33204\\",\\n \\"CrossAliyunId\\": \\"2xxx7778xxxxxxxxxx\\",\\n \\"DuplicationArchivePeriod\\": 365,\\n \\"BackupPlanId\\": \\"dbstooi01eXXXX\\",\\n \\"EndTimestampForRestore\\": 1554560477000,\\n \\"BackupPlanStatus\\": \\"init\\",\\n \\"BackupSetDownloadFullDataFormat\\": \\"SQL\\",\\n \\"BackupRetentionPeriod\\": 365,\\n \\"OSSBucketRegion\\": \\"cn-hangzhou\\",\\n \\"SourceEndpointOracleSID\\": \\"test\\",\\n \\"BackupStorageType\\": \\"system\\",\\n \\"BackupMethod\\": \\"logical\\",\\n \\"SourceEndpointRegion\\": \\"cn-hangzhou\\",\\n \\"BackupPeriod\\": \\"Monday\\",\\n \\"SourceEndpointDatabaseName\\": \\"test\\",\\n \\"BackupSetDownloadGatewayId\\": 123123,\\n \\"BackupPlanCreateTime\\": 1582527713000,\\n \\"InstanceClass\\": \\"micro\\",\\n \\"BackupSetDownloadTargetType\\": \\"agent\\",\\n \\"DuplicationInfrequentAccessPeriod\\": 180,\\n \\"BackupStartTime\\": \\"14:22\\",\\n \\"ErrMessage\\": \\" can not connect to oracle instance orcl with user dbs\\",\\n \\"BackupObjects\\": \\"[ { \\\\\\\\\\\\\\"DBName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"待备份库名\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"SchemaName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"待备份 Schema 名\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"TableIncludes\\\\\\\\\\\\\\":[{ \\\\\\\\\\\\\\"TableName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"待备份表表名\\\\\\\\\\\\\\" }], \\\\\\\\\\\\\\"TableExcludes\\\\\\\\\\\\\\":[{ \\\\\\\\\\\\\\"TableName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"待备份库名不需要备份表的表名\\\\\\\\\\\\\\" }] } ]\\",\\n \\"BeginTimestampForRestore\\": 1554560477000,\\n \\"SourceEndpointInstanceID\\": \\"test\\",\\n \\"OpenBackupSetAutoDownload\\": true,\\n \\"BackupPlanName\\": \\"dbstooi01e****\\",\\n \\"OSSBucketName\\": \\"dbs-backup-1857XXXXX489\\",\\n \\"BackupGatewayId\\": 827362187368736,\\n \\"SourceEndpointUserName\\": \\"test\\",\\n \\"BackupSetDownloadIncrementDataFormat\\": \\"SQL\\",\\n \\"EnableBackupLog\\": true,\\n \\"ResourceGroupId\\": \\"rg-aekzecovzti****\\",\\n \\"DatabaseType\\": \\"MySQL\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeBackupPlanListResponse>\\n <PageSize>30</PageSize>\\n <RequestId>4F1888AC-1138-4995-B9FE-D2734F61C058</RequestId>\\n <PageNum>0</PageNum>\\n <HttpStatusCode>200</HttpStatusCode>\\n <TotalElements>1</TotalElements>\\n <Items>\\n <BackupPlanDetail>\\n <BackupPlanName>dbXXXXX7ltj</BackupPlanName>\\n <BackupMethod>logical</BackupMethod>\\n <BackupPlanCreateTime>1583000</BackupPlanCreateTime>\\n <BackupPeriod>MONDAY</BackupPeriod>\\n <BackupObjects>[ { \\"DBName\\":\\"Database name to be backed up\\", \\"SchemaName\\":\\"Schema name to be backed up\\", \\"TableIncludes\\":[{ \\"TableName\\":\\"Table name of the table to be backed up\\" }], \\"TableExcludes\\":[{ \\"TableName\\":\\"The name of the database to be backed up does not need the name of the table to be backed up\\" }] } ]</BackupObjects>\\n <SourceEndpointInstanceID>rm-bp1p8XXXXXv8pxe</SourceEndpointInstanceID>\\n <InstanceClass>medium</InstanceClass>\\n <OSSBucketRegion>cn-hangzhou</OSSBucketRegion>\\n <SourceEndpointRegion>cn-hangzhou</SourceEndpointRegion>\\n <SourceEndpointIpPort>100.X.X.10:33204</SourceEndpointIpPort>\\n <DuplicationArchivePeriod>365</DuplicationArchivePeriod>\\n <OSSBucketName>dbs-backup-1857XXXXX489</OSSBucketName>\\n <BackupPlanStatus>init</BackupPlanStatus>\\n <BackupStartTime>14:22</BackupStartTime>\\n <EnableBackupLog>true</EnableBackupLog>\\n <BackupPlanId>dbXXXXXx7ltj</BackupPlanId>\\n <BackupRetentionPeriod>730</BackupRetentionPeriod>\\n <SourceEndpointInstanceType>rds</SourceEndpointInstanceType>\\n <SourceEndpointUserName>test</SourceEndpointUserName>\\n <DuplicationInfrequentAccessPeriod>180</DuplicationInfrequentAccessPeriod>\\n </BackupPlanDetail>\\n </Items>\\n <TotalPages>1</TotalPages>\\n <Success>true</Success>\\n</DescribeBackupPlanListResponse>","errorExample":""}]',
],
'DescribeBackupSetDownloadTaskList' => [
'summary' => '该接口用于查看DBS备份集下载列表。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -3400,69 +1938,40 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **BackupPlanId**或**BackupSetDownloadTaskId**任选其一作为请求参数必填项。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbsqhnuhyw3****',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **BackupPlanId**或**BackupSetDownloadTaskId**任选其一作为请求参数必填项。', 'type' => 'string', 'required' => false, 'example' => 'dbsqhnuhyw3****'],
],
[
'name' => 'BackupSetDownloadTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集下载任务ID。'."\n"
- ."\n"
- .'- 全量备份:可通过调用[CreateFullBackupSetDownload](~~2869842~~)接口获取该参数的值。'."\n"
- .'- 增量备份:可通过调用[CreateIncrementBackupSetDownload](~~2869843~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'urxgrxt7****',
- ],
+ 'schema' => ['description' => '备份集下载任务ID。'."\n"
+ ."\n"
+ .'- 全量备份:可通过调用[CreateFullBackupSetDownload](~~2869842~~)接口获取该参数的值。'."\n"
+ .'- 增量备份:可通过调用[CreateIncrementBackupSetDownload](~~2869843~~)接口获取该参数的值。', 'type' => 'string', 'required' => false, 'example' => 'urxgrxt7****'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的记录数,取值30、50、100。'."\n"
- ."\n"
- .'> 默认每页记录数为30。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => '每页的记录数,取值30、50、100。'."\n"
+ ."\n"
+ .'> 默认每页记录数为30。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
],
[
'name' => 'PageNum',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,大于等于0且不超过Integer的最大值,默认值为0。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码,大于等于0且不超过Integer的最大值,默认值为0。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '输入任意值,用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzXXXXXX',
- ],
+ 'schema' => ['description' => '输入任意值,用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzXXXXXX'],
],
],
'responses' => [
@@ -3471,58 +1980,17 @@
'description' => '返回参数详情信息。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'PageNum' => [
- 'description' => '页码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '6DC3D286-E0E6-5988-A558-2184984B****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'TotalPages' => [
- 'description' => '总页数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'TotalElements' => [
- 'description' => '总备份集下载记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '每页的记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'PageNum' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6DC3D286-E0E6-5988-A558-2184984B****'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'TotalElements' => ['description' => '总备份集下载记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'PageSize' => ['description' => '每页的记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '30'],
'Items' => [
'type' => 'object',
'itemNode' => true,
@@ -3534,133 +2002,53 @@
'description' => '备份计划详情。',
'type' => 'object',
'properties' => [
- 'BackupSetDownloadStatus' => [
- 'description' => '备份集下载状态,返回值如下:'."\n"
- ."\n"
- .'- **checking**:预检查中'."\n"
- .'- **init**:预检查失败(未启动)'."\n"
- .'- **check_pass**:预检查通过'."\n"
- .'- **pause**:暂停'."\n"
- .'- **schedule**:等待调度'."\n"
- .'- **running**:运行中'."\n"
- .'- **stop**:失败'."\n"
- .'- **finish**:完成',
- 'type' => 'string',
- 'example' => 'finish',
- ],
- 'BackupSetDataSize' => [
- 'description' => '备份集数据大小。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '237837',
- ],
- 'BackupSetDownloadTargetType' => [
- 'description' => '备份集下载目标类型。'."\n"
- ."\n"
- .'> 仅自动下载显示,agent表示已安装备份网关。',
- 'type' => 'string',
- 'example' => '无',
- ],
- 'BackupSetDownloadDir' => [
- 'description' => '备份集下载服务器目录。'."\n"
- ."\n"
- .'> 仅自动下载有值。',
- 'type' => 'string',
- 'example' => '无',
- ],
- 'ErrMessage' => [
- 'description' => '异常信息。',
- 'type' => 'string',
- 'example' => 'java.lang.IndexOutOfBoundsException.',
- ],
- 'BackupSetDownloadCreateTime' => [
- 'description' => '创建时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1642044001000',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'qhnuhyw3****',
- ],
- 'BackupSetDbType' => [
- 'description' => '数据库类型。',
- 'type' => 'string',
- 'example' => 'MySQL',
- ],
- 'BackupSetDownloadInternetUrl' => [
- 'description' => '备份集公网下载地址。'."\n"
- ."\n"
- .'> 仅手工下载类型,且转换完成的有值。',
- 'type' => 'string',
- 'example' => '"//dbs-137XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou.example"',
- ],
- 'BackupSetId' => [
- 'description' => '源备份集ID。',
- 'type' => 'string',
- 'example' => '1h7za2yws****',
- ],
- 'BackupSetDownloadIntranetUrl' => [
- 'description' => '备份集内网下载地址。'."\n"
- ."\n"
- .'> 仅手工下载类型,且转换完成的有值。',
- 'type' => 'string',
- 'example' => '"//dbs-13XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou-internal.example"',
- ],
- 'BackupGatewayId' => [
- 'description' => '备份集备份网关,仅自动下载有值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '无',
- ],
- 'BackupSetDownloadWay' => [
- 'description' => '下载类型,返回值如下:'."\n"
- ."\n"
- .'- **manual**:手工'."\n"
- .'- **auto**:自动',
- 'type' => 'string',
- 'example' => 'manual',
- ],
- 'BackupSetDownloadFinishTime' => [
- 'description' => '完成时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1642044013000',
- ],
- 'BackupSetJobType' => [
- 'description' => '源备份集任务类型,返回值如下:'."\n"
- ."\n"
- .'- **cbs_backup_sub_full**:逻辑全量任务'."\n"
- .'- **cbs_backup_sub_cont**:逻辑增量任务',
- 'type' => 'string',
- 'example' => 'cbs_backup_sub_cont',
- ],
- 'BackupSetDownloadTaskId' => [
- 'description' => '备份集下载任务ID。',
- 'type' => 'string',
- 'example' => 'urxgrxt7****',
- ],
- 'BackupSetDownloadTaskName' => [
- 'description' => '备份集下载任务名称。',
- 'type' => 'string',
- 'example' => '1h7za2yws****-ManualCont',
- ],
- 'BackupSetDataFormat' => [
- 'description' => '备份集下载数据格式,取值如下:'."\n"
- ."\n"
- .'- **Native**'."\n"
- .'- **SQL**'."\n"
- .'- **CSV** '."\n"
- .'- **JSON**',
- 'type' => 'string',
- 'example' => 'Native',
- ],
- 'BackupSetCode' => [
- 'description' => '源备份集编码。',
- 'type' => 'string',
- 'example' => 'mysql-bin.00XXXX',
- ],
+ 'BackupSetDownloadStatus' => ['description' => '备份集下载状态,返回值如下:'."\n"
+ ."\n"
+ .'- **checking**:预检查中'."\n"
+ .'- **init**:预检查失败(未启动)'."\n"
+ .'- **check_pass**:预检查通过'."\n"
+ .'- **pause**:暂停'."\n"
+ .'- **schedule**:等待调度'."\n"
+ .'- **running**:运行中'."\n"
+ .'- **stop**:失败'."\n"
+ .'- **finish**:完成', 'type' => 'string', 'example' => 'finish'],
+ 'BackupSetDataSize' => ['description' => '备份集数据大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '237837'],
+ 'BackupSetDownloadTargetType' => ['description' => '备份集下载目标类型。'."\n"
+ ."\n"
+ .'> 仅自动下载显示,agent表示已安装备份网关。', 'type' => 'string', 'example' => '无'],
+ 'BackupSetDownloadDir' => ['description' => '备份集下载服务器目录。'."\n"
+ ."\n"
+ .'> 仅自动下载有值。', 'type' => 'string', 'example' => '无'],
+ 'ErrMessage' => ['description' => '异常信息。', 'type' => 'string', 'example' => 'java.lang.IndexOutOfBoundsException.'],
+ 'BackupSetDownloadCreateTime' => ['description' => '创建时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1642044001000'],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'qhnuhyw3****'],
+ 'BackupSetDbType' => ['description' => '数据库类型。', 'type' => 'string', 'example' => 'MySQL'],
+ 'BackupSetDownloadInternetUrl' => ['description' => '备份集公网下载地址。'."\n"
+ ."\n"
+ .'> 仅手工下载类型,且转换完成的有值。', 'type' => 'string', 'example' => '"//dbs-137XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou.example"'],
+ 'BackupSetId' => ['description' => '源备份集ID。', 'type' => 'string', 'example' => '1h7za2yws****'],
+ 'BackupSetDownloadIntranetUrl' => ['description' => '备份集内网下载地址。'."\n"
+ ."\n"
+ .'> 仅手工下载类型,且转换完成的有值。', 'type' => 'string', 'example' => '"//dbs-13XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou-internal.example"'],
+ 'BackupGatewayId' => ['description' => '备份集备份网关,仅自动下载有值。', 'type' => 'integer', 'format' => 'int64', 'example' => '无'],
+ 'BackupSetDownloadWay' => ['description' => '下载类型,返回值如下:'."\n"
+ ."\n"
+ .'- **manual**:手工'."\n"
+ .'- **auto**:自动', 'type' => 'string', 'example' => 'manual'],
+ 'BackupSetDownloadFinishTime' => ['description' => '完成时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1642044013000'],
+ 'BackupSetJobType' => ['description' => '源备份集任务类型,返回值如下:'."\n"
+ ."\n"
+ .'- **cbs_backup_sub_full**:逻辑全量任务'."\n"
+ .'- **cbs_backup_sub_cont**:逻辑增量任务', 'type' => 'string', 'example' => 'cbs_backup_sub_cont'],
+ 'BackupSetDownloadTaskId' => ['description' => '备份集下载任务ID。', 'type' => 'string', 'example' => 'urxgrxt7****'],
+ 'BackupSetDownloadTaskName' => ['description' => '备份集下载任务名称。', 'type' => 'string', 'example' => '1h7za2yws****-ManualCont'],
+ 'BackupSetDataFormat' => ['description' => '备份集下载数据格式,取值如下:'."\n"
+ ."\n"
+ .'- **Native**'."\n"
+ .'- **SQL**'."\n"
+ .'- **CSV** '."\n"
+ .'- **JSON**', 'type' => 'string', 'example' => 'Native'],
+ 'BackupSetCode' => ['description' => '源备份集编码。', 'type' => 'string', 'example' => 'mysql-bin.00XXXX'],
],
],
],
@@ -3673,28 +2061,16 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看备份集下载列表',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:58.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:58.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeBackupSetDownloadTaskList',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupSetDownloadTaskList'],
],
],
'ramActions' => [
@@ -3705,12 +2081,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -3718,14 +2089,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 0,\\n \\"RequestId\\": \\"6DC3D286-E0E6-5988-A558-2184984B****\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid.\\",\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 1,\\n \\"PageSize\\": 30,\\n \\"Items\\": {\\n \\"BackupSetDownloadTaskDetail\\": [\\n {\\n \\"BackupSetDownloadStatus\\": \\"finish\\",\\n \\"BackupSetDataSize\\": 237837,\\n \\"BackupSetDownloadTargetType\\": \\"无\\",\\n \\"BackupSetDownloadDir\\": \\"无\\",\\n \\"ErrMessage\\": \\"java.lang.IndexOutOfBoundsException.\\",\\n \\"BackupSetDownloadCreateTime\\": 1642044001000,\\n \\"BackupPlanId\\": \\"qhnuhyw3****\\",\\n \\"BackupSetDbType\\": \\"MySQL\\",\\n \\"BackupSetDownloadInternetUrl\\": \\"\\\\\\"//dbs-137XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou.example\\\\\\"\\",\\n \\"BackupSetId\\": \\"1h7za2yws****\\",\\n \\"BackupSetDownloadIntranetUrl\\": \\"\\\\\\"//dbs-13XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou-internal.example\\\\\\"\\",\\n \\"BackupGatewayId\\": 0,\\n \\"BackupSetDownloadWay\\": \\"manual\\",\\n \\"BackupSetDownloadFinishTime\\": 1642044013000,\\n \\"BackupSetJobType\\": \\"cbs_backup_sub_cont\\",\\n \\"BackupSetDownloadTaskId\\": \\"urxgrxt7****\\",\\n \\"BackupSetDownloadTaskName\\": \\"1h7za2yws****-ManualCont\\",\\n \\"BackupSetDataFormat\\": \\"Native\\",\\n \\"BackupSetCode\\": \\"mysql-bin.00XXXX\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeBackupSetDownloadTaskListResponse>\\n <RequestId>6DC3D286-E0E6-5988-A558-2184984B****</RequestId>\\n <PageSize>30</PageSize>\\n <PageNum>0</PageNum>\\n <HttpStatusCode>200</HttpStatusCode>\\n <TotalElements>1</TotalElements>\\n <TotalPages>1</TotalPages>\\n <Items>\\n <BackupSetDownloadTaskDetail>\\n <BackupSetDbType>MySQL</BackupSetDbType>\\n <BackupSetDownloadCreateTime>1642044001000</BackupSetDownloadCreateTime>\\n <BackupSetDownloadTaskName>1h7za2yws****-ManualCont</BackupSetDownloadTaskName>\\n <BackupSetDownloadWay>manual</BackupSetDownloadWay>\\n <BackupSetCode>mysql-bin.00XXXX</BackupSetCode>\\n <BackupSetId>1h7za2yws****</BackupSetId>\\n <BackupSetDownloadStatus>finish</BackupSetDownloadStatus>\\n <BackupSetDownloadIntranetUrl>//dbs-13XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou-internal.example</BackupSetDownloadIntranetUrl>\\n <BackupSetDownloadInternetUrl>//dbs-137XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou.example</BackupSetDownloadInternetUrl>\\n <BackupSetDownloadTaskId>urxgrxt7****</BackupSetDownloadTaskId>\\n <BackupSetDownloadFinishTime>1642044013000</BackupSetDownloadFinishTime>\\n <BackupSetJobType>cbs_backup_sub_cont</BackupSetJobType>\\n <BackupSetDataFormat>Native</BackupSetDataFormat>\\n <BackupPlanId>qhnuhyw3****</BackupPlanId>\\n <BackupSetDataSize>237837</BackupSetDataSize>\\n </BackupSetDownloadTaskDetail>\\n </Items>\\n <Success>true</Success>\\n</DescribeBackupSetDownloadTaskListResponse>","errorExample":""}]',
],
'DescribeDLAService' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -3736,30 +2101,18 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,您可以调用[DescribeBackupPlanList](~~2869825~~)查询。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi01exXXXX',
- ],
+ 'schema' => ['description' => '备份计划ID,您可以调用[DescribeBackupPlanList](~~2869825~~)查询。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi01exXXXX'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '任意字符串。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DBS',
- ],
+ 'schema' => ['description' => '任意字符串。', 'type' => 'string', 'required' => false, 'example' => 'DBS'],
],
],
'responses' => [
@@ -3767,54 +2120,21 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否请求成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'State' => [
- 'description' => '备份计划的DLA服务状态, 取值:'."\n"
- .'- **Running**:运行中'."\n"
- .'- **Closing**:关闭中'."\n"
- .'- **Closed**:已关闭',
- 'type' => 'string',
- 'example' => 'Running',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'AutoAdd' => [
- 'description' => '是否开启增量数据自动入湖,开启后,系统会自动将新产生的备份集添加入湖,取值:'."\n"
- .'- **true**:开启'."\n"
- .'- **false**:不开启',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'HaveJobFailed' => [
- 'description' => '返回结果中是否存在失败的DLA任务,取值:'."\n"
- .'- **true**:存在'."\n"
- .'- **false**:不存在',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否请求成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'State' => ['description' => '备份计划的DLA服务状态, 取值:'."\n"
+ .'- **Running**:运行中'."\n"
+ .'- **Closing**:关闭中'."\n"
+ .'- **Closed**:已关闭', 'type' => 'string', 'example' => 'Running'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'AutoAdd' => ['description' => '是否开启增量数据自动入湖,开启后,系统会自动将新产生的备份集添加入湖,取值:'."\n"
+ .'- **true**:开启'."\n"
+ .'- **false**:不开启', 'type' => 'boolean', 'example' => 'true'],
+ 'HaveJobFailed' => ['description' => '返回结果中是否存在失败的DLA任务,取值:'."\n"
+ .'- **true**:存在'."\n"
+ .'- **false**:不存在', 'type' => 'boolean', 'example' => 'false'],
],
'description' => '',
],
@@ -3822,11 +2142,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看数据查询服务(DLA)',
@@ -3835,19 +2151,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:58.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:58.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeDLAService',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDLAService'],
],
],
'ramActions' => [
@@ -3858,12 +2166,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -3871,14 +2174,9 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"4F1888AC-1138-4995-B9FE-D2734F61C058\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"State\\": \\"Running\\",\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid.\\",\\n \\"AutoAdd\\": true,\\n \\"HaveJobFailed\\": false\\n}","errorExample":""},{"type":"xml","example":"<DescribeDLAServiceResponse>\\n <AutoAdd>false</AutoAdd>\\n <RequestId>6158A77E-AD6F-4C8F-BC0C-C8E1ABF836F3</RequestId>\\n <HaveJobFailed>false</HaveJobFailed>\\n <State>Closed</State>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Success>true</Success>\\n</DescribeDLAServiceResponse>","errorExample":""}]',
],
'DescribeFullBackupList' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => '该接口用于查看DBS全量备份任务列表。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -3889,99 +2187,63 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbsr179qz******',
- ],
+ 'schema' => ['description' => '备份计划ID。', 'type' => 'string', 'required' => true, 'example' => 'dbsr179qz******'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的记录数,取值:'."\n"
- .'- 30'."\n"
- .'- 50'."\n"
- .'- 100'."\n"
- ."\n"
- .'默认为30。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => '每页的记录数,取值:'."\n"
+ .'- 30'."\n"
+ .'- 50'."\n"
+ .'- 100'."\n"
+ ."\n"
+ .'默认为30。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
],
[
'name' => 'PageNum',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,大于等于0且不超过Integer的最大值,默认值为:0。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码,大于等于0且不超过Integer的最大值,默认值为:0。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
[
'name' => 'ShowStorageType',
'in' => 'query',
- 'schema' => [
- 'description' => '是否显示存储类型。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => '是否显示存储类型。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'BackupSetId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1iukx5h******',
- ],
+ 'schema' => ['description' => '备份集ID。', 'type' => 'string', 'required' => false, 'example' => '1iukx5h******'],
],
[
'name' => 'StartTimestamp',
'in' => 'query',
- 'schema' => [
- 'description' => '开始备份时间。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1676887100',
- ],
+ 'schema' => ['description' => '开始备份时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1676887100'],
],
[
'name' => 'EndTimestamp',
'in' => 'query',
- 'schema' => [
- 'description' => '结束备份时间。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1676887128',
- ],
+ 'schema' => ['description' => '结束备份时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1676887128'],
+ ],
+ [
+ 'name' => 'ShowProgress',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否展示备份进度', 'description' => '是否展示备份进度', 'type' => 'string', 'required' => false, 'example' => 'true', 'default' => 'false'],
+ ],
+ [
+ 'name' => 'BackupSetStatus',
+ 'in' => 'query',
+ 'schema' => ['title' => '备份集状态', 'description' => '备份集状态', 'type' => 'string', 'required' => false, 'example' => 'finish'],
],
],
'responses' => [
@@ -3990,58 +2252,17 @@
'description' => '返回参数详情如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'PageNum' => [
- 'description' => '页码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '636BC118-6080-4119-A6B5-C199CEC1037D',
- ],
- 'ErrCode' => [
- 'description' => '错误码。'."\n",
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否执行成功。返回值:'."\n"
- .'- **true**:执行成功。'."\n"
- .'- **false**:执行失败。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'TotalPages' => [
- 'description' => '总页数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'TotalElements' => [
- 'description' => '总全量备份任务数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '每页的记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'PageNum' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '636BC118-6080-4119-A6B5-C199CEC1037D'],
+ 'ErrCode' => ['description' => '错误码。'."\n", 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否执行成功。返回值:'."\n"
+ .'- **true**:执行成功。'."\n"
+ .'- **false**:执行失败。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'TotalElements' => ['description' => '总全量备份任务数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'PageSize' => ['description' => '每页的记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'Items' => [
'type' => 'object',
'itemNode' => true,
@@ -4053,81 +2274,40 @@
'description' => '全量备份任务详情。',
'type' => 'object',
'properties' => [
- 'FinishTime' => [
- 'description' => '任务结束时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1676887128000',
- ],
- 'BackupStatus' => [
- 'description' => '备份任务状态,取值:'."\n"
- .'- schedule:初始化中'."\n"
- .'- running:运行中'."\n"
- .'- finish:完成'."\n"
- .'- stop:失败'."\n"
- .'- pause:暂停',
- 'type' => 'string',
- 'example' => 'finish',
- ],
- 'SourceEndpointIpPort' => [
- 'description' => '数据库连接地址。',
- 'type' => 'string',
- 'example' => '121.XXX.XXX.144:3306',
- ],
- 'CreateTime' => [
- 'description' => '任务开始时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1676886947000',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'NULL',
- ],
- 'BackupObjects' => [
- 'description' => '备份对象。',
- 'type' => 'string',
- 'example' => '[{\\"DBName\\":\\"test\\"}]',
- ],
- 'EndTime' => [
- 'description' => '备份结束时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1676887128000',
- ],
- 'StartTime' => [
- 'description' => '备份开始时间。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1676887100000',
- ],
- 'BackupSetExpiredTime' => [
- 'description' => '备份集保留到期时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1677491900000',
- ],
- 'StorageMethod' => [
- 'description' => '存储类型,取值:'."\n"
- .'- Standard:标准存储'."\n"
- .'- IA:低频访问存储'."\n"
- .'- Archive:归档存储'."\n"
- .'- UNKNOWN:未知,通常是任务未完成时的状态',
- 'type' => 'string',
- 'example' => 'Standard',
- ],
- 'BackupSetId' => [
- 'description' => '备份集ID。',
- 'type' => 'string',
- 'example' => '1iukx5h******',
- ],
- 'BackupSize' => [
- 'description' => '备份大小。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '580',
- ],
+ 'FinishTime' => ['description' => '任务结束时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1676887128000'],
+ 'BackupStatus' => ['description' => '备份任务状态,取值:'."\n"
+ .'- schedule:初始化中'."\n"
+ .'- running:运行中'."\n"
+ .'- finish:完成'."\n"
+ .'- stop:失败'."\n"
+ .'- pause:暂停', 'type' => 'string', 'example' => 'finish'],
+ 'SourceEndpointIpPort' => ['description' => '数据库连接地址。', 'type' => 'string', 'example' => '121.XXX.XXX.144:3306'],
+ 'CreateTime' => ['description' => '任务开始时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1676886947000'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'NULL'],
+ 'BackupObjects' => ['description' => '备份对象。', 'type' => 'string', 'example' => '[{\\"DBName\\":\\"test\\"}]'],
+ 'EndTime' => ['description' => '备份结束时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1676887128000'],
+ 'StartTime' => ['description' => '备份开始时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1676887100000'],
+ 'BackupSetExpiredTime' => ['description' => '备份集保留到期时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1677491900000'],
+ 'StorageMethod' => ['description' => '存储类型,取值:'."\n"
+ .'- Standard:标准存储'."\n"
+ .'- IA:低频访问存储'."\n"
+ .'- Archive:归档存储'."\n"
+ .'- UNKNOWN:未知,通常是任务未完成时的状态', 'type' => 'string', 'example' => 'Standard'],
+ 'BackupSetId' => ['description' => '备份集ID。', 'type' => 'string', 'example' => '1iukx5h******'],
+ 'BackupSize' => ['description' => '备份大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '580'],
+ 'SourceEndpointInstanceType' => ['title' => '备份源数据库实例类型', 'description' => '备份源数据库实例类型', 'type' => 'string', 'example' => 'rds'],
+ 'SourceEndpointInstanceId' => ['title' => '备份源数据库实例Id', 'description' => '备份源数据库实例Id', 'type' => 'string', 'example' => 'rm-testxx'],
+ 'SourceEndpointRegion' => ['title' => '备份源数据库所在地域', 'description' => '备份源数据库所在地域', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'SourceEndpointHost' => ['title' => '备份源数据库连接地址', 'description' => '备份源数据库连接地址', 'type' => 'string', 'example' => '127.0.0.1'],
+ 'StorageEncryptMethod' => ['title' => '备份存储加密方式', 'description' => '备份存储加密方式', 'type' => 'string', 'example' => 'encrypted'],
+ 'CrossRoleName' => ['title' => '跨账号备份RAM角色名称', 'description' => '跨账号备份RAM角色名称', 'type' => 'string', 'example' => 'ram-for-dbs'],
+ 'CrossAliyunId' => ['title' => '跨账号备份阿里云Id', 'description' => '跨账号备份阿里云Id', 'type' => 'string', 'example' => '2xxx7778xxxxxxxxxx'],
+ 'SourceEndpointEnableSsl' => ['title' => '备份源数据库是否开启SSL安全连接', 'description' => '备份源数据库是否开启SSL安全连接', 'type' => 'string', 'example' => 'true'],
+ 'LogicalStructureBackupProgress' => ['title' => '逻辑备份结构备份进度', 'description' => '逻辑备份结构备份进度', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'LogicalFullBackupProgress' => ['title' => '逻辑备份全量备份进度', 'description' => '逻辑备份全量备份进度', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'BackupGatewayIdentifier' => ['title' => '备份网关唯一标识码', 'description' => '备份网关唯一标识码', 'type' => 'string', 'example' => 'TESTGATEWAY'],
+ 'SourceEndpointUserName' => ['title' => '备份源数据库账号', 'description' => '备份源数据库账号', 'type' => 'string', 'example' => 'dbs_backup'],
+ 'SourceEndpointPort' => ['title' => '备份源数据库端口', 'description' => '备份源数据库端口', 'type' => 'string', 'example' => '3306'],
],
],
],
@@ -4140,32 +2320,20 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 1,\\n \\"RequestId\\": \\"636BC118-6080-4119-A6B5-C199CEC1037D\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 1,\\n \\"PageSize\\": 10,\\n \\"Items\\": {\\n \\"FullBackupFile\\": [\\n {\\n \\"FinishTime\\": 1676887128000,\\n \\"BackupStatus\\": \\"finish\\",\\n \\"SourceEndpointIpPort\\": \\"121.XXX.XXX.144:3306\\",\\n \\"CreateTime\\": 1676886947000,\\n \\"ErrMessage\\": \\"NULL\\",\\n \\"BackupObjects\\": \\"[{\\\\\\\\\\\\\\"DBName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"test\\\\\\\\\\\\\\"}]\\",\\n \\"EndTime\\": 1676887128000,\\n \\"StartTime\\": 1676887100000,\\n \\"BackupSetExpiredTime\\": 1677491900000,\\n \\"StorageMethod\\": \\"Standard\\",\\n \\"BackupSetId\\": \\"1iukx5h******\\",\\n \\"BackupSize\\": 580,\\n \\"SourceEndpointInstanceType\\": \\"rds\\",\\n \\"SourceEndpointInstanceId\\": \\"rm-testxx\\",\\n \\"SourceEndpointRegion\\": \\"cn-beijing\\",\\n \\"SourceEndpointHost\\": \\"127.0.0.1\\",\\n \\"StorageEncryptMethod\\": \\"encrypted\\",\\n \\"CrossRoleName\\": \\"ram-for-dbs\\",\\n \\"CrossAliyunId\\": \\"2xxx7778xxxxxxxxxx\\",\\n \\"SourceEndpointEnableSsl\\": \\"true\\",\\n \\"LogicalStructureBackupProgress\\": 100,\\n \\"LogicalFullBackupProgress\\": 100,\\n \\"BackupGatewayIdentifier\\": \\"TESTGATEWAY\\",\\n \\"SourceEndpointUserName\\": \\"dbs_backup\\",\\n \\"SourceEndpointPort\\": \\"3306\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeFullBackupListReponse>\\n<RequestId>636BC118-6080-4119-A6B5-C199CEC1037D</RequestId>\\n<PageSize>30</PageSize>\\n<PageNum>0</PageNum>\\n<HttpStatusCode>200</HttpStatusCode>\\n<TotalElements>1</TotalElements>\\n<TotalPages>1</TotalPages>\\n<Items>\\n <FullBackupFile>\\n <SourceEndpointIpPort>100.X.X.10:33204</SourceEndpointIpPort>\\n <StorageMethod>Standard</StorageMethod>\\n <BackupObjects>[{\\"DBName\\":\\"test_y\\"}]</BackupObjects>\\n <EndTime>1583741465000</EndTime>\\n <FinishTime>1583741466000</FinishTime>\\n <BackupSize>151</BackupSize>\\n <CreateTime>1583740896000</CreateTime>\\n <StartTime>1583741439000</StartTime>\\n <BackupSetExpiredTime>1646813439000</BackupSetExpiredTime>\\n <BackupSetId>1ibh2XXXXXXX</BackupSetId>\\n <BackupStatus>finish</BackupStatus>\\n </FullBackupFile>\\n</Items>\\n<Success>true</Success>\\n</DescribeFullBackupListReponse>","errorExample":""}]',
'title' => '查看全量备份任务列表',
- 'summary' => '该接口用于查看DBS全量备份任务列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:58.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:58.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeFullBackupList',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeFullBackupList'],
],
],
'ramActions' => [
@@ -4176,28 +2344,16 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 1,\\n \\"RequestId\\": \\"636BC118-6080-4119-A6B5-C199CEC1037D\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 1,\\n \\"PageSize\\": 10,\\n \\"Items\\": {\\n \\"FullBackupFile\\": [\\n {\\n \\"FinishTime\\": 1676887128000,\\n \\"BackupStatus\\": \\"finish\\",\\n \\"SourceEndpointIpPort\\": \\"121.XXX.XXX.144:3306\\",\\n \\"CreateTime\\": 1676886947000,\\n \\"ErrMessage\\": \\"NULL\\",\\n \\"BackupObjects\\": \\"[{\\\\\\\\\\\\\\"DBName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"test\\\\\\\\\\\\\\"}]\\",\\n \\"EndTime\\": 1676887128000,\\n \\"StartTime\\": 1676887100000,\\n \\"BackupSetExpiredTime\\": 1677491900000,\\n \\"StorageMethod\\": \\"Standard\\",\\n \\"BackupSetId\\": \\"1iukx5h******\\",\\n \\"BackupSize\\": 580\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeFullBackupListReponse>\\n<RequestId>636BC118-6080-4119-A6B5-C199CEC1037D</RequestId>\\n<PageSize>30</PageSize>\\n<PageNum>0</PageNum>\\n<HttpStatusCode>200</HttpStatusCode>\\n<TotalElements>1</TotalElements>\\n<TotalPages>1</TotalPages>\\n<Items>\\n <FullBackupFile>\\n <SourceEndpointIpPort>100.X.X.10:33204</SourceEndpointIpPort>\\n <StorageMethod>Standard</StorageMethod>\\n <BackupObjects>[{\\"DBName\\":\\"test_y\\"}]</BackupObjects>\\n <EndTime>1583741465000</EndTime>\\n <FinishTime>1583741466000</FinishTime>\\n <BackupSize>151</BackupSize>\\n <CreateTime>1583740896000</CreateTime>\\n <StartTime>1583741439000</StartTime>\\n <BackupSetExpiredTime>1646813439000</BackupSetExpiredTime>\\n <BackupSetId>1ibh2XXXXXXX</BackupSetId>\\n <BackupStatus>finish</BackupStatus>\\n </FullBackupFile>\\n</Items>\\n<Success>true</Success>\\n</DescribeFullBackupListReponse>","errorExample":""}]',
],
'DescribeIncrementBackupList' => [
'summary' => '该接口用于查看DBS增量备份任务列表。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4208,91 +2364,50 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbsqdss5tmh****',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => true, 'example' => 'dbsqdss5tmh****'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的记录数,取值30、50、100。'."\n"
- ."\n"
- .'> 默认每页记录数为30。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => '每页的记录数,取值30、50、100。'."\n"
+ ."\n"
+ .'> 默认每页记录数为30。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
],
[
'name' => 'PageNum',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,大于等于0且不超过Integer的最大值,默认值为0。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码,大于等于0且不超过Integer的最大值,默认值为0。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '任意字符串,用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '任意字符串,用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
[
'name' => 'ShowStorageType',
'in' => 'query',
- 'schema' => [
- 'description' => '是否显示存储类型,取值如下:'."\n"
- ."\n"
- .'- true'."\n"
- .'- false'."\n"
- ."\n"
- .'> 默认true。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => '是否显示存储类型,取值如下:'."\n"
+ ."\n"
+ .'- true'."\n"
+ .'- false'."\n"
+ ."\n"
+ .'> 默认true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'StartTimestamp',
'in' => 'query',
- 'schema' => [
- 'description' => '开始备份时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1570701361528',
- ],
+ 'schema' => ['description' => '开始备份时间戳。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1570701361528'],
],
[
'name' => 'EndTimestamp',
'in' => 'query',
- 'schema' => [
- 'description' => '结束备份时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1570701361600',
- ],
+ 'schema' => ['description' => '结束备份时间戳。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1570701361600'],
],
],
'responses' => [
@@ -4300,58 +2415,17 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'PageNum' => [
- 'description' => '页码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'A5D52069-E8AA-5056-8C5C-654C3610****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。'."\n",
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。'."\n",
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'TotalPages' => [
- 'description' => '总页数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'TotalElements' => [
- 'description' => '增量备份任务总数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '每页的记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'PageNum' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A5D52069-E8AA-5056-8C5C-654C3610****'],
+ 'ErrCode' => ['description' => '错误码。'."\n", 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。'."\n", 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'TotalElements' => ['description' => '增量备份任务总数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'PageSize' => ['description' => '每页的记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '30'],
'Items' => [
'type' => 'object',
'itemNode' => true,
@@ -4363,65 +2437,30 @@
'description' => '增量备份任务详情信息如下。',
'type' => 'object',
'properties' => [
- 'EndTime' => [
- 'description' => '备份结束时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1648434713000',
- ],
- 'BackupSetExpiredTime' => [
- 'description' => '备份集保留到期时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1711506719000',
- ],
- 'StartTime' => [
- 'description' => '备份开始时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1648433764000',
- ],
- 'StorageMethod' => [
- 'description' => '存储类型,返回值如下:'."\n"
- ."\n"
- .'- **Standard**:标准存储'."\n"
- .'- **IA**:低频访问存储'."\n"
- .'- **Archive**:归档存储'."\n"
- .'- **UNKNOWN**:未知,通常是任务未完成时的状态',
- 'type' => 'string',
- 'example' => 'Standard',
- ],
- 'BackupSetJobId' => [
- 'description' => '备份集任务ID。',
- 'type' => 'string',
- 'example' => '1hv5g9wk4****',
- ],
- 'BackupSetId' => [
- 'description' => '备份集ID。',
- 'type' => 'string',
- 'example' => 'mysql-bin.00****',
- ],
- 'BackupStatus' => [
- 'description' => '备份任务状态,返回值如下:'."\n"
- ."\n"
- .'- **INIT**:未启动'."\n"
- .'- **FILLING**:备份中'."\n"
- .'- **COMPLETED**:完成'."\n"
- .'- **UNCOMPLETED**:未完成',
- 'type' => 'string',
- 'example' => 'FILLING',
- ],
- 'SourceEndpointIpPort' => [
- 'description' => '数据库连接地址。',
- 'type' => 'string',
- 'example' => '172.1XX.103.1:4XXX',
- ],
- 'BackupSize' => [
- 'description' => '备份大小。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '18535',
- ],
+ 'EndTime' => ['description' => '备份结束时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1648434713000'],
+ 'BackupSetExpiredTime' => ['description' => '备份集保留到期时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1711506719000'],
+ 'StartTime' => ['description' => '备份开始时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1648433764000'],
+ 'StorageMethod' => ['description' => '存储类型,返回值如下:'."\n"
+ ."\n"
+ .'- **Standard**:标准存储'."\n"
+ .'- **IA**:低频访问存储'."\n"
+ .'- **Archive**:归档存储'."\n"
+ .'- **UNKNOWN**:未知,通常是任务未完成时的状态', 'type' => 'string', 'example' => 'Standard'],
+ 'BackupSetJobId' => ['description' => '备份集任务ID。', 'type' => 'string', 'example' => '1hv5g9wk4****'],
+ 'BackupSetId' => ['description' => '备份集ID。', 'type' => 'string', 'example' => 'mysql-bin.00****'],
+ 'BackupStatus' => ['description' => '备份任务状态,返回值如下:'."\n"
+ ."\n"
+ .'- **INIT**:未启动'."\n"
+ .'- **FILLING**:备份中'."\n"
+ .'- **COMPLETED**:完成'."\n"
+ .'- **UNCOMPLETED**:未完成', 'type' => 'string', 'example' => 'FILLING'],
+ 'SourceEndpointIpPort' => ['description' => '数据库连接地址。', 'type' => 'string', 'example' => '172.1XX.103.1:4XXX'],
+ 'BackupSize' => ['description' => '备份大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '18535'],
+ 'SourceEndpointInstanceType' => ['title' => '备份源数据库实例类型', 'description' => '备份源数据库实例类型', 'type' => 'string', 'example' => 'rds'],
+ 'SourceEndpointInstanceId' => ['title' => '备份源数据库实例Id', 'description' => '备份源数据库实例Id', 'type' => 'string', 'example' => 'rm-testxx'],
+ 'SourceEndpointRegion' => ['title' => '备份源数据库所在地域', 'description' => '备份源数据库所在地域', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'SourceEndpointHost' => ['title' => '备份源数据库连接地址', 'description' => '备份源数据库连接地址', 'type' => 'string', 'example' => '127.0.0.1'],
+ 'SourceEndpointPort' => ['title' => '备份源数据库端口', 'description' => '备份源数据库端口', 'type' => 'string', 'example' => '3306'],
],
],
],
@@ -4435,31 +2474,20 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 0,\\n \\"RequestId\\": \\"A5D52069-E8AA-5056-8C5C-654C3610****\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 1,\\n \\"PageSize\\": 30,\\n \\"Items\\": {\\n \\"IncrementBackupFile\\": [\\n {\\n \\"EndTime\\": 1648434713000,\\n \\"BackupSetExpiredTime\\": 1711506719000,\\n \\"StartTime\\": 1648433764000,\\n \\"StorageMethod\\": \\"Standard\\",\\n \\"BackupSetJobId\\": \\"1hv5g9wk4****\\",\\n \\"BackupSetId\\": \\"mysql-bin.00****\\",\\n \\"BackupStatus\\": \\"FILLING\\",\\n \\"SourceEndpointIpPort\\": \\"172.1XX.103.1:4XXX\\",\\n \\"BackupSize\\": 18535,\\n \\"SourceEndpointInstanceType\\": \\"rds\\",\\n \\"SourceEndpointInstanceId\\": \\"rm-testxx\\",\\n \\"SourceEndpointRegion\\": \\"cn-beijing\\",\\n \\"SourceEndpointHost\\": \\"127.0.0.1\\",\\n \\"SourceEndpointPort\\": \\"3306\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeIncrementBackupListResponse>\\n <RequestId>A5D52069-E8AA-5056-8C5C-654C3610****</RequestId>\\n <PageSize>30</PageSize>\\n <PageNum>0</PageNum>\\n <HttpStatusCode>200</HttpStatusCode>\\n <TotalElements>1</TotalElements>\\n <TotalPages>1</TotalPages>\\n <Items>\\n <IncrementBackupFile>\\n <SourceEndpointIpPort>172.1XX.103.1:4XXX</SourceEndpointIpPort>\\n <EndTime>1648434713000</EndTime>\\n <BackupSetJobId>1hv5g9wk4****</BackupSetJobId>\\n <BackupSize>18535</BackupSize>\\n <StartTime>1648433764000</StartTime>\\n <BackupSetExpiredTime>1711506719000</BackupSetExpiredTime>\\n <BackupSetId>mysql-bin.00****</BackupSetId>\\n <BackupStatus>FILLING</BackupStatus>\\n </IncrementBackupFile>\\n </Items>\\n <Success>true</Success>\\n</DescribeIncrementBackupListResponse>","errorExample":""}]',
'title' => '查看增量备份任务列表',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:58.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:58.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeIncrementBackupList',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeIncrementBackupList'],
],
],
'ramActions' => [
@@ -4470,28 +2498,16 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 0,\\n \\"RequestId\\": \\"A5D52069-E8AA-5056-8C5C-654C3610****\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 1,\\n \\"PageSize\\": 30,\\n \\"Items\\": {\\n \\"IncrementBackupFile\\": [\\n {\\n \\"EndTime\\": 1648434713000,\\n \\"BackupSetExpiredTime\\": 1711506719000,\\n \\"StartTime\\": 1648433764000,\\n \\"StorageMethod\\": \\"Standard\\",\\n \\"BackupSetJobId\\": \\"1hv5g9wk4****\\",\\n \\"BackupSetId\\": \\"mysql-bin.00****\\",\\n \\"BackupStatus\\": \\"FILLING\\",\\n \\"SourceEndpointIpPort\\": \\"172.1XX.103.1:4XXX\\",\\n \\"BackupSize\\": 18535\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeIncrementBackupListResponse>\\n <RequestId>A5D52069-E8AA-5056-8C5C-654C3610****</RequestId>\\n <PageSize>30</PageSize>\\n <PageNum>0</PageNum>\\n <HttpStatusCode>200</HttpStatusCode>\\n <TotalElements>1</TotalElements>\\n <TotalPages>1</TotalPages>\\n <Items>\\n <IncrementBackupFile>\\n <SourceEndpointIpPort>172.1XX.103.1:4XXX</SourceEndpointIpPort>\\n <EndTime>1648434713000</EndTime>\\n <BackupSetJobId>1hv5g9wk4****</BackupSetJobId>\\n <BackupSize>18535</BackupSize>\\n <StartTime>1648433764000</StartTime>\\n <BackupSetExpiredTime>1711506719000</BackupSetExpiredTime>\\n <BackupSetId>mysql-bin.00****</BackupSetId>\\n <BackupStatus>FILLING</BackupStatus>\\n </IncrementBackupFile>\\n </Items>\\n <Success>true</Success>\\n</DescribeIncrementBackupListResponse>","errorExample":""}]',
],
'DescribeJobErrorCode' => [
'summary' => '该接口用于查看DBS任务错误码信息。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4502,43 +2518,26 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份或恢复任务ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'r1iv62ud****',
- ],
+ 'schema' => ['description' => '全量备份或恢复任务ID。', 'type' => 'string', 'required' => true, 'example' => 'r1iv62ud****'],
],
[
'name' => 'Language',
'in' => 'query',
- 'schema' => [
- 'description' => '错误信息语言,取值如下:'."\n"
- ."\n"
- .'- **en**:英文(默认值)'."\n"
- .'- **cn**:中文',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'en',
- ],
+ 'schema' => ['description' => '错误信息语言,取值如下:'."\n"
+ ."\n"
+ .'- **en**:英文(默认值)'."\n"
+ .'- **cn**:中文', 'type' => 'string', 'required' => false, 'example' => 'en'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。 '."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCz****',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。 '."\n", 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCz****'],
],
],
'responses' => [
@@ -4546,66 +2545,21 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID.',
- 'type' => 'string',
- 'example' => '1FC2F86D-AFF4-4ED9-BB25-ADDE196CB2B5',
- ],
- 'ErrCode' => [
- 'description' => '错误码。'."\n",
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。'."\n",
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID.', 'type' => 'string', 'example' => '1FC2F86D-AFF4-4ED9-BB25-ADDE196CB2B5'],
+ 'ErrCode' => ['description' => '错误码。'."\n", 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。'."\n", 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
'Item' => [
'description' => '错误码信息。',
'type' => 'object',
'properties' => [
- 'JobState' => [
- 'description' => '任务状态。',
- 'type' => 'string',
- 'example' => 'init',
- ],
- 'ErrorMessage' => [
- 'description' => '标准化错误信息。',
- 'type' => 'string',
- 'example' => 'Describe preCheck progress failed.',
- ],
- 'ErrorCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'failed',
- ],
- 'JobId' => [
- 'description' => '全量备份或者恢复任务ID。',
- 'type' => 'string',
- 'example' => 'r1iv62ud****',
- ],
- 'JobType' => [
- 'description' => 'DBS内部任务类型id。',
- 'type' => 'string',
- 'example' => 'testId',
- ],
- 'Language' => [
- 'description' => '错误信息语言。',
- 'type' => 'string',
- 'example' => 'en',
- ],
+ 'JobState' => ['description' => '任务状态。', 'type' => 'string', 'example' => 'init'],
+ 'ErrorMessage' => ['description' => '标准化错误信息。', 'type' => 'string', 'example' => 'Describe preCheck progress failed.'],
+ 'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'failed'],
+ 'JobId' => ['description' => '全量备份或者恢复任务ID。', 'type' => 'string', 'example' => 'r1iv62ud****'],
+ 'JobType' => ['description' => 'DBS内部任务类型id。', 'type' => 'string', 'example' => 'testId'],
+ 'Language' => ['description' => '错误信息语言。', 'type' => 'string', 'example' => 'en'],
],
],
],
@@ -4615,11 +2569,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看任务错误码信息',
@@ -4627,19 +2577,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:58.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:58.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeJobErrorCode',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeJobErrorCode'],
],
],
'ramActions' => [
@@ -4650,12 +2592,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -4663,14 +2600,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"1FC2F86D-AFF4-4ED9-BB25-ADDE196CB2B5\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"Item\\": {\\n \\"JobState\\": \\"init\\",\\n \\"ErrorMessage\\": \\"Describe preCheck progress failed.\\",\\n \\"ErrorCode\\": \\"failed\\",\\n \\"JobId\\": \\"r1iv62ud****\\",\\n \\"JobType\\": \\"testId\\",\\n \\"Language\\": \\"en\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeJobErrorCodeReponse>\\n<Item>\\n <Language>en</Language>\\n <JobId>tooi0XXXX</JobId>\\n</Item>\\n<RequestId>1FC2F86D-AFF4-4ED9-BB25-ADDE196CB2B5</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<Success>true</Success>\\n</DescribeJobErrorCodeReponse>","errorExample":""}]',
],
'DescribeNodeCidrList' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4681,30 +2612,18 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'Region',
'in' => 'query',
- 'schema' => [
- 'description' => 'DBS地域,可通过调用[DescribeRegions](~~2869853~~)接口查看DBS支持地域。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => 'DBS地域,可通过调用[DescribeRegions](~~2869853~~)接口查看DBS支持地域。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。 '."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。 '."\n", 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -4712,32 +2631,11 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '5B352E69-E7B1-4EA7-BB8E-29FFE969C791',
- ],
- 'ErrCode' => [
- 'description' => '错误码。'."\n",
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。'."\n",
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '5B352E69-E7B1-4EA7-BB8E-29FFE969C791'],
+ 'ErrCode' => ['description' => '错误码。'."\n", 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。'."\n", 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
'IntranetIPs' => [
'type' => 'object',
'itemNode' => true,
@@ -4745,11 +2643,7 @@
'IntranetIP' => [
'description' => '内网网段列表。',
'type' => 'array',
- 'items' => [
- 'description' => '内网网段。',
- 'type' => 'string',
- 'example' => '"10.X.X.0/24"',
- ],
+ 'items' => ['description' => '内网网段。', 'type' => 'string', 'example' => '"10.X.X.0/24"'],
],
],
'description' => '',
@@ -4761,11 +2655,7 @@
'InternetIP' => [
'description' => '公网网段列表。',
'type' => 'array',
- 'items' => [
- 'description' => '公网网段。',
- 'type' => 'string',
- 'example' => '"10.X.X.0/24"',
- ],
+ 'items' => ['description' => '公网网段。', 'type' => 'string', 'example' => '"10.X.X.0/24"'],
],
],
'description' => '',
@@ -4777,11 +2667,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看DBS运行节点网段',
@@ -4790,19 +2676,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:58.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:58.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeNodeCidrList',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeNodeCidrList'],
],
],
'ramActions' => [
@@ -4813,12 +2691,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -4827,14 +2700,8 @@
],
'DescribePreCheckProgressList' => [
'summary' => '该接口用于查看备份计划预检查进度和恢复任务预检查进度。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4845,42 +2712,25 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。'."\n"
- ."\n"
- .'> 请填入BackupPlanId或RestoreTaskId。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbsr1l3ro21****',
- ],
+ 'schema' => ['description' => '备份计划ID。'."\n"
+ ."\n"
+ .'> 请填入BackupPlanId或RestoreTaskId。', 'type' => 'string', 'required' => false, 'example' => 'dbsr1l3ro21****'],
],
[
'name' => 'RestoreTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '恢复任务ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbasdsa****',
- ],
+ 'schema' => ['description' => '恢复任务ID。', 'type' => 'string', 'required' => false, 'example' => 'dbasdsa****'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。 '."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCziJZNwH****',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。 '."\n", 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCziJZNwH****'],
],
],
'responses' => [
@@ -4889,49 +2739,19 @@
'description' => '返回参数详情如下。',
'type' => 'object',
'properties' => [
- 'Status' => [
- 'description' => '预检查状态,返回值如下:'."\n"
- .'- **running**:运行中'."\n"
- .'- **failed**:失败'."\n"
- .'- **finish**:完成',
- 'type' => 'string',
- 'example' => 'finish',
- ],
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'C4A45FE1-A903-470D-B113-F12A4DF942AB',
- ],
- 'Progress' => [
- 'description' => '预检查进度,返回值范围:0~100。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'ErrCode' => [
- 'description' => '错误码。'."\n",
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '返回是否成功,返回值如下:'."\n"
- ."\n"
- .'- **true**:返回成功'."\n"
- .'- **false**:返回失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。'."\n",
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
+ 'Status' => ['description' => '预检查状态,返回值如下:'."\n"
+ .'- **running**:运行中'."\n"
+ .'- **failed**:失败'."\n"
+ .'- **finish**:完成', 'type' => 'string', 'example' => 'finish'],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'C4A45FE1-A903-470D-B113-F12A4DF942AB'],
+ 'Progress' => ['description' => '预检查进度,返回值范围:0~100。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'ErrCode' => ['description' => '错误码。'."\n", 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '返回是否成功,返回值如下:'."\n"
+ ."\n"
+ .'- **true**:返回成功'."\n"
+ .'- **false**:返回失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。'."\n", 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
'Items' => [
'type' => 'object',
'itemNode' => true,
@@ -4943,54 +2763,20 @@
'description' => '返回参数。',
'type' => 'object',
'properties' => [
- 'FinishTime' => [
- 'description' => '完成时间,格式为Unix时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1704351396000',
- ],
- 'State' => [
- 'description' => '进度状态,返回值如下:'."\n"
- .'- **init**:初始化'."\n"
- .'- **warning**:警告'."\n"
- .'- **catched**:异常'."\n"
- .'- **running**:运行中'."\n"
- .'- **failed**:失败'."\n"
- .'- **finish**:完成',
- 'type' => 'string',
- 'example' => 'warning',
- ],
- 'BootTime' => [
- 'description' => '启动时间,格式为Unix时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1704351395000',
- ],
- 'JobId' => [
- 'description' => '进度ID。',
- 'type' => 'string',
- 'example' => 'qxwmxh2b****',
- ],
- 'Item' => [
- 'description' => '检查项编码。',
- 'type' => 'string',
- 'example' => 'CHECK_BINLOG_ON',
- ],
- 'ErrMsg' => [
- 'description' => '异常信息。',
- 'type' => 'string',
- 'example' => 'java.lang.RuntimeException: Could not find any schema ......',
- ],
- 'OrderNum' => [
- 'description' => '序号。',
- 'type' => 'string',
- 'example' => '30',
- ],
- 'Names' => [
- 'description' => '检查项分组。',
- 'type' => 'string',
- 'example' => 'CHECK_BINLOG_ON_DETAIL',
- ],
+ 'FinishTime' => ['description' => '完成时间,格式为Unix时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1704351396000'],
+ 'State' => ['description' => '进度状态,返回值如下:'."\n"
+ .'- **init**:初始化'."\n"
+ .'- **warning**:警告'."\n"
+ .'- **catched**:异常'."\n"
+ .'- **running**:运行中'."\n"
+ .'- **failed**:失败'."\n"
+ .'- **finish**:完成', 'type' => 'string', 'example' => 'warning'],
+ 'BootTime' => ['description' => '启动时间,格式为Unix时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1704351395000'],
+ 'JobId' => ['description' => '进度ID。', 'type' => 'string', 'example' => 'qxwmxh2b****'],
+ 'Item' => ['description' => '检查项编码。', 'type' => 'string', 'example' => 'CHECK_BINLOG_ON'],
+ 'ErrMsg' => ['description' => '异常信息。', 'type' => 'string', 'example' => 'java.lang.RuntimeException: Could not find any schema ......'],
+ 'OrderNum' => ['description' => '序号。', 'type' => 'string', 'example' => '30'],
+ 'Names' => ['description' => '检查项分组。', 'type' => 'string', 'example' => 'CHECK_BINLOG_ON_DETAIL'],
],
],
],
@@ -5003,11 +2789,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看预检查进度列表',
@@ -5015,19 +2797,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:58.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:58.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribePreCheckProgressList',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribePreCheckProgressList'],
],
],
'ramActions' => [
@@ -5038,12 +2812,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -5051,14 +2820,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"finish\\",\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"C4A45FE1-A903-470D-B113-F12A4DF942AB\\",\\n \\"Progress\\": 100,\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"Items\\": {\\n \\"PreCheckProgressDetail\\": [\\n {\\n \\"FinishTime\\": 1704351396000,\\n \\"State\\": \\"warning\\",\\n \\"BootTime\\": 1704351395000,\\n \\"JobId\\": \\"qxwmxh2b****\\",\\n \\"Item\\": \\"CHECK_BINLOG_ON\\",\\n \\"ErrMsg\\": \\"java.lang.RuntimeException: Could not find any schema ......\\",\\n \\"OrderNum\\": \\"30\\",\\n \\"Names\\": \\"CHECK_BINLOG_ON_DETAIL\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"</DescribePreCheckProgressListReponse>\\n<Status>failed</Status>\\n<Progress>20</Progress>\\n<RequestId>C4A45FE1-A903-470D-B113-F12A4DF942AB</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<Items>\\n <PreCheckProgressDetail>\\n <Names>CHECK_MYSQL_PASSOWRD_FORMAT_DETAIL</Names>\\n <Item>CHECK_MYSQL_PASSOWRD_FORMAT</Item>\\n <OrderNum>90</OrderNum>\\n <State>init</State>\\n <BootTime>1583734969000</BootTime>\\n <JobId>uvk8f6fxnq5s</JobId>\\n </PreCheckProgressDetail>\\n</Items>\\n<ErrMessage>java.lang.RuntimeException: Could not find any schema ......</ErrMessage>\\n<Success>true</Success>\\n</DescribePreCheckProgressListReponse>\\n\\n","errorExample":""}]',
],
'DescribeRegions' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5069,20 +2832,13 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxxxxx'],
],
],
'responses' => [
@@ -5091,32 +2847,11 @@
'description' => '返回值参数详情如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => '错误码值。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '400',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'EB4DFD5E-3618-498D-BE35-4DBEA0072122',
- ],
- 'ErrCode' => [
- 'description' => '错误码字符串。'."\n",
- 'type' => 'string',
- 'example' => 'InvalidParameter',
- ],
- 'Success' => [
- 'description' => '请求状态。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'This backupPlan can\'t support this action',
- ],
+ 'HttpStatusCode' => ['description' => '错误码值。', 'type' => 'integer', 'format' => 'int32', 'example' => '400'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EB4DFD5E-3618-498D-BE35-4DBEA0072122'],
+ 'ErrCode' => ['description' => '错误码字符串。'."\n", 'type' => 'string', 'example' => 'InvalidParameter'],
+ 'Success' => ['description' => '请求状态。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This backupPlan can\'t support this action'],
'Regions' => [
'type' => 'object',
'itemNode' => true,
@@ -5124,11 +2859,7 @@
'RegionCode' => [
'description' => '支持地域列表。',
'type' => 'array',
- 'items' => [
- 'description' => '支持地域列表。',
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
+ 'items' => ['description' => '支持地域列表。', 'type' => 'string', 'example' => 'cn-hangzhou'],
],
],
'description' => '',
@@ -5139,11 +2870,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看DBS支持地域',
@@ -5152,19 +2879,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:58.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:58.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeRegions',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'],
],
],
'ramActions' => [
@@ -5175,12 +2894,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -5189,14 +2903,8 @@
],
'DescribeRestoreRangeInfo' => [
'summary' => '该接口用于查看一个备份计划可恢复时间段详情。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5207,62 +2915,33 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbssl67c7mx****',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => true, 'example' => 'dbssl67c7mx****'],
],
[
'name' => 'BeginTimestampForRestore',
'in' => 'query',
- 'schema' => [
- 'description' => '查询可恢复开始时间,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1646674092000',
- ],
+ 'schema' => ['description' => '查询可恢复开始时间,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1646674092000'],
],
[
'name' => 'EndTimestampForRestore',
'in' => 'query',
- 'schema' => [
- 'description' => '查询可恢复结束时间,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1646846814000',
- ],
+ 'schema' => ['description' => '查询可恢复结束时间,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1646846814000'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。 '."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。 '."\n", 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
[
'name' => 'RecentlyRestore',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启最近恢复。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => '是否开启最近恢复。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
@@ -5271,34 +2950,13 @@
'description' => '接口返回信息如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E2BD9DFC-6760-5F49-97C5-DA739E29****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E2BD9DFC-6760-5F49-97C5-DA739E29****'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
'Items' => [
'type' => 'object',
'itemNode' => true,
@@ -5310,35 +2968,13 @@
'description' => '具体详情记录。',
'type' => 'object',
'properties' => [
- 'EndTimestampForRestore' => [
- 'description' => '可恢复结束时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1646760308000',
- ],
- 'SourceEndpointInstanceType' => [
- 'description' => '数据库所在位置。',
- 'type' => 'string',
- 'example' => 'rds',
- ],
- 'RangeType' => [
- 'description' => '可恢复时间段类型,返回值如下:'."\n"
- .'- **point**:该时间段为全量备份离散时间点。'."\n"
- .'- **range**:该时间段为连续备份时间段,可指定任意时间。',
- 'type' => 'string',
- 'example' => 'point',
- ],
- 'BeginTimestampForRestore' => [
- 'description' => '可恢复开始时间戳。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1646760282000',
- ],
- 'SourceEndpointInstanceID' => [
- 'description' => '数据库实例ID。',
- 'type' => 'string',
- 'example' => 'rm-bp106x9tk2c91****',
- ],
+ 'EndTimestampForRestore' => ['description' => '可恢复结束时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1646760308000'],
+ 'SourceEndpointInstanceType' => ['description' => '数据库所在位置。(已过时,请参考BackupSourceInstanceType)', 'type' => 'string', 'example' => 'rds'],
+ 'RangeType' => ['description' => '可恢复时间段类型,返回值如下:'."\n"
+ .'- **point**:该时间段为全量备份离散时间点。'."\n"
+ .'- **range**:该时间段为连续备份时间段,可指定任意时间。', 'type' => 'string', 'example' => 'point'],
+ 'BeginTimestampForRestore' => ['description' => '可恢复开始时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1646760282000'],
+ 'SourceEndpointInstanceID' => ['description' => '数据库实例ID。(已过时,请参考 BackupSourceInstanceId)', 'type' => 'string', 'example' => 'rm-bp106x9tk2c91****'],
'FullBackupList' => [
'type' => 'object',
'itemNode' => true,
@@ -5350,29 +2986,19 @@
'description' => '具体详情如下。',
'type' => 'object',
'properties' => [
- 'EndTime' => [
- 'description' => '全量备份结束时间,返回值:1646760308000。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1646760308000',
- ],
- 'StartTime' => [
- 'description' => '全量备份开始时间,返回值:1646760282000。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1646760282000',
- ],
- 'BackupSetId' => [
- 'description' => '备份集ID。',
- 'type' => 'string',
- 'example' => 'qecnsxkd****',
- ],
+ 'EndTime' => ['description' => '全量备份结束时间,返回值:1646760308000。', 'type' => 'integer', 'format' => 'int64', 'example' => '1646760308000'],
+ 'StartTime' => ['description' => '全量备份开始时间,返回值:1646760282000。', 'type' => 'integer', 'format' => 'int64', 'example' => '1646760282000'],
+ 'BackupSetId' => ['description' => '备份集ID。', 'type' => 'string', 'example' => 'qecnsxkd****'],
],
],
],
],
'description' => '',
],
+ 'BackupSourceInstanceType' => ['title' => '备份源实例类型', 'description' => '备份源实例类型', 'type' => 'string', 'example' => 'rds'],
+ 'BackupSourceInstanceId' => ['title' => '备份源实例Id', 'description' => '备份源实例Id', 'type' => 'string', 'example' => 'rm-testxx'],
+ 'BackupSourceHost' => ['title' => '备份源连接地址', 'description' => '备份源连接地址', 'type' => 'string', 'example' => '127.0.0.1'],
+ 'BackupSourcePort' => ['title' => '备份源连接端口', 'description' => '备份源连接端口', 'type' => 'string', 'example' => '3306'],
],
],
],
@@ -5385,31 +3011,20 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E2BD9DFC-6760-5F49-97C5-DA739E29****\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"Items\\": {\\n \\"DBSRecoverRange\\": [\\n {\\n \\"EndTimestampForRestore\\": 1646760308000,\\n \\"SourceEndpointInstanceType\\": \\"rds\\",\\n \\"RangeType\\": \\"point\\",\\n \\"BeginTimestampForRestore\\": 1646760282000,\\n \\"SourceEndpointInstanceID\\": \\"rm-bp106x9tk2c91****\\",\\n \\"FullBackupList\\": {\\n \\"FullBackupDetail\\": [\\n {\\n \\"EndTime\\": 1646760308000,\\n \\"StartTime\\": 1646760282000,\\n \\"BackupSetId\\": \\"qecnsxkd****\\"\\n }\\n ]\\n },\\n \\"BackupSourceInstanceType\\": \\"rds\\",\\n \\"BackupSourceInstanceId\\": \\"rm-testxx\\",\\n \\"BackupSourceHost\\": \\"127.0.0.1\\",\\n \\"BackupSourcePort\\": \\"3306\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeRestoreRangeInfoResponse>\\n <RequestId>E2BD9DFC-6760-5F49-97C5-DA739E29****</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Items>\\n <DBSRecoverRange>\\n <RangeType>point</RangeType>\\n <SourceEndpointInstanceID>rm-bp106x9tk2c91****</SourceEndpointInstanceID>\\n <FullBackupList>\\n <FullBackupDetail>\\n <EndTime>1646760308000</EndTime>\\n <StartTime>1646760282000</StartTime>\\n <BackupSetId>qecnsxkd****</BackupSetId>\\n </FullBackupDetail>\\n </FullBackupList>\\n <SourceEndpointInstanceType>rds</SourceEndpointInstanceType>\\n <EndTimestampForRestore>1646760308000</EndTimestampForRestore>\\n <BeginTimestampForRestore>1646760282000</BeginTimestampForRestore>\\n </DBSRecoverRange>\\n </Items>\\n <Success>true</Success>\\n</DescribeRestoreRangeInfoResponse>","errorExample":""}]',
'title' => '查看可恢复时间段详情',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:45.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeRestoreRangeInfo',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRestoreRangeInfo'],
],
],
'ramActions' => [
@@ -5420,27 +3035,16 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E2BD9DFC-6760-5F49-97C5-DA739E29****\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"Items\\": {\\n \\"DBSRecoverRange\\": [\\n {\\n \\"EndTimestampForRestore\\": 1646760308000,\\n \\"SourceEndpointInstanceType\\": \\"rds\\",\\n \\"RangeType\\": \\"point\\",\\n \\"BeginTimestampForRestore\\": 1646760282000,\\n \\"SourceEndpointInstanceID\\": \\"rm-bp106x9tk2c91****\\",\\n \\"FullBackupList\\": {\\n \\"FullBackupDetail\\": [\\n {\\n \\"EndTime\\": 1646760308000,\\n \\"StartTime\\": 1646760282000,\\n \\"BackupSetId\\": \\"qecnsxkd****\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeRestoreRangeInfoResponse>\\n <RequestId>E2BD9DFC-6760-5F49-97C5-DA739E29****</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Items>\\n <DBSRecoverRange>\\n <RangeType>point</RangeType>\\n <SourceEndpointInstanceID>rm-bp106x9tk2c91****</SourceEndpointInstanceID>\\n <FullBackupList>\\n <FullBackupDetail>\\n <EndTime>1646760308000</EndTime>\\n <StartTime>1646760282000</StartTime>\\n <BackupSetId>qecnsxkd****</BackupSetId>\\n </FullBackupDetail>\\n </FullBackupList>\\n <SourceEndpointInstanceType>rds</SourceEndpointInstanceType>\\n <EndTimestampForRestore>1646760308000</EndTimestampForRestore>\\n <BeginTimestampForRestore>1646760282000</BeginTimestampForRestore>\\n </DBSRecoverRange>\\n </Items>\\n <Success>true</Success>\\n</DescribeRestoreRangeInfoResponse>","errorExample":""}]',
],
'DescribeRestoreTaskList' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => '该接口用于查看DBS恢复任务列表。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5451,90 +3055,49 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。'."\n"
- ."\n"
- .'> 请填入本参数BackupPlanId或RestoreTaskId。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbs1hvb0wwwXXXXX',
- ],
+ 'schema' => ['description' => '备份计划ID。'."\n"
+ ."\n"
+ .'> 请填入本参数BackupPlanId或RestoreTaskId。', 'type' => 'string', 'required' => false, 'example' => 'dbs1hvb0wwwXXXXX'],
],
[
'name' => 'RestoreTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '恢复任务ID,支持多个查询,使用半角逗号(,)分隔。您可以调用[CreateRestoreTask](~~2869836~~)接口获取该参数。'."\n"
- ."\n"
- .'> 请填入本参数RestoreTaskId或BackupPlanId,同时填入时会导致报错。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 's102h7rf5anq',
- ],
+ 'schema' => ['description' => '恢复任务ID,支持多个查询,使用半角逗号(,)分隔。您可以调用[CreateRestoreTask](~~2869836~~)接口获取该参数。'."\n"
+ ."\n"
+ .'> 请填入本参数RestoreTaskId或BackupPlanId,同时填入时会导致报错。', 'type' => 'string', 'required' => false, 'example' => 's102h7rf5anq'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的记录数,取值为1~100。'."\n"
- ."\n"
- .'> 默认为30。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => '每页的记录数,取值为1~100。'."\n"
+ ."\n"
+ .'> 默认为30。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
],
[
'name' => 'PageNum',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,大于等于0且不超过Integer的最大值,默认值为:0。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码,大于等于0且不超过Integer的最大值,默认值为:0。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
[
'name' => 'StartTimestamp',
'in' => 'query',
- 'schema' => [
- 'description' => '开始备份时间。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1570701361528',
- ],
+ 'schema' => ['description' => '开始备份时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1570701361528'],
],
[
'name' => 'EndTimestamp',
'in' => 'query',
- 'schema' => [
- 'description' => '结束备份时间。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1570701361528',
- ],
+ 'schema' => ['description' => '结束备份时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1570701361528'],
],
],
'responses' => [
@@ -5543,210 +3106,76 @@
'description' => '返回参数详情如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'PageNum' => [
- 'description' => '页码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '9C397502-B4F2-4E22-AD97-C81F0049F3F3',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'TotalPages' => [
- 'description' => '总页数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'TotalElements' => [
- 'description' => '总恢复任务数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '每页的记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'PageNum' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '9C397502-B4F2-4E22-AD97-C81F0049F3F3'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'TotalElements' => ['description' => '总恢复任务数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'PageSize' => ['description' => '每页的记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '30'],
'Items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'RestoreTaskDetail' => [
- 'description' => '备份计划详情。',
+ 'description' => '恢复任务详情列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'RestoreStatus' => [
- 'description' => '恢复任务状态,取值:'."\n"
- .'- init:未启动或预检查失败'."\n"
- .'- running:运行中'."\n"
- .'- stop:失败'."\n"
- .'- pause:暂停'."\n"
- .'- check_pass:预检查通过',
- 'type' => 'string',
- 'example' => 'running',
- ],
- 'FullStruAfterRestoreProgress' => [
- 'description' => '全量结构后置恢复进度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'CrossRoleName' => [
- 'description' => '跨阿里云账号备份的RAM角色名称。',
- 'type' => 'string',
- 'example' => 'test123',
- ],
- 'RestoreDir' => [
- 'description' => '恢复路径。',
- 'type' => 'string',
- 'example' => '100.X.X.10:33204',
- ],
- 'CrossAliyunId' => [
- 'description' => '跨阿里云账号备份的UID。',
- 'type' => 'string',
- 'example' => '2xxx7778xxxxxxxxxx',
- ],
- 'RestoreObjects' => [
- 'description' => '恢复对象。',
- 'type' => 'string',
- 'example' => '[ { \\"DBName\\":\\"test\\" } ]',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbs1hvb0wXXXX',
- ],
- 'DestinationEndpointRegion' => [
- 'description' => '数据库地域。',
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- 'RestoreTaskCreateTime' => [
- 'description' => '恢复任务创建时间,取值:1554560477000。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1554560477000',
- ],
- 'DestinationEndpointUserName' => [
- 'description' => '数据库账号。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'RestoreTaskFinishTime' => [
- 'description' => '恢复任务完成时间,取值:1554560477000。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1554560477000',
- ],
- 'DestinationEndpointIpPort' => [
- 'description' => '数据库连接地址。',
- 'type' => 'string',
- 'example' => '100.X.X.10:33204',
- ],
- 'DestinationEndpointDatabaseName' => [
- 'description' => '数据库名称。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'DestinationEndpointInstanceType' => [
- 'description' => '数据库所在位置,取值:'."\n"
- .'- RDS'."\n"
- .'- ECS'."\n"
- .'- Express:通过专线/VPN网关/智能网关接入的数据库'."\n"
- .'- agent:通过备份网关接入的数据库'."\n"
- .'- dds:云MongoDB'."\n"
- .'- other:通过IP:Port直连的数据库',
- 'type' => 'string',
- 'example' => 'RDS',
- ],
- 'DestinationEndpointOracleSID' => [
- 'description' => 'Oracle SID名称。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'FullStruforeRestoreProgress' => [
- 'description' => '全量结构前置恢复进度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'NULL',
- ],
- 'RestoreTaskId' => [
- 'description' => '恢复任务ID。',
- 'type' => 'string',
- 'example' => 's1XXXXXX',
- ],
- 'FullDataRestoreProgress' => [
- 'description' => '全量数据恢复进度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'ContinuousRestoreProgress' => [
- 'description' => '增量日志恢复进度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'DestinationEndpointInstanceID' => [
- 'description' => '数据库实例ID。',
- 'type' => 'string',
- 'example' => 'rm-bp1p8c2947XXX',
- ],
- 'BackupSetId' => [
- 'description' => '恢复所使用的全量备份集ID。',
- 'type' => 'string',
- 'example' => '1ibh2f5uXXX',
- ],
- 'BackupGatewayId' => [
- 'description' => '备份网关ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '324234332',
- ],
- 'RestoreTaskName' => [
- 'description' => '恢复任务名称。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'RestoreTime' => [
- 'description' => '恢复时间,取值:1554560477000。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1554560477000',
- ],
+ 'RestoreStatus' => ['description' => '恢复任务状态,取值:'."\n"
+ ."\n"
+ .'- **init**:未启动或预检查失败'."\n"
+ .'- **running**:运行中'."\n"
+ .'- **stop**:失败'."\n"
+ .'- **pause**:暂停'."\n"
+ .'- **check_pass**:预检查通过', 'type' => 'string', 'example' => 'running'],
+ 'FullStruAfterRestoreProgress' => ['description' => '全量结构后置恢复进度。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'CrossRoleName' => ['description' => '跨阿里云账号备份的 RAM 角色名称。', 'type' => 'string', 'example' => 'test123'],
+ 'RestoreDir' => ['description' => '恢复路径。', 'type' => 'string', 'example' => '/home/test'],
+ 'CrossAliyunId' => ['description' => '跨阿里云账号备份的 UID。', 'type' => 'string', 'example' => '2xxx7778xxxxxxxxxx'],
+ 'RestoreObjects' => ['description' => '恢复对象。', 'type' => 'string', 'example' => '[ { \\"DBName\\":\\"test\\" } ]'],
+ 'BackupPlanId' => ['description' => '备份计划 ID。', 'type' => 'string', 'example' => 'dbsxxxx'],
+ 'DestinationEndpointRegion' => ['description' => '恢复目的端实例所在地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'RestoreTaskCreateTime' => ['description' => '恢复任务创建时间(毫秒)。', 'type' => 'integer', 'format' => 'int64', 'example' => '1554560477000'],
+ 'DestinationEndpointUserName' => ['description' => '恢复目的端数据库账号。', 'type' => 'string', 'example' => 'testUser'],
+ 'RestoreTaskFinishTime' => ['description' => '恢复任务完成时间(毫秒)。', 'type' => 'integer', 'format' => 'int64', 'example' => '1554560477000'],
+ 'DestinationEndpointIpPort' => ['description' => '恢复目的端数据库实例连接地址。', 'type' => 'string', 'example' => '100.X.X.10:33204'],
+ 'DestinationEndpointDatabaseName' => ['description' => '恢复目的端数据库名称。', 'type' => 'string', 'example' => 'test'],
+ 'DestinationEndpointInstanceType' => ['description' => '数据库所在位置,取值:'."\n"
+ .'- **RDS**'."\n"
+ .'- **ECS**'."\n"
+ .'- **Express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
+ .'- **Agent**:通过备份网关接入的数据库'."\n"
+ .'- **DDS**:云MongoDB'."\n"
+ .'- **Other**:通过IP:Port直连的数据库'."\n"
+ .'- **dg**:无公网IP:Port的自建数据库(通过数据库网关DG接入)', 'type' => 'string', 'example' => 'RDS'],
+ 'DestinationEndpointOracleSID' => ['description' => 'Oracle SID名称。'."\n"
+ ."\n"
+ .'> 数据库类型为Oracle时,该参数必传。', 'type' => 'string', 'example' => 'test'],
+ 'FullStruforeRestoreProgress' => ['description' => '全量结构前置恢复进度。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'NULL'],
+ 'RestoreTaskId' => ['description' => '恢复任务ID。', 'type' => 'string', 'example' => '1iyixxxxxx'],
+ 'FullDataRestoreProgress' => ['description' => '全量数据恢复进度。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'ContinuousRestoreProgress' => ['description' => '增量日志恢复进度。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'DestinationEndpointInstanceID' => ['description' => '恢复目的端数据库实例ID', 'type' => 'string', 'example' => 'rm-bp1p8c2947XXX'],
+ 'BackupSetId' => ['description' => '恢复所使用的全量备份集 ID。', 'type' => 'string', 'example' => 'urjlfmxxxxx'],
+ 'BackupGatewayId' => ['description' => '备份网关ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '324234332'],
+ 'RestoreTaskName' => ['description' => '恢复任务名称。', 'type' => 'string', 'example' => 'dbsr1g3xxxx_Restore_Task_1775009514575'],
+ 'RestoreTime' => ['description' => '恢复时间点(毫秒)。', 'type' => 'integer', 'format' => 'int64', 'example' => '1554560477000'],
+ 'DestinationEndpointHost' => ['title' => '恢复目的端数据库连接地址', 'description' => '恢复目的端数据库连接地址', 'type' => 'string', 'example' => '127.0.0.1'],
+ 'DestinationEndpointPort' => ['title' => '恢复目的端数据库端口', 'description' => '恢复目的端数据库端口', 'type' => 'string', 'example' => '3306'],
+ 'DestinationEndpointEnableSsl' => ['title' => '恢复目的端数据库是否开启SSL安全连接', 'description' => '恢复目的端数据库是否开启SSL安全连接', 'type' => 'string', 'example' => 'true'],
+ 'BackupGatewayIdentifier' => ['title' => '恢复目的端备份网关唯一标识码', 'description' => '恢复目的端备份网关唯一标识码', 'type' => 'string', 'example' => 'TESTGATEWAY'],
+ 'BackupSourceOssRegion' => ['title' => '备份源OSS所在地域', 'description' => '备份源OSS所在地域', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'RestoreDestinationMode' => ['title' => '恢复至目的端方式', 'description' => '恢复至目的端方式', 'type' => 'string', 'example' => 'EXIST_INSTANCE'],
+ 'PhysicalFullBackupRecoverProgress' => ['description' => '物理全量恢复进度。(适用于MySQL、SqlServer物理备份)', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'PhysicalFullAndIncrementBackupRecoverProgress' => ['description' => '物理全量增量恢复进度。(适用于MySQL物理备份)', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'PhysicalIncrementBackupRecoverProgress' => ['description' => '物理增量恢复进度。(适用于SqlServer物理备份)', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'PhysicalDatabaseOnlineProgress' => ['description' => '物理数据库在线进度。(适用于 SqlServer 物理备份)', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'PhysicalBackupRecoverProgress' => ['description' => '物理备份恢复进度。(适用于Oracle物理备份)', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
],
'description' => '',
],
@@ -5760,32 +3189,17 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 1,\\n \\"RequestId\\": \\"9C397502-B4F2-4E22-AD97-C81F0049F3F3\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 1,\\n \\"PageSize\\": 30,\\n \\"Items\\": {\\n \\"RestoreTaskDetail\\": [\\n {\\n \\"RestoreStatus\\": \\"running\\",\\n \\"FullStruAfterRestoreProgress\\": 100,\\n \\"CrossRoleName\\": \\"test123\\",\\n \\"RestoreDir\\": \\"/home/test\\",\\n \\"CrossAliyunId\\": \\"2xxx7778xxxxxxxxxx\\",\\n \\"RestoreObjects\\": \\"[ { \\\\\\\\\\\\\\"DBName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"test\\\\\\\\\\\\\\" } ]\\",\\n \\"BackupPlanId\\": \\"dbsxxxx\\",\\n \\"DestinationEndpointRegion\\": \\"cn-hangzhou\\",\\n \\"RestoreTaskCreateTime\\": 1554560477000,\\n \\"DestinationEndpointUserName\\": \\"testUser\\",\\n \\"RestoreTaskFinishTime\\": 1554560477000,\\n \\"DestinationEndpointIpPort\\": \\"100.X.X.10:33204\\",\\n \\"DestinationEndpointDatabaseName\\": \\"test\\",\\n \\"DestinationEndpointInstanceType\\": \\"RDS\\",\\n \\"DestinationEndpointOracleSID\\": \\"test\\",\\n \\"FullStruforeRestoreProgress\\": 100,\\n \\"ErrMessage\\": \\"NULL\\",\\n \\"RestoreTaskId\\": \\"1iyixxxxxx\\",\\n \\"FullDataRestoreProgress\\": 100,\\n \\"ContinuousRestoreProgress\\": 100,\\n \\"DestinationEndpointInstanceID\\": \\"rm-bp1p8c2947XXX\\",\\n \\"BackupSetId\\": \\"urjlfmxxxxx\\",\\n \\"BackupGatewayId\\": 324234332,\\n \\"RestoreTaskName\\": \\"dbsr1g3xxxx_Restore_Task_1775009514575\\",\\n \\"RestoreTime\\": 1554560477000,\\n \\"DestinationEndpointHost\\": \\"127.0.0.1\\",\\n \\"DestinationEndpointPort\\": \\"3306\\",\\n \\"DestinationEndpointEnableSsl\\": \\"true\\",\\n \\"BackupGatewayIdentifier\\": \\"TESTGATEWAY\\",\\n \\"BackupSourceOssRegion\\": \\"cn-beijing\\",\\n \\"RestoreDestinationMode\\": \\"EXIST_INSTANCE\\",\\n \\"PhysicalFullBackupRecoverProgress\\": 100,\\n \\"PhysicalFullAndIncrementBackupRecoverProgress\\": 100,\\n \\"PhysicalIncrementBackupRecoverProgress\\": 100,\\n \\"PhysicalDatabaseOnlineProgress\\": 100,\\n \\"PhysicalBackupRecoverProgress\\": 100\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<PageSize>30</PageSize>\\n<RequestId>9C397502-B4F2-4E22-AD97-C81F0049F3F3</RequestId>\\n<PageNum>0</PageNum>\\n<HttpStatusCode>200</HttpStatusCode>\\n<TotalElements>1</TotalElements>\\n<Items>\\n <RestoreTaskDetail>\\n <FullStruAfterRestoreProgress>0</FullStruAfterRestoreProgress>\\n <FullStruforeRestoreProgress>0</FullStruforeRestoreProgress>\\n <BackupSetId>1ibXXXXX7qw</BackupSetId>\\n <RestoreStatus>check_pass</RestoreStatus>\\n <DestinationEndpointInstanceType>rds</DestinationEndpointInstanceType>\\n <RestoreTime>1583741465000</RestoreTime>\\n <DestinationEndpointRegion>cn-hangzhou</DestinationEndpointRegion>\\n <FullDataRestoreProgress>0</FullDataRestoreProgress>\\n <RestoreTaskId>s10XXXXnq</RestoreTaskId>\\n <DestinationEndpointIpPort>100.X.X.10:33204</DestinationEndpointIpPort>\\n <DestinationEndpointUserName>testygx</DestinationEndpointUserName>\\n <RestoreObjects>[ { \\"DBName\\":\\"test_ygx\\" } ]</RestoreObjects>\\n <RestoreTaskName>test</RestoreTaskName>\\n <BackupPlanId>dbs1hvb0wwweusfa</BackupPlanId>\\n <RestoreTaskCreateTime>1583743872000</RestoreTaskCreateTime>\\n <DestinationEndpointInstanceID>rm-bp1p8c29479jv8pxe</DestinationEndpointInstanceID>\\n </RestoreTaskDetail>\\n</Items>\\n<TotalPages>1</TotalPages>\\n<Success>true</Success>","errorExample":""}]',
'title' => '查看恢复任务列表',
- 'summary' => '该接口用于查看DBS恢复任务列表。',
- 'requestParamsDescription' => ' ',
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:45.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'DescribeRestoreTaskList',
- ],
+ ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeRestoreTaskList'],
],
],
'ramActions' => [
@@ -5796,27 +3210,16 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"PageNum\\": 1,\\n \\"RequestId\\": \\"9C397502-B4F2-4E22-AD97-C81F0049F3F3\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 1,\\n \\"PageSize\\": 30,\\n \\"Items\\": {\\n \\"RestoreTaskDetail\\": [\\n {\\n \\"RestoreStatus\\": \\"running\\",\\n \\"FullStruAfterRestoreProgress\\": 100,\\n \\"CrossRoleName\\": \\"test123\\",\\n \\"RestoreDir\\": \\"100.X.X.10:33204\\",\\n \\"CrossAliyunId\\": \\"2xxx7778xxxxxxxxxx\\",\\n \\"RestoreObjects\\": \\"[ { \\\\\\\\\\\\\\"DBName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"test\\\\\\\\\\\\\\" } ]\\",\\n \\"BackupPlanId\\": \\"dbs1hvb0wXXXX\\",\\n \\"DestinationEndpointRegion\\": \\"cn-hangzhou\\",\\n \\"RestoreTaskCreateTime\\": 1554560477000,\\n \\"DestinationEndpointUserName\\": \\"test\\",\\n \\"RestoreTaskFinishTime\\": 1554560477000,\\n \\"DestinationEndpointIpPort\\": \\"100.X.X.10:33204\\",\\n \\"DestinationEndpointDatabaseName\\": \\"test\\",\\n \\"DestinationEndpointInstanceType\\": \\"RDS\\",\\n \\"DestinationEndpointOracleSID\\": \\"test\\",\\n \\"FullStruforeRestoreProgress\\": 0,\\n \\"ErrMessage\\": \\"NULL\\",\\n \\"RestoreTaskId\\": \\"s1XXXXXX\\",\\n \\"FullDataRestoreProgress\\": 100,\\n \\"ContinuousRestoreProgress\\": 100,\\n \\"DestinationEndpointInstanceID\\": \\"rm-bp1p8c2947XXX\\",\\n \\"BackupSetId\\": \\"1ibh2f5uXXX\\",\\n \\"BackupGatewayId\\": 324234332,\\n \\"RestoreTaskName\\": \\"test\\",\\n \\"RestoreTime\\": 1554560477000\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<PageSize>30</PageSize>\\n<RequestId>9C397502-B4F2-4E22-AD97-C81F0049F3F3</RequestId>\\n<PageNum>0</PageNum>\\n<HttpStatusCode>200</HttpStatusCode>\\n<TotalElements>1</TotalElements>\\n<Items>\\n <RestoreTaskDetail>\\n <FullStruAfterRestoreProgress>0</FullStruAfterRestoreProgress>\\n <FullStruforeRestoreProgress>0</FullStruforeRestoreProgress>\\n <BackupSetId>1ibXXXXX7qw</BackupSetId>\\n <RestoreStatus>check_pass</RestoreStatus>\\n <DestinationEndpointInstanceType>rds</DestinationEndpointInstanceType>\\n <RestoreTime>1583741465000</RestoreTime>\\n <DestinationEndpointRegion>cn-hangzhou</DestinationEndpointRegion>\\n <FullDataRestoreProgress>0</FullDataRestoreProgress>\\n <RestoreTaskId>s10XXXXnq</RestoreTaskId>\\n <DestinationEndpointIpPort>100.X.X.10:33204</DestinationEndpointIpPort>\\n <DestinationEndpointUserName>testygx</DestinationEndpointUserName>\\n <RestoreObjects>[ { \\"DBName\\":\\"test_ygx\\" } ]</RestoreObjects>\\n <RestoreTaskName>test</RestoreTaskName>\\n <BackupPlanId>dbs1hvb0wwweusfa</BackupPlanId>\\n <RestoreTaskCreateTime>1583743872000</RestoreTaskCreateTime>\\n <DestinationEndpointInstanceID>rm-bp1p8c29479jv8pxe</DestinationEndpointInstanceID>\\n </RestoreTaskDetail>\\n</Items>\\n<TotalPages>1</TotalPages>\\n<Success>true</Success>","errorExample":""}]',
],
'DisableBackupLog' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => '该接口用于关闭备份计划中的增量备份。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5827,30 +3230,23 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。您可以调用[DescribeBackupPlanList](~~2869825~~)查询。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi01****',
- ],
+ 'schema' => ['description' => '备份计划ID。您可以调用[DescribeBackupPlanList](~~2869825~~)查询。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi01****'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCziJZNwH****',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCziJZNwH****'],
+ ],
+ [
+ 'name' => 'DisableMysqlPhysicalBackupBinlogOnly',
+ 'in' => 'query',
+ 'schema' => ['title' => '仅关闭MySQL物理备份的日志备份', 'description' => '仅关闭MySQL物理备份的日志备份', 'type' => 'string', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
@@ -5858,46 +3254,17 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否执行成功。返回值:'."\n"
- .'- true:执行成功'."\n"
- .'- false:执行失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'findValidDBSJob error',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi01****',
- ],
- 'NeedPrecheck' => [
- 'description' => '本次修改是否会触发预检查。返回值:'."\n"
- .'- true:已触发预检查,且需要您手动调用[StartBackupPlan](~~2869816~~)接口,启动备份计划。'."\n"
- .'- false:不会触发预检查。',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否执行成功。返回值:'."\n"
+ .'- true:执行成功'."\n"
+ .'- false:执行失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'findValidDBSJob error'],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi01****'],
+ 'NeedPrecheck' => ['description' => '本次修改是否会触发预检查。返回值:'."\n"
+ .'- true:已触发预检查,且需要您手动调用[StartBackupPlan](~~2869816~~)接口,启动备份计划。'."\n"
+ .'- false:不会触发预检查。', 'type' => 'boolean', 'example' => 'false'],
],
'description' => '',
],
@@ -5905,34 +3272,22 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"findValidDBSJob error\\",\\n \\"BackupPlanId\\": \\"dbstooi01****\\",\\n \\"NeedPrecheck\\": false\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbstooi01xxxx</BackupPlanId>\\n<NeedPrecheck>false</NeedPrecheck>\\n<ErrMessage>findValidDBSJob error</ErrMessage>\\n<Success>true</Success>\\n<ErrCode>Param.NotFound</ErrCode>","errorExample":""}]',
'title' => '关闭增量备份',
- 'summary' => '该接口用于关闭备份计划中的增量备份。',
'description' => '## 影响'."\n"
.'关闭后,您的备份计划将不再进行增量备份。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:45.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DisableBackupLog',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableBackupLog'],
],
],
'ramActions' => [
@@ -5943,28 +3298,16 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"findValidDBSJob error\\",\\n \\"BackupPlanId\\": \\"dbstooi01****\\",\\n \\"NeedPrecheck\\": false\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbstooi01xxxx</BackupPlanId>\\n<NeedPrecheck>false</NeedPrecheck>\\n<ErrMessage>findValidDBSJob error</ErrMessage>\\n<Success>true</Success>\\n<ErrCode>Param.NotFound</ErrCode>","errorExample":""}]',
],
'EnableBackupLog' => [
'summary' => '该接口用于开启备份计划中的增量备份。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5975,30 +3318,23 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。您可以调用[DescribeBackupPlanList](~~2869825~~)查询。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi******',
- ],
+ 'schema' => ['description' => '备份计划ID。您可以调用[DescribeBackupPlanList](~~2869825~~)查询。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi******'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '任意字符串。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbs',
- ],
+ 'schema' => ['description' => '任意字符串。', 'type' => 'string', 'required' => false, 'example' => 'dbs'],
+ ],
+ [
+ 'name' => 'EnableMysqlPhysicalBackupBinlog',
+ 'in' => 'query',
+ 'schema' => ['title' => '开启MySQL物理备份的日志备份', 'description' => '开启MySQL物理备份的日志备份', 'type' => 'string', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
@@ -6006,46 +3342,17 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否执行成功。返回值:'."\n"
- .'- true:执行成功'."\n"
- .'- false:执行失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'findValidDBSJob error',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi******',
- ],
- 'NeedPrecheck' => [
- 'description' => '本次修改是否会触发预检查。返回值:'."\n"
- .'- true:已触发预检查,且需要您手动调用[StartBackupPlan](~~2869816~~)接口,启动备份计划。'."\n"
- .'- false:不会触发预检查。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否执行成功。返回值:'."\n"
+ .'- true:执行成功'."\n"
+ .'- false:执行失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'findValidDBSJob error'],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi******'],
+ 'NeedPrecheck' => ['description' => '本次修改是否会触发预检查。返回值:'."\n"
+ .'- true:已触发预检查,且需要您手动调用[StartBackupPlan](~~2869816~~)接口,启动备份计划。'."\n"
+ .'- false:不会触发预检查。', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
@@ -6053,13 +3360,10 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"findValidDBSJob error\\",\\n \\"BackupPlanId\\": \\"dbstooi******\\",\\n \\"NeedPrecheck\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbstooi01xxxx</BackupPlanId>\\n<NeedPrecheck>false</NeedPrecheck>\\n<ErrMessage>findValidDBSJob error</ErrMessage>\\n<Success>true</Success>\\n<ErrCode>Param.NotFound</ErrCode>","errorExample":""}]',
'title' => '开启增量备份',
'description' => '## 影响'."\n"
.'开启增量备份不会产生任何费用,但因增量备份会生成对应的备份流量和存储量,该部分收费标准与全量备份的收费标准相同,且都可以用备份计划或存储包的免费额度进行抵扣。',
@@ -6067,19 +3371,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:45.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'EnableBackupLog',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableBackupLog'],
],
],
'ramActions' => [
@@ -6090,27 +3386,15 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"findValidDBSJob error\\",\\n \\"BackupPlanId\\": \\"dbstooi******\\",\\n \\"NeedPrecheck\\": true\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbstooi01xxxx</BackupPlanId>\\n<NeedPrecheck>false</NeedPrecheck>\\n<ErrMessage>findValidDBSJob error</ErrMessage>\\n<Success>true</Success>\\n<ErrCode>Param.NotFound</ErrCode>","errorExample":""}]',
],
'GetDBListFromAgent' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6121,55 +3405,31 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupGatewayId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份网关ID,可通过调用[DescribeBackupGatewayList](~~2869840~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> 此参数为必填项。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '160***',
- ],
+ 'schema' => ['description' => '备份网关ID,可通过调用[DescribeBackupGatewayList](~~2869840~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> 此参数为必填项。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '160***'],
],
[
'name' => 'SourceEndpointRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '备份网关地域ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '备份网关地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'TaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '异步任务ID,调用[CreateGetDBListFromAgentTask](~~2869847~~)获取该参数的值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '123456',
- ],
+ 'schema' => ['description' => '异步任务ID,调用[CreateGetDBListFromAgentTask](~~2869847~~)获取该参数的值。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123456'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。'."\n"
- ."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。'."\n"
+ ."\n", 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxxxxx'],
],
],
'responses' => [
@@ -6178,32 +3438,11 @@
'description' => '返回值详情如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => '错误码值。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '400',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'EB4DFD5E-3618-498D-BE35-4DBEA0072122',
- ],
- 'ErrCode' => [
- 'description' => '错误码字符串。'."\n",
- 'type' => 'string',
- 'example' => 'InvalidParameter',
- ],
- 'Success' => [
- 'description' => '请求成功状态。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'This backupPlan can\'t support this action',
- ],
+ 'HttpStatusCode' => ['description' => '错误码值。', 'type' => 'integer', 'format' => 'int32', 'example' => '400'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EB4DFD5E-3618-498D-BE35-4DBEA0072122'],
+ 'ErrCode' => ['description' => '错误码字符串。'."\n", 'type' => 'string', 'example' => 'InvalidParameter'],
+ 'Success' => ['description' => '请求成功状态。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This backupPlan can\'t support this action'],
'DbList' => [
'type' => 'object',
'itemNode' => true,
@@ -6211,11 +3450,7 @@
'dbName' => [
'description' => '数据库列表。',
'type' => 'array',
- 'items' => [
- 'description' => '数据库列表。',
- 'type' => 'string',
- 'example' => 'TaskDB',
- ],
+ 'items' => ['description' => '数据库列表。', 'type' => 'string', 'example' => 'TaskDB'],
],
],
'description' => '',
@@ -6226,11 +3461,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '通过备份网关获取数据库列表',
@@ -6240,19 +3471,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:45.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'GetDBListFromAgent',
- ],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDBListFromAgent'],
],
],
'ramActions' => [
@@ -6263,12 +3486,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -6276,14 +3494,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 400,\\n \\"RequestId\\": \\"EB4DFD5E-3618-498D-BE35-4DBEA0072122\\",\\n \\"ErrCode\\": \\"InvalidParameter\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"This backupPlan can\'t support this action\\",\\n \\"DbList\\": {\\n \\"dbName\\": [\\n \\"TaskDB\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetDBListFromAgentReponse>\\n <RequestId>EB4DFD5E-3618-498D-BE35-4DBEA0072122</RequestId>\\n <HttpStatusCode>400</HttpStatusCode>\\n <ErrMessage>This backupPlan can\'t support this action</ErrMessage>\\n <Success>true</Success>\\n <DbList>\\n <dbName>TaskDB</dbName>\\n </DbList>\\n <ErrCode>InvalidParameter</ErrCode>\\n</GetDBListFromAgentReponse>","errorExample":""}]',
],
'InitializeDbsServiceLinkedRole' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6295,9 +3507,7 @@
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [],
'responses' => [
@@ -6306,50 +3516,24 @@
'description' => '返回参数详情如下。',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'description' => '空值。',
- 'type' => 'string',
- 'example' => 'null',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- ."\n"
- .'- **true**:请求成功。'."\n"
- .'- **false**:请求失败。',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrorCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'EntityAlreadyExists.Role',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'EntityAlreadyExists.Role : The role already exists:AliyunServiceRoleForDBS\\r\\nRequestId : 73******-3B4D-501A-9505-FA8B9******',
- ],
+ 'Data' => ['description' => '空值。', 'type' => 'string', 'example' => 'null'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ ."\n"
+ .'- **true**:请求成功。'."\n"
+ .'- **false**:请求失败。', 'type' => 'string', 'example' => 'true'],
+ 'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'EntityAlreadyExists.Role'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'EntityAlreadyExists.Role : The role already exists:AliyunServiceRoleForDBS\\r\\nRequestId : 73******-3B4D-501A-9505-FA8B9******'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '授权DBS服务关联角色',
'summary' => '该接口用于将服务关联角色(AliyunServiceRoleForDBS)授权给DBS。',
'description' => 'DBS接入您在阿里云购买的云数据库(如RDS、MongoDB、 Redis、PolarDB)或阿里云ECS上自建的数据库时, 需通过服务关联角色(AliyunServiceRoleForDBS)获取访问权限。更多信息,请参见[开通数据库备份DBS服务](~~162603~~)。',
@@ -6357,10 +3541,7 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:45.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
@@ -6373,12 +3554,7 @@
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -6386,15 +3562,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": \\"null\\",\\n \\"RequestId\\": \\"4F1888AC-1138-4995-B9FE-D2734F61C058\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrorCode\\": \\"EntityAlreadyExists.Role\\",\\n \\"ErrMessage\\": \\"EntityAlreadyExists.Role : The role already exists:AliyunServiceRoleForDBS\\\\\\\\r\\\\\\\\nRequestId : 73******-3B4D-501A-9505-FA8B9******\\"\\n}","errorExample":""},{"type":"xml","example":"<InitializeDbsServiceLinkedRoleResponse>\\r\\n <RequestId>1FB42980-238F-43DC-942D-097562C01B5B</RequestId>\\r\\n <ErrorCode>Success</ErrorCode>\\r\\n <Success>true</Success> \\r\\n</InitializeDbsServiceLinkedRoleResponse>","errorExample":""}]',
],
'ModifyBackupObjects' => [
- 'summary' => '该接口用于修改一个DBS备份计划的备份对象。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6406,65 +3575,48 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '105089',
- 'abilityTreeNodes' => [
- 'FEATUREcbsUOJI4N',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsUOJI4N'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbs1h****usfa',
- ],
+ 'schema' => ['description' => '备份计划ID。', 'type' => 'string', 'required' => true, 'example' => 'dbs1h****usfa'],
],
[
'name' => 'BackupObjects',
'in' => 'query',
- 'schema' => [
- 'description' => 'BackupObjects 的定义格式为 JSON 字符串,定义如下:'."\n"
- .'```'."\n"
- .'['."\n"
- .' {'."\n"
- .' "DBName":"待备份库名",'."\n"
- .' "SchemaName":"待备份 Schema 名",'."\n"
- .' "TableIncludes":[{'."\n"
- .' "TableName":"待备份表表名"'."\n"
- .' }],'."\n"
- .' "TableExcludes":[{'."\n"
- .' "TableName":"待备份库名不需要备份表的表名"'."\n"
- .' }]'."\n"
- .' }'."\n"
- .']'."\n"
- .'```'."\n"
- ."\n"
- .'* 当用户只配置了`DBName`,不配置其他子对象的规则,那么表示迁移这个数据库下面的所有对象。'."\n"
- .'* 当用户配置了`DBName`,且配置了部分对象的规则,那么不配置的对象默认不迁移。各种对象名的定义可以支持如下的正则表达式:'."\n"
- .' * 点号`.`:表示匹配除`\\r\\n`之外的任何单个字符。'."\n"
- .' * 星号`*`:表示匹配前面子表达式任意次,`h*llo`匹配 `hllo`、`heeeello`等字符串。'."\n"
- .' * 问号`?`:表示匹配前面子表达式零次或1次,`h.?llo`匹配`hllo`、`hello`,但不能匹配`haello`。'."\n"
- .' * 字符集合`[characters]`:表示匹配方括号内任意一个字符,例如`h[aello]`匹配`hallo`、`hello`。'."\n"
- .' * 负值字符集合`[^characters]`:表示不匹配方括号内任意一个字符,例如`h[^ae]llo`匹配`hcllo`、`hdllo`,但是不能匹配`hallo`、`hello`。'."\n"
- .' * 字符范围`[character1-character2]`:表示 `character1-character2`范围内的字符都可以匹配,例如 `[0-9]`、`[a-z]`。'."\n"
- ."\n"
- .'> `SchemaName` 和 `NewSchemaName`只用于 MSSQL,其他数据库的库名定义使用 `DBName`和`NewDBName`参数。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '[ { "DBName":"17xxx92xxxx374", "SchemaName":"gy9xnj8xxxxxx", "TableIncludes":[{ "TableName":"test1" }], "TableExcludes":[{ "TableName":"test2" }] } ]',
- ],
+ 'schema' => ['description' => 'BackupObjects 的定义格式为 JSON 字符串,定义如下:'."\n"
+ .'```'."\n"
+ .'['."\n"
+ .' {'."\n"
+ .' "DBName":"待备份库名",'."\n"
+ .' "SchemaName":"待备份 Schema 名",'."\n"
+ .' "TableIncludes":[{'."\n"
+ .' "TableName":"待备份表表名"'."\n"
+ .' }],'."\n"
+ .' "TableExcludes":[{'."\n"
+ .' "TableName":"待备份库名不需要备份表的表名"'."\n"
+ .' }]'."\n"
+ .' }'."\n"
+ .']'."\n"
+ .'```'."\n"
+ ."\n"
+ .'* 当用户只配置了`DBName`,不配置其他子对象的规则,那么表示迁移这个数据库下面的所有对象。'."\n"
+ .'* 当用户配置了`DBName`,且配置了部分对象的规则,那么不配置的对象默认不迁移。各种对象名的定义可以支持如下的正则表达式:'."\n"
+ .' * 点号`.`:表示匹配除`\\r\\n`之外的任何单个字符。'."\n"
+ .' * 星号`*`:表示匹配前面子表达式任意次,`h*llo`匹配 `hllo`、`heeeello`等字符串。'."\n"
+ .' * 问号`?`:表示匹配前面子表达式零次或1次,`h.?llo`匹配`hllo`、`hello`,但不能匹配`haello`。'."\n"
+ .' * 字符集合`[characters]`:表示匹配方括号内任意一个字符,例如`h[aello]`匹配`hallo`、`hello`。'."\n"
+ .' * 负值字符集合`[^characters]`:表示不匹配方括号内任意一个字符,例如`h[^ae]llo`匹配`hcllo`、`hdllo`,但是不能匹配`hallo`、`hello`。'."\n"
+ .' * 字符范围`[character1-character2]`:表示 `character1-character2`范围内的字符都可以匹配,例如 `[0-9]`、`[a-z]`。'."\n"
+ ."\n"
+ .'> `SchemaName` 和 `NewSchemaName`只用于 MSSQL,其他数据库的库名定义使用 `DBName`和`NewDBName`参数。', 'type' => 'string', 'required' => true, 'example' => '[ { "DBName":"17xxx92xxxx374", "SchemaName":"gy9xnj8xxxxxx", "TableIncludes":[{ "TableName":"test1" }], "TableExcludes":[{ "TableName":"test2" }] } ]'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -6473,56 +3625,23 @@
'description' => '返回参数详情如下。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'InvalidParameter',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- ."\n"
- .'- **true**:请求成功。'."\n"
- .'- **false**:请求失败。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbs1h****usfa',
- ],
- 'NeedPrecheck' => [
- 'description' => '本次修改是否会触发预检查,如果为true则需要再调用[StartBackupPlan](~~2869816~~)接口启动备份计划。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InvalidParameter'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ ."\n"
+ .'- **true**:请求成功。'."\n"
+ .'- **false**:请求失败。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbs1h****usfa'],
+ 'NeedPrecheck' => ['description' => '本次修改是否会触发预检查,如果为true则需要再调用[StartBackupPlan](~~2869816~~)接口启动备份计划。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'eventInfo' => [
@@ -6530,23 +3649,16 @@
'eventNames' => [],
],
'title' => '修改备份对象',
+ 'summary' => '该接口用于修改一个DBS备份计划的备份对象。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:45.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupObjects',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupObjects'],
],
],
'ramActions' => [
@@ -6557,12 +3669,7 @@
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -6570,14 +3677,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"InvalidParameter\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"BackupPlanId\\": \\"dbs1h****usfa\\",\\n \\"NeedPrecheck\\": true\\n}","errorExample":""},{"type":"xml","example":"<ModifyBackupObjectsReponse>\\n<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbs1h****usfa</BackupPlanId>\\n<Success>true</Success>\\n</ModifyBackupObjectsReponse>","errorExample":""}]',
],
'ModifyBackupPlanName' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6588,40 +3689,23 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi0XXXX',
- ],
+ 'schema' => ['description' => '备份计划ID。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi0XXXX'],
],
[
'name' => 'BackupPlanName',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi0XXXX',
- ],
+ 'schema' => ['description' => '备份计划名称。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi0XXXX'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -6629,37 +3713,12 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi0XXXX',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi0XXXX'],
],
'description' => '',
],
@@ -6667,11 +3726,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '修改备份计划名称',
@@ -6680,19 +3735,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:45.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupPlanName',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupPlanName'],
],
],
'ramActions' => [
@@ -6703,12 +3750,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -6716,14 +3758,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"BackupPlanId\\": \\"dbstooi0XXXX\\"\\n}","errorExample":""},{"type":"xml","example":"<ModifyBackupPlanNameReponse>\\n<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbs1h****usfa</BackupPlanId>\\n<Success>true</Success>\\n</ModifyBackupPlanNameReponse>","errorExample":""}]',
],
'ModifyBackupSetDownloadRules' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6734,120 +3770,72 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口查看。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi01xxxx',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口查看。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi01xxxx'],
],
[
'name' => 'OpenAutoDownload',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启自动下载,默认false。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'schema' => ['description' => '是否开启自动下载,默认false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'BackupGatewayId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集下载备份网关ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '23312323',
- ],
+ 'schema' => ['description' => '备份集下载备份网关ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '23312323'],
],
[
'name' => 'FullDataFormat',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集下载全量数据格式:'."\n"
- .'- Native'."\n"
- .'- SQL'."\n"
- .'- CSV'."\n"
- .'- JSON'."\n"
- ."\n"
- .'> 默认 CSV。'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CSV',
- ],
+ 'schema' => ['description' => '备份集下载全量数据格式:'."\n"
+ .'- Native'."\n"
+ .'- SQL'."\n"
+ .'- CSV'."\n"
+ .'- JSON'."\n"
+ ."\n"
+ .'> 默认 CSV。'."\n", 'type' => 'string', 'required' => false, 'example' => 'CSV'],
],
[
'name' => 'IncrementDataFormat',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集下载增量数据格式:'."\n"
- .'- Native'."\n"
- .'- SQL'."\n"
- .'- CSV'."\n"
- .'- JSON'."\n"
- ."\n"
- .'> 默认Native。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Native',
- ],
+ 'schema' => ['description' => '备份集下载增量数据格式:'."\n"
+ .'- Native'."\n"
+ .'- SQL'."\n"
+ .'- CSV'."\n"
+ .'- JSON'."\n"
+ ."\n"
+ .'> 默认Native。', 'type' => 'string', 'required' => false, 'example' => 'Native'],
],
[
'name' => 'BackupSetDownloadDir',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集下载服务器目录。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '备份集下载服务器目录。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'BackupSetDownloadTargetType',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集下载目标类型 。'."\n"
- .'> 默认agent:已安装备份网关,目前仅此项。'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'agent',
- ],
+ 'schema' => ['description' => '备份集下载目标类型 。'."\n"
+ .'> 默认agent:已安装备份网关,目前仅此项。'."\n", 'type' => 'string', 'required' => false, 'example' => 'agent'],
],
[
'name' => 'BackupSetDownloadTargetTypeLocation',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集下载目标目录类型,如果是开启自动下载,则必填,取值:'."\n"
- .'- local'."\n"
- .'- nas'."\n"
- .'- ftp'."\n"
- .'- minio'."\n"
- ."\n"
- .'> 默认为local。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'local',
- ],
+ 'schema' => ['description' => '备份集下载目标目录类型,如果是开启自动下载,则必填,取值:'."\n"
+ .'- local'."\n"
+ .'- nas'."\n"
+ .'- ftp'."\n"
+ .'- minio'."\n"
+ ."\n"
+ .'> 默认为local。', 'type' => 'string', 'required' => false, 'example' => 'local'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -6855,37 +3843,12 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi01exxxx',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi01exxxx'],
],
'description' => '',
],
@@ -6893,11 +3856,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '设置备份集下载规则',
@@ -6907,19 +3866,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:45.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupSetDownloadRules',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupSetDownloadRules'],
],
],
'ramActions' => [
@@ -6930,12 +3881,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -6943,14 +3889,9 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"BackupPlanId\\": \\"dbstooi01exxxx\\"\\n}","errorExample":""},{"type":"xml","example":"<ModifyBackupSetDownloadRulesResponse><RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbstooi01exxxx</BackupPlanId>\\n<Success>true</Success>\\n</ModifyBackupSetDownloadRulesResponse>","errorExample":""}]',
],
'ModifyBackupSourceEndpoint' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => '该接口用于修改数据库备份源。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6961,186 +3902,122 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbs1h****usfa',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => true, 'example' => 'dbs1h****usfa'],
],
[
'name' => 'SourceEndpointInstanceType',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库所在位置,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。取值如下:'."\n"
- ."\n"
- .'- **RDS**'."\n"
- .'- **ECS**'."\n"
- .'- **Express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
- .'- **Agent**:通过备份网关接入的数据库'."\n"
- .'- **DDS**:云MongoDB'."\n"
- .'- **Other**:通过IP:Port直连的数据库',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'RDS',
- ],
+ 'schema' => ['description' => '数据库所在位置,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。取值如下:'."\n"
+ ."\n"
+ .'- **RDS**'."\n"
+ .'- **ECS**'."\n"
+ .'- **Express**:通过专线/VPN网关/智能网关接入的数据库'."\n"
+ .'- **Agent**:通过备份网关接入的数据库'."\n"
+ .'- **DDS**:云MongoDB'."\n"
+ .'- **Other**:通过IP:Port直连的数据库', 'type' => 'string', 'required' => true, 'example' => 'RDS'],
],
[
'name' => 'SourceEndpointRegion',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库地域,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpointInstanceType**为RDS、ECS、DDS、Express、Agent时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '数据库地域,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpointInstanceType**为RDS、ECS、DDS、Express、Agent时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'SourceEndpointInstanceID',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库实例ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpointInstanceType**为RDS、ECS、DDS、Express时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-bp1p8c29479jv****',
- ],
+ 'schema' => ['description' => '数据库实例ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpointInstanceType**为RDS、ECS、DDS、Express时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'rm-bp1p8c29479jv****'],
],
[
'name' => 'SourceEndpointIP',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库连接地址,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpointInstanceType**为Express、Agent、Other时该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '100.*.*.10:3306',
- ],
+ 'schema' => ['description' => '数据库连接地址,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpointInstanceType**为Express、Agent、Other时该参数必传。', 'type' => 'string', 'required' => false, 'example' => '100.*.*.10:3306'],
],
[
'name' => 'SourceEndpointPort',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库端口,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpointInstanceType**为Express、Agent、Other、ECS,该参数必传。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '3306',
- ],
+ 'schema' => ['description' => '数据库端口,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpointInstanceType**为Express、Agent、Other、ECS,该参数必传。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3306'],
],
[
'name' => 'SourceEndpointDatabaseName',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库名称。'."\n"
- ."\n"
- .'- 数据库类型为PostgreSQL、MongoDB时,该参数必传。'."\n"
- .'- 数据库所在位置为Agent且数据库类型为MSSQL时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '数据库名称。'."\n"
+ ."\n"
+ .'- 数据库类型为PostgreSQL、MongoDB时,该参数必传。'."\n"
+ .'- 数据库所在位置为Agent且数据库类型为MSSQL时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'SourceEndpointUserName',
'in' => 'query',
- 'schema' => [
- 'description' => '数据库账号,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'数据库类型为Redis,或者数据库所在位置为Agent且数据库类型为MSSQL时该参数非必须,其他场景均必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '数据库账号,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'数据库类型为Redis,或者数据库所在位置为Agent且数据库类型为MSSQL时该参数非必须,其他场景均必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'SourceEndpointPassword',
'in' => 'query',
- 'schema' => [
- 'description' => '密码。'."\n"
- ."\n"
- .'数据库类型为Redis,或者数据库所在位置为Agent且数据库类型为MSSQL时该参数非必须,其他场景均必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '密码。'."\n"
+ ."\n"
+ .'数据库类型为Redis,或者数据库所在位置为Agent且数据库类型为MSSQL时该参数非必须,其他场景均必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'BackupGatewayId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份网关ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
- ."\n"
- .'> **SourceEndpointInstanceType**为Agent时,该参数必传。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '21321323213',
- ],
+ 'schema' => ['description' => '备份网关ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。'."\n"
+ ."\n"
+ .'> **SourceEndpointInstanceType**为Agent时,该参数必传。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '21321323213'],
],
[
'name' => 'BackupObjects',
'in' => 'query',
- 'schema' => [
- 'description' => '备份对象,当数据库所在位置为Agent时,该参数非必须,其他场景均必传。可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[{ "DBName":"待备份库名", "SchemaName":"待备份 Schema 名", "TableIncludes":[{ "TableName":"待备份表表名" }], "TableExcludes":[{"TableName":"待备份库名不需要备份表的表名" }] } ]',
- ],
+ 'schema' => ['description' => '备份对象,当数据库所在位置为Agent时,该参数非必须,其他场景均必传。可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => false, 'example' => '[{ "DBName":"待备份库名", "SchemaName":"待备份 Schema 名", "TableIncludes":[{ "TableName":"待备份表表名" }], "TableExcludes":[{"TableName":"待备份库名不需要备份表的表名" }] } ]'],
],
[
'name' => 'SourceEndpointOracleSID',
'in' => 'query',
- 'schema' => [
- 'description' => 'Oracle SID名称,数据库类型为Oracle时,该参数必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'Oracle SID名称,数据库类型为Oracle时,该参数必传。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'CrossAliyunId',
'in' => 'query',
- 'schema' => [
- 'description' => '跨阿里云账号备份的UID,可通过调用[DescribeRestoreTaskList](~~2869838~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2xxx7778xxxxxxxxxx',
- ],
+ 'schema' => ['description' => '跨阿里云账号备份的UID。', 'type' => 'string', 'required' => false, 'example' => '2xxx7778xxxxxxxxxx'],
],
[
'name' => 'CrossRoleName',
'in' => 'query',
- 'schema' => [
- 'description' => '跨阿里云账号备份的RAM角色名称,可通过调用[DescribeRestoreTaskList](~~2869838~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test123',
- ],
+ 'schema' => ['description' => '跨阿里云账号备份的RAM角色名称。', 'type' => 'string', 'required' => false, 'example' => 'test123'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '任意字符串,用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '任意字符串,用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
+ ],
+ [
+ 'name' => 'EnableSourceEndpointSsl',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否开启备份源数据库SSL安全连接', 'description' => '是否通过SSL安全连接备份源数据库实例。', 'type' => 'string', 'required' => false, 'example' => 'true'],
+ ],
+ [
+ 'name' => 'SslCaPem',
+ 'in' => 'query',
+ 'schema' => ['title' => '配置SSL安全连接的PEM证书', 'description' => '配置SSL安全连接的PEM证书', 'type' => 'string', 'required' => false, 'example' => '-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----'],
+ ],
+ [
+ 'name' => 'SourceEndpointOracleHome',
+ 'in' => 'query',
+ 'schema' => ['title' => 'Oracle Home', 'description' => 'Oracle Home', 'type' => 'string', 'required' => false, 'example' => '/home/test'],
],
],
'responses' => [
@@ -7148,44 +4025,15 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22E****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbs1h****usfa',
- ],
- 'NeedPrecheck' => [
- 'description' => '本次修改是否会触发预检查,如果为true则需要再调用StartBackupPlan接口启动备份计划。',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22E****'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbs1h****usfa'],
+ 'NeedPrecheck' => ['description' => '本次修改是否会触发预检查,如果为true则需要再调用StartBackupPlan接口启动备份计划。', 'type' => 'boolean', 'example' => 'false'],
],
'description' => '',
],
@@ -7193,32 +4041,20 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22E****\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"BackupPlanId\\": \\"dbs1h****usfa\\",\\n \\"NeedPrecheck\\": false\\n}","errorExample":""},{"type":"xml","example":"<ModifyBackupSourceEndpointResponse>\\n <RequestId>D6E068C3-25BC-455A-85FE-45F0B22E****</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <BackupPlanId>dbs1h****usfa</BackupPlanId>\\n <NeedPrecheck>false</NeedPrecheck>\\n <Success>true</Success>\\n</ModifyBackupSourceEndpointResponse>","errorExample":""}]',
'title' => '修改数据库备份源',
- 'summary' => '该接口用于修改数据库备份源。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:30.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:30.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupSourceEndpoint',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupSourceEndpoint'],
],
],
'ramActions' => [
@@ -7229,28 +4065,16 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22E****\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"BackupPlanId\\": \\"dbs1h****usfa\\",\\n \\"NeedPrecheck\\": false\\n}","errorExample":""},{"type":"xml","example":"<ModifyBackupSourceEndpointResponse>\\n <RequestId>D6E068C3-25BC-455A-85FE-45F0B22E****</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <BackupPlanId>dbs1h****usfa</BackupPlanId>\\n <NeedPrecheck>false</NeedPrecheck>\\n <Success>true</Success>\\n</ModifyBackupSourceEndpointResponse>","errorExample":""}]',
],
'ModifyBackupStrategy' => [
'summary' => '该接口用于修改备份计划的备份时间。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -7261,87 +4085,54 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi01XXXX',
- ],
+ 'schema' => ['description' => '备份计划ID。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi01XXXX'],
],
[
'name' => 'BackupPeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份周期,取值如下:'."\n"
- .'- Monday:周一'."\n"
- .'- Tuesday:周二'."\n"
- .'- Wednesday:周三'."\n"
- .'- Thursday:周四'."\n"
- .'- Friday:周五'."\n"
- .'- Saturday:周六'."\n"
- .'- Sunday:周日'."\n"
- ."\n"
- .'> BackupPeriod值必须指定每周至少两天,且日期间用英文逗号(,)分隔。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Monday,Tuesday,Wednesday',
- ],
+ 'schema' => ['description' => '全量备份周期,取值如下:'."\n"
+ .'- Monday:周一'."\n"
+ .'- Tuesday:周二'."\n"
+ .'- Wednesday:周三'."\n"
+ .'- Thursday:周四'."\n"
+ .'- Friday:周五'."\n"
+ .'- Saturday:周六'."\n"
+ .'- Sunday:周日'."\n"
+ ."\n"
+ .'> BackupPeriod值必须指定每周至少两天,且日期间用英文逗号(,)分隔。', 'type' => 'string', 'required' => true, 'example' => 'Monday,Tuesday,Wednesday'],
],
[
'name' => 'BackupStartTime',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份开始时间,取值:格式:HH:mm。'."\n"
- ."\n"
- .'> 该参数必填。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '14:22',
- ],
+ 'schema' => ['description' => '全量备份开始时间,取值:格式:HH:mm。'."\n"
+ ."\n"
+ .'> 该参数必填。', 'type' => 'string', 'required' => false, 'example' => '14:22'],
],
[
'name' => 'BackupStrategyType',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份周期,取值:'."\n"
- .'- **simple**:周期备份,和BackupPeriod、BackupStartTime配合使用。'."\n"
- .'- **manual**:手动备份。'."\n"
- ."\n"
- .'> 默认为**simple**。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'simple',
- ],
+ 'schema' => ['description' => '全量备份周期,取值:'."\n"
+ .'- **simple**:周期备份,和BackupPeriod、BackupStartTime配合使用。'."\n"
+ .'- **manual**:手动备份。'."\n"
+ ."\n"
+ .'> 默认为**simple**。', 'type' => 'string', 'required' => false, 'example' => 'simple'],
],
[
'name' => 'BackupLogIntervalSeconds',
'in' => 'query',
- 'schema' => [
- 'description' => '增量时间间隔,以秒(s)为单位。'."\n"
- .'> 仅支持物理备份。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1000',
- ],
+ 'schema' => ['description' => '增量时间间隔,以秒(s)为单位。'."\n"
+ .'> 仅支持物理备份。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -7349,42 +4140,13 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi01XXXX',
- ],
- 'NeedPrecheck' => [
- 'description' => '本次修改是否会触发预检查,如果为true则需要,再调用StartBackupPlan接口启动备份计划。',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi01XXXX'],
+ 'NeedPrecheck' => ['description' => '本次修改是否会触发预检查,如果为true则需要,再调用StartBackupPlan接口启动备份计划。', 'type' => 'boolean', 'example' => 'false'],
],
'description' => '',
],
@@ -7392,11 +4154,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '修改备份时间',
@@ -7404,19 +4162,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:30.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:30.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupStrategy',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupStrategy'],
],
],
'ramActions' => [
@@ -7427,12 +4177,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -7440,14 +4185,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"BackupPlanId\\": \\"dbstooi01XXXX\\",\\n \\"NeedPrecheck\\": false\\n}","errorExample":""},{"type":"xml","example":"<ModifyBackupStrategyReponse>\\n <RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <BackupPlanId>dbs1h****usfa</BackupPlanId>\\n <NeedPrecheck>false</NeedPrecheck>\\n <Success>true</Success>\\n</ModifyBackupStrategyReponse>","errorExample":""}]',
],
'ModifyStorageStrategy' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -7458,67 +4197,72 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbsqdss5tmh****',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => true, 'example' => 'dbsqdss5tmh****'],
],
[
'name' => 'BackupRetentionPeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '备份数据保留时间,单位为天,取值:0~1825。'."\n"
- ."\n"
- .'> 默认为730(天)。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '730',
- ],
+ 'schema' => ['description' => '备份数据保留时间,单位为天,取值:0~1825。'."\n"
+ ."\n"
+ .'> 默认为730(天)。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '730'],
],
[
'name' => 'DuplicationInfrequentAccessPeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '转为低频访问存储时间。需要小于归档冷备存储时间(DuplicationArchivePeriod参数)。更多关于低频访问存储的说明,请参见[存储类型介绍](~~51374~~)。'."\n"
- .'> 默认为180(天)。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '190',
- ],
+ 'schema' => ['description' => '转为低频访问存储时间。需要小于归档冷备存储时间(DuplicationArchivePeriod参数)。更多关于低频访问存储的说明,请参见[存储类型介绍](~~51374~~)。'."\n"
+ .'> 默认为180(天)。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '190'],
],
[
'name' => 'DuplicationArchivePeriod',
'in' => 'query',
- 'schema' => [
- 'description' => '转为归档冷备存储时间。需要小于备份数据保留时间(BackupRetentionPeriod参数)。更多关于归档存储的说明,请参见[存储类型介绍](~~51374~~)。'."\n"
- .'> 默认为365(天)。'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '366',
- ],
+ 'schema' => ['description' => '转为归档冷备存储时间。需要小于备份数据保留时间(BackupRetentionPeriod参数)。更多关于归档存储的说明,请参见[存储类型介绍](~~51374~~)。'."\n"
+ .'> 默认为365(天)。'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '366'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '任意字符串,用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbstest',
- ],
+ 'schema' => ['description' => '任意字符串,用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'dbstest'],
+ ],
+ [
+ 'name' => 'IncrementBackupRetentionPeriod',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => '365'],
+ ],
+ [
+ 'name' => 'IncrementDuplicationInfrequentAccessPeriod',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => '365'],
+ ],
+ [
+ 'name' => 'IncrementDuplicationArchivePeriod',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => '365'],
+ ],
+ [
+ 'name' => 'LogBackupRetentionPeriod',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => '365'],
+ ],
+ [
+ 'name' => 'LogDuplicationInfrequentAccessPeriod',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => '365'],
+ ],
+ [
+ 'name' => 'LogDuplicationArchivePeriod',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => '365'],
+ ],
+ [
+ 'name' => 'BackupStorageEncryptMethod',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => 'encrypted'],
],
],
'responses' => [
@@ -7527,58 +4271,25 @@
'description' => '返回参数详情。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E995F91F-6F89-503B-9F7D-502F58FD****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'findValidDBSJob error',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbsqdss5tmh****',
- ],
- 'NeedPrecheck' => [
- 'description' => '本次修改是否会触发预检查,返回值如下:'."\n"
- ."\n"
- .'- **true**:已触发预检查,且需要您手动调用[StartBackupPlan](~~2869818~~)接口,启动备份计划。'."\n"
- .'- **false**:不会触发预检查。',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E995F91F-6F89-503B-9F7D-502F58FD****'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'findValidDBSJob error'],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbsqdss5tmh****'],
+ 'NeedPrecheck' => ['description' => '本次修改是否会触发预检查,返回值如下:'."\n"
+ ."\n"
+ .'- **true**:已触发预检查,且需要您手动调用[StartBackupPlan](~~2869818~~)接口,启动备份计划。'."\n"
+ .'- **false**:不会触发预检查。', 'type' => 'boolean', 'example' => 'false'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '修改存储数据的生命周期',
@@ -7587,19 +4298,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:30.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:30.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyStorageStrategy',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyStorageStrategy'],
],
],
'ramActions' => [
@@ -7610,12 +4313,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -7624,14 +4322,8 @@
],
'ReleaseBackupPlan' => [
'summary' => '该接口仅支持释放一个按量付费的备份计划。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -7642,30 +4334,18 @@
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。您可以调用[DescribeBackupPlanList](~~2869825~~)查询。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi01xxxx',
- ],
+ 'schema' => ['description' => '备份计划ID。您可以调用[DescribeBackupPlanList](~~2869825~~)查询。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi01xxxx'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '任意字符串。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbs',
- ],
+ 'schema' => ['description' => '任意字符串。', 'type' => 'string', 'required' => false, 'example' => 'dbs'],
],
],
'responses' => [
@@ -7673,39 +4353,14 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否执行成功。返回值:'."\n"
- .'- true:执行成功'."\n"
- .'- false:执行失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'findValidDBSJob error',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi01xxxx',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否执行成功。返回值:'."\n"
+ .'- true:执行成功'."\n"
+ .'- false:执行失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'findValidDBSJob error'],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi01xxxx'],
],
'description' => '',
],
@@ -7713,11 +4368,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '释放备份计划',
@@ -7727,19 +4378,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:30.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:30.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ReleaseBackupPlan',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ReleaseBackupPlan'],
],
],
'ramActions' => [
@@ -7750,12 +4393,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -7763,14 +4401,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"findValidDBSJob error\\",\\n \\"BackupPlanId\\": \\"dbstooi01xxxx\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbstooi01xxxx</BackupPlanId>\\n<ErrMessage>findValidDBSJob error</ErrMessage>\\n<Success>false</Success>\\n<ErrCode>Param.NotFound</ErrCode>","errorExample":""}]',
],
'RenewBackupPlan' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -7782,55 +4414,32 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取此参数的值。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi01exxx',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取此参数的值。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi01exxx'],
],
[
'name' => 'Period',
'in' => 'query',
- 'schema' => [
- 'description' => '指定预付费实例为包年或者包月类型,取值:'."\n"
- .'- Year:包年'."\n"
- .'- Month:包月',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Month',
- ],
+ 'schema' => ['description' => '指定预付费实例为包年或者包月类型,取值:'."\n"
+ .'- Year:包年'."\n"
+ .'- Month:包月', 'type' => 'string', 'required' => true, 'example' => 'Month'],
],
[
'name' => 'UsedTime',
'in' => 'query',
- 'schema' => [
- 'description' => '指定购买时长,取值:'."\n"
- .'- 当参数Period为Year时,UsedTime取值为1~5。'."\n"
- .'- 当参数Period为Month时,UsedTime取值为1~11。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '指定购买时长,取值:'."\n"
+ .'- 当参数Period为Year时,UsedTime取值为1~5。'."\n"
+ .'- 当参数Period为Month时,UsedTime取值为1~11。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'HKAJHFIUEQWBFIJSNFOIWHN',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'HKAJHFIUEQWBFIJSNFOIWHN'],
],
],
'responses' => [
@@ -7838,42 +4447,13 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'Http状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否调用成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi01exxx',
- ],
- 'OrderId' => [
- 'description' => '订单ID。',
- 'type' => 'string',
- 'example' => '202020202020',
- ],
+ 'HttpStatusCode' => ['description' => 'Http状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否调用成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi01exxx'],
+ 'OrderId' => ['description' => '订单ID。', 'type' => 'string', 'example' => '202020202020'],
],
'description' => '',
],
@@ -7881,35 +4461,21 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '续费备份计划',
'summary' => '该接口用于续费一个DBS备份计划。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:31.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:31.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'RenewBackupPlan',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RenewBackupPlan'],
],
],
'ramActions' => [
@@ -7920,12 +4486,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -7933,14 +4494,9 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"BackupPlanId\\": \\"dbstooi01exxx\\",\\n \\"OrderId\\": \\"202020202020\\"\\n}","errorExample":""},{"type":"xml","example":"<RenewBackupPlanReponse>\\n<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbs1h****usfa</BackupPlanId>\\n<OrderId>2056157****</OrderId>\\n<Success>true</Success>\\n</RenewBackupPlanReponse>","errorExample":""}]',
],
'StartBackupPlan' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => '该接口用于启动一个DBS备份计划。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -7951,30 +4507,18 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbsqdss5tmh****',
- ],
+ 'schema' => ['description' => '备份计划ID,可通过调用[DescribeBackupPlanList](~~2869825~~)接口获取该参数的值。', 'type' => 'string', 'required' => true, 'example' => 'dbsqdss5tmh****'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -7983,76 +4527,34 @@
'description' => '返回详情信息。',
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP·状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D13761C3-9971-5C02-B789-3F3CD159****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'CreatedFullBackupsetId' => [
- 'description' => '全量备份集ID。',
- 'type' => 'string',
- 'example' => '1h7toien3****',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbsqdss5tm****',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP·状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D13761C3-9971-5C02-B789-3F3CD159****'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'CreatedFullBackupsetId' => ['description' => '全量备份集ID。', 'type' => 'string', 'example' => '1h7toien3****'],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbsqdss5tm****'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '启动备份计划',
- 'summary' => '该接口用于启动一个DBS备份计划。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:30.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:30.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'StartBackupPlan',
- ],
+ ['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartBackupPlan'],
],
],
'ramActions' => [
@@ -8063,12 +4565,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -8077,14 +4574,8 @@
],
'StartRestoreTask' => [
'summary' => '该接口用于启动一个DBS恢复任务。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -8095,30 +4586,18 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'RestoreTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '恢复任务ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 's102h7rfXXXX',
- ],
+ 'schema' => ['description' => '恢复任务ID。', 'type' => 'string', 'required' => true, 'example' => 's102h7rfXXXX'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -8126,37 +4605,12 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'RestoreTaskId' => [
- 'description' => '恢复任务ID。',
- 'type' => 'string',
- 'example' => 's102h7rfXXXX',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'RestoreTaskId' => ['description' => '恢复任务ID。', 'type' => 'string', 'example' => 's102h7rfXXXX'],
],
'description' => '',
],
@@ -8164,11 +4618,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '启动恢复任务',
@@ -8176,19 +4626,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:30.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:30.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10000',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'StartRestoreTask',
- ],
+ ['threshold' => '10000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartRestoreTask'],
],
],
'ramActions' => [
@@ -8199,12 +4641,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -8213,14 +4650,8 @@
],
'StopBackupPlan' => [
'summary' => '该接口用于暂停一个DBS备份计划。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -8231,42 +4662,25 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi01XXXX',
- ],
+ 'schema' => ['description' => '备份计划ID。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi01XXXX'],
],
[
'name' => 'StopMethod',
'in' => 'query',
- 'schema' => [
- 'description' => '暂停方式,取值:'."\n"
- .'- ALL:暂停备份计划、全量数据备份任务、增量日志备份任务、恢复任务'."\n"
- .'- PLAN:只暂停备份计划'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ALL',
- ],
+ 'schema' => ['description' => '暂停方式,取值:'."\n"
+ .'- ALL:暂停备份计划、全量数据备份任务、增量日志备份任务、恢复任务'."\n"
+ .'- PLAN:只暂停备份计划'."\n", 'type' => 'string', 'required' => true, 'example' => 'ALL'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -8274,37 +4688,12 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'HTTP状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbs1h****usfa',
- ],
+ 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbs1h****usfa'],
],
'description' => '',
],
@@ -8312,11 +4701,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '暂停备份计划',
@@ -8324,19 +4709,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:31.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:31.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'StopBackupPlan',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopBackupPlan'],
],
],
'ramActions' => [
@@ -8347,12 +4724,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -8360,14 +4732,8 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"D6E068C3-25BC-455A-85FE-45F0B22ECB1F\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": true,\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"BackupPlanId\\": \\"dbs1h****usfa\\"\\n}","errorExample":""},{"type":"xml","example":"<StopBackupPlanReponse>\\n<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<BackupPlanId>dbs1h****usfa</BackupPlanId>\\n<Success>true</Success>\\n</StopBackupPlanReponse>","errorExample":""}]',
],
'UpgradeBackupPlan' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -8379,45 +4745,28 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbsKR7J6S',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsKR7J6S'],
],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbstooi01eXXXX',
- ],
+ 'schema' => ['description' => '备份计划ID。', 'type' => 'string', 'required' => true, 'example' => 'dbstooi01eXXXX'],
],
[
'name' => 'InstanceClass',
'in' => 'query',
- 'schema' => [
- 'description' => '规格,取值:'."\n"
- .'- micro'."\n"
- .'- small'."\n"
- .'- medium'."\n"
- .'- large'."\n"
- .'- xlarge',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'micro',
- ],
+ 'schema' => ['description' => '规格,取值:'."\n"
+ .'- micro'."\n"
+ .'- small'."\n"
+ .'- medium'."\n"
+ .'- large'."\n"
+ .'- xlarge', 'type' => 'string', 'required' => true, 'example' => 'micro'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'ETnLKlblzczshOTUbOCzxxxxxxx'],
],
],
'responses' => [
@@ -8425,42 +4774,13 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'HttpStatusCode' => [
- 'description' => 'Http状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'BackupPlanId' => [
- 'description' => '备份计划ID。',
- 'type' => 'string',
- 'example' => 'dbstooi01XXXX',
- ],
- 'OrderId' => [
- 'description' => '订单ID。',
- 'type' => 'string',
- 'example' => '2056157****',
- ],
+ 'HttpStatusCode' => ['description' => 'Http状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D6E068C3-25BC-455A-85FE-45F0B22ECB1F'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'BackupPlanId' => ['description' => '备份计划ID。', 'type' => 'string', 'example' => 'dbstooi01XXXX'],
+ 'OrderId' => ['description' => '订单ID。', 'type' => 'string', 'example' => '2056157****'],
],
'description' => '',
],
@@ -8468,11 +4788,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '升级备份计划',
@@ -8481,19 +4797,11 @@
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
- [
- 'createdAt' => '2022-07-12T03:53:30.000Z',
- 'description' => '错误码发生变更',
- ],
+ ['createdAt' => '2022-07-12T03:53:30.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'UpgradeBackupPlan',
- ],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpgradeBackupPlan'],
],
],
'ramActions' => [
@@ -8504,12 +4812,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -8518,405 +4821,110 @@
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-wulanchabu',
- 'regionName' => '华北6(乌兰察布)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-wulanchabu.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-wulanchabu.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-wulanchabu.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-beijing',
- 'regionName' => '华北2(北京)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-qingdao',
- 'regionName' => '华北1(青岛)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-qingdao.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'regionName' => '华东2(上海)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hongkong',
- 'regionName' => '中国香港',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-hongkong.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-zhangjiakou',
- 'regionName' => '华北3(张家口)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-zhangjiakou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-zhangjiakou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-zhangjiakou.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'regionName' => '华南1(深圳)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-shenzhen.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-northeast-1',
- 'regionName' => '日本(东京)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.ap-northeast-1.aliyuncs.com',
- 'endpoint' => 'dbs-api.ap-northeast-1.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.ap-northeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-chengdu',
- 'regionName' => '西南1(成都)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-chengdu.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-chengdu.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-chengdu.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-1',
- 'regionName' => '新加坡',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.ap-southeast-1.aliyuncs.com',
- 'endpoint' => 'dbs-api.ap-southeast-1.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.ap-southeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-3',
- 'regionName' => '马来西亚(吉隆坡)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.ap-southeast-3.aliyuncs.com',
- 'endpoint' => 'dbs-api.ap-southeast-3.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.ap-southeast-3.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-huhehaote',
- 'regionName' => '华北5(呼和浩特)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-huhehaote.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-huhehaote.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-huhehaote.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-5',
- 'regionName' => '印度尼西亚(雅加达)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.ap-southeast-5.aliyuncs.com',
- 'endpoint' => 'dbs-api.ap-southeast-5.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.ap-southeast-5.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou',
- 'regionName' => '华东1(杭州)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-hangzhou.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-east-1',
- 'regionName' => '美国(弗吉尼亚)',
- 'areaId' => 'europeAmerica',
- 'areaName' => '欧洲与美洲',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.us-east-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'eu-west-1',
- 'regionName' => '英国(伦敦)',
- 'areaId' => 'europeAmerica',
- 'areaName' => '欧洲与美洲',
- 'public' => 'dbs-api.eu-west-1.aliyuncs.com',
- 'endpoint' => 'dbs-api.eu-west-1.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.eu-west-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-west-1',
- 'regionName' => '美国(硅谷)',
- 'areaId' => 'europeAmerica',
- 'areaName' => '欧洲与美洲',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.us-west-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'eu-central-1',
- 'regionName' => '德国(法兰克福)',
- 'areaId' => 'europeAmerica',
- 'areaName' => '欧洲与美洲',
- 'public' => 'dbs-api.eu-central-1.aliyuncs.com',
- 'endpoint' => 'dbs-api.eu-central-1.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.eu-central-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen-finance-1',
- 'regionName' => '华南1 金融云',
- 'areaId' => 'industryCloud',
- 'areaName' => '行业云',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-shenzhen-finance-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai-finance-1',
- 'regionName' => '华东2 金融云',
- 'areaId' => 'industryCloud',
- 'areaName' => '行业云',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-shanghai-finance-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou-finance',
- 'regionName' => '华东1 金融云',
- 'areaId' => 'industryCloud',
- 'areaName' => '行业云',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => '',
- ],
+ ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'dbs-api.cn-wulanchabu.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-wulanchabu.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-qingdao.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-hongkong.aliyuncs.com'],
+ ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-zhangjiakou.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.ap-northeast-1.aliyuncs.com', 'endpoint' => 'dbs-api.ap-northeast-1.aliyuncs.com', 'vpc' => 'dbs-api-vpc.ap-northeast-1.aliyuncs.com'],
+ ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-chengdu.aliyuncs.com', 'endpoint' => 'dbs-api.cn-chengdu.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-chengdu.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.ap-southeast-1.aliyuncs.com', 'endpoint' => 'dbs-api.ap-southeast-1.aliyuncs.com', 'vpc' => 'dbs-api-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.ap-southeast-3.aliyuncs.com', 'endpoint' => 'dbs-api.ap-southeast-3.aliyuncs.com', 'vpc' => 'dbs-api-vpc.ap-southeast-3.aliyuncs.com'],
+ ['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-huhehaote.aliyuncs.com', 'endpoint' => 'dbs-api.cn-huhehaote.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-huhehaote.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.ap-southeast-5.aliyuncs.com', 'endpoint' => 'dbs-api.ap-southeast-5.aliyuncs.com', 'vpc' => 'dbs-api-vpc.ap-southeast-5.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.us-east-1.aliyuncs.com'],
+ ['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'dbs-api.eu-west-1.aliyuncs.com', 'endpoint' => 'dbs-api.eu-west-1.aliyuncs.com', 'vpc' => 'dbs-api-vpc.eu-west-1.aliyuncs.com'],
+ ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.us-west-1.aliyuncs.com'],
+ ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'dbs-api.eu-central-1.aliyuncs.com', 'endpoint' => 'dbs-api.eu-central-1.aliyuncs.com', 'vpc' => 'dbs-api-vpc.eu-central-1.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-shenzhen-finance-1.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-shanghai-finance-1.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
- [
- 'code' => 'BackupPlanNotConfigure',
- 'message' => 'ConfigureBackupPlanRequest Error',
- 'http_code' => 200,
- 'description' => '备份计划配置错误',
- ],
- [
- 'code' => 'BackupPlanNotDescribe',
- 'message' => 'describe backup plan failed -> null',
- 'http_code' => 200,
- 'description' => '查询备份计划列表失败',
- ],
- [
- 'code' => 'BackupPlanNotModify',
- 'message' => 'modify backup source endpoint fail',
- 'http_code' => 200,
- 'description' => '修改备份源endpoint失败',
- ],
- [
- 'code' => 'DBS.DisasterCenter.NoPermission',
- 'message' => 'no permission for this action.',
- 'http_code' => 403,
- 'description' => '该操作无权限。',
- ],
- [
- 'code' => 'DBS.DownloadTask.CannotFind',
- 'message' => 'Can not find download task.',
- 'http_code' => 200,
- 'description' => '无法找到高级下载任务。',
- ],
- [
- 'code' => 'DBS.DownloadTask.JobAlreadyExist',
- 'message' => 'Job already submit in recent days, please check it.',
- 'http_code' => 200,
- 'description' => '相同备份集的高级下载任务在近几天被提交过,请检查。',
- ],
- [
- 'code' => 'DBS.DownloadTask.OnlyOneRunningOrFailedTask',
- 'message' => 'There can be only one running or failed task for the instance.',
- 'http_code' => 200,
- 'description' => '当前实例只能同时存在一个运行中/失败的任务。',
- ],
- [
- 'code' => 'DBS.DownloadTask.OssForbid',
- 'message' => 'OSS is forbidden to access. Please check your OSS bucket.',
- 'http_code' => 200,
- 'description' => '访问OSS被拒绝。请检查您的OSS权限配置。',
- ],
- [
- 'code' => 'DBS.DownloadTask.OssStorageTypeInvalid',
- 'message' => 'Unsupported bucket storage. Please make sure that your OSS bucket\'s storgae type is standard.',
- 'http_code' => 200,
- 'description' => '当前OSS bucket类型不支持。请确保您的OSS bucket类型是标准存储类型。',
- ],
- [
- 'code' => 'DBS.NoPermissionException',
- 'message' => 'Rejected by ValidationChecker.',
- 'http_code' => 403,
- 'description' => 'Rejected by ValidationChecker.',
- ],
- [
- 'code' => 'DBS.NotExists',
- 'message' => 'data source do not existed.',
- 'http_code' => 404,
- 'description' => 'DBS.NotExists',
- ],
- [
- 'code' => 'Forbidden.InstanceNotFound',
- 'message' => 'instance not found',
- 'http_code' => 200,
- 'description' => '实例不存在',
- ],
- [
- 'code' => 'InternalError',
- 'message' => 'internal error',
- 'http_code' => 500,
- 'description' => '内部错误',
- ],
- [
- 'code' => 'OperationDenied.JobStatus',
- 'message' => 'The operation is not permitted.',
- 'http_code' => 200,
- 'description' => '当前操作不被允许',
- ],
- [
- 'code' => 'Request.Forbidden',
- 'message' => 'Have no Permissions',
- 'http_code' => 403,
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
- [
- 'code' => 'UserError',
- 'message' => 'user error',
- 'http_code' => 200,
- 'description' => '用户使用问题',
- ],
- [
- 'code' => 'UserError',
- 'message' => 'You must first activate OSS before using DBS to OSS.',
- 'http_code' => 403,
- 'description' => 'You must first activate OSS before using DBS -> OSS.',
- ],
+ ['code' => 'BackupPlanNotConfigure', 'message' => 'ConfigureBackupPlanRequest Error', 'http_code' => 200, 'description' => '备份计划配置错误'],
+ ['code' => 'BackupPlanNotDescribe', 'message' => 'describe backup plan failed -> null', 'http_code' => 200, 'description' => '查询备份计划列表失败'],
+ ['code' => 'BackupPlanNotModify', 'message' => 'modify backup source endpoint fail', 'http_code' => 200, 'description' => '修改备份源endpoint失败'],
+ ['code' => 'DBS.DisasterCenter.NoPermission', 'message' => 'no permission for this action.', 'http_code' => 403, 'description' => '该操作无权限。'],
+ ['code' => 'DBS.DownloadTask.BakSetError', 'message' => 'DBS download task bak set error. Your backup set does not meet the requirements.', 'http_code' => 200, 'description' => '您选择的备份集不满足高级下载要求。'],
+ ['code' => 'DBS.DownloadTask.CannotFind', 'message' => 'Can not find download task.', 'http_code' => 200, 'description' => '无法找到高级下载任务。'],
+ ['code' => 'DBS.DownloadTask.CustinIdNotSupport', 'message' => 'DBS DownloadTask CustinIdNotSupport.', 'http_code' => 200, 'description' => '高级下载实例暂不支持下载'],
+ ['code' => 'DBS.DownloadTask.CustinNameNotSupport', 'message' => 'DBS DownloadTask CustinNameNotSupport.', 'http_code' => 200, 'description' => '高级下载实例暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.DbTypeNotSupport', 'message' => 'DBS DownloadTask DbTypeNotSupport.', 'http_code' => 200, 'description' => '高级下载引擎类型暂不支持'],
+ ['code' => 'DBS.DownloadTask.InstanceInfoNotSupport', 'message' => 'DBS DownloadTask InstanceInfoNotSupport.', 'http_code' => 200, 'description' => '高级下载当前实例不支持下载'],
+ ['code' => 'DBS.DownloadTask.InstanceParamNotSupport', 'message' => 'DBS DownloadTask InstanceParamNotSupport.', 'http_code' => 200, 'description' => '高级下载实例暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.InstanceStorageTypeNotSupport', 'message' => 'DBS DownloadTask InstanceStorageTypeNotSupport.', 'http_code' => 200, 'description' => '高级下载实例存储类型暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.InstanceVersionNotSupport', 'message' => 'DBS DownloadTask InstanceVersionNotSupport.', 'http_code' => 200, 'description' => '高级下载引擎版本暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.JobAlreadyExist', 'message' => 'Job already submit in recent days, please check it.', 'http_code' => 200, 'description' => '相同备份集的高级下载任务在近几天被提交过,请检查。'],
+ ['code' => 'DBS.DownloadTask.NotSupport', 'message' => 'DBS DownloadTask NotSupport.', 'http_code' => 200, 'description' => '高级下载暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.OnlyOneRunningOrFailedTask', 'message' => 'There can be only one running or failed task for the instance.', 'http_code' => 200, 'description' => '当前实例只能同时存在一个运行中/失败的任务。'],
+ ['code' => 'DBS.DownloadTask.OssForbid', 'message' => 'OSS is forbidden to access. Please check your OSS bucket.', 'http_code' => 200, 'description' => '访问OSS被拒绝。请检查您的OSS权限配置。'],
+ ['code' => 'DBS.DownloadTask.OssStorageTypeInvalid', 'message' => 'Unsupported bucket storage. Please make sure that your OSS bucket\'s storgae type is standard.', 'http_code' => 200, 'description' => '当前OSS bucket类型不支持。请确保您的OSS bucket类型是标准存储类型。'],
+ ['code' => 'DBS.DownloadTask.RegionNotSupport', 'message' => 'DBS DownloadTask RegionNotSupport.', 'http_code' => 200, 'description' => '高级下载地域暂不支持'],
+ ['code' => 'DBS.DownloadTask.UserNotSupport', 'message' => 'DBS DownloadTask UserNotSupport.', 'http_code' => 200, 'description' => '高级下载用户暂不支持下载'],
+ ['code' => 'DBS.NoPermissionException', 'message' => 'Rejected by ValidationChecker.', 'http_code' => 403, 'description' => 'Rejected by ValidationChecker.'],
+ ['code' => 'DBS.NotExists', 'message' => 'data source do not existed.', 'http_code' => 404, 'description' => 'DBS.NotExists'],
+ ['code' => 'DBS.RegionNotSupport', 'message' => 'Request region is not allowed in current gateway.', 'http_code' => 400, 'description' => '当前请求访问了错误的endpoint'],
+ ['code' => 'Forbidden.InstanceNotFound', 'message' => 'instance not found', 'http_code' => 200, 'description' => '实例不存在'],
+ ['code' => 'InternalError', 'message' => 'internal error', 'http_code' => 500, 'description' => '内部错误'],
+ ['code' => 'OperationDenied.JobStatus', 'message' => 'The operation is not permitted.', 'http_code' => 200, 'description' => '当前操作不被允许'],
+ ['code' => 'Request.Forbidden', 'message' => 'Have no Permissions', 'http_code' => 403, 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
+ ['code' => 'UserError', 'message' => 'user error', 'http_code' => 200, 'description' => '用户使用问题'],
+ ['code' => 'UserError', 'message' => 'You must first activate OSS before using DBS to OSS.', 'http_code' => 403, 'description' => 'You must first activate OSS before using DBS -> OSS.'],
],
'changeSet' => [
[
'apis' => [
- [
- 'description' => '响应参数发生变更',
- 'api' => 'DescribeBackupPlanList',
- ],
+ ['description' => '响应参数发生变更', 'api' => 'DescribeBackupPlanList'],
],
'createdAt' => '2023-03-28T07:34:58.000Z',
'description' => '',
],
[
'apis' => [
- [
- 'description' => '响应参数发生变更',
- 'api' => 'DescribeBackupPlanBilling',
- ],
+ ['description' => '响应参数发生变更', 'api' => 'DescribeBackupPlanBilling'],
],
'createdAt' => '2022-08-18T07:57:14.000Z',
'description' => '审计',
],
[
'apis' => [
- [
- 'description' => '响应参数发生变更',
- 'api' => 'DescribeBackupPlanList',
- ],
+ ['description' => '响应参数发生变更', 'api' => 'DescribeBackupPlanList'],
],
'createdAt' => '2022-08-12T03:51:35.000Z',
'description' => '接入rmc',
],
[
'apis' => [
- [
- 'description' => '请求参数发生变更',
- 'api' => 'ConfigureBackupPlan',
- ],
+ ['description' => '请求参数发生变更', 'api' => 'ConfigureBackupPlan'],
],
'createdAt' => '2022-07-28T07:13:26.000Z',
'description' => '操作审计',
],
[
'apis' => [
- [
- 'description' => '请求参数发生变更',
- 'api' => 'CreateAndStartBackupPlan',
- ],
- [
- 'description' => '请求参数发生变更',
- 'api' => 'CreateBackupPlan',
- ],
- [
- 'description' => '响应参数发生变更',
- 'api' => 'DescribeBackupPlanBilling',
- ],
- [
- 'description' => '请求参数发生变更、响应参数发生变更',
- 'api' => 'DescribeBackupPlanList',
- ],
+ ['description' => '请求参数发生变更', 'api' => 'CreateAndStartBackupPlan'],
+ ['description' => '请求参数发生变更', 'api' => 'CreateBackupPlan'],
+ ['description' => '响应参数发生变更', 'api' => 'DescribeBackupPlanBilling'],
+ ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'DescribeBackupPlanList'],
],
'createdAt' => '2022-07-28T06:54:59.000Z',
'description' => '操作审计',
],
[
'apis' => [
- [
- 'description' => '错误码发生变更',
- 'api' => 'ConfigureBackupPlan',
- ],
- [
- 'description' => '错误码发生变更',
- 'api' => 'CreateAndStartBackupPlan',
- ],
- [
- 'description' => '错误码发生变更',
- 'api' => 'CreateBackupPlan',
- ],
- [
- 'description' => '错误码发生变更',
- 'api' => 'CreateFullBackupSetDownload',
- ],
- [
- 'description' => '错误码发生变更',
- 'api' => 'CreateGetDBListFromAgentTask',
- ],
- [
- 'description' => '错误码发生变更',
- 'api' => 'CreateIncrementBackupSetDownload',
- ],
- [
- 'description' => '错误码发生变更',
- 'api' => 'CreateRestoreTask',
- ],
- [
- 'description' => '错误码发生变更',
- 'api' => 'DescribeBackupGatewayList',
- ],
- [
- 'description' => '错误码发生变更',
- 'api' => 'DescribeBackupPlanBilling',
- ],
- [
- 'description' => '错误码发生变更',
- 'api' => 'DescribeBackupPlanList',
- ],
+ ['description' => '错误码发生变更', 'api' => 'ConfigureBackupPlan'],
+ ['description' => '错误码发生变更', 'api' => 'CreateAndStartBackupPlan'],
+ ['description' => '错误码发生变更', 'api' => 'CreateBackupPlan'],
+ ['description' => '错误码发生变更', 'api' => 'CreateFullBackupSetDownload'],
+ ['description' => '错误码发生变更', 'api' => 'CreateGetDBListFromAgentTask'],
+ ['description' => '错误码发生变更', 'api' => 'CreateIncrementBackupSetDownload'],
+ ['description' => '错误码发生变更', 'api' => 'CreateRestoreTask'],
+ ['description' => '错误码发生变更', 'api' => 'DescribeBackupGatewayList'],
+ ['description' => '错误码发生变更', 'api' => 'DescribeBackupPlanBilling'],
+ ['description' => '错误码发生变更', 'api' => 'DescribeBackupPlanList'],
],
'createdAt' => '2022-07-12T03:54:35.000Z',
'description' => '补齐api信息',
@@ -8924,679 +4932,373 @@
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '50',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'DescribeBackupPlanList',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupSetDownloadRules',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ReleaseBackupPlan',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'StartBackupPlan',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'RenewBackupPlan',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeJobErrorCode',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'GetDBListFromAgent',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyStorageStrategy',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'UpgradeBackupPlan',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DisableBackupLog',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupPlanName',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeBackupSetDownloadTaskList',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'DescribeBackupGatewayList',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupSourceEndpoint',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeRegions',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateAndStartBackupPlan',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateIncrementBackupSetDownload',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupStrategy',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeRestoreRangeInfo',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateBackupPlan',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateGetDBListFromAgentTask',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeFullBackupList',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'DescribeRestoreTaskList',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'StopBackupPlan',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateFullBackupSetDownload',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeDLAService',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribePreCheckProgressList',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'EnableBackupLog',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ModifyBackupObjects',
- ],
- [
- 'threshold' => '10000',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'CreateRestoreTask',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeIncrementBackupList',
- ],
- [
- 'threshold' => '10',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'ConfigureBackupPlan',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeBackupPlanBilling',
- ],
- [
- 'threshold' => '-1',
- 'countWindow' => 1,
- 'regionId' => '*',
- ],
- [
- 'threshold' => '10000',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'StartRestoreTask',
- ],
- [
- 'threshold' => '100',
- 'countWindow' => 1,
- 'regionId' => '*',
- 'api' => 'DescribeNodeCidrList',
- ],
+ ['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeBackupPlanList'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupSetDownloadRules'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ReleaseBackupPlan'],
+ ['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartBackupPlan'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RenewBackupPlan'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeJobErrorCode'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDBListFromAgent'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyStorageStrategy'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpgradeBackupPlan'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableBackupLog'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupPlanName'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupSetDownloadTaskList'],
+ ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeBackupGatewayList'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupSourceEndpoint'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAndStartBackupPlan'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIncrementBackupSetDownload'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupStrategy'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRestoreRangeInfo'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateBackupPlan'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGetDBListFromAgentTask'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeFullBackupList'],
+ ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeRestoreTaskList'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopBackupPlan'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFullBackupSetDownload'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDLAService'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribePreCheckProgressList'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableBackupLog'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyBackupObjects'],
+ ['threshold' => '10000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateRestoreTask'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeIncrementBackupList'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ConfigureBackupPlan'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeBackupPlanBilling'],
+ ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
+ ['threshold' => '10000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartRestoreTask'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeNodeCidrList'],
],
],
'ram' => [
'productCode' => 'DBS',
'productName' => '数据库备份',
- 'ramCodes' => [
- 'dbs',
- ],
+ 'ramCodes' => ['dbs'],
'ramLevel' => '资源级',
'ramConditions' => [],
'ramActions' => [
[
- 'apiName' => 'InitializeDbsServiceLinkedRole',
- 'description' => '授权DBS服务关联角色',
- 'operationType' => 'create',
+ 'apiName' => 'DescribeBackupGatewayList',
+ 'description' => '查看备份网关列表',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:InitializeDbsServiceLinkedRole',
- 'authLevel' => 'operate',
+ 'action' => 'dbs:DescribeBackupGatewayList',
+ 'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'StartBackupPlan',
- 'description' => '启动备份计划',
- 'operationType' => 'update',
+ 'apiName' => 'DescribeIncrementBackupList',
+ 'description' => '查看增量备份任务列表',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:StartBackupPlan',
+ 'action' => 'dbs:DescribeIncrementBackupList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'RenewBackupPlan',
- 'description' => '续费备份计划',
- 'operationType' => 'update',
+ 'apiName' => 'CreateFullBackupSetDownload',
+ 'description' => '创建全量备份集下载任务',
+ 'operationType' => 'create',
'ramAction' => [
- 'action' => 'dbs:RenewBackupPlan',
+ 'action' => 'dbs:CreateFullBackupSetDownload',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeFullBackupList',
- 'description' => '查看全量备份任务列表',
- 'operationType' => 'get',
+ 'apiName' => 'CreateRestoreTask',
+ 'description' => '创建恢复任务',
+ 'operationType' => 'create',
'ramAction' => [
- 'action' => 'dbs:DescribeFullBackupList',
+ 'action' => 'dbs:CreateRestoreTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'CreateIncrementBackupSetDownload',
- 'description' => '创建增量备份集下载任务',
- 'operationType' => 'create',
+ 'apiName' => 'DescribeRestoreRangeInfo',
+ 'description' => '查看可恢复时间段详情',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:CreateIncrementBackupSetDownload',
+ 'action' => 'dbs:DescribeRestoreRangeInfo',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'CreateBackupPlan',
- 'description' => '创建备份计划',
+ 'apiName' => 'CreateGetDBListFromAgentTask',
+ 'description' => '创建数据库列表任务',
'operationType' => 'create',
'ramAction' => [
- 'action' => 'dbs:CreateBackupPlan',
+ 'action' => 'dbs:CreateGetDBListFromAgentTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'EnableBackupLog',
- 'description' => '开启增量备份',
- 'operationType' => 'update',
+ 'apiName' => 'DescribeNodeCidrList',
+ 'description' => '查看DBS运行节点网段',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:EnableBackupLog',
+ 'action' => 'dbs:DescribeNodeCidrList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'ModifyBackupPlanName',
- 'description' => '修改备份计划名称',
- 'operationType' => 'update',
+ 'apiName' => 'ReleaseBackupPlan',
+ 'description' => '释放备份计划',
+ 'operationType' => 'delete',
'ramAction' => [
- 'action' => 'dbs:ModifyBackupPlanName',
+ 'action' => 'dbs:ReleaseBackupPlan',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'DisableBackupLog',
- 'description' => '关闭增量备份',
+ 'apiName' => 'ModifyBackupPlanName',
+ 'description' => '修改备份计划名称',
'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:DisableBackupLog',
+ 'action' => 'dbs:ModifyBackupPlanName',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'ModifyBackupSetDownloadRules',
- 'description' => '设置备份集下载规则',
+ 'apiName' => 'RenewBackupPlan',
+ 'description' => '续费备份计划',
'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:ModifyBackupSetDownloadRules',
+ 'action' => 'dbs:RenewBackupPlan',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'DescribeDLAService',
- 'description' => '查看数据查询服务(DLA)',
- 'operationType' => 'get',
+ 'apiName' => 'EnableBackupLog',
+ 'description' => '开启增量备份',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:DescribeDLAService',
+ 'action' => 'dbs:EnableBackupLog',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'ModifyBackupObjects',
- 'description' => '修改备份对象',
+ 'apiName' => 'StopBackupPlan',
+ 'description' => '暂停备份计划',
'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:ModifyBackupObjects',
- 'authLevel' => 'operate',
+ 'action' => 'dbs:StopBackupPlan',
+ 'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'DescribeIncrementBackupList',
- 'description' => '查看增量备份任务列表',
+ 'apiName' => 'DescribeBackupPlanBilling',
+ 'description' => '查看备份计划计费信息',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DescribeIncrementBackupList',
+ 'action' => 'dbs:DescribeBackupPlanBilling',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'StopBackupPlan',
- 'description' => '暂停备份计划',
+ 'apiName' => 'ModifyBackupSourceEndpoint',
+ 'description' => '修改数据库备份源',
'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:StopBackupPlan',
+ 'action' => 'dbs:ModifyBackupSourceEndpoint',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'CreateRestoreTask',
- 'description' => '创建恢复任务',
- 'operationType' => 'create',
+ 'apiName' => 'DescribeFullBackupList',
+ 'description' => '查看全量备份任务列表',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:CreateRestoreTask',
+ 'action' => 'dbs:DescribeFullBackupList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'UpgradeBackupPlan',
- 'description' => '升级备份计划',
+ 'apiName' => 'ModifyBackupObjects',
+ 'description' => '修改备份对象',
'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:UpgradeBackupPlan',
- 'authLevel' => 'resource',
+ 'action' => 'dbs:ModifyBackupObjects',
+ 'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'CreateGetDBListFromAgentTask',
- 'description' => '创建数据库列表任务',
- 'operationType' => 'create',
+ 'apiName' => 'StartRestoreTask',
+ 'description' => '启动恢复任务',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:CreateGetDBListFromAgentTask',
+ 'action' => 'dbs:StartRestoreTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'ConfigureBackupPlan',
- 'description' => '配置备份计划',
+ 'apiName' => 'StartBackupPlan',
+ 'description' => '启动备份计划',
'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:ConfigureBackupPlan',
+ 'action' => 'dbs:StartBackupPlan',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'CreateFullBackupSetDownload',
- 'description' => '创建全量备份集下载任务',
- 'operationType' => 'create',
+ 'apiName' => 'ModifyBackupStrategy',
+ 'description' => '修改备份时间',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:CreateFullBackupSetDownload',
+ 'action' => 'dbs:ModifyBackupStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'ModifyStorageStrategy',
- 'description' => '修改存储数据的生命周期',
- 'operationType' => 'update',
+ 'apiName' => 'InitializeDbsServiceLinkedRole',
+ 'description' => '授权DBS服务关联角色',
+ 'operationType' => 'create',
'ramAction' => [
- 'action' => 'dbs:ModifyStorageStrategy',
- 'authLevel' => 'resource',
+ 'action' => 'dbs:InitializeDbsServiceLinkedRole',
+ 'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'CreateAndStartBackupPlan',
- 'description' => '创建并启动备份计划',
- 'operationType' => 'create',
+ 'apiName' => 'UpgradeBackupPlan',
+ 'description' => '升级备份计划',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:CreateAndStartBackupPlan',
+ 'action' => 'dbs:UpgradeBackupPlan',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'ModifyBackupStrategy',
- 'description' => '修改备份时间',
- 'operationType' => 'update',
+ 'apiName' => 'GetDBListFromAgent',
+ 'description' => '通过备份网关获取数据库列表',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:ModifyBackupStrategy',
+ 'action' => 'dbs:GetDBListFromAgent',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'StartRestoreTask',
- 'description' => '启动恢复任务',
- 'operationType' => 'update',
+ 'apiName' => 'DescribeRegions',
+ 'description' => '查看DBS支持地域',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:StartRestoreTask',
+ 'action' => 'dbs:DescribeRegions',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeNodeCidrList',
- 'description' => '查看DBS运行节点网段',
- 'operationType' => 'get',
+ 'apiName' => 'CreateBackupPlan',
+ 'description' => '创建备份计划',
+ 'operationType' => 'create',
'ramAction' => [
- 'action' => 'dbs:DescribeNodeCidrList',
+ 'action' => 'dbs:CreateBackupPlan',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeBackupGatewayList',
- 'description' => '查看备份网关列表',
- 'operationType' => 'get',
+ 'apiName' => 'ModifyStorageStrategy',
+ 'description' => '修改存储数据的生命周期',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:DescribeBackupGatewayList',
+ 'action' => 'dbs:ModifyStorageStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -9609,212 +5311,145 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'ReleaseBackupPlan',
- 'description' => '释放备份计划',
- 'operationType' => 'delete',
+ 'apiName' => 'DescribeDLAService',
+ 'description' => '查看数据查询服务(DLA)',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:ReleaseBackupPlan',
+ 'action' => 'dbs:DescribeDLAService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'GetDBListFromAgent',
- 'description' => '通过备份网关获取数据库列表',
- 'operationType' => 'get',
+ 'apiName' => 'DisableBackupLog',
+ 'description' => '关闭增量备份',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:GetDBListFromAgent',
+ 'action' => 'dbs:DisableBackupLog',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'DescribeRestoreRangeInfo',
- 'description' => '查看可恢复时间段详情',
- 'operationType' => 'get',
+ 'apiName' => 'ModifyBackupSetDownloadRules',
+ 'description' => '设置备份集下载规则',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:DescribeRestoreRangeInfo',
+ 'action' => 'dbs:ModifyBackupSetDownloadRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'DescribeBackupPlanList',
- 'description' => '查看备份计划',
- 'operationType' => 'get',
+ 'apiName' => 'ConfigureBackupPlan',
+ 'description' => '配置备份计划',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:DescribeBackupPlanList',
+ 'action' => 'dbs:ConfigureBackupPlan',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'DescribeRegions',
- 'description' => '查看DBS支持地域',
+ 'apiName' => 'DescribePreCheckProgressList',
+ 'description' => '查看预检查进度列表',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DescribeRegions',
+ 'action' => 'dbs:DescribePreCheckProgressList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'DescribePreCheckProgressList',
- 'description' => '查看预检查进度列表',
- 'operationType' => 'get',
+ 'apiName' => 'CreateAndStartBackupPlan',
+ 'description' => '创建并启动备份计划',
+ 'operationType' => 'create',
'ramAction' => [
- 'action' => 'dbs:DescribePreCheckProgressList',
+ 'action' => 'dbs:CreateAndStartBackupPlan',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeRestoreTaskList',
- 'description' => '查看恢复任务列表',
- 'operationType' => 'get',
+ 'apiName' => 'CreateIncrementBackupSetDownload',
+ 'description' => '创建增量备份集下载任务',
+ 'operationType' => 'create',
'ramAction' => [
- 'action' => 'dbs:DescribeRestoreTaskList',
+ 'action' => 'dbs:CreateIncrementBackupSetDownload',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeJobErrorCode',
- 'description' => '查看任务错误码信息',
+ 'apiName' => 'DescribeBackupPlanList',
+ 'description' => '查看备份计划',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DescribeJobErrorCode',
+ 'action' => 'dbs:DescribeBackupPlanList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'DescribeBackupPlanBilling',
- 'description' => '查看备份计划计费信息',
+ 'apiName' => 'DescribeRestoreTaskList',
+ 'description' => '查看恢复任务列表',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DescribeBackupPlanBilling',
+ 'action' => 'dbs:DescribeRestoreTaskList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'ModifyBackupSourceEndpoint',
- 'description' => '修改数据库备份源',
- 'operationType' => 'update',
+ 'apiName' => 'DescribeJobErrorCode',
+ 'description' => '查看任务错误码信息',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:ModifyBackupSourceEndpoint',
+ 'action' => 'dbs:DescribeJobErrorCode',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [
- [
- 'validationType' => 'always',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
- [
- 'validationType' => 'always',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/*',
- ],
- [
- 'validationType' => 'always',
- 'resourceType' => 'RestoreTask',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:restoretask/{#RestoreTaskId}',
- ],
+ ['validationType' => 'always', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
+ ['validationType' => 'always', 'resourceType' => 'RestoreTask', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:restoretask/{#RestoreTaskId}'],
+ ['validationType' => 'always', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/*'],
],
],
];
diff --git a/data/zh_cn/dbs/2021-01-01/api-docs.php b/data/zh_cn/dbs/2021-01-01/api-docs.php
index bb53bf8..2f5b013 100644
--- a/data/zh_cn/dbs/2021-01-01/api-docs.php
+++ b/data/zh_cn/dbs/2021-01-01/api-docs.php
@@ -1,36 +1,15 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'Dbs',
- 'version' => '2021-01-01',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'Dbs', 'version' => '2021-01-01'],
'directories' => [
[
- 'children' => [
- 'DescribeDownloadBackupSetStorageInfo',
- 'DescribeDownloadSupport',
- 'CreateDownload',
- 'DescribeDownloadTask',
- 'RetryDownloadTask',
- ],
+ 'children' => ['DescribeDownloadBackupSetStorageInfo', 'DescribeDownloadSupport', 'CreateDownload', 'DescribeDownloadTask', 'RetryDownloadTask'],
'type' => 'directory',
'title' => '高级下载',
'id' => 47065,
],
[
- 'children' => [
- 'ChangeResourceGroup',
- 'DescribeBackupPolicy',
- 'DescribeBackupDataList',
- 'CreateAdvancedPolicy',
- 'ModifyBackupPolicy',
- 'DeleteSandboxInstance',
- 'DescribeSandboxRecoveryTime',
- 'DescribeSandboxInstances',
- 'DescribeSandboxBackupSets',
- 'DescribeCostInfoByDbsInstance',
- ],
+ 'children' => ['DescribeBackupDataList', 'CreateAdvancedPolicy', 'DeleteSandboxInstance', 'DescribeSandboxRecoveryTime', 'DescribeSandboxInstances', 'DescribeSandboxBackupSets', 'DescribeCostInfoByDbsInstance', 'ChangeResourceGroup', 'DescribeBackupPolicy', 'ModifyBackupPolicy'],
'type' => 'directory',
'title' => '其他',
'id' => 47070,
@@ -41,73 +20,40 @@
],
'apis' => [
'ChangeResourceGroup' => [
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'description' => '资源ID。 ',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dbs1jyajqk******',
- ],
+ 'schema' => ['description' => '资源ID。 ', 'type' => 'string', 'required' => true, 'example' => 'dbs1jyajqk******'],
],
[
'name' => 'NewResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'description' => '要替换的新的资源组ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'rg-aekz4kee6******',
- ],
+ 'schema' => ['description' => '要替换的新的资源组ID。', 'type' => 'string', 'required' => true, 'example' => 'rg-aekz4kee6******'],
],
[
'name' => 'ResourceType',
'in' => 'query',
- 'schema' => [
- 'description' => '资源类型,固定为backupplan。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'backupplan',
- ],
+ 'schema' => ['description' => '资源类型,固定为backupplan。', 'type' => 'string', 'required' => true, 'example' => 'backupplan'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于保证请求的幂等性,防止重复提交请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbs',
- ],
+ 'schema' => ['description' => '用于保证请求的幂等性,防止重复提交请求。', 'type' => 'string', 'required' => false, 'example' => 'dbs'],
],
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'description' => '实例所在地域ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '实例所在地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
@@ -115,46 +61,18 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Data' => [
- 'description' => '是否转组成功,返回值如下:'."\n"
- ."\n"
- .'- **true**:成功'."\n"
- .'- **false**:失败',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '04EBD9F5-F06F-5302-8499-005C72*******',
- ],
- 'ErrCode' => [
- 'description' => '调用出错时返回的错误码。',
- 'type' => 'string',
- 'example' => 'Request.Forbidden',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '调用错误时返回的错误信息。'."\n",
- 'type' => 'string',
- 'example' => 'RAM DENY',
- ],
- 'Code' => [
- 'description' => '接口状态码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Message' => [
- 'description' => '附加信息',
- 'type' => 'string',
- 'example' => 'The resource group is forbidden to operate',
- ],
+ 'Data' => ['description' => '是否转组成功,返回值如下:'."\n"
+ ."\n"
+ .'- **true**:成功'."\n"
+ .'- **false**:失败', 'type' => 'string', 'example' => 'true'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '04EBD9F5-F06F-5302-8499-005C72*******'],
+ 'ErrCode' => ['description' => '调用出错时返回的错误码。', 'type' => 'string', 'example' => 'Request.Forbidden'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '调用错误时返回的错误信息。'."\n", 'type' => 'string', 'example' => 'RAM DENY'],
+ 'Code' => ['description' => '接口状态码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'The resource group is forbidden to operate'],
],
'description' => '',
],
@@ -162,23 +80,14 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'DBS资源转组API',
'summary' => '资源转组。',
'changeSet' => [
- [
- 'createdAt' => '2023-12-22T02:05:16.000Z',
- 'description' => '请求参数发生变更',
- ],
+ ['createdAt' => '2023-12-22T02:05:16.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
@@ -191,12 +100,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -204,13 +108,8 @@
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"true\\",\\n \\"RequestId\\": \\"04EBD9F5-F06F-5302-8499-005C72*******\\",\\n \\"ErrCode\\": \\"Request.Forbidden\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrMessage\\": \\"RAM DENY\\",\\n \\"Code\\": \\"Param.NotFound\\",\\n \\"Message\\": \\"The resource group is forbidden to operate\\"\\n}","type":"json"}]',
],
'CreateAdvancedPolicy' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -223,32 +122,18 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '221987',
- 'abilityTreeNodes' => [
- 'FEATUREcbsXXHSAX',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsXXHSAX'],
],
'parameters' => [
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'title' => '地域',
- 'description' => '备份集所在地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
- ],
+ 'schema' => ['title' => '地域', 'description' => '备份集所在地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'],
],
[
'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'title' => '实例名',
- 'description' => 'PolarDB实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'pc-2ze3nrr64c5****',
- ],
+ 'schema' => ['title' => '实例名', 'description' => 'PolarDB实例ID。', 'type' => 'string', 'required' => false, 'example' => 'pc-2ze3nrr64c5****'],
],
],
'responses' => [
@@ -257,62 +142,28 @@
'description' => '返回参数详情。',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '1EFBAC73-4A72-5AD0-BE27-932491FCB848',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'instanceName can not be empty.',
- ],
- 'Data' => [
- 'description' => '高级备份策略是否生效,返回值如下:'."\n"
- ."\n"
- .'- **true**:生效'."\n"
- .'- **false**:未生效',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'Code' => [
- 'description' => '状态码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Success' => [
- 'description' => '是否执行成功。返回值:'."\n"
- .'- true:执行成功'."\n"
- .'- false:执行失败',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1EFBAC73-4A72-5AD0-BE27-932491FCB848'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'instanceName can not be empty.'],
+ 'Data' => ['description' => '高级备份策略是否生效,返回值如下:'."\n"
+ ."\n"
+ .'- **true**:生效'."\n"
+ .'- **false**:未生效', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => 'Success'],
+ 'Success' => ['description' => '是否执行成功。返回值:'."\n"
+ .'- true:执行成功'."\n"
+ .'- false:执行失败', 'type' => 'string', 'example' => 'true'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Success'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '开启高级备份策略',
'summary' => '为PolarDB实例开启高级备份策略。',
'description' => '### 适用引擎'."\n"
@@ -331,12 +182,7 @@
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -345,14 +191,8 @@
],
'CreateDownload' => [
'summary' => '创建高级下载任务。',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -364,77 +204,45 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '119762',
- 'abilityTreeNodes' => [
- 'FEATUREcbs04Q4EK',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbs04Q4EK'],
],
'parameters' => [
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'description' => '实例所在地域ID,您可调用[DescribeDBInstanceAttribute(RDS实例)](~~26231~~)或[DescribeDBClusterAttribute(PolarDB实例)](~~2319132~~)查询。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-beijing',
- ],
+ 'schema' => ['description' => '实例所在地域ID,您可调用[DescribeDBInstanceAttribute(RDS实例)](~~26231~~)或[DescribeDBClusterAttribute(PolarDB实例)](~~2319132~~)查询。', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing'],
],
[
'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'description' => '实例ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'rm-wz994c1t1****',
- ],
+ 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'rm-wz994c1t1****'],
],
[
'name' => 'BakSetType',
'in' => 'query',
- 'schema' => [
- 'description' => '下载任务类型,取值如下:'."\n"
- ."\n"
- .'- **full**:全量备份集下载。'."\n"
- .'- **pitr**:任意时间点下载。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'full',
- ],
+ 'schema' => ['description' => '下载任务类型,取值如下:'."\n"
+ ."\n"
+ .'- **full**:全量备份集下载。'."\n"
+ .'- **pitr**:任意时间点下载。', 'type' => 'string', 'required' => false, 'example' => 'full'],
],
[
'name' => 'BakSetId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集ID,您可调用[DescribeBackups(RDS实例)](~~26273~~)或[DescribeBackups(PolarDB实例)](~~2319224~~)接口获取该参数值。'."\n"
- ."\n"
- .'> 当BakSetType=full时,该参数必填。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '146005****',
- ],
+ 'schema' => ['description' => '备份集ID,您可调用[DescribeBackups(RDS实例)](~~26273~~)或[DescribeBackups(PolarDB实例)](~~2319224~~)接口获取该参数值。'."\n"
+ ."\n"
+ .'> 当BakSetType=full时,该参数必填。', 'type' => 'string', 'required' => false, 'example' => '146005****'],
],
[
'name' => 'DownloadPointInTime',
'in' => 'query',
- 'schema' => [
- 'description' => '下载任意时间点。Long类型时间戳形式,单位为毫秒(ms)。'."\n"
- ."\n"
- .'> 当BakSetType=pitr时,该参数必填。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1661331864000',
- ],
+ 'schema' => ['description' => '下载任意时间点。Long类型时间戳形式,单位为毫秒(ms)。'."\n"
+ ."\n"
+ .'> 当BakSetType=pitr时,该参数必填。', 'type' => 'string', 'required' => false, 'example' => '1661331864000'],
],
[
'name' => 'BakSetSize',
'in' => 'query',
- 'schema' => [
- 'description' => '全量备份集大小,您可调用[DescribeBackups(RDS实例)](~~26273~~)或[DescribeBackups(PolarDB实例)](~~2319224~~)接口查询,单位为字节(Byte)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '216****',
- ],
+ 'schema' => ['description' => '全量备份集大小,您可调用[DescribeBackups(RDS实例)](~~26273~~)或[DescribeBackups(PolarDB实例)](~~2319224~~)接口查询,单位为字节(Byte)。', 'type' => 'string', 'required' => false, 'example' => '216****'],
],
[
'name' => 'FormatType',
@@ -445,123 +253,77 @@
.'- **CSV**'."\n"
.'- **SQL**'."\n"
.'- **Parquet**'."\n"
+ .'- **Bson**'."\n"
+ .'- **qp.xb**'."\n"
."\n"
- .'> 该参数为必填项。',
+ .'> 该参数为必填项。其中,Bson格式当且仅当实例类型为MongoDB时才能进行选择;qp.xb格式当且仅当实例类型为RDS MySQL时才能进行选择。',
'type' => 'string',
'required' => false,
+ 'enumValueTitles' => ['qp.xb' => 'qp.xb', 'csv' => 'csv', 'bson' => 'bson', 'csv-with-header' => 'csv-with-header', 'parquet' => 'parquet', 'sql' => 'sql'],
'example' => 'CSV',
],
],
[
'name' => 'TargetType',
'in' => 'query',
- 'schema' => [
- 'description' => '下载目标类型,取值如下:'."\n"
- ."\n"
- .'- **OSS**'."\n"
- .'- **URL**',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OSS',
- ],
+ 'schema' => ['description' => '下载目标类型,取值如下:'."\n"
+ ."\n"
+ .'- **OSS**'."\n"
+ .'- **URL**', 'type' => 'string', 'required' => false, 'example' => 'OSS'],
],
[
'name' => 'TargetBucket',
'in' => 'query',
- 'schema' => [
- 'description' => 'OSS Bucket名称。'."\n"
- ."\n"
- .'- 当TargetType=OSS时,该参数必填。'."\n"
- .'- 请确认您的账号已拥有**AliyunDBSDefaultRole**权限,如何授权,请参见[RAM资源授权](~~26307~~)。您也可访问控制台根据操作指引去授权。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test123',
- ],
+ 'schema' => ['description' => 'OSS Bucket名称。'."\n"
+ ."\n"
+ .'- 当TargetType=OSS时,该参数必填。'."\n"
+ .'- 请确认您的账号已拥有**AliyunDBSDefaultRole**权限,如何授权,请参见[RAM资源授权](~~26307~~)。您也可访问控制台根据操作指引去授权。', 'type' => 'string', 'required' => false, 'example' => 'test123'],
],
[
'name' => 'TargetPath',
'in' => 'query',
- 'schema' => [
- 'description' => '数据下载目标路径。'."\n"
- ."\n"
- .'> 当TargetType=OSS时,该参数必填。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_db/path',
- ],
+ 'schema' => ['description' => '数据下载目标路径。'."\n"
+ ."\n"
+ .'> 当TargetType=OSS时,该参数必填。', 'type' => 'string', 'required' => false, 'example' => 'test_db/path'],
],
[
'name' => 'TargetOssRegion',
'in' => 'query',
- 'schema' => [
- 'description' => 'OSS Bucket所在地域。'."\n"
- ."\n"
- .'> 当TargetType=OSS时,该参数必填。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-beijing',
- ],
+ 'schema' => ['description' => 'OSS Bucket所在地域。'."\n"
+ ."\n"
+ .'> 当TargetType=OSS时,该参数必填。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'],
],
[
'name' => 'PrimaryKeyTypeOnly',
'in' => 'query',
- 'schema' => [
- 'description' => '仅MongoDB引擎需要填写该字段。用于标识库表中主键类型是否唯一。'."\n"
- .'是: true; 否: false。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'schema' => ['description' => '仅MongoDB引擎需要填写该字段。用于标识库表中主键类型是否唯一。'."\n"
+ .'是: true; 否: false。', 'type' => 'string', 'required' => false, 'example' => 'false'],
],
[
'name' => 'IsCluster',
'in' => 'query',
- 'schema' => [
- 'description' => '仅MongoDB引擎需要填写该字段。用于标识当前实例是否为分片集群。'."\n"
- .'类型为MongoDB分片集群: true; 类型为其他: false。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'schema' => ['description' => '仅MongoDB引擎需要填写该字段。用于标识当前实例是否为分片集群。'."\n"
+ .'类型为MongoDB分片集群: true; 类型为其他: false。', 'type' => 'string', 'required' => false, 'example' => 'false'],
],
[
'name' => 'AdminDatabase',
'in' => 'query',
- 'schema' => [
- 'description' => '仅MongoDB引擎需要填写该字段。用于标识鉴权库名称。默认名称为admin。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'admin',
- ],
+ 'schema' => ['description' => '仅MongoDB引擎需要填写该字段。用于标识鉴权库名称。默认名称为admin。', 'type' => 'string', 'required' => false, 'example' => 'admin'],
],
[
'name' => 'UseZstd',
'in' => 'query',
- 'schema' => [
- 'description' => '用于标识压缩包采纳的压缩算法是否为zstd。默认为false。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'schema' => ['description' => '用于标识压缩包采纳的压缩算法是否为zstd。默认为false。', 'type' => 'string', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ClusterName',
'in' => 'query',
- 'schema' => [
- 'description' => '仅MongoDB引擎分片集群需要填写该字段。分片集群ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dds-0xid8e5336******',
- ],
+ 'schema' => ['description' => '仅MongoDB引擎分片集群需要填写该字段。分片集群ID。', 'type' => 'string', 'required' => false, 'example' => 'dds-0xid8e5336******'],
],
[
'name' => 'IsPhysical',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'required' => false,
- 'description' => '',
- ],
+ 'schema' => ['description' => '仅当您的实例类型为RDS MySQL且需要下载qp.xb格式时,该参数才必填。您需要指定该参数为true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
@@ -570,124 +332,44 @@
'description' => '返回值如下。',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'A08F908D-2C35-583F-93C1-ED80753F****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。'."\n",
- 'type' => 'string',
- 'example' => 'DBS.ParamIsInValid',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功。'."\n"
- .'- **false**:请求失败。',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'formatType can not be empty',
- ],
- 'Code' => [
- 'description' => '状态码。',
- 'type' => 'string',
- 'example' => 'DBS.ParamIsInValid',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'formatType can not be empty',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A08F908D-2C35-583F-93C1-ED80753F****'],
+ 'ErrCode' => ['description' => '错误码。'."\n", 'type' => 'string', 'example' => 'DBS.ParamIsInValid'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功。'."\n"
+ .'- **false**:请求失败。', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'formatType can not be empty'],
+ 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => 'DBS.ParamIsInValid'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'formatType can not be empty'],
'Data' => [
'description' => '返回数据如下。',
'type' => 'object',
'properties' => [
- 'BakSetId' => [
- 'description' => '全量备份集ID。',
- 'type' => 'string',
- 'example' => '146005****',
- ],
- 'DownloadStatus' => [
- 'description' => '下载任务的状态,返回值如下:'."\n"
- ."\n"
- .'- initializing:初始化。'."\n"
- .'- queueing:排队中。'."\n"
- .'- running:下载中。'."\n"
- .'- failed:下载失败。'."\n"
- .'- finished:下载成功。'."\n"
- .'- expired:下载过期。'."\n"
- ."\n"
- .'> 下载目标为URL的任务完成3天后会过期。',
- 'type' => 'string',
- 'example' => 'initializing',
- ],
- 'Progress' => [
- 'description' => '已下载表数量/表总数。'."\n"
- ."\n"
- .'> 如果任务当前处理准备阶段,该进度返回为0/0。',
- 'type' => 'string',
- 'example' => '0/0',
- ],
- 'BackupSetTime' => [
- 'description' => '任意时间点下载任务时所对应的时间点,返回格式为时间戳形式。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1661373070000',
- ],
- 'RegionCode' => [
- 'description' => '地域ID。',
- 'type' => 'string',
- 'example' => 'cn-beijing',
- ],
- 'TargetPath' => [
- 'description' => '数据下载目标路径。'."\n"
- ."\n"
- .'> 当**TargetType=OSS**时,该参数返回。',
- 'type' => 'string',
- 'example' => 'test_db/path',
- ],
- 'DbList' => [
- 'description' => '当下载任务为库表过滤任务时,该字段返回对应库表信息。',
- 'type' => 'string',
- 'example' => 'testdb',
- ],
- 'ExportDataSize' => [
- 'description' => '导出数据量,单位为字节(Byte)。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'ImportDataSize' => [
- 'description' => '处理数据量,单位为字节(Byte)。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'GmtCreate' => [
- 'description' => '任务创建时间,返回格式为时间戳形式。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1661940917570',
- ],
- 'TaskId' => [
- 'description' => '下载任务ID。',
- 'type' => 'string',
- 'example' => 'dt-qxnsfq5s****',
- ],
- 'Format' => [
- 'description' => '目标转换格式。',
- 'type' => 'string',
- 'example' => 'CSV',
- ],
- 'TargetType' => [
- 'description' => '下载目标类型。',
- 'type' => 'string',
- 'example' => 'URL',
- ],
+ 'BakSetId' => ['description' => '全量备份集ID。', 'type' => 'string', 'example' => '146005****'],
+ 'DownloadStatus' => ['description' => '下载任务的状态,返回值如下:'."\n"
+ ."\n"
+ .'- initializing:初始化。'."\n"
+ .'- queueing:排队中。'."\n"
+ .'- running:下载中。'."\n"
+ .'- failed:下载失败。'."\n"
+ .'- finished:下载成功。'."\n"
+ .'- expired:下载过期。'."\n"
+ ."\n"
+ .'> 下载目标为URL的任务完成3天后会过期。', 'type' => 'string', 'example' => 'initializing'],
+ 'Progress' => ['description' => '已下载表数量/表总数。'."\n"
+ ."\n"
+ .'> 如果任务当前处理准备阶段,该进度返回为0/0。', 'type' => 'string', 'example' => '0/0'],
+ 'BackupSetTime' => ['description' => '任意时间点下载任务时所对应的时间点,返回格式为时间戳形式。', 'type' => 'integer', 'format' => 'int64', 'example' => '1661373070000'],
+ 'RegionCode' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'TargetPath' => ['description' => '数据下载目标路径。'."\n"
+ ."\n"
+ .'> 当**TargetType=OSS**时,该参数返回。', 'type' => 'string', 'example' => 'test_db/path'],
+ 'DbList' => ['description' => '当下载任务为库表过滤任务时,该字段返回对应库表信息。', 'type' => 'string', 'example' => 'testdb'],
+ 'ExportDataSize' => ['description' => '导出数据量,单位为字节(Byte)。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'ImportDataSize' => ['description' => '处理数据量,单位为字节(Byte)。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'GmtCreate' => ['description' => '任务创建时间,返回格式为时间戳形式。', 'type' => 'integer', 'format' => 'int64', 'example' => '1661940917570'],
+ 'TaskId' => ['description' => '下载任务ID。', 'type' => 'string', 'example' => 'dt-qxnsfq5s****'],
+ 'Format' => ['description' => '目标转换格式。', 'type' => 'string', 'example' => 'CSV'],
+ 'TargetType' => ['description' => '下载目标类型。', 'type' => 'string', 'example' => 'URL'],
],
],
],
@@ -696,55 +378,30 @@
],
'errorCodes' => [
200 => [
- [
- 'errorCode' => 'DBS.DownloadTask.CannotFind',
- 'errorMessage' => 'Can not find download task.',
- 'description' => '无法找到高级下载任务。',
- ],
- [
- 'errorCode' => 'DBS.DownloadTask.JobAlreadyExist',
- 'errorMessage' => 'Job already submit in recent days, please check it.',
- 'description' => '相同备份集的高级下载任务在近几天被提交过,请检查。',
- ],
- [
- 'errorCode' => 'DBS.DownloadTask.OnlyOneRunningOrFailedTask',
- 'errorMessage' => 'There can be only one running or failed task for the instance.',
- 'description' => '当前实例只能同时存在一个运行中/失败的任务。',
- ],
- [
- 'errorCode' => 'DBS.DownloadTask.OssForbid',
- 'errorMessage' => 'OSS is forbidden to access. Please check your OSS bucket.',
- 'description' => '访问OSS被拒绝。请检查您的OSS权限配置。',
- ],
- [
- 'errorCode' => 'DBS.DownloadTask.OssStorageTypeInvalid',
- 'errorMessage' => 'Unsupported bucket storage. Please make sure that your OSS bucket\'s storgae type is standard.',
- 'description' => '当前OSS bucket类型不支持。请确保您的OSS bucket类型是标准存储类型。',
- ],
- [
- 'errorCode' => 'Forbidden.InstanceNotFound',
- 'errorMessage' => 'instance not found',
- 'description' => '实例不存在',
- ],
+ ['errorCode' => 'DBS.DownloadTask.CannotFind', 'errorMessage' => 'Can not find download task.', 'description' => '无法找到高级下载任务。'],
+ ['errorCode' => 'DBS.DownloadTask.JobAlreadyExist', 'errorMessage' => 'Job already submit in recent days, please check it.', 'description' => '相同备份集的高级下载任务在近几天被提交过,请检查。'],
+ ['errorCode' => 'DBS.DownloadTask.OnlyOneRunningOrFailedTask', 'errorMessage' => 'There can be only one running or failed task for the instance.', 'description' => '当前实例只能同时存在一个运行中/失败的任务。'],
+ ['errorCode' => 'DBS.DownloadTask.OssForbid', 'errorMessage' => 'OSS is forbidden to access. Please check your OSS bucket.', 'description' => '访问OSS被拒绝。请检查您的OSS权限配置。'],
+ ['errorCode' => 'DBS.DownloadTask.OssStorageTypeInvalid', 'errorMessage' => 'Unsupported bucket storage. Please make sure that your OSS bucket\'s storgae type is standard.', 'description' => '当前OSS bucket类型不支持。请确保您的OSS bucket类型是标准存储类型。'],
+ ['errorCode' => 'Forbidden.InstanceNotFound', 'errorMessage' => 'instance not found', 'description' => '实例不存在'],
+ ['errorCode' => 'DBS.DownloadTask.BakSetError', 'errorMessage' => 'DBS download task bak set error. Your backup set does not meet the requirements.', 'description' => '您选择的备份集不满足高级下载要求。'],
+ ['errorCode' => 'DBS.DownloadTask.CustinIdNotSupport', 'errorMessage' => 'DBS DownloadTask CustinIdNotSupport.', 'description' => '高级下载实例暂不支持下载'],
+ ['errorCode' => 'DBS.DownloadTask.CustinNameNotSupport', 'errorMessage' => 'DBS DownloadTask CustinNameNotSupport.', 'description' => '高级下载实例暂不支持下载。'],
+ ['errorCode' => 'DBS.DownloadTask.DbTypeNotSupport', 'errorMessage' => 'DBS DownloadTask DbTypeNotSupport.', 'description' => '高级下载引擎类型暂不支持'],
+ ['errorCode' => 'DBS.DownloadTask.InstanceInfoNotSupport', 'errorMessage' => 'DBS DownloadTask InstanceInfoNotSupport.', 'description' => '高级下载当前实例不支持下载'],
+ ['errorCode' => 'DBS.DownloadTask.InstanceParamNotSupport', 'errorMessage' => 'DBS DownloadTask InstanceParamNotSupport.', 'description' => '高级下载实例暂不支持下载。'],
+ ['errorCode' => 'DBS.DownloadTask.InstanceStorageTypeNotSupport', 'errorMessage' => 'DBS DownloadTask InstanceStorageTypeNotSupport.', 'description' => '高级下载实例存储类型暂不支持下载。'],
+ ['errorCode' => 'DBS.DownloadTask.InstanceVersionNotSupport', 'errorMessage' => 'DBS DownloadTask InstanceVersionNotSupport.', 'description' => '高级下载引擎版本暂不支持下载。'],
+ ['errorCode' => 'DBS.DownloadTask.NotSupport', 'errorMessage' => 'DBS DownloadTask NotSupport.', 'description' => '高级下载暂不支持下载。'],
+ ['errorCode' => 'DBS.DownloadTask.RegionNotSupport', 'errorMessage' => 'DBS DownloadTask RegionNotSupport.', 'description' => '高级下载地域暂不支持'],
+ ['errorCode' => 'DBS.DownloadTask.UserNotSupport', 'errorMessage' => 'DBS DownloadTask UserNotSupport.', 'description' => '高级下载用户暂不支持下载'],
],
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
- [
- 'errorCode' => 'DBS.NoPermissionException',
- 'errorMessage' => 'Rejected by ValidationChecker.',
- 'description' => 'Rejected by ValidationChecker.',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
+ ['errorCode' => 'DBS.NoPermissionException', 'errorMessage' => 'Rejected by ValidationChecker.', 'description' => 'Rejected by ValidationChecker.'],
],
[
- [
- 'errorCode' => 'DBS.NotExists',
- 'errorMessage' => 'data source do not existed.',
- 'description' => 'DBS.NotExists',
- ],
+ ['errorCode' => 'DBS.NotExists', 'errorMessage' => 'data source do not existed.', 'description' => 'DBS.NotExists'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A08F908D-2C35-583F-93C1-ED80753F****\\",\\n \\"ErrCode\\": \\"DBS.ParamIsInValid\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrMessage\\": \\"formatType can not be empty\\",\\n \\"Code\\": \\"DBS.ParamIsInValid\\",\\n \\"Message\\": \\"formatType can not be empty\\",\\n \\"Data\\": {\\n \\"BakSetId\\": \\"146005****\\",\\n \\"DownloadStatus\\": \\"initializing\\",\\n \\"Progress\\": \\"0/0\\",\\n \\"BackupSetTime\\": 1661373070000,\\n \\"RegionCode\\": \\"cn-beijing\\",\\n \\"TargetPath\\": \\"test_db/path\\",\\n \\"DbList\\": \\"testdb\\",\\n \\"ExportDataSize\\": 0,\\n \\"ImportDataSize\\": 0,\\n \\"GmtCreate\\": 1661940917570,\\n \\"TaskId\\": \\"dt-qxnsfq5s****\\",\\n \\"Format\\": \\"CSV\\",\\n \\"TargetType\\": \\"URL\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<CreateDownloadResponse>\\n <RequestId>A08F908D-2C35-583F-93C1-ED80753F****</RequestId>\\n <Data>\\n <Progress>0/0</Progress>\\n <BackupSetTime>1661373070000</BackupSetTime>\\n <TaskId>dt-qxnsfq5s****</TaskId>\\n <RegionCode>cn-beijing</RegionCode>\\n <ImportDataSize>0</ImportDataSize>\\n <BakSetId>146005****</BakSetId>\\n <GmtCreate>1661940917570</GmtCreate>\\n <Format>csv</Format>\\n <DownloadStatus>initializing</DownloadStatus>\\n <ExportDataSize>0</ExportDataSize>\\n <TargetType>URL</TargetType>\\n </Data>\\n <Code>Success</Code>\\n <Success>true</Success>\\n <ErrCode>Success</ErrCode>\\n</CreateDownloadResponse>","errorExample":""}]',
@@ -774,12 +431,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'DBInstance',
- 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'DBInstance', 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}'],
],
],
],
@@ -787,56 +439,33 @@
],
'DeleteSandboxInstance' => [
'summary' => '删除沙箱实例。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'delete',
- ],
+ 'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。'."\n"
- .'> 若您的实例为RDS MySQL,请通过[自动添加数据源](~~193091~~)功能,将RDS自动添加至DBS中,即可获取备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1hxxxx8xxxxxa',
- ],
+ 'schema' => ['description' => '备份计划ID。'."\n"
+ .'> 若您的实例为RDS MySQL,请通过[自动添加数据源](~~193091~~)功能,将RDS自动添加至DBS中,即可获取备份计划ID。', 'type' => 'string', 'required' => true, 'example' => '1hxxxx8xxxxxa'],
],
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => '沙箱实例ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1jxxxxnxxx1xc',
- ],
+ 'schema' => ['description' => '沙箱实例ID。', 'type' => 'string', 'required' => true, 'example' => '1jxxxxnxxx1xc'],
],
[
'name' => 'ZoneId',
'in' => 'query',
- 'schema' => [
- 'description' => '目标沙箱实例的可用区ID,该可用区ID需要是PrivateLink服务支持的可用区ID。可通过[DescribeZones](~~469326~~)接口查询指定地域中可用区的列表。'."\n"
- ."\n"
- .'> 使用沙箱功能前需要先开通[PrivateLink](~~459882~~)服务,可通过[OpenPrivateLinkService](~~469322~~)接口开通私网连接服务。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou-b',
- ],
+ 'schema' => ['description' => '目标沙箱实例的可用区ID,该可用区ID需要是PrivateLink服务支持的可用区ID。可通过[DescribeZones](~~469326~~)接口查询指定地域中可用区的列表。'."\n"
+ ."\n"
+ .'> 使用沙箱功能前需要先开通[PrivateLink](~~459882~~)服务,可通过[OpenPrivateLinkService](~~469322~~)接口开通私网连接服务。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-b'],
],
],
'responses' => [
@@ -844,41 +473,13 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Data' => [
- 'description' => '报错信息。',
- 'type' => 'string',
- 'example' => 'operation forbidden due to sandbox is creating.',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否请求成功。',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
+ 'Data' => ['description' => '报错信息。', 'type' => 'string', 'example' => 'operation forbidden due to sandbox is creating.'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否请求成功。', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
],
'description' => '',
],
@@ -886,11 +487,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '释放沙箱实例',
@@ -901,10 +498,7 @@
.'| --------------------------- | ---------------------------------------------- | ------------------------------------------------------------ |'."\n"
.'| Operation.DeniedByJobStatus | operation forbidden due to sandbox is creating | 无法释放正在创建中的沙箱实例。请在沙箱实例处于运行中时,再进行删除。 |',
'changeSet' => [
- [
- 'createdAt' => '2023-08-18T09:25:36.000Z',
- 'description' => '请求参数发生变更',
- ],
+ ['createdAt' => '2023-08-18T09:25:36.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
@@ -917,12 +511,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -931,14 +520,8 @@
],
'DescribeBackupDataList' => [
'summary' => '查询PolarDB MySQL版备份数据详情。',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -951,207 +534,107 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '171434',
- 'abilityTreeNodes' => [
- 'FEATUREcbsUOJI4N',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsUOJI4N'],
],
'parameters' => [
[
'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'title' => '实例名称',
- 'description' => 'PolarDB实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'pc-2ze3nrr64c5******',
- ],
+ 'schema' => ['title' => '实例名称', 'description' => 'PolarDB实例ID。', 'type' => 'string', 'required' => false, 'example' => 'pc-2ze3nrr64c5******'],
],
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'title' => '地域',
- 'description' => '备份集所在地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['title' => '地域', 'description' => '备份集所在地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'SceneType',
'in' => 'query',
- 'schema' => [
- 'title' => '场景类型',
- 'description' => '备份场景类型,当前仅支持**LEVEL_1**,即实例所在地域的一级备份。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LEVEL_1',
- ],
+ 'schema' => ['title' => '场景类型', 'description' => '备份场景类型,当前仅支持**LEVEL_1**,即实例所在地域的一级备份。', 'type' => 'string', 'required' => false, 'example' => 'LEVEL_1'],
],
[
'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'title' => '查询开始时间,格式:yyyy-MM-ddTHH:mmZ',
- 'description' => '查询开始时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-04-17T17:00:16Z',
- ],
+ 'schema' => ['title' => '查询开始时间,格式:yyyy-MM-ddTHH:mmZ', 'description' => '查询开始时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。', 'type' => 'string', 'required' => false, 'example' => '2024-04-17T17:00:16Z'],
],
[
'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'title' => '查询结束时间,格式:yyyy-MM-ddTHH:mmZ',
- 'description' => '查询结束时间,需要大于查询开始时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-04-17T17:00:32Z',
- ],
+ 'schema' => ['title' => '查询结束时间,格式:yyyy-MM-ddTHH:mmZ', 'description' => '查询结束时间,需要大于查询开始时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。', 'type' => 'string', 'required' => false, 'example' => '2024-04-17T17:00:32Z'],
],
[
'name' => 'BackupStatus',
'in' => 'query',
- 'schema' => [
- 'title' => '备份集状态,OK-备份成功;ERROR-备份失败;',
- 'description' => '备份集状态,取值如下:'."\n"
- ."\n"
- .'- **OK**:备份成功'."\n"
- .'- **ERROR**:备份失败',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OK',
- ],
+ 'schema' => ['title' => '备份集状态,OK-备份成功;ERROR-备份失败;', 'description' => '备份集状态,取值如下:'."\n"
+ ."\n"
+ .'- **OK**:备份成功'."\n"
+ .'- **ERROR**:备份失败', 'type' => 'string', 'required' => false, 'example' => 'OK'],
],
[
'name' => 'BackupId',
'in' => 'query',
- 'schema' => [
- 'title' => '备份集ID',
- 'description' => '备份集ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '213064****',
- ],
+ 'schema' => ['title' => '备份集ID', 'description' => '备份集ID。', 'type' => 'string', 'required' => false, 'example' => '213064****'],
],
[
'name' => 'BackupMethod',
'in' => 'query',
- 'schema' => [
- 'title' => '备份方法:Physical-物理备份;Logical-逻辑备份;Snapshot-快照备份;',
- 'description' => '备份方式,取值如下:'."\n"
- ."\n"
- .'- **Physical**:物理备份'."\n"
- .'- **Logical**:逻辑备份'."\n"
- .'- **Snapshot**:快照备份',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Snapshot',
- ],
+ 'schema' => ['title' => '备份方法:Physical-物理备份;Logical-逻辑备份;Snapshot-快照备份;', 'description' => '备份方式,取值如下:'."\n"
+ ."\n"
+ .'- **Physical**:物理备份'."\n"
+ .'- **Logical**:逻辑备份'."\n"
+ .'- **Snapshot**:快照备份', 'type' => 'string', 'required' => false, 'example' => 'Snapshot'],
],
[
'name' => 'BackupMode',
'in' => 'query',
- 'schema' => [
- 'title' => '备份模式:Automated-自动备份;Manual-手动备份;',
- 'description' => '备份模式,取值如下:'."\n"
- ."\n"
- .'- **Automated**:系统自动备份'."\n"
- .'- **Manual**:手动备份',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Automated',
- ],
+ 'schema' => ['title' => '备份模式:Automated-自动备份;Manual-手动备份;', 'description' => '备份模式,取值如下:'."\n"
+ ."\n"
+ .'- **Automated**:系统自动备份'."\n"
+ .'- **Manual**:手动备份', 'type' => 'string', 'required' => false, 'example' => 'Automated'],
],
[
'name' => 'BackupType',
'in' => 'query',
- 'schema' => [
- 'title' => '备份类型:FullBackup-全量备份;IncrementBackup-增量备份;',
- 'description' => '备份类型,取值如下:'."\n"
- ."\n"
- .'- **FullBackup**:全量备份'."\n"
- .'- **IncrementBackup**:增量备份',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'FullBackup',
- ],
+ 'schema' => ['title' => '备份类型:FullBackup-全量备份;IncrementBackup-增量备份;', 'description' => '备份类型,取值如下:'."\n"
+ ."\n"
+ .'- **FullBackup**:全量备份'."\n"
+ .'- **IncrementBackup**:增量备份', 'type' => 'string', 'required' => false, 'example' => 'FullBackup'],
],
[
'name' => 'BackupScale',
'in' => 'query',
- 'schema' => [
- 'title' => '备份规格:DBInstance-实例备份;DBTable-库表备份;',
- 'description' => '备份规格,取值如下:'."\n"
- ."\n"
- .'- **DBInstance**:实例备份'."\n"
- .'- **DBTable**:库表备份',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DBInstance',
- ],
+ 'schema' => ['title' => '备份规格:DBInstance-实例备份;DBTable-库表备份;', 'description' => '备份规格,取值如下:'."\n"
+ ."\n"
+ .'- **DBInstance**:实例备份'."\n"
+ .'- **DBTable**:库表备份', 'type' => 'string', 'required' => false, 'example' => 'DBInstance'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'title' => '分页每页大小,默认为20',
- 'description' => '每页记录数,默认值为20。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '20',
- ],
+ 'schema' => ['title' => '分页每页大小,默认为20', 'description' => '每页记录数,默认值为20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'title' => '分页页码,从1开始,默认为1',
- 'description' => '页码,取值范围为大于0但不超过Integer最大值的整数,默认值为1。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['title' => '分页页码,从1开始,默认为1', 'description' => '页码,取值范围为大于0但不超过Integer最大值的整数,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'InstanceIsDeleted',
'in' => 'query',
- 'schema' => [
- 'title' => '实例是否已删除',
- 'description' => '实例是否已删除,取值如下:'."\n"
- ."\n"
- .'- **true**:已删除'."\n"
- .'- **false**:未删除(默认值)',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'schema' => ['title' => '实例是否已删除', 'description' => '实例是否已删除,取值如下:'."\n"
+ ."\n"
+ .'- **true**:已删除'."\n"
+ .'- **false**:未删除(默认值)', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'InstanceRegion',
'in' => 'query',
- 'schema' => [
- 'title' => '实例原地域',
- 'description' => '原实例所在地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['title' => '实例原地域', 'description' => '原实例所在地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'DataSourceId',
'in' => 'query',
- 'schema' => [
- 'title' => '数据源ID',
- 'description' => '预留参数,暂无需关注。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test****',
- ],
+ 'schema' => ['title' => '数据源ID', 'description' => '预留参数,暂无需关注。', 'type' => 'string', 'required' => false, 'example' => 'test****'],
],
],
'responses' => [
@@ -1171,177 +654,58 @@
'description' => '任务详情。',
'type' => 'object',
'properties' => [
- 'BackupId' => [
- 'title' => '备份集ID',
- 'description' => '备份集ID。',
- 'type' => 'string',
- 'example' => '213088****',
- ],
- 'BackupName' => [
- 'title' => '备份集名称',
- 'description' => '备份集名称。',
- 'type' => 'string',
- 'example' => 'logic_backup',
- ],
- 'BackupMode' => [
- 'title' => '备份模式:Automated-自动备份;Manual-手动备份;',
- 'description' => '备份模式,返回值如下:'."\n"
- ."\n"
- .'- **Automated**:系统自动备份'."\n"
- .'- **Manual**:手动备份',
- 'type' => 'string',
- 'example' => 'Automated',
- ],
- 'BackupType' => [
- 'title' => '备份类型:FullBackup-全量备份;IncrementBackup-增量备份;',
- 'description' => '备份类型,返回值如下:'."\n"
- ."\n"
- .'- **FullBackup**:全量备份'."\n"
- .'- **IncrementBackup**:增量备份',
- 'type' => 'string',
- 'example' => 'FullBackup',
- ],
- 'BackupScale' => [
- 'title' => '备份规格:DBInstance-实例备份;DBTable-库表备份;',
- 'description' => '备份规格,返回值如下:'."\n"
- ."\n"
- .'- **DBInstance**:实例备份'."\n"
- .'- **DBTable**:库表备份',
- 'type' => 'string',
- 'example' => 'DBInstance',
- ],
- 'BackupMethod' => [
- 'title' => '备份方法:Physical-物理备份;Logical-逻辑备份;Snapshot-快照备份;',
- 'description' => '备份方式,返回值如下:'."\n"
- ."\n"
- .'- **Physical**:物理备份'."\n"
- .'- **Logical**:逻辑备份'."\n"
- .'- **Snapshot**:快照备份',
- 'type' => 'string',
- 'example' => 'Snapshot',
- ],
- 'BackupSize' => [
- 'title' => '备份集大小,单位Byte',
- 'description' => '备份集大小,单位Byte。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '25669140480',
- ],
- 'BackupStatus' => [
- 'title' => '备份集状态,OK-备份成功;ERROR-备份失败;',
- 'description' => '备份集状态,返回值如下:'."\n"
- ."\n"
- .'- **OK**:备份成功'."\n"
- .'- **ERROR**:备份失败',
- 'type' => 'string',
- 'example' => 'OK',
- ],
- 'BackupStartTime' => [
- 'title' => '备份开始时间,格式:yyyy-MM-ddTHH:mmZ',
- 'description' => '备份开始时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。',
- 'type' => 'string',
- 'example' => '2024-04-17T17:00:16Z',
- ],
- 'BackupEndTime' => [
- 'title' => '备份结束时间,格式:yyyy-MM-ddTHH:mmZ',
- 'description' => '备份结束时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。',
- 'type' => 'string',
- 'example' => '2024-04-17T17:00:32Z',
- ],
- 'ConsistentTime' => [
- 'title' => '一致性时间点:UnixTimestamp秒级时间戳',
- 'description' => '一致性快照的时间点,格式为Unix时间戳,单位为秒(s)。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1713373221',
- ],
- 'BackupLocation' => [
- 'title' => '备份存储路径',
- 'description' => '备份存储路径。',
- 'type' => 'string',
- 'example' => 'logic',
- ],
- 'InstanceName' => [
- 'title' => '实例名称',
- 'description' => '实例ID。',
- 'type' => 'string',
- 'example' => 'pc-2ze3nrr64c5******',
- ],
- 'Engine' => [
- 'title' => '引擎类型',
- 'description' => '引擎类型。',
- 'type' => 'string',
- 'example' => 'polardb_mysql',
- ],
- 'EngineVersion' => [
- 'title' => '引擎版本',
- 'description' => '引擎版本。',
- 'type' => 'string',
- 'example' => '5.7',
- ],
- 'SupportDeletion' => [
- 'title' => '备份集是否支持删除',
- 'description' => '备份集是否支持删除,返回值如下:'."\n"
- ."\n"
- .'- **0**:支持'."\n"
- .'- **1**:不支持',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'Encryption' => [
- 'title' => '加密信息',
- 'description' => '加密信息。',
- 'type' => 'string',
- 'example' => 'psk2',
- ],
- 'IsAvail' => [
- 'title' => '备份集是否可用,1-可用;0-不可用;',
- 'description' => '备份集是否可用,返回值如下:'."\n"
- ."\n"
- .'- **1**:可用'."\n"
- .'- **0**:不可用',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'Checksum' => [
- 'title' => '校验码',
- 'description' => '校验码。',
- 'type' => 'string',
- 'example' => '84a4c16431f969712e6895992719****',
- ],
- 'BackupDownloadURL' => [
- 'title' => '备份集公网下载链接',
- 'description' => '备份集公网下载地址。'."\n"
- ."\n"
- .'> 仅当BackupMethod为**Physical**(物理备份)或**Logical**(逻辑备份)时,返回该参数。',
- 'type' => 'string',
- 'example' => 'http://oss.com/****',
- ],
- 'BackupIntranetDownloadURL' => [
- 'title' => '备份集内网下载链接',
- 'description' => '备份集内网下载地址。'."\n"
- .'> 仅当BackupMethod为**Physical**(物理备份)或**Logical**(逻辑备份)时,返回该参数。',
- 'type' => 'string',
- 'example' => 'http://oss.com/****',
- ],
- 'ExpectExpireType' => [
- 'title' => '备份集预期过期类型',
- 'description' => '备份集预期过期类型,返回值如下:'."\n"
- ."\n"
- .'- NEVER'."\n"
- .'- EXPIRED'."\n"
- .'- DELAY',
- 'type' => 'string',
- 'example' => 'DELAY',
- ],
- 'ExpectExpireTime' => [
- 'title' => '备份集预期过期时间,格式:yyyy-MM-ddTHH:mmZ',
- 'description' => '备份集预期过期时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。',
- 'type' => 'string',
- 'example' => '2024-04-19T05:00:49Z',
- ],
+ 'BackupId' => ['title' => '备份集ID', 'description' => '备份集ID。', 'type' => 'string', 'example' => '213088****'],
+ 'BackupName' => ['title' => '备份集名称', 'description' => '备份集名称。', 'type' => 'string', 'example' => 'logic_backup'],
+ 'BackupMode' => ['title' => '备份模式:Automated-自动备份;Manual-手动备份;', 'description' => '备份模式,返回值如下:'."\n"
+ ."\n"
+ .'- **Automated**:系统自动备份'."\n"
+ .'- **Manual**:手动备份', 'type' => 'string', 'example' => 'Automated'],
+ 'BackupType' => ['title' => '备份类型:FullBackup-全量备份;IncrementBackup-增量备份;', 'description' => '备份类型,返回值如下:'."\n"
+ ."\n"
+ .'- **FullBackup**:全量备份'."\n"
+ .'- **IncrementBackup**:增量备份', 'type' => 'string', 'example' => 'FullBackup'],
+ 'BackupScale' => ['title' => '备份规格:DBInstance-实例备份;DBTable-库表备份;', 'description' => '备份规格,返回值如下:'."\n"
+ ."\n"
+ .'- **DBInstance**:实例备份'."\n"
+ .'- **DBTable**:库表备份', 'type' => 'string', 'example' => 'DBInstance'],
+ 'BackupMethod' => ['title' => '备份方法:Physical-物理备份;Logical-逻辑备份;Snapshot-快照备份;', 'description' => '备份方式,返回值如下:'."\n"
+ ."\n"
+ .'- **Physical**:物理备份'."\n"
+ .'- **Logical**:逻辑备份'."\n"
+ .'- **Snapshot**:快照备份', 'type' => 'string', 'example' => 'Snapshot'],
+ 'BackupSize' => ['title' => '备份集大小,单位Byte', 'description' => '备份集大小,单位Byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '25669140480'],
+ 'BackupStatus' => ['title' => '备份集状态,OK-备份成功;ERROR-备份失败;', 'description' => '备份集状态,返回值如下:'."\n"
+ ."\n"
+ .'- **OK**:备份成功'."\n"
+ .'- **ERROR**:备份失败', 'type' => 'string', 'example' => 'OK'],
+ 'BackupStartTime' => ['title' => '备份开始时间,格式:yyyy-MM-ddTHH:mmZ', 'description' => '备份开始时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。', 'type' => 'string', 'example' => '2024-04-17T17:00:16Z'],
+ 'BackupEndTime' => ['title' => '备份结束时间,格式:yyyy-MM-ddTHH:mmZ', 'description' => '备份结束时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。', 'type' => 'string', 'example' => '2024-04-17T17:00:32Z'],
+ 'ConsistentTime' => ['title' => '一致性时间点:UnixTimestamp秒级时间戳', 'description' => '一致性快照的时间点,格式为Unix时间戳,单位为秒(s)。', 'type' => 'integer', 'format' => 'int64', 'example' => '1713373221'],
+ 'BackupLocation' => ['title' => '备份存储路径', 'description' => '备份存储路径。', 'type' => 'string', 'example' => 'logic'],
+ 'InstanceName' => ['title' => '实例名称', 'description' => '实例ID。', 'type' => 'string', 'example' => 'pc-2ze3nrr64c5******'],
+ 'Engine' => ['title' => '引擎类型', 'description' => '引擎类型。', 'type' => 'string', 'example' => 'polardb_mysql'],
+ 'EngineVersion' => ['title' => '引擎版本', 'description' => '引擎版本。', 'type' => 'string', 'example' => '5.7'],
+ 'SupportDeletion' => ['title' => '备份集是否支持删除', 'description' => '备份集是否支持删除,返回值如下:'."\n"
+ ."\n"
+ .'- **0**:支持'."\n"
+ .'- **1**:不支持', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'Encryption' => ['title' => '加密信息', 'description' => '加密信息。', 'type' => 'string', 'example' => 'psk2'],
+ 'IsAvail' => ['title' => '备份集是否可用,1-可用;0-不可用;', 'description' => '备份集是否可用,返回值如下:'."\n"
+ ."\n"
+ .'- **1**:可用'."\n"
+ .'- **0**:不可用', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'Checksum' => ['title' => '校验码', 'description' => '校验码。', 'type' => 'string', 'example' => '84a4c16431f969712e6895992719****'],
+ 'BackupDownloadURL' => ['title' => '备份集公网下载链接', 'description' => '备份集公网下载地址。'."\n"
+ ."\n"
+ .'> 仅当BackupMethod为**Physical**(物理备份)或**Logical**(逻辑备份)时,返回该参数。', 'type' => 'string', 'example' => 'http://oss.com/****'],
+ 'BackupIntranetDownloadURL' => ['title' => '备份集内网下载链接', 'description' => '备份集内网下载地址。'."\n"
+ .'> 仅当BackupMethod为**Physical**(物理备份)或**Logical**(逻辑备份)时,返回该参数。', 'type' => 'string', 'example' => 'http://oss.com/****'],
+ 'ExpectExpireType' => ['title' => '备份集预期过期类型', 'description' => '备份集预期过期类型,返回值如下:'."\n"
+ ."\n"
+ .'- NEVER'."\n"
+ .'- EXPIRED'."\n"
+ .'- DELAY', 'type' => 'string', 'example' => 'DELAY'],
+ 'ExpectExpireTime' => ['title' => '备份集预期过期时间,格式:yyyy-MM-ddTHH:mmZ', 'description' => '备份集预期过期时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。', 'type' => 'string', 'example' => '2024-04-19T05:00:49Z'],
'PolarSnapshot' => [
'title' => 'PolarDB二级转储信息',
'description' => 'PolarDB二级转储信息。'."\n"
@@ -1349,125 +713,44 @@
.'> 仅当PolarDB实例开启同地域二级转储功能,并且一级备份转储成功后,才会返回PolarSnapshot相关信息。',
'type' => 'object',
'properties' => [
- 'DumpId' => [
- 'title' => '转储ID',
- 'description' => '转储ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => 'abc****',
- ],
- 'DumpSize' => [
- 'title' => '转储备份大小,单位为Byte',
- 'description' => '转储备份大小,单位为Byte。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '25669140589',
- ],
- 'expectExpireType' => [
- 'title' => '备份集预期过期类型',
- 'description' => '备份集预期过期类型,返回值如下:'."\n"
- ."\n"
- .'- NEVER'."\n"
- .'- EXPIRED'."\n"
- .'- DELAY',
- 'type' => 'string',
- 'example' => 'DELAY',
- ],
- 'ExpectExpireTime' => [
- 'title' => '备份集预期过期时间,格式:yyyy-MM-ddTHH:mmZ',
- 'description' => '备份集预期过期时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。',
- 'type' => 'string',
- 'example' => '2024-04-19T05:00:49Z',
- ],
+ 'DumpId' => ['title' => '转储ID', 'description' => '转储ID。', 'type' => 'integer', 'format' => 'int64', 'example' => 'abc****'],
+ 'DumpSize' => ['title' => '转储备份大小,单位为Byte', 'description' => '转储备份大小,单位为Byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '25669140589'],
+ 'expectExpireType' => ['title' => '备份集预期过期类型', 'description' => '备份集预期过期类型,返回值如下:'."\n"
+ ."\n"
+ .'- NEVER'."\n"
+ .'- EXPIRED'."\n"
+ .'- DELAY', 'type' => 'string', 'example' => 'DELAY'],
+ 'ExpectExpireTime' => ['title' => '备份集预期过期时间,格式:yyyy-MM-ddTHH:mmZ', 'description' => '备份集预期过期时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。', 'type' => 'string', 'example' => '2024-04-19T05:00:49Z'],
],
],
],
],
],
- 'PageSize' => [
- 'title' => '分页大小',
- 'description' => '分页大小。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '20',
- ],
- 'PageNumber' => [
- 'title' => '分页页码',
- 'description' => '分页页码。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'TotalPages' => [
- 'title' => '分页总页数',
- 'description' => '分页总页数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'TotalElements' => [
- 'title' => '总个数',
- 'description' => '备份集总个数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'Extra' => [
- 'title' => '额外信息',
- 'description' => '额外信息。',
- 'type' => 'string',
- 'example' => 'dbtest',
- ],
+ 'PageSize' => ['title' => '分页大小', 'description' => '分页大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
+ 'PageNumber' => ['title' => '分页页码', 'description' => '分页页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'TotalPages' => ['title' => '分页总页数', 'description' => '分页总页数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'TotalElements' => ['title' => '总个数', 'description' => '备份集总个数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'Extra' => ['title' => '额外信息', 'description' => '额外信息。', 'type' => 'string', 'example' => 'dbtest'],
],
],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '95A5FFD0-7F46-5A7D-9DFE-6A376B4E2A28',
- ],
- 'ErrCode' => [
- 'description' => '错误码。'."\n",
- 'type' => 'string',
- 'example' => 'Request.Forbidden ',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。'."\n",
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'Code' => [
- 'description' => '状态码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '95A5FFD0-7F46-5A7D-9DFE-6A376B4E2A28'],
+ 'ErrCode' => ['description' => '错误码。'."\n", 'type' => 'string', 'example' => 'Request.Forbidden '],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。'."\n", 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询备份数据',
'description' => '### 适用引擎'."\n"
.'PolarDB MySQL版'."\n"
@@ -1488,12 +771,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'conditional',
- 'product' => 'DBS',
- 'resourceType' => 'DBInstance',
- 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}',
- ],
+ ['validationType' => 'conditional', 'product' => 'DBS', 'resourceType' => 'DBInstance', 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}'],
],
],
],
@@ -1501,13 +779,8 @@
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Content\\": [\\n {\\n \\"BackupId\\": \\"213088****\\",\\n \\"BackupName\\": \\"logic_backup\\",\\n \\"BackupMode\\": \\"Automated\\",\\n \\"BackupType\\": \\"FullBackup\\",\\n \\"BackupScale\\": \\"DBInstance\\",\\n \\"BackupMethod\\": \\"Snapshot\\",\\n \\"BackupSize\\": 25669140480,\\n \\"BackupStatus\\": \\"OK\\",\\n \\"BackupStartTime\\": \\"2024-04-17T17:00:16Z\\",\\n \\"BackupEndTime\\": \\"2024-04-17T17:00:32Z\\",\\n \\"ConsistentTime\\": 1713373221,\\n \\"BackupLocation\\": \\"logic\\",\\n \\"InstanceName\\": \\"pc-2ze3nrr64c5******\\",\\n \\"Engine\\": \\"polardb_mysql\\",\\n \\"EngineVersion\\": \\"5.7\\",\\n \\"SupportDeletion\\": 0,\\n \\"Encryption\\": \\"psk2\\",\\n \\"IsAvail\\": 1,\\n \\"Checksum\\": \\"84a4c16431f969712e6895992719****\\",\\n \\"BackupDownloadURL\\": \\"http://oss.com/****\\",\\n \\"BackupIntranetDownloadURL\\": \\"http://oss.com/****\\",\\n \\"ExpectExpireType\\": \\"DELAY\\",\\n \\"ExpectExpireTime\\": \\"2024-04-19T05:00:49Z\\",\\n \\"PolarSnapshot\\": {\\n \\"DumpId\\": 0,\\n \\"DumpSize\\": 25669140589,\\n \\"expectExpireType\\": \\"DELAY\\",\\n \\"ExpectExpireTime\\": \\"2024-04-19T05:00:49Z\\"\\n }\\n }\\n ],\\n \\"PageSize\\": 20,\\n \\"PageNumber\\": 1,\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 1,\\n \\"Extra\\": \\"dbtest\\"\\n },\\n \\"RequestId\\": \\"95A5FFD0-7F46-5A7D-9DFE-6A376B4E2A28\\",\\n \\"ErrCode\\": \\"Request.Forbidden\\\\t\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"The specified parameter %s value is not valid.\\"\\n}","type":"json"}]',
],
'DescribeBackupPolicy' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -1520,32 +793,18 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '215256',
- 'abilityTreeNodes' => [
- 'FEATUREcbsPNQ3FN',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsPNQ3FN'],
],
'parameters' => [
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'title' => '地域',
- 'description' => '备份集所在地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-beijing',
- ],
+ 'schema' => ['title' => '地域', 'description' => '备份集所在地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'],
],
[
'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'title' => '实例名',
- 'description' => 'PolarDB实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'pc-2ze3nrr64c5****',
- ],
+ 'schema' => ['title' => '实例名', 'description' => 'PolarDB实例ID。', 'type' => 'string', 'required' => false, 'example' => 'pc-2ze3nrr64c5****'],
],
],
'responses' => [
@@ -1554,159 +813,57 @@
'description' => '返回参数详情。',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '54A63B3B-AA10-1CC3-A6BB-6CCE98D19628',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'instanceName can not be empty.',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '54A63B3B-AA10-1CC3-A6BB-6CCE98D19628'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'instanceName can not be empty.'],
'Data' => [
'description' => '备份策略详情。',
'type' => 'object',
'properties' => [
- 'PreferredBackupDate' => [
- 'title' => '基础备份的备份周期'."\n",
- 'description' => '基础备份的备份周期,以一个7位数返回,从左到右每一位分别对应周一到周日,其中1代表备份,0代表不进行备份。',
- 'type' => 'string',
- 'example' => '1010101',
- ],
- 'PreferredBackupWindowBegin' => [
- 'title' => '基础备份窗口开始时间',
- 'description' => '基础备份窗口开始时间。',
- 'type' => 'string',
- 'example' => '23:00Z',
- ],
- 'PreferredBackupWindow' => [
- 'title' => '基础备份窗口',
- 'description' => '基础备份窗口。',
- 'type' => 'string',
- 'example' => '23:00Z-24:00Z',
- ],
- 'BackupRetentionPeriod' => [
- 'title' => '基础备份保留时间,若开启高级备份策略,则为一级备份策略中得最长保留时间',
- 'description' => '基础备份保留时间,若开启高级备份策略,则为一级备份策略中的最长保留时间。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '7',
- ],
- 'BackupRetentionPolicyOnClusterDeletion' => [
- 'title' => '已删除实例的归档备份保留策略。取值:'."\n"
- .'0:不保留'."\n"
- .'1:保留最后一个'."\n"
- .'2:全部保留',
- 'description' => '已删除实例的归档备份保留策略,返回值如下:'."\n"
- ."\n"
- .'- **NONE**:不保留'."\n"
- .'- **LATEST**:保留最后一个'."\n"
- .'- **ALL**:全部保留',
- 'type' => 'string',
- 'example' => 'LATEST',
- ],
- 'HighFrequencyBakInterval' => [
- 'title' => '高频备份时间',
- 'description' => '高频备份时间。例如120表示每两小时备份一次,单位为分钟。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '120',
- ],
- 'BackupPriority' => [
- 'title' => '备库备份的设置。返回值:'."\n"
- .'1:优先备库'."\n"
- .'2:强制主库',
- 'description' => '备库备份的设置策略,返回值如下:'."\n"
- ."\n"
- .'- **1**:优先备库'."\n"
- .'- **2**:强制主库'."\n"
- ."\n\n"
- .'> 该参数仅适用于RDS SQL Server实例,其他引擎返回值为**0**。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'EnableLogBackup' => [
- 'title' => '是否开启日志备份',
- 'description' => '是否开启日志备份,返回值如下:'."\n"
- ."\n"
- .'- **1**:开启'."\n"
- .'- **0**:未开启',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'LogBackupRetention' => [
- 'title' => '日志备份保留周期',
- 'description' => '日志备份保留周期。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '7',
- ],
- 'LogBackupLocalRetentionNumber' => [
- 'title' => '本地日志文件保留个数',
- 'description' => '本地日志文件保留个数。',
- 'type' => 'string',
- 'example' => '10',
- ],
- 'EnableBackup' => [
- 'title' => '是否开启备份',
- 'description' => '是否开启备份。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'LocalLogRetentionSpace' => [
- 'title' => '本地日志最大空间使用率。',
- 'description' => '本地日志最大空间使用率。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- ],
- 'HighSpaceUsageProtection' => [
- 'title' => '在磁盘水位过高时是否强制日志',
- 'description' => '实例使用空间大于80%,或者剩余空间小于 5 GB时,是否强制清理日志:'."\n"
- ."\n"
- .'- **Disable**:不清理'."\n"
- .'- **Enable**:清理',
- 'type' => 'string',
- 'example' => 'Enable',
- ],
- 'Category' => [
- 'title' => '是否开启秒级备份,仅对MySQL生效',
- 'description' => '是否开启秒级备份,返回值如下:'."\n"
- ."\n"
- .'- **Flash**:已开启秒级备份'."\n"
- .'- **Standard**:普通备份'."\n"
- ."\n"
- .'> 该参数仅对MySQL生效。',
- 'type' => 'string',
- 'example' => 'Standard',
- ],
- 'IncBackupInterval' => [
- 'title' => '高频增量备份间隔',
- 'description' => '高频增量备份间隔。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '-1',
- ],
- 'EnableIncBackup' => [
- 'title' => '是否开启增量备份',
- 'description' => '是否开启增量备份。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'BackupMethod' => [
- 'title' => '备份方式 S - 快照备份 P-物理备份',
- 'description' => '备份方式,返回值如下:'."\n"
- ."\n"
- .'- **Physical**:物理备份'."\n"
- .'- **Snapshot**:快照备份',
- 'type' => 'string',
- 'example' => 'Physical',
- ],
+ 'PreferredBackupDate' => ['title' => '基础备份的备份周期'."\n", 'description' => '基础备份的备份周期,以一个7位数返回,从左到右每一位分别对应周一到周日,其中1代表备份,0代表不进行备份。', 'type' => 'string', 'example' => '1010101'],
+ 'PreferredBackupWindowBegin' => ['title' => '基础备份窗口开始时间', 'description' => '基础备份窗口开始时间。', 'type' => 'string', 'example' => '23:00Z'],
+ 'PreferredBackupWindow' => ['title' => '基础备份窗口', 'description' => '基础备份窗口。', 'type' => 'string', 'example' => '23:00Z-24:00Z'],
+ 'BackupRetentionPeriod' => ['title' => '基础备份保留时间,若开启高级备份策略,则为一级备份策略中得最长保留时间', 'description' => '基础备份保留时间,若开启高级备份策略,则为一级备份策略中的最长保留时间。', 'type' => 'integer', 'format' => 'int32', 'example' => '7'],
+ 'BackupRetentionPolicyOnClusterDeletion' => ['title' => '已删除实例的归档备份保留策略。取值:'."\n"
+ .'0:不保留'."\n"
+ .'1:保留最后一个'."\n"
+ .'2:全部保留', 'description' => '已删除实例的归档备份保留策略,返回值如下:'."\n"
+ ."\n"
+ .'- **NONE**:不保留'."\n"
+ .'- **LATEST**:保留最后一个'."\n"
+ .'- **ALL**:全部保留', 'type' => 'string', 'example' => 'LATEST'],
+ 'HighFrequencyBakInterval' => ['title' => '高频备份时间', 'description' => '高频备份时间。例如120表示每两小时备份一次,单位为分钟。', 'type' => 'integer', 'format' => 'int32', 'example' => '120'],
+ 'BackupPriority' => ['title' => '备库备份的设置。返回值:'."\n"
+ .'1:优先备库'."\n"
+ .'2:强制主库', 'description' => '备库备份的设置策略,返回值如下:'."\n"
+ ."\n"
+ .'- **1**:优先备库'."\n"
+ .'- **2**:强制主库'."\n"
+ ."\n\n"
+ .'> 该参数仅适用于RDS SQL Server实例,其他引擎返回值为**0**。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'EnableLogBackup' => ['title' => '是否开启日志备份', 'description' => '是否开启日志备份,返回值如下:'."\n"
+ ."\n"
+ .'- **1**:开启'."\n"
+ .'- **0**:未开启', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'LogBackupRetention' => ['title' => '日志备份保留周期', 'description' => '日志备份保留周期。', 'type' => 'integer', 'format' => 'int32', 'example' => '7'],
+ 'LogBackupLocalRetentionNumber' => ['title' => '本地日志文件保留个数', 'description' => '本地日志文件保留个数。', 'type' => 'integer', 'example' => '10', 'format' => 'int32'],
+ 'EnableBackup' => ['title' => '是否开启备份', 'description' => '是否开启备份。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'LocalLogRetentionSpace' => ['title' => '本地日志最大空间使用率。', 'description' => '本地日志最大空间使用率。', 'type' => 'integer', 'format' => 'int32', 'example' => '30'],
+ 'HighSpaceUsageProtection' => ['title' => '在磁盘水位过高时是否强制日志', 'description' => '实例使用空间大于80%,或者剩余空间小于 5 GB时,是否强制清理日志:'."\n"
+ ."\n"
+ .'- **Disable**:不清理'."\n"
+ .'- **Enable**:清理', 'type' => 'string', 'example' => 'Enable'],
+ 'Category' => ['title' => '是否开启秒级备份,仅对MySQL生效', 'description' => '是否开启秒级备份,返回值如下:'."\n"
+ ."\n"
+ .'- **Flash**:已开启秒级备份'."\n"
+ .'- **Standard**:普通备份'."\n"
+ ."\n"
+ .'> 该参数仅对MySQL生效。', 'type' => 'string', 'example' => 'Standard'],
+ 'IncBackupInterval' => ['title' => '高频增量备份间隔', 'description' => '高频增量备份间隔。', 'type' => 'integer', 'format' => 'int32', 'example' => '-1'],
+ 'EnableIncBackup' => ['title' => '是否开启增量备份', 'description' => '是否开启增量备份。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'BackupMethod' => ['title' => '备份方式 S - 快照备份 P-物理备份', 'description' => '备份方式,返回值如下:'."\n"
+ ."\n"
+ .'- **Physical**:物理备份'."\n"
+ .'- **Snapshot**:快照备份', 'type' => 'string', 'example' => 'Physical'],
'AdvanceLogPolicies' => [
'description' => '日志备份策略详情。',
'type' => 'array',
@@ -1714,87 +871,55 @@
'description' => '策略详情。',
'type' => 'object',
'properties' => [
- 'PolicyId' => [
- 'title' => '备份策略ID',
- 'description' => '备份策略ID。',
- 'type' => 'string',
- 'example' => 'dc13b153acc91141789122c23835****',
- ],
- 'SrcType' => [
- 'title' => '备份策略源类型'."\n"
- .' db - 数据库'."\n"
- .' level1 - 一级备份'."\n"
- .' level2 - 二级备份'."\n"
- .' level2Cross - 二级跨地域备份',
- 'description' => '备份策略源类型,返回值如下:'."\n"
- ."\n"
- .'- **db**:数据库'."\n"
- .'- **level1**:一级备份'."\n"
- .'- **level2**:二级备份'."\n"
- .'- **level2Cross**:二级跨地域备份',
- 'type' => 'string',
- 'example' => 'level1',
- ],
- 'SrcRegion' => [
- 'title' => '备份策略源region',
- 'description' => '备份策略源地域。',
- 'type' => 'string',
- 'example' => 'cn-beijing',
- ],
- 'DestType' => [
- 'title' => '备份策略目标类型'."\n"
- .' db - 数据库'."\n"
- .' level1 - 一级备份'."\n"
- .' level2 - 二级备份'."\n"
- .' level2Cross - 二级跨地域备份',
- 'description' => '备份策略目标类型,返回值如下:'."\n"
- ."\n"
- .'- **db**:数据库'."\n"
- .'- **level1**:一级备份'."\n"
- .'- **level2**:二级备份'."\n"
- .'- **level2Cross**:二级跨地域备份',
- 'type' => 'string',
- 'example' => 'level1',
- ],
- 'DestRegion' => [
- 'title' => '备份策略目标region',
- 'description' => '备份策略目标地域。',
- 'type' => 'string',
- 'example' => 'cn-shanghai',
- ],
- 'EnableLogBackup' => [
- 'title' => '是否开启日志备份',
- 'description' => '预留参数,无需关注。',
- 'type' => 'integer',
- 'example' => '1',
- 'format' => 'int64',
- ],
- 'LogRetentionType' => [
- 'title' => '日志备份保留类型'."\n"
- .' Never - 永不过期'."\n"
- .' Delay - 按天过期',
- 'description' => '日志备份保留类型,返回值如下:'."\n"
- ."\n"
- .'- **never**:永不过期'."\n"
- .'- **delay**:固定天数过期',
- 'type' => 'string',
- 'example' => 'delay',
- ],
- 'LogRetentionValue' => [
- 'title' => '日志备份保留时间',
- 'description' => '日志备份保留时间。',
- 'type' => 'string',
- 'example' => '3',
- ],
- 'FilterType' => [
- 'type' => 'string',
- ],
- 'FilterKey' => [
- 'type' => 'string',
- ],
- 'FilterValue' => [
- 'type' => 'string',
- ],
+ 'PolicyId' => ['title' => '备份策略ID', 'description' => '备份策略ID。', 'type' => 'string', 'example' => 'dc13b153acc91141789122c23835****'],
+ 'SrcType' => ['title' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略源类型,返回值如下:'."\n"
+ ."\n"
+ .'- **db**:数据库'."\n"
+ .'- **level1**:一级备份'."\n"
+ .'- **level2**:二级备份'."\n"
+ .'- **level2Cross**:二级跨地域备份', 'type' => 'string', 'example' => 'level1'],
+ 'SrcRegion' => ['title' => '备份策略源region', 'description' => '备份策略源地域。', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'DestType' => ['title' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略目标类型,返回值如下:'."\n"
+ ."\n"
+ .'- **db**:数据库'."\n"
+ .'- **level1**:一级备份'."\n"
+ .'- **level2**:二级备份'."\n"
+ .'- **level2Cross**:二级跨地域备份', 'type' => 'string', 'example' => 'level1'],
+ 'DestRegion' => ['title' => '备份策略目标region', 'description' => '备份策略目标地域。', 'type' => 'string', 'example' => 'cn-shanghai'],
+ 'EnableLogBackup' => ['description' => '预留参数,无需关注。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'LogRetentionType' => ['title' => '日志备份保留类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 按天过期', 'description' => '日志备份保留类型,返回值如下:'."\n"
+ ."\n"
+ .'- **never**:永不过期'."\n"
+ .'- **delay**:固定天数过期', 'type' => 'string', 'example' => 'delay'],
+ 'LogRetentionValue' => ['title' => '日志备份保留时间', 'description' => '日志备份保留时间。', 'type' => 'string', 'example' => '3'],
+ 'FilterType' => ['description' => '高级策略筛选类型,返回值如下:'."\n"
+ ."\n"
+ .'crontab:周期调度'."\n"
+ ."\n"
+ .'event:事件调度', 'type' => 'string', 'example' => 'crontab'],
+ 'FilterKey' => ['description' => '调度类型,返回值如下:'."\n"
+ ."\n"
+ .'dayOfWeek:按周调度'."\n"
+ ."\n"
+ .'dayOfMonth:按月调度'."\n"
+ ."\n"
+ .'dayOfYear:按年调度'."\n"
+ ."\n"
+ .'backupInterval:固定间隔调度'."\n"
+ ."\n"
+ .'说明'."\n"
+ .'仅当 FilterType 为 crontab 时,返回该参数。', 'type' => 'string', 'example' => 'dayOfWeek'],
+ 'FilterValue' => ['description' => '备份周期。', 'type' => 'string', 'example' => '1,2,3,4,5,6,7'],
],
],
],
@@ -1805,227 +930,158 @@
'description' => '策略详情。',
'type' => 'object',
'properties' => [
- 'PolicyId' => [
- 'title' => '高级策略ID',
- 'description' => '高级策略ID。',
- 'type' => 'string',
- 'example' => '71930ac2e9f15e41615e10627c******',
- ],
- 'FilterType' => [
- 'title' => '高级策略筛选类型'."\n"
- .' Crontab - 周期调度'."\n"
- .' Event - 事件调度',
- 'description' => '高级策略筛选类型,返回值如下:'."\n"
- ."\n"
- .'- **crontab**:周期调度'."\n"
- .'- **event**:事件调度',
- 'type' => 'string',
- 'example' => 'crontab',
- ],
- 'FilterKey' => [
- 'title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
- .'dayOfWeek - 按周调度'."\n"
- .'dayOfMonth - 按月调度'."\n"
- .'dayOfYear - 按年调度'."\n"
- .'backupInterval - 固定间隔调度',
- 'description' => '调度类型,返回值如下:'."\n"
- ."\n"
- .'- **dayOfWeek**:按周调度'."\n"
- .'- **dayOfMonth**:按月调度'."\n"
- .'- **dayOfYear**:按年调度'."\n"
- .'- **backupInterval**:固定间隔调度'."\n"
- ."\n"
- .'> 仅当FilterType为**crontab**时,返回该参数。',
- 'type' => 'string',
- 'example' => 'dayOfWeek',
- ],
- 'FilterValue' => [
- 'title' => '具体Filter的值',
- 'description' => '备份周期。',
- 'type' => 'string',
- 'example' => '1,2,3,4,5,6,7',
- ],
- 'DumpAction' => [
- 'title' => '转储策略'."\n"
- .' Copy - 复制'."\n"
- .' Move - 转储',
- 'description' => '转储策略详情,返回值如下:'."\n"
- ."\n"
- .'- **copy**:复制'."\n"
- .'- **move**:转储',
- 'type' => 'string',
- 'example' => 'copy',
- ],
- 'RetentionType' => [
- 'title' => '保留周期类型'."\n"
- .' Never - 永不过期'."\n"
- .' Delay - 固定天数过期',
- 'description' => '备份集保留周期类型,返回值如下:'."\n"
- ."\n"
- .'- **never**:永不过期'."\n"
- .'- **delay**:固定天数过期',
- 'type' => 'string',
- 'example' => 'delay',
- ],
- 'RetentionValue' => [
- 'title' => '过期天数',
- 'description' => '过期天数。',
- 'type' => 'string',
- 'example' => '7',
- ],
- 'SrcType' => [
- 'title' => '备份策略源类型'."\n"
- .' db - 数据库'."\n"
- .' level1 - 一级备份'."\n"
- .' level2 - 二级备份'."\n"
- .' level2Cross - 二级跨地域备份',
- 'description' => '备份策略源类型,返回值如下:'."\n"
- ."\n"
- .'- **db**:数据库'."\n"
- .'- **level1**:一级备份'."\n"
- .'- **level2**:二级备份'."\n"
- .'- **level2Cross**:二级跨地域备份',
- 'type' => 'string',
- 'example' => 'db',
- ],
- 'SrcRegion' => [
- 'title' => '备份策略源region',
- 'description' => '备份策略源地域。',
- 'type' => 'string',
- 'example' => 'cn-beijing',
- ],
- 'DestType' => [
- 'title' => '备份策略目标类型'."\n"
- .' db - 数据库'."\n"
- .' level1 - 一级备份'."\n"
- .' level2 - 二级备份'."\n"
- .' level2Cross - 二级跨地域备份',
- 'description' => '备份策略目标类型,返回值如下:'."\n"
- ."\n"
- .'- **db**:数据库'."\n"
- .'- **level1**:一级备份'."\n"
- .'- **level2**:二级备份'."\n"
- .'- **level2Cross**:二级跨地域备份',
- 'type' => 'string',
- 'example' => 'level1',
- ],
- 'DestRegion' => [
- 'title' => '备份策略目标region',
- 'description' => '备份策略目标地域。',
- 'type' => 'string',
- 'example' => 'cn-beijing',
- ],
- 'BakType' => [
- 'title' => '备份类型 F - 全量 L 日志',
- 'description' => '备份类型,返回值如下:'."\n"
- ."\n"
- .'- **F**:全量备份'."\n"
- .'- **L**:日志备份',
- 'type' => 'string',
- 'example' => 'F',
- ],
- 'AutoCreated' => [
- 'title' => '是否系统自动生成',
- 'description' => '是否为系统自动生成的备份策略,返回值如下:'."\n"
- ."\n"
- .'- **true**:系统生成策略'."\n"
- .'- **false**:用户自定义策略',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'StorageClass' => [
- 'type' => 'string',
- ],
+ 'PolicyId' => ['title' => '高级策略ID', 'description' => '高级策略ID。', 'type' => 'string', 'example' => '71930ac2e9f15e41615e10627c******'],
+ 'FilterType' => ['title' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'description' => '高级策略筛选类型,返回值如下:'."\n"
+ ."\n"
+ .'- **crontab**:周期调度'."\n"
+ .'- **event**:事件调度', 'type' => 'string', 'example' => 'crontab'],
+ 'FilterKey' => ['title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'description' => '调度类型,返回值如下:'."\n"
+ ."\n"
+ .'- **dayOfWeek**:按周调度'."\n"
+ .'- **dayOfMonth**:按月调度'."\n"
+ .'- **dayOfYear**:按年调度'."\n"
+ .'- **backupInterval**:固定间隔调度'."\n"
+ ."\n"
+ .'> 仅当FilterType为**crontab**时,返回该参数。', 'type' => 'string', 'example' => 'dayOfWeek'],
+ 'FilterValue' => ['title' => '具体Filter的值', 'description' => '备份周期。', 'type' => 'string', 'example' => '1,2,3,4,5,6,7'],
+ 'DumpAction' => ['title' => '转储策略'."\n"
+ .' Copy - 复制'."\n"
+ .' Move - 转储', 'description' => '转储策略详情,返回值如下:'."\n"
+ ."\n"
+ .'- **copy**:复制'."\n"
+ .'- **move**:转储', 'type' => 'string', 'example' => 'copy'],
+ 'RetentionType' => ['title' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'description' => '备份集保留周期类型,返回值如下:'."\n"
+ ."\n"
+ .'- **never**:永不过期'."\n"
+ .'- **delay**:固定天数过期', 'type' => 'string', 'example' => 'delay'],
+ 'RetentionValue' => ['title' => '过期天数', 'description' => '过期天数。', 'type' => 'string', 'example' => '7'],
+ 'SrcType' => ['title' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略源类型,返回值如下:'."\n"
+ ."\n"
+ .'- **db**:数据库'."\n"
+ .'- **level1**:一级备份'."\n"
+ .'- **level2**:二级备份'."\n"
+ .'- **level2Cross**:二级跨地域备份', 'type' => 'string', 'example' => 'db'],
+ 'SrcRegion' => ['title' => '备份策略源region', 'description' => '备份策略源地域。', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'DestType' => ['title' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略目标类型,返回值如下:'."\n"
+ ."\n"
+ .'- **db**:数据库'."\n"
+ .'- **level1**:一级备份'."\n"
+ .'- **level2**:二级备份'."\n"
+ .'- **level2Cross**:二级跨地域备份', 'type' => 'string', 'example' => 'level1'],
+ 'DestRegion' => ['title' => '备份策略目标region', 'description' => '备份策略目标地域。', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'BakType' => ['title' => '备份类型 F - 全量 L 日志', 'description' => '备份类型,返回值如下:'."\n"
+ ."\n"
+ .'- **F**:全量备份'."\n"
+ .'- **L**:日志备份', 'type' => 'string', 'example' => 'F'],
+ 'AutoCreated' => ['title' => '是否系统自动生成', 'description' => '是否为系统自动生成的备份策略,返回值如下:'."\n"
+ ."\n"
+ .'- **true**:系统生成策略'."\n"
+ .'- **false**:用户自定义策略', 'type' => 'boolean', 'example' => 'true'],
+ 'StorageClass' => ['description' => '数据存储类型。', 'type' => 'string', 'example' => 'STANDARD'],
],
],
],
'AdvanceIncPolicies' => [
+ 'description' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'PolicyId' => [
- 'type' => 'string',
- ],
- 'FilterType' => [
- 'type' => 'string',
- ],
- 'FilterKey' => [
- 'type' => 'string',
- ],
- 'FilterValue' => [
- 'type' => 'string',
- ],
- 'DumpAction' => [
- 'type' => 'string',
- ],
- 'RetentionType' => [
- 'type' => 'string',
- ],
- 'RetentionValue' => [
- 'type' => 'string',
- ],
- 'SrcType' => [
- 'type' => 'string',
- ],
- 'SrcRegion' => [
- 'type' => 'string',
- ],
- 'DestType' => [
- 'type' => 'string',
- ],
- 'DestRegion' => [
- 'type' => 'string',
- ],
- 'BakType' => [
- 'type' => 'string',
- ],
- 'AutoCreated' => [
- 'type' => 'boolean',
- ],
+ 'PolicyId' => ['title' => '高级策略ID', 'description' => '高级策略ID', 'type' => 'string', 'example' => 'smp-l0bfdmlr4c***'],
+ 'FilterType' => ['title' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'description' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'type' => 'string', 'example' => 'crontab'],
+ 'FilterKey' => ['title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'description' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'type' => 'string', 'example' => 'dayOfMonth'],
+ 'FilterValue' => ['title' => '具体Filter的值', 'description' => '具体Filter的值', 'type' => 'string', 'example' => '1'],
+ 'DumpAction' => ['title' => '转储策略'."\n"
+ .' Copy - 复制'."\n"
+ .' Move - 转储', 'description' => '转储策略'."\n"
+ .' Copy - 复制'."\n"
+ .' Move - 转储', 'type' => 'string', 'example' => 'Copy'],
+ 'RetentionType' => ['title' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'description' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'type' => 'string', 'example' => 'delay'],
+ 'RetentionValue' => ['title' => '过期天数', 'description' => '过期天数', 'type' => 'string', 'example' => '365'],
+ 'SrcType' => ['title' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'example' => 'db'],
+ 'SrcRegion' => ['title' => '备份策略源region', 'description' => '备份策略源region', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'DestType' => ['title' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'example' => 'db'],
+ 'DestRegion' => ['title' => '备份策略目标region', 'description' => '备份策略目标region', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'BakType' => ['title' => '备份类型 F - 全量 L 日志', 'description' => '备份类型 F - 全量 L 日志', 'type' => 'string', 'example' => 'F'],
+ 'AutoCreated' => ['title' => '是否系统自动生成', 'description' => '是否系统自动生成', 'type' => 'boolean', 'example' => 'true'],
],
+ 'description' => '',
],
],
+ 'PreferredNextBackupTime' => ['type' => 'string', 'example' => '2025-07-08T16:05Z'],
+ 'EnablePitrProtection' => ['type' => 'boolean'],
+ 'LogBackupLocalRetention' => ['type' => 'integer', 'format' => 'int32', 'example' => '7'],
+ 'ColdRetention' => ['type' => 'integer', 'format' => 'int32', 'example' => '30'],
+ 'ColdKeepPolicy' => ['type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'ColdKeepCount' => ['type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'Code' => [
- 'description' => '状态码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => 'Success'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'string', 'example' => 'true'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Success'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询备份策略',
'summary' => '查询PolarDB实例备份策略。',
'description' => '### 适用引擎'."\n"
@@ -2036,14 +1092,8 @@
.'### 相关功能文档'."\n"
.'[PolarDB MySQL版备份策略](~~280422~~)',
'changeSet' => [
- [
- 'createdAt' => '2024-05-28T13:59:23.000Z',
- 'description' => '响应参数发生变更',
- ],
- [
- 'createdAt' => '2024-05-17T02:21:41.000Z',
- 'description' => '响应参数发生变更',
- ],
+ ['createdAt' => '2024-05-28T13:59:23.000Z', 'description' => '响应参数发生变更'],
+ ['createdAt' => '2024-05-17T02:21:41.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
@@ -2056,57 +1106,34 @@
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"54A63B3B-AA10-1CC3-A6BB-6CCE98D19628\\",\\n \\"Message\\": \\"instanceName can not be empty.\\",\\n \\"Data\\": {\\n \\"PreferredBackupDate\\": \\"1010101\\",\\n \\"PreferredBackupWindowBegin\\": \\"23:00Z\\",\\n \\"PreferredBackupWindow\\": \\"23:00Z-24:00Z\\",\\n \\"BackupRetentionPeriod\\": 7,\\n \\"BackupRetentionPolicyOnClusterDeletion\\": \\"LATEST\\",\\n \\"HighFrequencyBakInterval\\": 120,\\n \\"BackupPriority\\": 0,\\n \\"EnableLogBackup\\": 1,\\n \\"LogBackupRetention\\": 7,\\n \\"LogBackupLocalRetentionNumber\\": \\"10\\",\\n \\"EnableBackup\\": 1,\\n \\"LocalLogRetentionSpace\\": 30,\\n \\"HighSpaceUsageProtection\\": \\"Enable\\",\\n \\"Category\\": \\"Standard\\",\\n \\"IncBackupInterval\\": -1,\\n \\"EnableIncBackup\\": 0,\\n \\"BackupMethod\\": \\"Physical\\",\\n \\"AdvanceLogPolicies\\": [\\n {\\n \\"PolicyId\\": \\"dc13b153acc91141789122c23835****\\",\\n \\"SrcType\\": \\"level1\\",\\n \\"SrcRegion\\": \\"cn-beijing\\",\\n \\"DestType\\": \\"level1\\",\\n \\"DestRegion\\": \\"cn-shanghai\\",\\n \\"EnableLogBackup\\": 1,\\n \\"LogRetentionType\\": \\"delay\\",\\n \\"LogRetentionValue\\": \\"3\\",\\n \\"FilterType\\": \\"\\",\\n \\"FilterKey\\": \\"\\",\\n \\"FilterValue\\": \\"\\"\\n }\\n ],\\n \\"AdvanceDataPolicies\\": [\\n {\\n \\"PolicyId\\": \\"71930ac2e9f15e41615e10627c******\\",\\n \\"FilterType\\": \\"crontab\\",\\n \\"FilterKey\\": \\"dayOfWeek\\",\\n \\"FilterValue\\": \\"1,2,3,4,5,6,7\\",\\n \\"DumpAction\\": \\"copy\\",\\n \\"RetentionType\\": \\"delay\\",\\n \\"RetentionValue\\": \\"7\\",\\n \\"SrcType\\": \\"db\\",\\n \\"SrcRegion\\": \\"cn-beijing\\",\\n \\"DestType\\": \\"level1\\",\\n \\"DestRegion\\": \\"cn-beijing\\",\\n \\"BakType\\": \\"F\\",\\n \\"AutoCreated\\": true,\\n \\"StorageClass\\": \\"\\"\\n }\\n ],\\n \\"AdvanceIncPolicies\\": [\\n {\\n \\"PolicyId\\": \\"\\",\\n \\"FilterType\\": \\"\\",\\n \\"FilterKey\\": \\"\\",\\n \\"FilterValue\\": \\"\\",\\n \\"DumpAction\\": \\"\\",\\n \\"RetentionType\\": \\"\\",\\n \\"RetentionValue\\": \\"\\",\\n \\"SrcType\\": \\"\\",\\n \\"SrcRegion\\": \\"\\",\\n \\"DestType\\": \\"\\",\\n \\"DestRegion\\": \\"\\",\\n \\"BakType\\": \\"\\",\\n \\"AutoCreated\\": true\\n }\\n ]\\n },\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"Code\\": \\"Success\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrCode\\": \\"Success\\"\\n}","type":"json"}]',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"54A63B3B-AA10-1CC3-A6BB-6CCE98D19628\\",\\n \\"Message\\": \\"instanceName can not be empty.\\",\\n \\"Data\\": {\\n \\"PreferredBackupDate\\": \\"1010101\\",\\n \\"PreferredBackupWindowBegin\\": \\"23:00Z\\",\\n \\"PreferredBackupWindow\\": \\"23:00Z-24:00Z\\",\\n \\"BackupRetentionPeriod\\": 7,\\n \\"BackupRetentionPolicyOnClusterDeletion\\": \\"LATEST\\",\\n \\"HighFrequencyBakInterval\\": 120,\\n \\"BackupPriority\\": 0,\\n \\"EnableLogBackup\\": 1,\\n \\"LogBackupRetention\\": 7,\\n \\"LogBackupLocalRetentionNumber\\": 10,\\n \\"EnableBackup\\": 1,\\n \\"LocalLogRetentionSpace\\": 30,\\n \\"HighSpaceUsageProtection\\": \\"Enable\\",\\n \\"Category\\": \\"Standard\\",\\n \\"IncBackupInterval\\": -1,\\n \\"EnableIncBackup\\": 0,\\n \\"BackupMethod\\": \\"Physical\\",\\n \\"AdvanceLogPolicies\\": [\\n {\\n \\"PolicyId\\": \\"dc13b153acc91141789122c23835****\\",\\n \\"SrcType\\": \\"level1\\",\\n \\"SrcRegion\\": \\"cn-beijing\\",\\n \\"DestType\\": \\"level1\\",\\n \\"DestRegion\\": \\"cn-shanghai\\",\\n \\"EnableLogBackup\\": 1,\\n \\"LogRetentionType\\": \\"delay\\",\\n \\"LogRetentionValue\\": \\"3\\",\\n \\"FilterType\\": \\"crontab\\",\\n \\"FilterKey\\": \\"dayOfWeek\\",\\n \\"FilterValue\\": \\"1,2,3,4,5,6,7\\"\\n }\\n ],\\n \\"AdvanceDataPolicies\\": [\\n {\\n \\"PolicyId\\": \\"71930ac2e9f15e41615e10627c******\\",\\n \\"FilterType\\": \\"crontab\\",\\n \\"FilterKey\\": \\"dayOfWeek\\",\\n \\"FilterValue\\": \\"1,2,3,4,5,6,7\\",\\n \\"DumpAction\\": \\"copy\\",\\n \\"RetentionType\\": \\"delay\\",\\n \\"RetentionValue\\": \\"7\\",\\n \\"SrcType\\": \\"db\\",\\n \\"SrcRegion\\": \\"cn-beijing\\",\\n \\"DestType\\": \\"level1\\",\\n \\"DestRegion\\": \\"cn-beijing\\",\\n \\"BakType\\": \\"F\\",\\n \\"AutoCreated\\": true,\\n \\"StorageClass\\": \\"STANDARD\\"\\n }\\n ],\\n \\"AdvanceIncPolicies\\": [\\n {\\n \\"PolicyId\\": \\"smp-l0bfdmlr4c***\\",\\n \\"FilterType\\": \\"crontab\\",\\n \\"FilterKey\\": \\"dayOfMonth\\",\\n \\"FilterValue\\": \\"1\\",\\n \\"DumpAction\\": \\"Copy\\",\\n \\"RetentionType\\": \\"delay\\",\\n \\"RetentionValue\\": \\"365\\",\\n \\"SrcType\\": \\"db\\",\\n \\"SrcRegion\\": \\"cn-hangzhou\\",\\n \\"DestType\\": \\"db\\",\\n \\"DestRegion\\": \\"cn-hangzhou\\",\\n \\"BakType\\": \\"F\\",\\n \\"AutoCreated\\": true\\n }\\n ],\\n \\"PreferredNextBackupTime\\": \\"2025-07-08T16:05Z\\",\\n \\"EnablePitrProtection\\": true,\\n \\"LogBackupLocalRetention\\": 7,\\n \\"ColdRetention\\": 30,\\n \\"ColdKeepPolicy\\": 1,\\n \\"ColdKeepCount\\": 1\\n },\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid. \\",\\n \\"Code\\": \\"Success\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrCode\\": \\"Success\\"\\n}","type":"json"}]',
],
'DescribeCostInfoByDbsInstance' => [
'summary' => '根据dbs实例id获取费用列表',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'description' => '实例所在地域ID,您可以在账单里看到地域信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '实例所在地域ID,您可以在账单里看到地域信息', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计费实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dbsr1l3ro21****',
- ],
+ 'schema' => ['description' => '备份计费实例ID。', 'type' => 'string', 'required' => false, 'example' => 'dbsr1l3ro21****'],
],
],
'responses' => [
@@ -2115,56 +1142,28 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Data' => [
- 'description' => '参数说明:'."\n"
- .'- **commodity**:商品'."\n"
- .'- **product**:产品'."\n"
- .'- **moduleCode**:计费项'."\n"
- .'- **instanceName**:沙箱实例ID。'."\n"
- .'- **backupSetId**:备份集ID。'."\n"
- .'- **instanceName**:引擎实例名'."\n"
- .'- **backupPlanId**:备份计费实例ID。',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "backupPlanComment": "",'."\n"
- .' "commodity": "cbs_post",'."\n"
- .' "product": "cbs",'."\n"
- .' "moduleCode": "BackupStorageSize",'."\n"
- .' "instanceName": "d-2zefd6337d766294",'."\n"
- .' "backupPlanId": "dbs:d-2zefd6337d766294",'."\n"
- .' "moduleName": "mongodb"'."\n"
- .' }',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '9C397502-B4F2-4E22-AD97-C81F0049F3F3',
- ],
- 'ErrCode' => [
- 'description' => '错误码。'."\n",
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否请求成功。',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid. ',
- ],
- 'Code' => [
- 'description' => '状态码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
+ 'Data' => ['description' => '参数说明:'."\n"
+ .'- **commodity**:商品'."\n"
+ .'- **product**:产品'."\n"
+ .'- **moduleCode**:计费项'."\n"
+ .'- **instanceName**:沙箱实例ID。'."\n"
+ .'- **backupSetId**:备份集ID。'."\n"
+ .'- **instanceName**:引擎实例名'."\n"
+ .'- **backupPlanId**:备份计费实例ID。', 'type' => 'string', 'example' => '{'."\n"
+ .' "backupPlanComment": "",'."\n"
+ .' "commodity": "cbs_post",'."\n"
+ .' "product": "cbs",'."\n"
+ .' "moduleCode": "BackupStorageSize",'."\n"
+ .' "instanceName": "d-2zefd6337d766294",'."\n"
+ .' "backupPlanId": "dbs:d-2zefd6337d766294",'."\n"
+ .' "moduleName": "mongodb"'."\n"
+ .' }'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '9C397502-B4F2-4E22-AD97-C81F0049F3F3'],
+ 'ErrCode' => ['description' => '错误码。'."\n", 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否请求成功。', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid. '],
+ 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
],
'description' => '',
],
@@ -2172,11 +1171,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '根据dbs实例id获取收费详情。',
@@ -2193,12 +1188,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -2207,14 +1197,8 @@
],
'DescribeDownloadBackupSetStorageInfo' => [
'summary' => '查看下载备份集的存储信息。',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2226,80 +1210,47 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '135676',
- 'abilityTreeNodes' => [
- 'FEATUREcbs04Q4EK',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbs04Q4EK'],
],
'parameters' => [
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'description' => '实例所在地域ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '实例所在地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'Duration',
'in' => 'query',
- 'schema' => [
- 'description' => '下载目标为URL时,设置链接有效时长。'."\n"
- ."\n"
- .'- 默认URL有效时长为2小时(7200秒)。'."\n"
- .'- 有效时长范围可设置5分钟(300秒)~1天(86400秒)。'."\n"
- .'- 请转化为秒(s)后传入该值,例如设置链接有效时长为5分钟时,传入300。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '300',
- ],
+ 'schema' => ['description' => '下载目标为URL时,设置链接有效时长。'."\n"
+ ."\n"
+ .'- 默认URL有效时长为2小时(7200秒)。'."\n"
+ .'- 有效时长范围可设置5分钟(300秒)~1天(86400秒)。'."\n"
+ .'- 请转化为秒(s)后传入该值,例如设置链接有效时长为5分钟时,传入300。', 'type' => 'string', 'required' => true, 'example' => '300'],
],
[
'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'description' => '实例ID。'."\n"
- ."\n"
- .'> 如果您填写了**InstanceName**,也需填写**BackupSetId**。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-uf6qqf569n435****',
- ],
+ 'schema' => ['description' => '实例ID。'."\n"
+ ."\n"
+ .'> 如果您填写了**InstanceName**,也需填写**BackupSetId**。', 'type' => 'string', 'required' => false, 'example' => 'rm-uf6qqf569n435****'],
],
[
'name' => 'TaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '下载任务ID。'."\n"
- ."\n"
- .'- 如果不填写任务**TaskId**,则需要填写**BackupSetId**和**InstanceName**。'."\n"
- .'- 您可在单击目标实例中的**备份恢复**,在**备份下载**页签下查看**任务ID**。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dt-s0ugzak9****',
- ],
+ 'schema' => ['description' => '下载任务ID。'."\n"
+ ."\n"
+ .'- 如果不填写任务**TaskId**,则需要填写**BackupSetId**和**InstanceName**。'."\n"
+ .'- 您可在单击目标实例中的**备份恢复**,在**备份下载**页签下查看**任务ID**。', 'type' => 'string', 'required' => false, 'example' => 'dt-s0ugzak9****'],
],
[
'name' => 'BackupSetId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '30****',
- ],
+ 'schema' => ['description' => '备份集ID。', 'type' => 'string', 'required' => false, 'example' => '30****'],
],
[
'name' => 'ClusterName',
'in' => 'query',
- 'schema' => [
- 'title' => '仅MongoDB依赖,分片集群的集群名',
- 'description' => '仅MongoDB依赖,分片集群的集群名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dds-example',
- ],
+ 'schema' => ['title' => '仅MongoDB依赖,分片集群的集群名', 'description' => '仅MongoDB依赖,分片集群的集群名', 'type' => 'string', 'required' => false, 'example' => 'dds-example'],
],
],
'responses' => [
@@ -2308,60 +1259,23 @@
'description' => '返回值如下。',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '44B8C2F5-919D-5D29-BCD5-DEB03467****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。'."\n",
- 'type' => 'string',
- 'example' => 'DBS.ParamIsInValid',
- ],
- 'Success' => [
- 'description' => '是否执行成功。返回值:'."\n"
- .'- **true**:执行成功'."\n"
- .'- **false**:执行失败',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。'."\n",
- 'type' => 'string',
- 'example' => 'Argument: regionCode Must not be empty',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'DBS.ParamIsInValid',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'Argument: regionCode Must not be empty',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '44B8C2F5-919D-5D29-BCD5-DEB03467****'],
+ 'ErrCode' => ['description' => '错误码。'."\n", 'type' => 'string', 'example' => 'DBS.ParamIsInValid'],
+ 'Success' => ['description' => '是否执行成功。返回值:'."\n"
+ .'- **true**:执行成功'."\n"
+ .'- **false**:执行失败', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。'."\n", 'type' => 'string', 'example' => 'Argument: regionCode Must not be empty'],
+ 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'DBS.ParamIsInValid'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'Argument: regionCode Must not be empty'],
'Data' => [
'description' => '返回数据如下。',
'type' => 'object',
'properties' => [
- 'PublicUrl' => [
- 'description' => '备份集公网下载地址。',
- 'type' => 'string',
- 'example' => 'http://dbs-137383785969****-cn-hangzhou-1iv12nblw****.oss-cn-hangzhou.aliyuncs.com/dt-u7u4bufa****/dbs_target_file_path/test_456',
- ],
- 'PrivateUrl' => [
- 'description' => '备份集私网下载地址。',
- 'type' => 'string',
- 'example' => 'http://dbs-137383785969****-cn-hangzhou-1iv12nblw****.oss-cn-hangzhou-internal.aliyuncs.com/dt-u7u4bufa****/dbs_target_file_path/test_123',
- ],
- 'ExpirationTime' => [
- 'description' => '链接有效期。'."\n"
- ."\n"
- .'> 返回值为时间戳形式。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1661329050',
- ],
+ 'PublicUrl' => ['description' => '备份集公网下载地址。', 'type' => 'string', 'example' => 'http://dbs-137383785969****-cn-hangzhou-1iv12nblw****.oss-cn-hangzhou.aliyuncs.com/dt-u7u4bufa****/dbs_target_file_path/test_456'],
+ 'PrivateUrl' => ['description' => '备份集私网下载地址。', 'type' => 'string', 'example' => 'http://dbs-137383785969****-cn-hangzhou-1iv12nblw****.oss-cn-hangzhou-internal.aliyuncs.com/dt-u7u4bufa****/dbs_target_file_path/test_123'],
+ 'ExpirationTime' => ['description' => '链接有效期。'."\n"
+ ."\n"
+ .'> 返回值为时间戳形式。', 'type' => 'integer', 'format' => 'int64', 'example' => '1661329050'],
],
],
],
@@ -2370,11 +1284,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"44B8C2F5-919D-5D29-BCD5-DEB03467****\\",\\n \\"ErrCode\\": \\"DBS.ParamIsInValid\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrMessage\\": \\"Argument: regionCode Must not be empty\\",\\n \\"Code\\": \\"DBS.ParamIsInValid\\",\\n \\"Message\\": \\"Argument: regionCode Must not be empty\\",\\n \\"Data\\": {\\n \\"PublicUrl\\": \\"http://dbs-137383785969****-cn-hangzhou-1iv12nblw****.oss-cn-hangzhou.aliyuncs.com/dt-u7u4bufa****/dbs_target_file_path/test_456\\",\\n \\"PrivateUrl\\": \\"http://dbs-137383785969****-cn-hangzhou-1iv12nblw****.oss-cn-hangzhou-internal.aliyuncs.com/dt-u7u4bufa****/dbs_target_file_path/test_123\\",\\n \\"ExpirationTime\\": 1661329050\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDownloadBackupSetStorageInfoResponse>\\n <RequestId>44B8C2F5-919D-5D29-BCD5-DEB03467****</RequestId>\\n <Data>\\n <PrivateUrl>http://dbs-137383785969****-cn-hangzhou-1iv12nblw****.oss-cn-hangzhou-internal.aliyuncs.com/dt-u7u4bufa****/dbs_target_file_path/test_123</PrivateUrl>\\n <PublicUrl>http://dbs-137383785969****-cn-hangzhou-1iv12nblw****.oss-cn-hangzhou.aliyuncs.com/dt-u7u4bufa****/dbs_target_file_path/test_456</PublicUrl>\\n <ExpirationTime>1661329050</ExpirationTime>\\n </Data>\\n <Code>Success</Code>\\n <Success>true</Success>\\n <ErrCode>Success</ErrCode>\\n</DescribeDownloadBackupSetStorageInfoResponse>","errorExample":""}]',
@@ -2393,14 +1303,8 @@
.'- [PolarDB MySQL版下载备份](~~2627635~~)'."\n"
.'- [MongoDB下载备份](~~55011~~)',
'changeSet' => [
- [
- 'createdAt' => '2022-08-25T07:43:22.000Z',
- 'description' => '请求参数发生变更',
- ],
- [
- 'createdAt' => '2022-08-03T09:23:52.000Z',
- 'description' => 'OpenAPI 下线',
- ],
+ ['createdAt' => '2022-08-25T07:43:22.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2022-08-03T09:23:52.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [],
@@ -2413,12 +1317,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -2426,14 +1325,8 @@
],
'DescribeDownloadSupport' => [
'summary' => '查询当前实例是否支持高级下载。',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2445,41 +1338,23 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbs04Q4EK',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbs04Q4EK'],
],
'parameters' => [
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'description' => '实例所在地域ID,您可以调用[DescribeDBInstanceAttribute](~~26231~~)查询。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '实例所在地域ID,您可以调用[DescribeDBInstanceAttribute](~~26231~~)查询。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'description' => '实例ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'rm-bp1a48p922r4b****',
- ],
+ 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'rm-bp1a48p922r4b****'],
],
[
'name' => 'ClusterName',
'in' => 'query',
- 'schema' => [
- 'title' => '仅MongoDB依赖,分片集群的集群名',
- 'description' => '仅MongoDB依赖,分片集群的集群名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dds-example',
- ],
+ 'schema' => ['title' => '仅MongoDB依赖,分片集群的集群名', 'description' => '仅MongoDB依赖,分片集群的集群名', 'type' => 'string', 'required' => false, 'example' => 'dds-example'],
],
],
'responses' => [
@@ -2488,57 +1363,25 @@
'description' => '返回值如下。',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'description' => '是否支持高级下载功能,返回值如下:'."\n"
- ."\n"
- .'- **true**:支持'."\n"
- .'- **false**:不支持'."\n",
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'F1A186F7-7B34-5C11-A903-EE23876B****',
- ],
- 'ErrCode' => [
- 'description' => '调用出错时返回的错误码。',
- 'type' => 'string',
- 'example' => 'DBS.ParamIsInValid',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '调用错误时返回的错误信息。'."\n",
- 'type' => 'string',
- 'example' => 'Argument: regionCode Must not be empty',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'DBS.ParamIsInValid',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'Argument: regionCode Must not be empty',
- ],
+ 'Data' => ['description' => '是否支持高级下载功能,返回值如下:'."\n"
+ ."\n"
+ .'- **true**:支持'."\n"
+ .'- **false**:不支持'."\n", 'type' => 'string', 'example' => 'true'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'F1A186F7-7B34-5C11-A903-EE23876B****'],
+ 'ErrCode' => ['description' => '调用出错时返回的错误码。', 'type' => 'string', 'example' => 'DBS.ParamIsInValid'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '调用错误时返回的错误信息。'."\n", 'type' => 'string', 'example' => 'Argument: regionCode Must not be empty'],
+ 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'DBS.ParamIsInValid'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'Argument: regionCode Must not be empty'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'staticInfo' => [],
@@ -2560,23 +1403,12 @@
.'- [PolarDB MySQL版下载备份](~~2627635~~)'."\n"
.'- [MongoDB下载备份](~~55011~~)',
'changeSet' => [
- [
- 'createdAt' => '2022-08-25T07:43:22.000Z',
- 'description' => '请求参数发生变更',
- ],
- [
- 'createdAt' => '2022-08-03T09:23:52.000Z',
- 'description' => 'OpenAPI 下线',
- ],
+ ['createdAt' => '2022-08-25T07:43:22.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2022-08-03T09:23:52.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '400',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'DescribeDownloadSupport',
- ],
+ ['threshold' => '400', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeDownloadSupport'],
],
],
'ramActions' => [
@@ -2587,12 +1419,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
@@ -2600,14 +1427,8 @@
],
'DescribeDownloadTask' => [
'summary' => '查询RDS MySQL、RDS PostgreSQL、PolarDB MySQL版实例的高级下载任务列表。',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2618,156 +1439,88 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbs04Q4EK',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbs04Q4EK'],
],
'parameters' => [
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'description' => '实例所在地域ID,您可以调用[DescribeDBInstanceAttribute](~~26231~~)查询。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '实例所在地域ID,您可以调用[DescribeDBInstanceAttribute](~~26231~~)查询。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'description' => '实例ID。'."\n"
- ."\n"
- .'> 该参数为必填项。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-bp1imnmcjxdz7****',
- ],
+ 'schema' => ['description' => '实例ID。'."\n"
+ ."\n"
+ .'> 该参数为必填项。', 'type' => 'string', 'required' => false, 'example' => 'rm-bp1imnmcjxdz7****'],
],
[
'name' => 'DatasourceId',
'in' => 'query',
- 'schema' => [
- 'description' => '数据源DBS标记ID,传入格式为:*ds-${实例ID}_${regionId}*。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds-rm-2ze8g2am97624****_cn-hangzhou',
- ],
+ 'schema' => ['description' => '数据源DBS标记ID,传入格式为:*ds-${实例ID}_${regionId}*。', 'type' => 'string', 'required' => false, 'example' => 'ds-rm-2ze8g2am97624****_cn-hangzhou'],
],
[
'name' => 'BackupSetId',
'in' => 'query',
- 'schema' => [
- 'description' => '创建下载任务时生成的备份集ID,您可调用[DescribeBackups](~~26273~~)接口查询。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '216****',
- ],
+ 'schema' => ['description' => '创建下载任务时生成的备份集ID,您可调用[DescribeBackups](~~26273~~)接口查询。', 'type' => 'string', 'required' => false, 'example' => '216****'],
],
[
'name' => 'State',
'in' => 'query',
- 'schema' => [
- 'description' => '下载任务的状态,取值如下:'."\n"
- ."\n"
- .'- **initializing**:初始化。'."\n"
- .'- **queueing**:排队中。'."\n"
- .'- **running**:下载中。'."\n"
- .'- **failed**:下载失败。'."\n"
- .'- **finished**:下载成功。'."\n"
- .'- **expired**:下载过期。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'queueing',
- ],
+ 'schema' => ['description' => '下载任务的状态,取值如下:'."\n"
+ ."\n"
+ .'- **initializing**:初始化。'."\n"
+ .'- **queueing**:排队中。'."\n"
+ .'- **running**:下载中。'."\n"
+ .'- **failed**:下载失败。'."\n"
+ .'- **finished**:下载成功。'."\n"
+ .'- **expired**:下载过期。', 'type' => 'string', 'required' => false, 'example' => 'queueing'],
],
[
'name' => 'TaskType',
'in' => 'query',
- 'schema' => [
- 'description' => '下载任务类型,取值如下:'."\n"
- ."\n"
- .'- **full**:全量备份集下载。'."\n"
- .'- **pit**r:任意时间点下载。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'full',
- ],
+ 'schema' => ['description' => '下载任务类型,取值如下:'."\n"
+ ."\n"
+ .'- **full**:全量备份集下载。'."\n"
+ .'- **pit**r:任意时间点下载。', 'type' => 'string', 'required' => false, 'example' => 'full'],
],
[
'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'description' => '按创建时间区间的起始点查询,Long类型时间戳形式,单位为毫秒(ms)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1661941554000',
- ],
+ 'schema' => ['description' => '按创建时间区间的起始点查询,Long类型时间戳形式,单位为毫秒(ms)。', 'type' => 'string', 'required' => false, 'example' => '1661941554000'],
],
[
'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'description' => '按创建时间区间的终止点查询,Long类型时间戳形式,单位为毫秒(ms)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1661941556000',
- ],
+ 'schema' => ['description' => '按创建时间区间的终止点查询,Long类型时间戳形式,单位为毫秒(ms)。', 'type' => 'string', 'required' => false, 'example' => '1661941556000'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的记录数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '50',
- ],
+ 'schema' => ['description' => '每页的记录数。', 'type' => 'string', 'required' => false, 'example' => '50'],
],
[
'name' => 'CurrentPage',
'in' => 'query',
- 'schema' => [
- 'description' => '当前页码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '当前页码。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
'name' => 'OrderDirect',
'in' => 'query',
- 'schema' => [
- 'description' => '排序方向,取值如下:'."\n"
- ."\n"
- .'- **asc**:正序。'."\n"
- .'- **desc**:倒序,为默认值。'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- ],
+ 'schema' => ['description' => '排序方向,取值如下:'."\n"
+ ."\n"
+ .'- **asc**:正序。'."\n"
+ .'- **desc**:倒序,为默认值。'."\n", 'type' => 'string', 'required' => false, 'example' => 'desc'],
],
[
'name' => 'OrderColumn',
'in' => 'query',
- 'schema' => [
- 'description' => '默认按创建时间排序,取值:**gmt_create**。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'gmt_create',
- ],
+ 'schema' => ['description' => '默认按创建时间排序,取值:**gmt_create**。', 'type' => 'string', 'required' => false, 'example' => 'gmt_create'],
],
[
'name' => 'ClusterName',
'in' => 'query',
- 'schema' => [
- 'title' => '仅MongoDB依赖,分片集群的集群名',
- 'description' => '仅MongoDB依赖,分片集群的集群名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dds-example',
- ],
+ 'schema' => ['title' => '仅MongoDB依赖,分片集群的集群名', 'description' => '仅MongoDB依赖,分片集群的集群名', 'type' => 'string', 'required' => false, 'example' => 'dds-example'],
],
],
'responses' => [
@@ -2776,71 +1529,23 @@
'description' => '返回参数如下。',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '5D285EB9-A443-592D-9F3D-A888FAC3****',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'DBS.InternalError',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功。'."\n"
- .'- **false**:请求失败。',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'instanceName can not be empty',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'DBS.InternalError',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'instanceName can not be empty',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '5D285EB9-A443-592D-9F3D-A888FAC3****'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'DBS.InternalError'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功。'."\n"
+ .'- **false**:请求失败。', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'instanceName can not be empty'],
+ 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'DBS.InternalError'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'instanceName can not be empty'],
'Data' => [
'description' => '任务详情。',
'type' => 'object',
'properties' => [
- 'PageNumber' => [
- 'description' => '页码,大于0且不超过Integer的最大值,默认值为1。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'TotalPages' => [
- 'description' => '总页数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2',
- ],
- 'Extra' => [
- 'description' => '备份数据上云任务的附加信息。',
- 'type' => 'string',
- 'example' => 'dbtest',
- ],
- 'TotalElements' => [
- 'description' => '总备份任务数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '每页的记录数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- ],
+ 'PageNumber' => ['description' => '页码,大于0且不超过Integer的最大值,默认值为1。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'Extra' => ['description' => '备份数据上云任务的附加信息。', 'type' => 'string', 'example' => 'dbtest'],
+ 'TotalElements' => ['description' => '总备份任务数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'PageSize' => ['description' => '每页的记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'Content' => [
'type' => 'object',
'itemNode' => true,
@@ -2852,85 +1557,33 @@
'description' => '任务详情。',
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'description' => '下载任务ID。',
- 'type' => 'string',
- 'example' => 'dt-qxntlvgu****',
- ],
- 'RegionCode' => [
- 'description' => '地域ID。',
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- 'Format' => [
- 'description' => '下载转换的目标格式,返回值如下:'."\n"
- ."\n"
- .'- **csv**'."\n"
- .'- **SQL**'."\n"
- .'- **Parquet**',
- 'type' => 'string',
- 'example' => 'csv',
- ],
- 'DbList' => [
- 'description' => '数据库列表。',
- 'type' => 'string',
- 'example' => '[dbtest]',
- ],
- 'BakSetId' => [
- 'description' => '全量备份集ID。',
- 'type' => 'string',
- 'example' => '148261****',
- ],
- 'DownloadStatus' => [
- 'description' => '下载任务的状态,返回值如下:'."\n"
- ."\n"
- .'- **initializing**:初始化。'."\n"
- .'- **queueing**:排队中。'."\n"
- .'- **running**:下载中。'."\n"
- .'- **failed**:下载失败。'."\n"
- .'- **finished**:下载成功。'."\n"
- .'- **expired**:下载过期。',
- 'type' => 'string',
- 'example' => 'queueing',
- ],
- 'ExportDataSize' => [
- 'description' => '导出数据量,单位为字节(Byte)。',
- 'type' => 'string',
- 'example' => '0',
- ],
- 'ImportDataSize' => [
- 'description' => '处理数据量,单位为字节(Byte)。',
- 'type' => 'string',
- 'example' => '0',
- ],
- 'BackupSetTime' => [
- 'description' => '任意时间点下载任务时所对应的时间点,Long类型时间戳,单位为毫秒(ms)。',
- 'type' => 'string',
- 'example' => '1663162216000',
- ],
- 'TargetType' => [
- 'description' => '下载目标类型,返回值如下:'."\n"
- ."\n"
- .'- **OSS**'."\n"
- .'- **URL**',
- 'type' => 'string',
- 'example' => 'URL',
- ],
- 'TargetPath' => [
- 'description' => '当**TargetType=OSS**时,返回数据下载目标路径。',
- 'type' => 'string',
- 'example' => 'test_db/path',
- ],
- 'Progress' => [
- 'description' => '已导出表数量/需导出表总数量。',
- 'type' => 'string',
- 'example' => '0/0',
- ],
- 'GmtCreate' => [
- 'description' => '任务创建时间,返回格式为时间戳形式。',
- 'type' => 'string',
- 'example' => '1663321957000',
- ],
+ 'TaskId' => ['description' => '下载任务ID。', 'type' => 'string', 'example' => 'dt-qxntlvgu****'],
+ 'RegionCode' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'Format' => ['description' => '下载转换的目标格式,返回值如下:'."\n"
+ ."\n"
+ .'- **csv**'."\n"
+ .'- **SQL**'."\n"
+ .'- **Parquet**', 'type' => 'string', 'example' => 'csv'],
+ 'DbList' => ['description' => '数据库列表。', 'type' => 'string', 'example' => '[dbtest]'],
+ 'BakSetId' => ['description' => '全量备份集ID。', 'type' => 'string', 'example' => '148261****'],
+ 'DownloadStatus' => ['description' => '下载任务的状态,返回值如下:'."\n"
+ ."\n"
+ .'- **initializing**:初始化。'."\n"
+ .'- **queueing**:排队中。'."\n"
+ .'- **running**:下载中。'."\n"
+ .'- **failed**:下载失败。'."\n"
+ .'- **finished**:下载成功。'."\n"
+ .'- **expired**:下载过期。', 'type' => 'string', 'example' => 'queueing'],
+ 'ExportDataSize' => ['description' => '导出数据量,单位为字节(Byte)。', 'type' => 'string', 'example' => '0'],
+ 'ImportDataSize' => ['description' => '处理数据量,单位为字节(Byte)。', 'type' => 'string', 'example' => '0'],
+ 'BackupSetTime' => ['description' => '任意时间点下载任务时所对应的时间点,Long类型时间戳,单位为毫秒(ms)。', 'type' => 'string', 'example' => '1663162216000'],
+ 'TargetType' => ['description' => '下载目标类型,返回值如下:'."\n"
+ ."\n"
+ .'- **OSS**'."\n"
+ .'- **URL**', 'type' => 'string', 'example' => 'URL'],
+ 'TargetPath' => ['description' => '当**TargetType=OSS**时,返回数据下载目标路径。', 'type' => 'string', 'example' => 'test_db/path'],
+ 'Progress' => ['description' => '已导出表数量/需导出表总数量。', 'type' => 'string', 'example' => '0/0'],
+ 'GmtCreate' => ['description' => '任务创建时间,返回格式为时间戳形式。', 'type' => 'string', 'example' => '1663321957000'],
],
],
],
@@ -2945,11 +1598,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"5D285EB9-A443-592D-9F3D-A888FAC3****\\",\\n \\"ErrCode\\": \\"DBS.InternalError\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrMessage\\": \\"instanceName can not be empty\\",\\n \\"Code\\": \\"DBS.InternalError\\",\\n \\"Message\\": \\"instanceName can not be empty\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"TotalPages\\": 2,\\n \\"Extra\\": \\"dbtest\\",\\n \\"TotalElements\\": 1,\\n \\"PageSize\\": 10,\\n \\"Content\\": {\\n \\"List\\": [\\n {\\n \\"TaskId\\": \\"dt-qxntlvgu****\\",\\n \\"RegionCode\\": \\"cn-hangzhou\\",\\n \\"Format\\": \\"csv\\",\\n \\"DbList\\": \\"[dbtest]\\",\\n \\"BakSetId\\": \\"148261****\\",\\n \\"DownloadStatus\\": \\"queueing\\",\\n \\"ExportDataSize\\": \\"0\\",\\n \\"ImportDataSize\\": \\"0\\",\\n \\"BackupSetTime\\": \\"1663162216000\\",\\n \\"TargetType\\": \\"URL\\",\\n \\"TargetPath\\": \\"test_db/path\\",\\n \\"Progress\\": \\"0/0\\",\\n \\"GmtCreate\\": \\"1663321957000\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeDownloadTaskResponse>\\n <RequestId>5D285EB9-A443-592D-9F3D-A888FAC3****</RequestId>\\n <Data>\\n <Number>0</Number>\\n <Size>20</Size>\\n <Content>\\n <List>\\n <BakSetId>148261****</BakSetId>\\n <Progress>0/0</Progress>\\n <GmtCreate>1663321957000</GmtCreate>\\n <TaskId>dt-qxntlvgu****</TaskId>\\n <Format>csv</Format>\\n <BackupSetTime>1663162216000</BackupSetTime>\\n <RegionCode>cn-hangzhou</RegionCode>\\n <DownloadStatus>queueing</DownloadStatus>\\n <ExportDataSize>0</ExportDataSize>\\n <TargetType>URL</TargetType>\\n <ImportDataSize>0</ImportDataSize>\\n </List>\\n <List>\\n <BakSetId>148145****</BakSetId>\\n <Progress>0/0</Progress>\\n <GmtCreate>1663321935000</GmtCreate>\\n <TaskId>dt-uvbegmuc****</TaskId>\\n <Format>csv</Format>\\n <BackupSetTime>1663055892000</BackupSetTime>\\n <RegionCode>cn-hangzhou</RegionCode>\\n <DownloadStatus>running</DownloadStatus>\\n <ExportDataSize>0</ExportDataSize>\\n <TargetType>URL</TargetType>\\n <ImportDataSize>0</ImportDataSize>\\n </List>\\n </Content>\\n </Data>\\n <Code>Success</Code>\\n <Success>true</Success>\\n <ErrCode>Success</ErrCode>\\n</DescribeDownloadTaskResponse>","errorExample":""}]',
@@ -2968,10 +1617,7 @@
.'- [PolarDB MySQL版下载备份](~~2627635~~)'."\n"
.'- [MongoDB下载备份](~~55011~~)',
'changeSet' => [
- [
- 'createdAt' => '2022-11-16T11:43:03.000Z',
- 'description' => '响应参数发生变更',
- ],
+ ['createdAt' => '2022-11-16T11:43:03.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
@@ -2984,12 +1630,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'DBInstance',
- 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'DBInstance', 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}'],
],
],
],
@@ -2997,67 +1638,39 @@
],
'DescribeSandboxBackupSets' => [
'summary' => '查询沙箱备份集。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID。'."\n"
- .'> 若您的实例为RDS MySQL,请通过[自动添加数据源](~~193091~~)功能,将RDS自动添加至DBS中,即可获取备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1hxxxx8xxxxxa',
- ],
+ 'schema' => ['description' => '备份计划ID。'."\n"
+ .'> 若您的实例为RDS MySQL,请通过[自动添加数据源](~~193091~~)功能,将RDS自动添加至DBS中,即可获取备份计划ID。', 'type' => 'string', 'required' => true, 'example' => '1hxxxx8xxxxxa'],
],
[
'name' => 'BackupSetId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集ID。若您传入该参数,仅返回该备份集的快照信息;若不传入该参数,将返回该备份计划的所有快照信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1xxxx2xxxxx1e',
- ],
+ 'schema' => ['description' => '备份集ID。若您传入该参数,仅返回该备份集的快照信息;若不传入该参数,将返回该备份计划的所有快照信息。', 'type' => 'string', 'required' => false, 'example' => '1xxxx2xxxxx1e'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的记录数。取值如下:'."\n"
- .'- 30(默认)'."\n"
- .'- 50'."\n"
- .'- 100',
- 'type' => 'string',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => '每页的记录数。取值如下:'."\n"
+ .'- 30(默认)'."\n"
+ .'- 50'."\n"
+ .'- 100', 'type' => 'string', 'required' => false, 'example' => '30'],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,大于0且不超过Integer的最大值,默认值为1。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码,大于0且不超过Integer的最大值,默认值为1。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
],
'responses' => [
@@ -3065,45 +1678,17 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Data' => [
- 'description' => '参数说明:'."\n"
- .'- **backupSetTime**:快照时间点,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
- .'- **backupSetId**:备份集ID。'."\n"
- .'- **backupSetType**:快照类型,**Full**表示全量备份集快照、**Inc**表示增量备份快照。'."\n"
- .'- **backupPlanId**:备份计划ID。',
- 'type' => 'string',
- 'example' => ' "Data": { "number": 2, "size": 2, "content": [ { "backupSetTime": "2021-08-28T23:12:31Z", "backupSetId": "Inc_1hxxxx8xxxxxa_20210801064200_mysql-bin.000134", "backupSetType": "Inc", "backupPlanId": "1hxxxx8xxxxxa" }, { "backupSetTime": "2021-08-28T22:42:28Z", "backupSetId": "1hxxxx8xxxxxa_20210829064228", "backupSetType": "FULL", "backupPlanId": "1hxxxx8xxxxxa" } ], "totalElements": 2 },',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否请求成功。',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
+ 'Data' => ['description' => '参数说明:'."\n"
+ .'- **backupSetTime**:快照时间点,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
+ .'- **backupSetId**:备份集ID。'."\n"
+ .'- **backupSetType**:快照类型,**Full**表示全量备份集快照、**Inc**表示增量备份快照。'."\n"
+ .'- **backupPlanId**:备份计划ID。', 'type' => 'string', 'example' => ' "Data": { "number": 2, "size": 2, "content": [ { "backupSetTime": "2021-08-28T23:12:31Z", "backupSetId": "Inc_1hxxxx8xxxxxa_20210801064200_mysql-bin.000134", "backupSetType": "Inc", "backupPlanId": "1hxxxx8xxxxxa" }, { "backupSetTime": "2021-08-28T22:42:28Z", "backupSetId": "1hxxxx8xxxxxa_20210829064228", "backupSetType": "FULL", "backupPlanId": "1hxxxx8xxxxxa" } ], "totalElements": 2 },'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否请求成功。', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
],
'description' => '',
],
@@ -3111,11 +1696,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查询快照列表',
@@ -3136,12 +1717,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -3150,67 +1726,39 @@
],
'DescribeSandboxInstances' => [
'summary' => '查看当前账号下的沙箱实例列表。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,您可以通过[DescribeBackupPlanList](~~437215~~)接口获取该参数。'."\n"
- .'> 若您的实例为RDS MySQL,请通过[自动添加数据源](~~193091~~)功能,将RDS自动添加至DBS中,即可获取备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1hxxxx8xxxxxa',
- ],
+ 'schema' => ['description' => '备份计划ID,您可以通过[DescribeBackupPlanList](~~437215~~)接口获取该参数。'."\n"
+ .'> 若您的实例为RDS MySQL,请通过[自动添加数据源](~~193091~~)功能,将RDS自动添加至DBS中,即可获取备份计划ID。', 'type' => 'string', 'required' => true, 'example' => '1hxxxx8xxxxxa'],
],
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => '沙箱实例ID,您可以通过[CreateSandboxInstance](~~437252~~)接口获取该参数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1jxxxxnxxx1xc',
- ],
+ 'schema' => ['description' => '沙箱实例ID,您可以通过[CreateSandboxInstance](~~437252~~)接口获取该参数。', 'type' => 'string', 'required' => false, 'example' => '1jxxxxnxxx1xc'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的记录数。取值:'."\n"
- .'- 30(默认)'."\n"
- .'- 50'."\n"
- .'- 100',
- 'type' => 'string',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => '每页的记录数。取值:'."\n"
+ .'- 30(默认)'."\n"
+ .'- 50'."\n"
+ .'- 100', 'type' => 'string', 'required' => false, 'example' => '30'],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,大于0且不超过Integer的最大值,默认值为1。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码,大于0且不超过Integer的最大值,默认值为1。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
],
'responses' => [
@@ -3218,52 +1766,24 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Data' => [
- 'description' => '参数说明:'."\n"
- .'- **connectionString**:沙箱实例的连接字符串,格式为IP:Port。当SandboxType为**Sandbox**时,该参数表示沙箱实例的连接地址;当SandboxType为**NFS**时,该参数表示NFS挂载地址。'."\n"
- .'- **restoreSeconds**:创建沙箱实例所需的时长,单位为秒。'."\n"
- .'- **restoreTime**:恢复的时间点,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
- .'- **instanceId**:沙箱实例ID。'."\n"
- .'- **backupSetId**:备份集ID。'."\n"
- .'- **createTime**:沙箱实例的创建时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
- .'- **backupPlanId**:备份计划ID。'."\n"
- .'- **vpcId**:专有网络VPC(Virtual Private Cloud) ID。'."\n"
- .'- **vpcSwitchId**:VPC交换机ID。'."\n"
- .'- **sandboxSpecification**:沙箱实例规格。'."\n"
- .'- **status**:沙箱实例状态,运行中(**running**)、预检查通过(**check_pass**)、异常(**stop**)。'."\n",
- 'type' => 'string',
- 'example' => ' { "number": 1, "size": 1, "content": [ { "connectionString": "172.26.178.229:3306", "restoreSeconds": 15, "restoreTime": "2021-08-11T07:26:24Z", "instanceId": "1jxxxxx9xxxms", "backupSetId": "1hxxxx8xxxxxa_20210811152624", "createTime": "2021-08-12T07:40:29Z", "backupPlanId": "1hxxxx8xxxxxa", "vpcId": "vpc-bp1dxxxxxjy0xxxxx1xxp", "sandboxSpecification": "MYSQL_1C_1M_SD", "status": "running", "vpcSwitchId": "vsw-bp1bxxxxxumxxxxxwxx2w" } ], "totalElements": 1 }',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否请求成功。',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
+ 'Data' => ['description' => '参数说明:'."\n"
+ .'- **connectionString**:沙箱实例的连接字符串,格式为IP:Port。当SandboxType为**Sandbox**时,该参数表示沙箱实例的连接地址;当SandboxType为**NFS**时,该参数表示NFS挂载地址。'."\n"
+ .'- **restoreSeconds**:创建沙箱实例所需的时长,单位为秒。'."\n"
+ .'- **restoreTime**:恢复的时间点,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
+ .'- **instanceId**:沙箱实例ID。'."\n"
+ .'- **backupSetId**:备份集ID。'."\n"
+ .'- **createTime**:沙箱实例的创建时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
+ .'- **backupPlanId**:备份计划ID。'."\n"
+ .'- **vpcId**:专有网络VPC(Virtual Private Cloud) ID。'."\n"
+ .'- **vpcSwitchId**:VPC交换机ID。'."\n"
+ .'- **sandboxSpecification**:沙箱实例规格。'."\n"
+ .'- **status**:沙箱实例状态,运行中(**running**)、预检查通过(**check_pass**)、异常(**stop**)。'."\n", 'type' => 'string', 'example' => ' { "number": 1, "size": 1, "content": [ { "connectionString": "172.26.178.229:3306", "restoreSeconds": 15, "restoreTime": "2021-08-11T07:26:24Z", "instanceId": "1jxxxxx9xxxms", "backupSetId": "1hxxxx8xxxxxa_20210811152624", "createTime": "2021-08-12T07:40:29Z", "backupPlanId": "1hxxxx8xxxxxa", "vpcId": "vpc-bp1dxxxxxjy0xxxxx1xxp", "sandboxSpecification": "MYSQL_1C_1M_SD", "status": "running", "vpcSwitchId": "vsw-bp1bxxxxxumxxxxxwxx2w" } ], "totalElements": 1 }'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否请求成功。', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
],
'description' => '',
],
@@ -3271,11 +1791,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看沙箱实例列表',
@@ -3297,12 +1813,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -3311,35 +1822,22 @@
],
'DescribeSandboxRecoveryTime' => [
'summary' => '查看沙箱实例的可恢复时间范围。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'BackupPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '备份计划ID,您可以通过[DescribeBackupPlanList](~~437215~~)接口获取该参数。获取到的备份计划ID传入时,必须去掉前缀dbs,否则将调用失败。'."\n"
- ."\n"
- .'> 若您的实例为RDS MySQL,请通过[自动添加数据源](~~193091~~)功能,将RDS自动添加至DBS中,即可获取备份计划ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1jyjal15l****',
- ],
+ 'schema' => ['description' => '备份计划ID,您可以通过[DescribeBackupPlanList](~~437215~~)接口获取该参数。获取到的备份计划ID传入时,必须去掉前缀dbs,否则将调用失败。'."\n"
+ ."\n"
+ .'> 若您的实例为RDS MySQL,请通过[自动添加数据源](~~193091~~)功能,将RDS自动添加至DBS中,即可获取备份计划ID。', 'type' => 'string', 'required' => true, 'example' => '1jyjal15l****'],
],
],
'responses' => [
@@ -3347,55 +1845,19 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Success' => [
- 'description' => '是否请求成功。',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Param.NotFound',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F1888AC-1138-4995-B9FE-D2734F61C058'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Success' => ['description' => '是否请求成功。', 'type' => 'string', 'example' => 'true'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.NotFound'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
'Data' => [
'description' => '返回参数。',
'type' => 'object',
'properties' => [
- 'RecoveryEndTime' => [
- 'description' => '可恢复的截止时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。',
- 'type' => 'string',
- 'example' => '2021-08-02T12:01:01Z',
- ],
- 'BackupPlanId' => [
- 'description' => '沙箱实例的备份计划。',
- 'type' => 'string',
- 'example' => '1hxxxx8xxxxxa',
- ],
- 'RecoveryBeginTime' => [
- 'description' => '可恢复的开始时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。',
- 'type' => 'string',
- 'example' => '2021-08-01T12:01:01Z',
- ],
+ 'RecoveryEndTime' => ['description' => '可恢复的截止时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。', 'type' => 'string', 'example' => '2021-08-02T12:01:01Z'],
+ 'BackupPlanId' => ['description' => '沙箱实例的备份计划。', 'type' => 'string', 'example' => '1hxxxx8xxxxxa'],
+ 'RecoveryBeginTime' => ['description' => '可恢复的开始时间,格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。', 'type' => 'string', 'example' => '2021-08-01T12:01:01Z'],
],
],
],
@@ -3405,11 +1867,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '查看可恢复时间范围',
@@ -3430,12 +1888,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -3443,13 +1896,9 @@
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4F1888AC-1138-4995-B9FE-D2734F61C058\\",\\n \\"ErrCode\\": \\"Param.NotFound\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid.\\",\\n \\"Code\\": \\"Param.NotFound\\",\\n \\"Message\\": \\"The specified parameter %s value is not valid.\\",\\n \\"Data\\": {\\n \\"RecoveryEndTime\\": \\"2021-08-02T12:01:01Z\\",\\n \\"BackupPlanId\\": \\"1hxxxx8xxxxxa\\",\\n \\"RecoveryBeginTime\\": \\"2021-08-01T12:01:01Z\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>2FC5BFF1-C6AB-594A-9C54-34F9E3A67380</RequestId>\\n<Data>\\n <RecoveryEndTime>2021-08-30T10:49:18Z</RecoveryEndTime>\\n <RecoveryBeginTime>2021-08-23T13:25:12Z</RecoveryBeginTime>\\n <BackupPlanId>1hxxxx8xxxxxa</BackupPlanId>\\n</Data>\\n<Code>Success</Code>\\n<Success>true</Success>\\n<ErrCode>Success</ErrCode>","errorExample":""}]',
],
'ModifyBackupPolicy' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'summary' => '修改PolarDB实例备份策略。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -3462,104 +1911,94 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '221284',
- 'abilityTreeNodes' => [
- 'FEATUREcbsYWT1H7',
- 'FEATUREcbsPNQ3FN',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbsYWT1H7', 'FEATUREcbsPNQ3FN'],
],
'parameters' => [
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'description' => '备份集所在地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
- ],
+ 'schema' => ['description' => '备份集所在地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'],
],
[
'name' => 'PreferredBackupWindowBegin',
'in' => 'query',
- 'schema' => [
- 'description' => '基础备份窗口开始时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '17:00Z',
- ],
+ 'schema' => ['description' => '基础备份窗口开始时间。', 'type' => 'string', 'required' => false, 'example' => '17:00Z'],
],
[
'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'PolarDB实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'pc-2ze3nrr64c5****',
- ],
+ 'schema' => ['description' => 'PolarDB实例ID。', 'type' => 'string', 'required' => false, 'example' => 'pc-2ze3nrr64c5****'],
],
[
'name' => 'Category',
'in' => 'query',
- 'schema' => [
- 'description' => '备份类型'."\n"
- .'- **Flash**:秒级备份'."\n"
- .'- **Standard**:普通备份',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Flash',
- ],
+ 'schema' => ['description' => '备份类型'."\n"
+ .'- **Flash**:秒级备份'."\n"
+ .'- **Standard**:普通备份', 'type' => 'string', 'required' => false, 'example' => 'Flash'],
],
[
'name' => 'AdvanceLogPolicies',
'in' => 'query',
'style' => 'json',
'schema' => [
+ 'description' => '备份策略目标地域。',
'type' => 'array',
'items' => [
'title' => '',
+ 'description' => '备份策略源地域。',
'type' => 'object',
'properties' => [
- 'LogRetentionType' => [
- 'type' => 'string',
- ],
- 'DestType' => [
- 'type' => 'string',
- ],
- 'FilterType' => [
- 'type' => 'string',
- ],
- 'ActionType' => [
- 'type' => 'string',
- ],
- 'SrcRegion' => [
- 'type' => 'string',
- ],
- 'EnableLogBackup' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'SrcType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'LogRetentionValue' => [
- 'type' => 'string',
- ],
- 'PolicyId' => [
- 'type' => 'string',
- ],
- 'FilterKey' => [
- 'type' => 'string',
- ],
- 'DestRegion' => [
- 'type' => 'string',
- ],
- 'FilterValue' => [
- 'type' => 'string',
- ],
+ 'LogRetentionType' => ['title' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'description' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'type' => 'string', 'required' => false, 'example' => 'Never'],
+ 'DestType' => ['title' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'required' => false, 'example' => 'level1'],
+ 'FilterType' => ['title' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'description' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'type' => 'string', 'required' => false, 'example' => 'crontab'],
+ 'ActionType' => ['title' => '操作类型,CREATE,UPDATE,DELETE', 'description' => '操作类型,CREATE,UPDATE,DELETE', 'type' => 'string', 'required' => false, 'example' => 'CREATE'],
+ 'SrcRegion' => ['title' => '备份策略源region', 'description' => '备份策略源region', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
+ 'EnableLogBackup' => ['description' => '是否开启日志备份,返回值如下:'."\n"
+ ."\n"
+ .'- **1**:开启'."\n"
+ .'- **0**:未开启', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
+ 'SrcType' => ['title' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'required' => false, 'example' => 'db'],
+ 'LogRetentionValue' => ['title' => '过期天数', 'description' => '过期天数', 'type' => 'string', 'required' => false, 'example' => '30'],
+ 'PolicyId' => ['title' => '高级策略ID', 'description' => '高级策略ID', 'type' => 'string', 'required' => false, 'example' => '31289676-bb8d-4dee-b83e-******'],
+ 'FilterKey' => ['title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'description' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'type' => 'string', 'required' => false, 'example' => 'dayOfMonth'],
+ 'DestRegion' => ['title' => '备份策略目标region', 'description' => '备份策略目标region', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
+ 'FilterValue' => ['title' => '具体Filter的值', 'description' => '具体Filter的值', 'type' => 'string', 'required' => false, 'example' => '1'],
],
+ 'required' => false,
],
+ 'required' => false,
],
],
[
@@ -3574,135 +2013,68 @@
'description' => '策略详情。',
'type' => 'object',
'properties' => [
- 'DestType' => [
- 'title' => '备份策略目标类型'."\n"
- .' db - 数据库'."\n"
- .' level1 - 一级备份'."\n"
- .' level2 - 二级备份'."\n"
- .' level2Cross - 二级跨地域备份',
- 'description' => '备份策略目标类型,取值如下:'."\n"
- ."\n"
- .'- **db**:数据库'."\n"
- .'- **level1**:一级备份'."\n"
- .'- **level2**:二级备份'."\n"
- .'- **level2Cross**:二级跨地域备份',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'level1',
- ],
- 'FilterType' => [
- 'title' => '高级策略筛选类型'."\n"
- .' Crontab - 周期调度'."\n"
- .' Event - 事件调度',
- 'description' => '高级策略筛选类型,取值如下:'."\n"
- ."\n"
- .'- **crontab**:周期调度'."\n"
- .'- **event**:事件调度',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'crontab',
- ],
- 'ActionType' => [
- 'title' => '操作类型,CREATE,UPDATE,DELETE',
- 'description' => '操作类型,取值如下:'."\n"
- ."\n"
- .'- **CREATE**:新增'."\n"
- .'- **UPDATE**:修改'."\n"
- .'- **DELETE**:删除',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'UPDATE',
- ],
- 'SrcRegion' => [
- 'title' => '备份策略源region',
- 'description' => '备份策略源地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
- ],
- 'SrcType' => [
- 'title' => '备份策略源类型'."\n"
- .' db - 数据库'."\n"
- .' level1 - 一级备份'."\n"
- .' level2 - 二级备份'."\n"
- .' level2Cross - 二级跨地域备份',
- 'description' => '备份策略源类型,取值如下:'."\n"
- ."\n"
- .'- **db**:数据库'."\n"
- .'- **level1**:一级备份'."\n"
- .'- **level2**:二级备份'."\n"
- .'- **level2Cross**:二级跨地域备份',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'db',
- ],
- 'OnlyPreserveOneEachDay' => [
- 'title' => '一天之前的高频备份集,是否只保留每天一个',
- 'description' => '一天之前的高频备份集,是否只保留每天一个',
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'RetentionValue' => [
- 'title' => '过期天数',
- 'description' => '过期天数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '4',
- ],
- 'PolicyId' => [
- 'title' => '高级策略ID',
- 'description' => '高级策略ID,可调用[DescribeBackupPolicy](~~2869783~~)查看。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '6s67c7i3y8f8p72808p******',
- ],
- 'FilterKey' => [
- 'title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
- .'dayOfWeek - 按周调度'."\n"
- .'dayOfMonth - 按月调度'."\n"
- .'dayOfYear - 按年调度'."\n"
- .'backupInterval - 固定间隔调度',
- 'description' => '调度类型,取值如下:'."\n"
- ."\n"
- .'- **dayOfWeek**:按周调度'."\n"
- .'- **dayOfMonth**:按月调度'."\n"
- .'- **dayOfYear**:按年调度'."\n"
- .'- **backupInterval**:固定间隔调度'."\n"
- ."\n"
- .'> 仅当FilterType为**crontab**时,返回该参数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'backupInterval',
- ],
- 'DestRegion' => [
- 'title' => '备份策略目标region',
- 'description' => '备份策略目标地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
- ],
- 'FilterValue' => [
- 'title' => '具体Filter的值',
- 'description' => '备份周期。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '180',
- ],
- 'RetentionType' => [
- 'title' => '保留周期类型'."\n"
- .' Never - 永不过期'."\n"
- .' Delay - 固定天数过期',
- 'description' => '备份集保留周期类型,取值如下:'."\n"
- ."\n"
- .'- **never**:永不过期'."\n"
- .'- **delay**:固定天数过期',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'delay',
- ],
- 'StorageClass' => [
- 'type' => 'string',
- ],
+ 'DestType' => ['title' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略目标类型,取值如下:'."\n"
+ ."\n"
+ .'- **db**:数据库'."\n"
+ .'- **level1**:一级备份'."\n"
+ .'- **level2**:二级备份'."\n"
+ .'- **level2Cross**:二级跨地域备份', 'type' => 'string', 'required' => false, 'example' => 'level1'],
+ 'FilterType' => ['title' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'description' => '高级策略筛选类型,取值如下:'."\n"
+ ."\n"
+ .'- **crontab**:周期调度'."\n"
+ .'- **event**:事件调度', 'type' => 'string', 'required' => false, 'example' => 'crontab'],
+ 'ActionType' => ['title' => '操作类型,CREATE,UPDATE,DELETE', 'description' => '操作类型,取值如下:'."\n"
+ ."\n"
+ .'- **CREATE**:新增'."\n"
+ .'- **UPDATE**:修改'."\n"
+ .'- **DELETE**:删除', 'type' => 'string', 'required' => false, 'example' => 'UPDATE'],
+ 'SrcRegion' => ['title' => '备份策略源region', 'description' => '备份策略源地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'],
+ 'SrcType' => ['title' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略源类型,取值如下:'."\n"
+ ."\n"
+ .'- **db**:数据库'."\n"
+ .'- **level1**:一级备份'."\n"
+ .'- **level2**:二级备份'."\n"
+ .'- **level2Cross**:二级跨地域备份', 'type' => 'string', 'required' => false, 'example' => 'db'],
+ 'OnlyPreserveOneEachDay' => ['title' => '一天之前的高频备份集,是否只保留每天一个', 'description' => '一天之前的高频备份集,是否只保留每天一个', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'RetentionValue' => ['title' => '过期天数', 'description' => '过期天数。', 'type' => 'string', 'required' => false, 'example' => '4'],
+ 'PolicyId' => ['title' => '高级策略ID', 'description' => '高级策略ID,可调用[DescribeBackupPolicy](~~2869783~~)查看。', 'type' => 'string', 'required' => false, 'example' => '6s67c7i3y8f8p72808p******'],
+ 'FilterKey' => ['title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'description' => '调度类型,取值如下:'."\n"
+ ."\n"
+ .'- **dayOfWeek**:按周调度'."\n"
+ .'- **dayOfMonth**:按月调度'."\n"
+ .'- **dayOfYear**:按年调度'."\n"
+ .'- **backupInterval**:固定间隔调度'."\n"
+ ."\n"
+ .'> 仅当FilterType为**crontab**时,返回该参数。', 'type' => 'string', 'required' => false, 'example' => 'backupInterval'],
+ 'DestRegion' => ['title' => '备份策略目标region', 'description' => '备份策略目标地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'],
+ 'FilterValue' => ['title' => '具体Filter的值', 'description' => '备份周期。', 'type' => 'string', 'required' => false, 'example' => '180'],
+ 'RetentionType' => ['title' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'description' => '备份集保留周期类型,取值如下:'."\n"
+ ."\n"
+ .'- **never**:永不过期'."\n"
+ .'- **delay**:固定天数过期', 'type' => 'string', 'required' => false, 'example' => 'delay'],
+ 'StorageClass' => ['description' => 'Bucket的存储类型。 取值范围如下:'."\n"
+ ."\n"
+ .'- Standard(默认):标准存储'."\n"
+ .'- IA:低频访问'."\n"
+ .'- Archive:归档存储'."\n"
+ .'- ColdArchive:冷归档存储'."\n"
+ .'- DeepColdArchive:深度冷归档存储', 'type' => 'string', 'required' => false, 'example' => 'Standard'],
],
'required' => false,
],
@@ -3714,79 +2086,175 @@
'in' => 'query',
'style' => 'json',
'schema' => [
+ 'description' => '备份策略目标region',
'type' => 'array',
'items' => [
'title' => '',
+ 'description' => '备份策略源region',
'type' => 'object',
'properties' => [
- 'DestType' => [
- 'type' => 'string',
- ],
- 'FilterType' => [
- 'type' => 'string',
- ],
- 'ActionType' => [
- 'type' => 'string',
- ],
- 'SrcRegion' => [
- 'type' => 'string',
- ],
- 'SrcType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'OnlyPreserveOneEachDay' => [
- 'type' => 'boolean',
- ],
- 'RetentionValue' => [
- 'type' => 'string',
- ],
- 'PolicyId' => [
- 'type' => 'string',
- ],
- 'FilterKey' => [
- 'type' => 'string',
- ],
- 'DestRegion' => [
- 'type' => 'string',
- ],
- 'FilterValue' => [
- 'type' => 'string',
- ],
- 'RetentionType' => [
- 'type' => 'string',
- ],
+ 'DestType' => ['title' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'required' => false, 'example' => 'level1'],
+ 'FilterType' => ['title' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'description' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'type' => 'string', 'required' => false, 'example' => 'crontab'],
+ 'ActionType' => ['title' => '操作类型,CREATE,UPDATE,DELETE', 'description' => '操作类型,CREATE,UPDATE,DELETE', 'type' => 'string', 'required' => false, 'example' => 'CREATE'],
+ 'SrcRegion' => ['title' => '备份策略源region', 'description' => '备份策略源region', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
+ 'SrcType' => ['title' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'required' => false, 'example' => 'db'],
+ 'OnlyPreserveOneEachDay' => ['title' => '一天之前的高频备份集,是否只保留每天一个', 'description' => '一天之前的高频备份集,是否只保留每天一个', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'RetentionValue' => ['title' => '过期天数', 'description' => '过期天数', 'type' => 'string', 'required' => false, 'example' => '365'],
+ 'PolicyId' => ['title' => '高级策略ID', 'description' => '高级策略ID', 'type' => 'string', 'required' => false, 'example' => '1'],
+ 'FilterKey' => ['title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'description' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'type' => 'string', 'required' => false, 'example' => 'dayOfMonth'],
+ 'DestRegion' => ['title' => '备份策略目标region', 'description' => '备份策略目标region', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
+ 'FilterValue' => ['title' => '具体Filter的值', 'description' => '具体Filter的值', 'type' => 'string', 'required' => false, 'example' => '1'],
+ 'RetentionType' => ['title' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'description' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'type' => 'string', 'required' => false, 'example' => 'delay'],
],
+ 'required' => false,
],
+ 'required' => false,
],
],
[
'name' => 'BackupRetentionPolicyOnClusterDeletion',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['description' => '已删除实例的归档备份保留策略,返回值如下:'."\n"
+ ."\n"
+ .'- **NONE**:不保留'."\n"
+ .'- **LATEST**:保留最后一个'."\n"
+ .'- **ALL**:全部保留', 'type' => 'string', 'required' => false, 'example' => '0'],
],
[
'name' => 'BackupMethod',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['description' => '备份方式,取值如下:'."\n"
+ .'- **logical**:逻辑备份'."\n"
+ .'- **physical**:物理备份', 'type' => 'string', 'required' => false, 'example' => 'logical'],
],
[
'name' => 'BackupPriority',
'in' => 'query',
+ 'schema' => ['description' => '备库备份的设置策略,返回值如下:'."\n"
+ ."\n"
+ .'- **1**:优先备库'."\n"
+ .'- **2**:强制主库'."\n"
+ ."\n\n"
+ .'> 该参数仅适用于RDS SQL Server实例,其他引擎返回值为**0**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ ],
+ [
+ 'name' => 'EnableIncBackup',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启增量备份。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ ],
+ [
+ 'name' => 'BackupRetentionPeriod',
+ 'in' => 'query',
+ 'schema' => ['title' => '备份保留天数', 'type' => 'integer', 'format' => 'int32', 'example' => '7'],
+ ],
+ [
+ 'name' => 'HighFrequencyBakInterval',
+ 'in' => 'query',
+ 'schema' => ['title' => '高频备份时间,分钟为单位,例如 120 表示每两小时备份一次', 'type' => 'integer', 'format' => 'int32', 'example' => '120'],
+ ],
+ [
+ 'name' => 'EnableLogBackup',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否开启日志备份 1开 0关', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ [
+ 'name' => 'LogBackupRetention',
+ 'in' => 'query',
+ 'schema' => ['title' => '日志备份保留周期', 'type' => 'integer', 'format' => 'int32', 'example' => '7'],
+ ],
+ [
+ 'name' => 'LogBackupLocalRetentionNumber',
+ 'in' => 'query',
+ 'schema' => ['title' => '本地日志保留个数', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ ],
+ [
+ 'name' => 'LocalLogRetentionSpace',
+ 'in' => 'query',
+ 'schema' => ['title' => '本地日志最大空间使用率', 'type' => 'integer', 'format' => 'int32', 'example' => '30'],
+ ],
+ [
+ 'name' => 'HighSpaceUsageProtection',
+ 'in' => 'query',
'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'title' => '实例使用空间大于 80%,或者剩余空间小于 5 GB 时,是否强制清理日志:'."\n"
+ .'disable:不清理'."\n"
+ .'enable:清理'."\n",
+ 'type' => 'string',
+ 'example' => 'enable',
+ 'enum' => ['enable', 'disable'],
],
],
[
- 'name' => 'EnableIncBackup',
+ 'name' => 'IncBackupInterval',
+ 'in' => 'query',
+ 'schema' => ['title' => '高频增量备份间隔,单位分钟', 'type' => 'integer', 'format' => 'int32', 'example' => '120'],
+ ],
+ [
+ 'name' => 'EnablePitrProtection',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否开启任意时间点保护', 'type' => 'boolean'],
+ ],
+ [
+ 'name' => 'PreferredBackupDate',
+ 'in' => 'query',
+ 'schema' => ['title' => '基础备份的备份周期', 'type' => 'string', 'example' => '1111111'],
+ ],
+ [
+ 'name' => 'LogBackupLocalRetention',
+ 'in' => 'query',
+ 'schema' => ['title' => '本地日志保留时间,单位秒', 'type' => 'integer', 'format' => 'int32', 'example' => '7'],
+ ],
+ [
+ 'name' => 'ColdRetention',
+ 'in' => 'query',
+ 'schema' => ['title' => '冷归档保留天数', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ ],
+ [
+ 'name' => 'ColdKeepCount',
+ 'in' => 'query',
+ 'schema' => ['title' => '冷归档个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ [
+ 'name' => 'ColdKeepPolicy',
'in' => 'query',
'schema' => [
- 'type' => 'boolean',
+ 'title' => '冷归档保留策略',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ 'enum' => ['0', '1', '2'],
],
],
],
@@ -3796,81 +2264,65 @@
'description' => '返回参数详情。',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D570F209-A166-50C6-98A3-155A20B218B7',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'instanceName can not be empty.',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D570F209-A166-50C6-98A3-155A20B218B7'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'instanceName can not be empty.'],
'Data' => [
'description' => '备份策略详情。',
'type' => 'object',
'properties' => [
- 'PreferredBackupWindowBegin' => [
- 'title' => '基础备份窗口开始时间',
- 'description' => '基础备份窗口开始时间。',
- 'type' => 'string',
- 'example' => '17:00Z',
- ],
- 'PreferredBackupWindow' => [
- 'title' => '基础备份窗口',
- 'description' => '基础备份窗口。',
- 'type' => 'string',
- 'example' => '17:00Z-18:00Z',
- ],
- 'Category' => [
- 'description' => '是否开启秒级备份,返回值如下:'."\n"
- ."\n"
- .'- **Flash**:已开启秒级备份'."\n"
- .'- **Standard**:普通备份'."\n"
- ."\n"
- .'> 该参数仅对MySQL生效。',
- 'type' => 'string',
- 'example' => 'Standard',
- ],
+ 'PreferredBackupWindowBegin' => ['title' => '基础备份窗口开始时间', 'description' => '基础备份窗口开始时间。', 'type' => 'string', 'example' => '17:00Z'],
+ 'PreferredBackupWindow' => ['title' => '基础备份窗口', 'description' => '基础备份窗口。', 'type' => 'string', 'example' => '17:00Z-18:00Z'],
+ 'Category' => ['description' => '是否开启秒级备份,返回值如下:'."\n"
+ ."\n"
+ .'- **Flash**:已开启秒级备份'."\n"
+ .'- **Standard**:普通备份'."\n"
+ ."\n"
+ .'> 该参数仅对MySQL生效。', 'type' => 'string', 'example' => 'Standard'],
'AdvanceLogPolicies' => [
+ 'description' => '策略详情。',
'type' => 'array',
'items' => [
+ 'description' => '策略详情。',
'type' => 'object',
'properties' => [
- 'LogRetentionType' => [
- 'type' => 'string',
- ],
- 'DestType' => [
- 'type' => 'string',
- ],
- 'FilterType' => [
- 'type' => 'string',
- ],
- 'SrcRegion' => [
- 'type' => 'string',
- ],
- 'EnableLogBackup' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'SrcType' => [
- 'type' => 'string',
- ],
- 'PolicyId' => [
- 'type' => 'string',
- ],
- 'DestRegion' => [
- 'type' => 'string',
- ],
- 'LogRetentionValue' => [
- 'type' => 'string',
- ],
- 'FilterKey' => [
- 'type' => 'string',
- ],
- 'FilterValue' => [
- 'type' => 'string',
- ],
+ 'LogRetentionType' => ['title' => '日志备份保留类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 按天过期', 'description' => '日志备份保留类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 按天过期', 'type' => 'string', 'example' => 'delay'],
+ 'DestType' => ['title' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'example' => 'level1'],
+ 'FilterType' => ['description' => '高级策略筛选类型,返回值如下:'."\n"
+ ."\n"
+ .'- **crontab**:周期调度'."\n"
+ .'- **event**:事件调度', 'type' => 'string', 'example' => 'crontab'],
+ 'SrcRegion' => ['title' => '备份策略源region', 'description' => '备份策略源region', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'EnableLogBackup' => ['description' => '预留参数,无需关注。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'SrcType' => ['title' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'example' => 'level1'],
+ 'PolicyId' => ['title' => '备份策略ID', 'description' => '备份策略ID', 'type' => 'string', 'example' => 'dc13b153acc91141789122c23835****'],
+ 'DestRegion' => ['title' => '备份策略目标region', 'description' => '备份策略目标region', 'type' => 'string', 'example' => 'cn-shanghai'],
+ 'LogRetentionValue' => ['title' => '日志备份保留时间', 'description' => '日志备份保留时间', 'type' => 'string', 'example' => '3'],
+ 'FilterKey' => ['description' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'type' => 'string', 'example' => 'dayOfMonth'],
+ 'FilterValue' => ['description' => '备份周期。', 'type' => 'string', 'example' => '1'],
],
],
],
@@ -3881,269 +2333,190 @@
'description' => '策略详情。',
'type' => 'object',
'properties' => [
- 'RetentionValue' => [
- 'title' => '过期天数',
- 'description' => '过期天数。',
- 'type' => 'string',
- 'example' => '4',
- ],
- 'BakType' => [
- 'title' => '备份类型 F - 全量 L 日志',
- 'description' => '备份类型,返回值如下:'."\n"
- ."\n"
- .'- **F**:全量备份'."\n"
- .'- **L**:日志备份',
- 'type' => 'string',
- 'example' => 'F',
- ],
- 'FilterKey' => [
- 'title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
- .'dayOfWeek - 按周调度'."\n"
- .'dayOfMonth - 按月调度'."\n"
- .'dayOfYear - 按年调度'."\n"
- .'backupInterval - 固定间隔调度',
- 'description' => '调度类型,返回值如下:'."\n"
- ."\n"
- .'- **dayOfWeek**:按周调度'."\n"
- .'- **dayOfMonth**:按月调度'."\n"
- .'- **dayOfYear**:按年调度'."\n"
- .'- **backupInterval**:固定间隔调度'."\n"
- ."\n"
- .'> 仅当FilterType为**crontab**时,返回该参数。',
- 'type' => 'string',
- 'example' => 'backupInterval',
- ],
- 'FilterValue' => [
- 'title' => '具体Filter的值',
- 'description' => '备份周期。',
- 'type' => 'string',
- 'example' => '180',
- ],
- 'DestType' => [
- 'title' => '备份策略目标类型'."\n"
- .' db - 数据库'."\n"
- .' level1 - 一级备份'."\n"
- .' level2 - 二级备份'."\n"
- .' level2Cross - 二级跨地域备份',
- 'description' => '备份策略目标类型,返回值如下:'."\n"
- ."\n"
- .'- **db**:数据库'."\n"
- .'- **level1**:一级备份'."\n"
- .'- **level2**:二级备份'."\n"
- .'- **level2Cross**:二级跨地域备份',
- 'type' => 'string',
- 'example' => 'level1',
- ],
- 'FilterType' => [
- 'title' => '高级策略筛选类型'."\n"
- .' Crontab - 周期调度'."\n"
- .' Event - 事件调度',
- 'description' => '高级策略筛选类型,返回值如下:'."\n"
- ."\n"
- .'- **crontab**:周期调度'."\n"
- .'- **event**:事件调度',
- 'type' => 'string',
- 'example' => 'crontab',
- ],
- 'SrcRegion' => [
- 'title' => '备份策略源region',
- 'description' => '备份策略源地域。',
- 'type' => 'string',
- 'example' => 'cn-shanghai',
- ],
- 'AutoCreated' => [
- 'title' => '是否系统自动生成',
- 'description' => '是否为系统自动生成的备份策略,返回值如下:'."\n"
- ."\n"
- .'- **true**:系统生成策略'."\n"
- .'- **false**:用户自定义策略',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'SrcType' => [
- 'title' => '备份策略源类型'."\n"
- .' db - 数据库'."\n"
- .' level1 - 一级备份'."\n"
- .' level2 - 二级备份'."\n"
- .' level2Cross - 二级跨地域备份',
- 'description' => '备份策略源类型,返回值如下:'."\n"
- ."\n"
- .'- **db**:数据库'."\n"
- .'- **level1**:一级备份'."\n"
- .'- **level2**:二级备份'."\n"
- .'- **level2Cross**:二级跨地域备份',
- 'type' => 'string',
- 'example' => 'db',
- ],
- 'OnlyPreserveOneEachDay' => [
- 'description' => 'onlyPreserveOneEachDay'."\n"
- .'- **true**:每天只保留一个'."\n"
- .'- **false**:全保留',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'DumpAction' => [
- 'title' => '转储策略'."\n"
- .' Copy - 复制'."\n"
- .' Move - 转储',
- 'description' => '转储策略详情,返回值如下:'."\n"
- ."\n"
- .'- **copy**:复制'."\n"
- .'- **move**:转储',
- 'type' => 'string',
- 'example' => 'copy',
- ],
- 'PolicyId' => [
- 'title' => '高级策略ID',
- 'description' => '高级策略ID。',
- 'type' => 'string',
- 'example' => 'dc13b153acc91141789122c23835****',
- ],
- 'DestRegion' => [
- 'title' => '备份策略目标region',
- 'description' => '备份策略目标地域。',
- 'type' => 'string',
- 'example' => 'cn-shanghai',
- ],
- 'RetentionType' => [
- 'title' => '保留周期类型'."\n"
- .' Never - 永不过期'."\n"
- .' Delay - 固定天数过期',
- 'description' => '备份集保留周期类型,返回值如下:'."\n"
- ."\n"
- .'- **never**:永不过期'."\n"
- .'- **delay**:固定天数过期',
- 'type' => 'string',
- 'example' => 'delay',
- ],
- 'StorageClass' => [
- 'type' => 'string',
- ],
+ 'RetentionValue' => ['title' => '过期天数', 'description' => '过期天数。', 'type' => 'string', 'example' => '4'],
+ 'BakType' => ['title' => '备份类型 F - 全量 L 日志', 'description' => '备份类型,返回值如下:'."\n"
+ ."\n"
+ .'- **F**:全量备份'."\n"
+ .'- **L**:日志备份', 'type' => 'string', 'example' => 'F'],
+ 'FilterKey' => ['title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'description' => '调度类型,返回值如下:'."\n"
+ ."\n"
+ .'- **dayOfWeek**:按周调度'."\n"
+ .'- **dayOfMonth**:按月调度'."\n"
+ .'- **dayOfYear**:按年调度'."\n"
+ .'- **backupInterval**:固定间隔调度'."\n"
+ ."\n"
+ .'> 仅当FilterType为**crontab**时,返回该参数。', 'type' => 'string', 'example' => 'backupInterval'],
+ 'FilterValue' => ['title' => '具体Filter的值', 'description' => '备份周期。', 'type' => 'string', 'example' => '180'],
+ 'DestType' => ['title' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略目标类型,返回值如下:'."\n"
+ ."\n"
+ .'- **db**:数据库'."\n"
+ .'- **level1**:一级备份'."\n"
+ .'- **level2**:二级备份'."\n"
+ .'- **level2Cross**:二级跨地域备份', 'type' => 'string', 'example' => 'level1'],
+ 'FilterType' => ['title' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'description' => '高级策略筛选类型,返回值如下:'."\n"
+ ."\n"
+ .'- **crontab**:周期调度'."\n"
+ .'- **event**:事件调度', 'type' => 'string', 'example' => 'crontab'],
+ 'SrcRegion' => ['title' => '备份策略源region', 'description' => '备份策略源地域。', 'type' => 'string', 'example' => 'cn-shanghai'],
+ 'AutoCreated' => ['title' => '是否系统自动生成', 'description' => '是否为系统自动生成的备份策略,返回值如下:'."\n"
+ ."\n"
+ .'- **true**:系统生成策略'."\n"
+ .'- **false**:用户自定义策略', 'type' => 'boolean', 'example' => 'false'],
+ 'SrcType' => ['title' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略源类型,返回值如下:'."\n"
+ ."\n"
+ .'- **db**:数据库'."\n"
+ .'- **level1**:一级备份'."\n"
+ .'- **level2**:二级备份'."\n"
+ .'- **level2Cross**:二级跨地域备份', 'type' => 'string', 'example' => 'db'],
+ 'OnlyPreserveOneEachDay' => ['description' => 'onlyPreserveOneEachDay'."\n"
+ .'- **true**:每天只保留一个'."\n"
+ .'- **false**:全保留', 'type' => 'boolean', 'example' => 'true'],
+ 'DumpAction' => ['title' => '转储策略'."\n"
+ .' Copy - 复制'."\n"
+ .' Move - 转储', 'description' => '转储策略详情,返回值如下:'."\n"
+ ."\n"
+ .'- **copy**:复制'."\n"
+ .'- **move**:转储', 'type' => 'string', 'example' => 'copy'],
+ 'PolicyId' => ['title' => '高级策略ID', 'description' => '高级策略ID。', 'type' => 'string', 'example' => 'dc13b153acc91141789122c23835****'],
+ 'DestRegion' => ['title' => '备份策略目标region', 'description' => '备份策略目标地域。', 'type' => 'string', 'example' => 'cn-shanghai'],
+ 'RetentionType' => ['title' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'description' => '备份集保留周期类型,返回值如下:'."\n"
+ ."\n"
+ .'- **never**:永不过期'."\n"
+ .'- **delay**:固定天数过期', 'type' => 'string', 'example' => 'delay'],
+ 'StorageClass' => ['description' => '数据存储类型。', 'type' => 'string', 'example' => 'ARCHIVE'],
],
],
],
'AdvanceIncPolicies' => [
+ 'description' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期',
'type' => 'array',
'items' => [
+ 'description' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份',
'type' => 'object',
'properties' => [
- 'RetentionValue' => [
- 'type' => 'string',
- ],
- 'BakType' => [
- 'type' => 'string',
- ],
- 'FilterKey' => [
- 'type' => 'string',
- ],
- 'FilterValue' => [
- 'type' => 'string',
- ],
- 'DestType' => [
- 'type' => 'string',
- ],
- 'FilterType' => [
- 'type' => 'string',
- ],
- 'SrcRegion' => [
- 'type' => 'string',
- ],
- 'AutoCreated' => [
- 'type' => 'boolean',
- ],
- 'SrcType' => [
- 'type' => 'string',
- ],
- 'OnlyPreserveOneEachDay' => [
- 'type' => 'boolean',
- ],
- 'DumpAction' => [
- 'type' => 'string',
- ],
- 'PolicyId' => [
- 'type' => 'string',
- ],
- 'DestRegion' => [
- 'type' => 'string',
- ],
- 'RetentionType' => [
- 'type' => 'string',
- ],
+ 'RetentionValue' => ['title' => '过期天数', 'description' => '过期天数', 'type' => 'string', 'example' => '365'],
+ 'BakType' => ['title' => '备份类型 F - 全量 L 日志', 'description' => '备份类型 F - 全量 L 日志', 'type' => 'string', 'example' => 'F'],
+ 'FilterKey' => ['title' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'description' => '调度类型,当前仅当filterType为crontab时有效'."\n"
+ .'dayOfWeek - 按周调度'."\n"
+ .'dayOfMonth - 按月调度'."\n"
+ .'dayOfYear - 按年调度'."\n"
+ .'backupInterval - 固定间隔调度', 'type' => 'string', 'example' => 'dayOfMonth'],
+ 'FilterValue' => ['title' => '具体Filter的值', 'description' => '具体Filter的值', 'type' => 'string', 'example' => '1'],
+ 'DestType' => ['title' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略目标类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'example' => 'level1'],
+ 'FilterType' => ['title' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'description' => '高级策略筛选类型'."\n"
+ .' Crontab - 周期调度'."\n"
+ .' Event - 事件调度', 'type' => 'string', 'example' => 'Crontab'],
+ 'SrcRegion' => ['title' => '备份策略源region', 'description' => '备份策略源region', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'AutoCreated' => ['title' => '是否系统自动生成', 'description' => '是否系统自动生成', 'type' => 'boolean', 'example' => 'true'],
+ 'SrcType' => ['title' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'description' => '备份策略源类型'."\n"
+ .' db - 数据库'."\n"
+ .' level1 - 一级备份'."\n"
+ .' level2 - 二级备份'."\n"
+ .' level2Cross - 二级跨地域备份', 'type' => 'string', 'example' => 'db'],
+ 'OnlyPreserveOneEachDay' => ['description' => '24小时备份保留策略。'."\n"
+ .'- **true**:超过24小时仅保留当天第1个备份集'."\n"
+ .'- **false**:全保留', 'type' => 'boolean', 'example' => 'true'],
+ 'DumpAction' => ['title' => '转储策略'."\n"
+ .' Copy - 复制'."\n"
+ .' Move - 转储', 'description' => '转储策略'."\n"
+ .' Copy - 复制'."\n"
+ .' Move - 转储', 'type' => 'string', 'example' => 'Copy'],
+ 'PolicyId' => ['title' => '高级策略ID', 'description' => '高级策略ID', 'type' => 'string', 'example' => 'smp-8sv763r9boydzb***'],
+ 'DestRegion' => ['title' => '备份策略目标region', 'description' => '备份策略目标region', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'RetentionType' => ['title' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'description' => '保留周期类型'."\n"
+ .' Never - 永不过期'."\n"
+ .' Delay - 固定天数过期', 'type' => 'string', 'example' => 'Delay'],
],
],
],
- 'BackupRetentionPolicyOnClusterDeletion' => [
- 'type' => 'string',
- ],
- 'BackupMethod' => [
- 'type' => 'string',
- ],
- 'BackupPriority' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'EnableIncBackup' => [
- 'type' => 'boolean',
- ],
+ 'BackupRetentionPolicyOnClusterDeletion' => ['description' => '已删除实例的归档备份保留策略,返回值如下:'."\n"
+ ."\n"
+ .'- **NONE**:不保留'."\n"
+ .'- **LATEST**:保留最后一个'."\n"
+ .'- **ALL**:全部保留', 'type' => 'string', 'example' => 'LATEST'],
+ 'BackupMethod' => ['description' => '备份方式,返回值如下:'."\n"
+ ."\n"
+ .'- **Physical**:物理备份'."\n"
+ .'- **Snapshot**:快照备份', 'type' => 'string', 'example' => 'Physical'],
+ 'BackupPriority' => ['description' => '备库备份的设置策略,返回值如下:'."\n"
+ ."\n"
+ .'- **1**:优先备库'."\n"
+ .'- **2**:强制主库'."\n"
+ ."\n\n"
+ .'> 该参数仅适用于RDS SQL Server实例,其他引擎返回值为**0**。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'EnableIncBackup' => ['description' => '是否开启增量备份。', 'type' => 'boolean', 'example' => 'true'],
],
],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'Code' => [
- 'description' => '状态码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Success' => [
- 'description' => '请求是否成功,返回值如下:'."\n"
- .'- **true**:请求成功'."\n"
- .'- **false**:请求失败',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => 'Success'],
+ 'Success' => ['description' => '请求是否成功,返回值如下:'."\n"
+ .'- **true**:请求成功'."\n"
+ .'- **false**:请求失败', 'type' => 'string', 'example' => 'true'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Success'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '修改备份策略',
- 'summary' => '修改PolarDB实例备份策略。',
'description' => '### 适用引擎'."\n"
.'PolarDB MySQL版'."\n"
."\n"
.'> 当前该接口仅针对特定客户开放使用,如有需求,请到DBS客户咨询群(钉钉群号:35585947)申请使用。',
'changeSet' => [
- [
- 'createdAt' => '2024-09-24T08:37:35.000Z',
- 'description' => '请求参数发生变更、响应参数发生变更',
- ],
- [
- 'createdAt' => '2024-05-28T13:59:23.000Z',
- 'description' => '请求参数发生变更',
- ],
+ ['createdAt' => '2024-09-24T08:37:35.000Z', 'description' => '请求参数发生变更、响应参数发生变更'],
+ ['createdAt' => '2024-05-28T13:59:23.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
@@ -4156,28 +2529,17 @@
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D570F209-A166-50C6-98A3-155A20B218B7\\",\\n \\"Message\\": \\"instanceName can not be empty.\\",\\n \\"Data\\": {\\n \\"PreferredBackupWindowBegin\\": \\"17:00Z\\",\\n \\"PreferredBackupWindow\\": \\"17:00Z-18:00Z\\",\\n \\"Category\\": \\"Standard\\",\\n \\"AdvanceLogPolicies\\": [\\n {\\n \\"LogRetentionType\\": \\"\\",\\n \\"DestType\\": \\"\\",\\n \\"FilterType\\": \\"\\",\\n \\"SrcRegion\\": \\"\\",\\n \\"EnableLogBackup\\": 0,\\n \\"SrcType\\": \\"\\",\\n \\"PolicyId\\": \\"\\",\\n \\"DestRegion\\": \\"\\",\\n \\"LogRetentionValue\\": \\"\\",\\n \\"FilterKey\\": \\"\\",\\n \\"FilterValue\\": \\"\\"\\n }\\n ],\\n \\"AdvanceDataPolicies\\": [\\n {\\n \\"RetentionValue\\": \\"4\\",\\n \\"BakType\\": \\"F\\",\\n \\"FilterKey\\": \\"backupInterval\\",\\n \\"FilterValue\\": \\"180\\",\\n \\"DestType\\": \\"level1\\",\\n \\"FilterType\\": \\"crontab\\",\\n \\"SrcRegion\\": \\"cn-shanghai\\",\\n \\"AutoCreated\\": false,\\n \\"SrcType\\": \\"db\\",\\n \\"OnlyPreserveOneEachDay\\": true,\\n \\"DumpAction\\": \\"copy\\",\\n \\"PolicyId\\": \\"dc13b153acc91141789122c23835****\\",\\n \\"DestRegion\\": \\"cn-shanghai\\",\\n \\"RetentionType\\": \\"delay\\",\\n \\"StorageClass\\": \\"\\"\\n }\\n ],\\n \\"AdvanceIncPolicies\\": [\\n {\\n \\"RetentionValue\\": \\"\\",\\n \\"BakType\\": \\"\\",\\n \\"FilterKey\\": \\"\\",\\n \\"FilterValue\\": \\"\\",\\n \\"DestType\\": \\"\\",\\n \\"FilterType\\": \\"\\",\\n \\"SrcRegion\\": \\"\\",\\n \\"AutoCreated\\": true,\\n \\"SrcType\\": \\"\\",\\n \\"OnlyPreserveOneEachDay\\": true,\\n \\"DumpAction\\": \\"\\",\\n \\"PolicyId\\": \\"\\",\\n \\"DestRegion\\": \\"\\",\\n \\"RetentionType\\": \\"\\"\\n }\\n ],\\n \\"BackupRetentionPolicyOnClusterDeletion\\": \\"\\",\\n \\"BackupMethod\\": \\"\\",\\n \\"BackupPriority\\": 0,\\n \\"EnableIncBackup\\": true\\n },\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid.\\",\\n \\"Code\\": \\"Success\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrCode\\": \\"Success\\"\\n}","type":"json"}]',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D570F209-A166-50C6-98A3-155A20B218B7\\",\\n \\"Message\\": \\"instanceName can not be empty.\\",\\n \\"Data\\": {\\n \\"PreferredBackupWindowBegin\\": \\"17:00Z\\",\\n \\"PreferredBackupWindow\\": \\"17:00Z-18:00Z\\",\\n \\"Category\\": \\"Standard\\",\\n \\"AdvanceLogPolicies\\": [\\n {\\n \\"LogRetentionType\\": \\"delay\\",\\n \\"DestType\\": \\"level1\\",\\n \\"FilterType\\": \\"crontab\\",\\n \\"SrcRegion\\": \\"cn-beijing\\",\\n \\"EnableLogBackup\\": 1,\\n \\"SrcType\\": \\"level1\\",\\n \\"PolicyId\\": \\"dc13b153acc91141789122c23835****\\",\\n \\"DestRegion\\": \\"cn-shanghai\\",\\n \\"LogRetentionValue\\": \\"3\\",\\n \\"FilterKey\\": \\"dayOfMonth\\",\\n \\"FilterValue\\": \\"1\\"\\n }\\n ],\\n \\"AdvanceDataPolicies\\": [\\n {\\n \\"RetentionValue\\": \\"4\\",\\n \\"BakType\\": \\"F\\",\\n \\"FilterKey\\": \\"backupInterval\\",\\n \\"FilterValue\\": \\"180\\",\\n \\"DestType\\": \\"level1\\",\\n \\"FilterType\\": \\"crontab\\",\\n \\"SrcRegion\\": \\"cn-shanghai\\",\\n \\"AutoCreated\\": false,\\n \\"SrcType\\": \\"db\\",\\n \\"OnlyPreserveOneEachDay\\": true,\\n \\"DumpAction\\": \\"copy\\",\\n \\"PolicyId\\": \\"dc13b153acc91141789122c23835****\\",\\n \\"DestRegion\\": \\"cn-shanghai\\",\\n \\"RetentionType\\": \\"delay\\",\\n \\"StorageClass\\": \\"ARCHIVE\\"\\n }\\n ],\\n \\"AdvanceIncPolicies\\": [\\n {\\n \\"RetentionValue\\": \\"365\\",\\n \\"BakType\\": \\"F\\",\\n \\"FilterKey\\": \\"dayOfMonth\\",\\n \\"FilterValue\\": \\"1\\",\\n \\"DestType\\": \\"level1\\",\\n \\"FilterType\\": \\"Crontab\\",\\n \\"SrcRegion\\": \\"cn-hangzhou\\",\\n \\"AutoCreated\\": true,\\n \\"SrcType\\": \\"db\\",\\n \\"OnlyPreserveOneEachDay\\": true,\\n \\"DumpAction\\": \\"Copy\\",\\n \\"PolicyId\\": \\"smp-8sv763r9boydzb***\\",\\n \\"DestRegion\\": \\"cn-hangzhou\\",\\n \\"RetentionType\\": \\"Delay\\"\\n }\\n ],\\n \\"BackupRetentionPolicyOnClusterDeletion\\": \\"LATEST\\",\\n \\"BackupMethod\\": \\"Physical\\",\\n \\"BackupPriority\\": 1,\\n \\"EnableIncBackup\\": true\\n },\\n \\"ErrMessage\\": \\"The specified parameter %s value is not valid.\\",\\n \\"Code\\": \\"Success\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrCode\\": \\"Success\\"\\n}","type":"json"}]',
],
'RetryDownloadTask' => [
'summary' => '重试失败的高级下载任务。',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4188,51 +2550,28 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcbs04Q4EK',
- ],
+ 'abilityTreeNodes' => ['FEATUREcbs04Q4EK'],
],
'parameters' => [
[
'name' => 'RegionCode',
'in' => 'query',
- 'schema' => [
- 'description' => '实例所在地域ID,您可调用[DescribeDBInstanceAttribute(RDS实例)](~~26231~~)或[DescribeDBClusterAttribute(PolarDB实例)](~~2319132~~)查询。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '实例所在地域ID,您可调用[DescribeDBInstanceAttribute(RDS实例)](~~26231~~)或[DescribeDBClusterAttribute(PolarDB实例)](~~2319132~~)查询。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'TaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '任务ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dt-example',
- ],
+ 'schema' => ['description' => '任务ID。', 'type' => 'string', 'required' => false, 'example' => 'dt-example'],
],
[
'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'description' => '实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rm-example',
- ],
+ 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'rm-example'],
],
[
'name' => 'ClusterName',
'in' => 'query',
- 'schema' => [
- 'title' => '仅MongoDB依赖,分片集群的集群名',
- 'description' => '仅MongoDB依赖,分片集群的集群名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dds-example',
- ],
+ 'schema' => ['title' => '仅MongoDB依赖,分片集群的集群名', 'description' => '仅MongoDB依赖,分片集群的集群名', 'type' => 'string', 'required' => false, 'example' => 'dds-example'],
],
],
'responses' => [
@@ -4240,41 +2579,13 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Data' => [
- 'description' => '下载任务详情。',
- 'type' => 'string',
- 'example' => '暂无',
- ],
- 'RequestId' => [
- 'description' => '请求id。',
- 'type' => 'string',
- 'example' => '49FE4E8E-39B9-56DE-BC07-5AEBFAXXXXXX',
- ],
- 'ErrCode' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Success' => [
- 'description' => '是否成功。',
- 'type' => 'string',
- 'example' => 'True',
- ],
- 'ErrMessage' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'The specified parameter %s value is not valid.',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'instanceName can not be empty.',
- ],
+ 'Data' => ['description' => '下载任务详情。', 'type' => 'string', 'example' => '暂无'],
+ 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '49FE4E8E-39B9-56DE-BC07-5AEBFAXXXXXX'],
+ 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Success'],
+ 'Success' => ['description' => '是否成功。', 'type' => 'string', 'example' => 'True'],
+ 'ErrMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified parameter %s value is not valid.'],
+ 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'instanceName can not be empty.'],
],
'description' => '',
],
@@ -4282,11 +2593,7 @@
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Request.Forbidden',
- 'errorMessage' => 'Have no Permissions',
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
+ ['errorCode' => 'Request.Forbidden', 'errorMessage' => 'Have no Permissions', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
],
],
'title' => '重试高级下载任务',
@@ -4315,12 +2622,7 @@
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
@@ -4329,429 +2631,134 @@
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-wulanchabu',
- 'regionName' => '华北6(乌兰察布)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-wulanchabu.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-wulanchabu.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-wulanchabu.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-beijing',
- 'regionName' => '华北2(北京)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-qingdao',
- 'regionName' => '华北1(青岛)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-qingdao.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'regionName' => '华东2(上海)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hongkong',
- 'regionName' => '中国香港',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-hongkong.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-zhangjiakou',
- 'regionName' => '华北3(张家口)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-zhangjiakou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-zhangjiakou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-zhangjiakou.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'regionName' => '华南1(深圳)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-shenzhen.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-northeast-1',
- 'regionName' => '日本(东京)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.ap-northeast-1.aliyuncs.com',
- 'endpoint' => 'dbs-api.ap-northeast-1.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.ap-northeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-chengdu',
- 'regionName' => '西南1(成都)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-chengdu.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-chengdu.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-chengdu.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-1',
- 'regionName' => '新加坡',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.ap-southeast-1.aliyuncs.com',
- 'endpoint' => 'dbs-api.ap-southeast-1.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.ap-southeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-3',
- 'regionName' => '马来西亚(吉隆坡)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.ap-southeast-3.aliyuncs.com',
- 'endpoint' => 'dbs-api.ap-southeast-3.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.ap-southeast-3.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-huhehaote',
- 'regionName' => '华北5(呼和浩特)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-huhehaote.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-huhehaote.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-huhehaote.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-5',
- 'regionName' => '印度尼西亚(雅加达)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.ap-southeast-5.aliyuncs.com',
- 'endpoint' => 'dbs-api.ap-southeast-5.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.ap-southeast-5.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou',
- 'regionName' => '华东1(杭州)',
- 'areaId' => 'asiaPacific',
- 'areaName' => '亚太',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-hangzhou.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-east-1',
- 'regionName' => '美国(弗吉尼亚)',
- 'areaId' => 'europeAmerica',
- 'areaName' => '欧洲与美洲',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.us-east-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'eu-west-1',
- 'regionName' => '英国(伦敦)',
- 'areaId' => 'europeAmerica',
- 'areaName' => '欧洲与美洲',
- 'public' => 'dbs-api.eu-west-1.aliyuncs.com',
- 'endpoint' => 'dbs-api.eu-west-1.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.eu-west-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-west-1',
- 'regionName' => '美国(硅谷)',
- 'areaId' => 'europeAmerica',
- 'areaName' => '欧洲与美洲',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.us-west-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'eu-central-1',
- 'regionName' => '德国(法兰克福)',
- 'areaId' => 'europeAmerica',
- 'areaName' => '欧洲与美洲',
- 'public' => 'dbs-api.eu-central-1.aliyuncs.com',
- 'endpoint' => 'dbs-api.eu-central-1.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.eu-central-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen-finance-1',
- 'regionName' => '华南1 金融云',
- 'areaId' => 'industryCloud',
- 'areaName' => '行业云',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-shenzhen-finance-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai-finance-1',
- 'regionName' => '华东2 金融云',
- 'areaId' => 'industryCloud',
- 'areaName' => '行业云',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => 'dbs-api-vpc.cn-shanghai-finance-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou-finance',
- 'regionName' => '华东1 金融云',
- 'areaId' => 'industryCloud',
- 'areaName' => '行业云',
- 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com',
- 'vpc' => '',
- ],
+ ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'dbs-api.cn-wulanchabu.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-wulanchabu.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-qingdao.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-hongkong.aliyuncs.com'],
+ ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-zhangjiakou.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.ap-northeast-1.aliyuncs.com', 'endpoint' => 'dbs-api.ap-northeast-1.aliyuncs.com', 'vpc' => 'dbs-api-vpc.ap-northeast-1.aliyuncs.com'],
+ ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-chengdu.aliyuncs.com', 'endpoint' => 'dbs-api.cn-chengdu.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-chengdu.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.ap-southeast-1.aliyuncs.com', 'endpoint' => 'dbs-api.ap-southeast-1.aliyuncs.com', 'vpc' => 'dbs-api-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.ap-southeast-3.aliyuncs.com', 'endpoint' => 'dbs-api.ap-southeast-3.aliyuncs.com', 'vpc' => 'dbs-api-vpc.ap-southeast-3.aliyuncs.com'],
+ ['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-huhehaote.aliyuncs.com', 'endpoint' => 'dbs-api.cn-huhehaote.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-huhehaote.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.ap-southeast-5.aliyuncs.com', 'endpoint' => 'dbs-api.ap-southeast-5.aliyuncs.com', 'vpc' => 'dbs-api-vpc.ap-southeast-5.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.us-east-1.aliyuncs.com'],
+ ['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'dbs-api.eu-west-1.aliyuncs.com', 'endpoint' => 'dbs-api.eu-west-1.aliyuncs.com', 'vpc' => 'dbs-api-vpc.eu-west-1.aliyuncs.com'],
+ ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.us-west-1.aliyuncs.com'],
+ ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'dbs-api.eu-central-1.aliyuncs.com', 'endpoint' => 'dbs-api.eu-central-1.aliyuncs.com', 'vpc' => 'dbs-api-vpc.eu-central-1.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-shenzhen-finance-1.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => 'dbs-api-vpc.cn-shanghai-finance-1.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dbs-api.cn-hangzhou.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
- [
- 'code' => 'BackupPlanNotConfigure',
- 'message' => 'ConfigureBackupPlanRequest Error',
- 'http_code' => 200,
- 'description' => '备份计划配置错误',
- ],
- [
- 'code' => 'BackupPlanNotDescribe',
- 'message' => 'describe backup plan failed -> null',
- 'http_code' => 200,
- 'description' => '查询备份计划列表失败',
- ],
- [
- 'code' => 'BackupPlanNotModify',
- 'message' => 'modify backup source endpoint fail',
- 'http_code' => 200,
- 'description' => '修改备份源endpoint失败',
- ],
- [
- 'code' => 'DBS.DisasterCenter.NoPermission',
- 'message' => 'no permission for this action.',
- 'http_code' => 403,
- 'description' => '该操作无权限。',
- ],
- [
- 'code' => 'DBS.DownloadTask.CannotFind',
- 'message' => 'Can not find download task.',
- 'http_code' => 200,
- 'description' => '无法找到高级下载任务。',
- ],
- [
- 'code' => 'DBS.DownloadTask.JobAlreadyExist',
- 'message' => 'Job already submit in recent days, please check it.',
- 'http_code' => 200,
- 'description' => '相同备份集的高级下载任务在近几天被提交过,请检查。',
- ],
- [
- 'code' => 'DBS.DownloadTask.OnlyOneRunningOrFailedTask',
- 'message' => 'There can be only one running or failed task for the instance.',
- 'http_code' => 200,
- 'description' => '当前实例只能同时存在一个运行中/失败的任务。',
- ],
- [
- 'code' => 'DBS.DownloadTask.OssForbid',
- 'message' => 'OSS is forbidden to access. Please check your OSS bucket.',
- 'http_code' => 200,
- 'description' => '访问OSS被拒绝。请检查您的OSS权限配置。',
- ],
- [
- 'code' => 'DBS.DownloadTask.OssStorageTypeInvalid',
- 'message' => 'Unsupported bucket storage. Please make sure that your OSS bucket\'s storgae type is standard.',
- 'http_code' => 200,
- 'description' => '当前OSS bucket类型不支持。请确保您的OSS bucket类型是标准存储类型。',
- ],
- [
- 'code' => 'DBS.NoPermissionException',
- 'message' => 'Rejected by ValidationChecker.',
- 'http_code' => 403,
- 'description' => 'Rejected by ValidationChecker.',
- ],
- [
- 'code' => 'DBS.NotExists',
- 'message' => 'data source do not existed.',
- 'http_code' => 404,
- 'description' => 'DBS.NotExists',
- ],
- [
- 'code' => 'Forbidden.InstanceNotFound',
- 'message' => 'instance not found',
- 'http_code' => 200,
- 'description' => '实例不存在',
- ],
- [
- 'code' => 'InternalError',
- 'message' => 'internal error',
- 'http_code' => 500,
- 'description' => '内部错误',
- ],
- [
- 'code' => 'OperationDenied.JobStatus',
- 'message' => 'The operation is not permitted.',
- 'http_code' => 200,
- 'description' => '当前操作不被允许',
- ],
- [
- 'code' => 'Request.Forbidden',
- 'message' => 'Have no Permissions',
- 'http_code' => 403,
- 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作',
- ],
- [
- 'code' => 'UserError',
- 'message' => 'user error',
- 'http_code' => 200,
- 'description' => '用户使用问题',
- ],
- [
- 'code' => 'UserError',
- 'message' => 'You must first activate OSS before using DBS to OSS.',
- 'http_code' => 403,
- 'description' => 'You must first activate OSS before using DBS -> OSS.',
- ],
+ ['code' => 'BackupPlanNotConfigure', 'message' => 'ConfigureBackupPlanRequest Error', 'http_code' => 200, 'description' => '备份计划配置错误'],
+ ['code' => 'BackupPlanNotDescribe', 'message' => 'describe backup plan failed -> null', 'http_code' => 200, 'description' => '查询备份计划列表失败'],
+ ['code' => 'BackupPlanNotModify', 'message' => 'modify backup source endpoint fail', 'http_code' => 200, 'description' => '修改备份源endpoint失败'],
+ ['code' => 'DBS.DisasterCenter.NoPermission', 'message' => 'no permission for this action.', 'http_code' => 403, 'description' => '该操作无权限。'],
+ ['code' => 'DBS.DownloadTask.BakSetError', 'message' => 'DBS download task bak set error. Your backup set does not meet the requirements.', 'http_code' => 200, 'description' => '您选择的备份集不满足高级下载要求。'],
+ ['code' => 'DBS.DownloadTask.CannotFind', 'message' => 'Can not find download task.', 'http_code' => 200, 'description' => '无法找到高级下载任务。'],
+ ['code' => 'DBS.DownloadTask.CustinIdNotSupport', 'message' => 'DBS DownloadTask CustinIdNotSupport.', 'http_code' => 200, 'description' => '高级下载实例暂不支持下载'],
+ ['code' => 'DBS.DownloadTask.CustinNameNotSupport', 'message' => 'DBS DownloadTask CustinNameNotSupport.', 'http_code' => 200, 'description' => '高级下载实例暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.DbTypeNotSupport', 'message' => 'DBS DownloadTask DbTypeNotSupport.', 'http_code' => 200, 'description' => '高级下载引擎类型暂不支持'],
+ ['code' => 'DBS.DownloadTask.InstanceInfoNotSupport', 'message' => 'DBS DownloadTask InstanceInfoNotSupport.', 'http_code' => 200, 'description' => '高级下载当前实例不支持下载'],
+ ['code' => 'DBS.DownloadTask.InstanceParamNotSupport', 'message' => 'DBS DownloadTask InstanceParamNotSupport.', 'http_code' => 200, 'description' => '高级下载实例暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.InstanceStorageTypeNotSupport', 'message' => 'DBS DownloadTask InstanceStorageTypeNotSupport.', 'http_code' => 200, 'description' => '高级下载实例存储类型暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.InstanceVersionNotSupport', 'message' => 'DBS DownloadTask InstanceVersionNotSupport.', 'http_code' => 200, 'description' => '高级下载引擎版本暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.JobAlreadyExist', 'message' => 'Job already submit in recent days, please check it.', 'http_code' => 200, 'description' => '相同备份集的高级下载任务在近几天被提交过,请检查。'],
+ ['code' => 'DBS.DownloadTask.NotSupport', 'message' => 'DBS DownloadTask NotSupport.', 'http_code' => 200, 'description' => '高级下载暂不支持下载。'],
+ ['code' => 'DBS.DownloadTask.OnlyOneRunningOrFailedTask', 'message' => 'There can be only one running or failed task for the instance.', 'http_code' => 200, 'description' => '当前实例只能同时存在一个运行中/失败的任务。'],
+ ['code' => 'DBS.DownloadTask.OssForbid', 'message' => 'OSS is forbidden to access. Please check your OSS bucket.', 'http_code' => 200, 'description' => '访问OSS被拒绝。请检查您的OSS权限配置。'],
+ ['code' => 'DBS.DownloadTask.OssStorageTypeInvalid', 'message' => 'Unsupported bucket storage. Please make sure that your OSS bucket\'s storgae type is standard.', 'http_code' => 200, 'description' => '当前OSS bucket类型不支持。请确保您的OSS bucket类型是标准存储类型。'],
+ ['code' => 'DBS.DownloadTask.RegionNotSupport', 'message' => 'DBS DownloadTask RegionNotSupport.', 'http_code' => 200, 'description' => '高级下载地域暂不支持'],
+ ['code' => 'DBS.DownloadTask.UserNotSupport', 'message' => 'DBS DownloadTask UserNotSupport.', 'http_code' => 200, 'description' => '高级下载用户暂不支持下载'],
+ ['code' => 'DBS.NoPermissionException', 'message' => 'Rejected by ValidationChecker.', 'http_code' => 403, 'description' => 'Rejected by ValidationChecker.'],
+ ['code' => 'DBS.NotExists', 'message' => 'data source do not existed.', 'http_code' => 404, 'description' => 'DBS.NotExists'],
+ ['code' => 'DBS.RegionNotSupport', 'message' => 'Request region is not allowed in current gateway.', 'http_code' => 400, 'description' => '当前请求访问了错误的endpoint'],
+ ['code' => 'Forbidden.InstanceNotFound', 'message' => 'instance not found', 'http_code' => 200, 'description' => '实例不存在'],
+ ['code' => 'InternalError', 'message' => 'internal error', 'http_code' => 500, 'description' => '内部错误'],
+ ['code' => 'OperationDenied.JobStatus', 'message' => 'The operation is not permitted.', 'http_code' => 200, 'description' => '当前操作不被允许'],
+ ['code' => 'Request.Forbidden', 'message' => 'Have no Permissions', 'http_code' => 403, 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作'],
+ ['code' => 'UserError', 'message' => 'user error', 'http_code' => 200, 'description' => '用户使用问题'],
+ ['code' => 'UserError', 'message' => 'You must first activate OSS before using DBS to OSS.', 'http_code' => 403, 'description' => 'You must first activate OSS before using DBS -> OSS.'],
],
'changeSet' => [
[
'apis' => [
- [
- 'description' => '请求参数发生变更、响应参数发生变更',
- 'api' => 'ModifyBackupPolicy',
- ],
+ ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'ModifyBackupPolicy'],
],
'createdAt' => '2024-09-24T08:37:03.000Z',
'description' => '',
],
[
'apis' => [
- [
- 'description' => '响应参数发生变更',
- 'api' => 'DescribeBackupPolicy',
- ],
- [
- 'description' => '请求参数发生变更',
- 'api' => 'ModifyBackupPolicy',
- ],
+ ['description' => '响应参数发生变更', 'api' => 'DescribeBackupPolicy'],
+ ['description' => '请求参数发生变更', 'api' => 'ModifyBackupPolicy'],
],
'createdAt' => '2024-05-28T13:59:17.000Z',
'description' => '',
],
[
'apis' => [
- [
- 'description' => '响应参数发生变更',
- 'api' => 'DescribeBackupPolicy',
- ],
+ ['description' => '响应参数发生变更', 'api' => 'DescribeBackupPolicy'],
],
'createdAt' => '2024-05-16T11:16:56.000Z',
'description' => '',
],
[
'apis' => [
- [
- 'description' => '请求参数发生变更',
- 'api' => 'ChangeResourceGroup',
- ],
+ ['description' => '请求参数发生变更', 'api' => 'ChangeResourceGroup'],
],
'createdAt' => '2023-12-21T13:43:30.000Z',
'description' => '',
],
[
'apis' => [
- [
- 'description' => '请求参数发生变更',
- 'api' => 'CreateSandboxInstance',
- ],
- [
- 'description' => '请求参数发生变更',
- 'api' => 'DeleteSandboxInstance',
- ],
+ ['description' => '请求参数发生变更', 'api' => 'CreateSandboxInstance'],
+ ['description' => '请求参数发生变更', 'api' => 'DeleteSandboxInstance'],
],
'createdAt' => '2023-08-18T07:28:29.000Z',
'description' => '',
],
[
'apis' => [
- [
- 'description' => '响应参数发生变更',
- 'api' => 'DescribeDownloadTask',
- ],
+ ['description' => '响应参数发生变更', 'api' => 'DescribeDownloadTask'],
],
'createdAt' => '2022-11-16T11:45:26.000Z',
'description' => 'DescribeDownloadTask更新,修改分页相关返回字段名',
],
[
'apis' => [
- [
- 'description' => 'OpenAPI 下线',
- 'api' => 'DescribeDBTablesRecoveryBackupSet',
- ],
- [
- 'description' => 'OpenAPI 下线',
- 'api' => 'DescribeDBTablesRecoveryState',
- ],
- [
- 'description' => 'OpenAPI 下线',
- 'api' => 'DescribeDBTablesRecoveryTimeRange',
- ],
- [
- 'description' => 'OpenAPI 下线',
- 'api' => 'ModifyDBTablesRecoveryState',
- ],
- [
- 'description' => 'OpenAPI 下线',
- 'api' => 'SupportDBTableRecovery',
- ],
+ ['description' => 'OpenAPI 下线', 'api' => 'DescribeDBTablesRecoveryBackupSet'],
+ ['description' => 'OpenAPI 下线', 'api' => 'DescribeDBTablesRecoveryState'],
+ ['description' => 'OpenAPI 下线', 'api' => 'DescribeDBTablesRecoveryTimeRange'],
+ ['description' => 'OpenAPI 下线', 'api' => 'ModifyDBTablesRecoveryState'],
+ ['description' => 'OpenAPI 下线', 'api' => 'SupportDBTableRecovery'],
],
'createdAt' => '2022-10-18T14:32:36.000Z',
'description' => '极速库表恢复openapi',
],
[
'apis' => [
- [
- 'description' => '请求参数发生变更',
- 'api' => 'DescribeDownloadBackupSetStorageInfo',
- ],
- [
- 'description' => '请求参数发生变更',
- 'api' => 'DescribeDownloadSupport',
- ],
+ ['description' => '请求参数发生变更', 'api' => 'DescribeDownloadBackupSetStorageInfo'],
+ ['description' => '请求参数发生变更', 'api' => 'DescribeDownloadSupport'],
],
'createdAt' => '2022-08-25T07:44:08.000Z',
'description' => '修改参数必填属性',
],
[
'apis' => [
- [
- 'description' => 'OpenAPI 下线',
- 'api' => 'DescribeDownloadBackupSetStorageInfo',
- ],
- [
- 'description' => 'OpenAPI 下线',
- 'api' => 'DescribeDownloadSupport',
- ],
+ ['description' => 'OpenAPI 下线', 'api' => 'DescribeDownloadBackupSetStorageInfo'],
+ ['description' => 'OpenAPI 下线', 'api' => 'DescribeDownloadSupport'],
],
'createdAt' => '2022-08-03T09:24:36.000Z',
'description' => 'DBS高级下载V3.2发布',
],
[
'apis' => [
- [
- 'description' => 'OpenAPI 下线',
- 'api' => 'DescribeAvailableCrossRegion',
- ],
+ ['description' => 'OpenAPI 下线', 'api' => 'DescribeAvailableCrossRegion'],
],
'createdAt' => '2022-07-15T06:34:03.000Z',
'description' => '发布新接口',
@@ -4759,315 +2766,217 @@
],
'flowControl' => [
'flowControlList' => [
- [
- 'threshold' => '-1',
- 'countWindow' => 1,
- 'regionId' => '*',
- ],
- [
- 'threshold' => '400',
- 'countWindow' => 60,
- 'regionId' => '*',
- 'api' => 'DescribeDownloadSupport',
- ],
+ ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
+ ['threshold' => '400', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeDownloadSupport'],
],
],
'ram' => [
'productCode' => 'DBS',
'productName' => '数据库备份',
- 'ramCodes' => [
- 'dbs',
- ],
+ 'ramCodes' => ['dbs'],
'ramLevel' => '资源级',
'ramConditions' => [],
'ramActions' => [
[
- 'apiName' => 'CreateAdvancedPolicy',
- 'description' => '开启高级备份策略',
- 'operationType' => 'update',
+ 'apiName' => 'DescribeSandboxBackupSets',
+ 'description' => '查询快照列表',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:CreateAdvancedPolicy',
- 'authLevel' => 'operate',
+ 'action' => 'dbs:DescribeSandboxBackupSets',
+ 'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'CreateDownload',
- 'description' => '创建下载任务',
- 'operationType' => 'create',
+ 'apiName' => 'DescribeBackupDataList',
+ 'description' => '查询备份数据',
+ 'operationType' => 'list',
'ramAction' => [
- 'action' => 'dbs:CreateDownload',
+ 'action' => 'dbs:DescribeBackupDataList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'DBInstance',
- 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}',
- ],
+ ['validationType' => 'conditional', 'product' => 'DBS', 'resourceType' => 'DBInstance', 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}'],
],
],
],
[
- 'apiName' => 'DescribeDownloadTask',
- 'description' => '查询下载任务列表',
+ 'apiName' => 'RetryDownloadTask',
+ 'description' => '重试高级下载任务',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DescribeDownloadTask',
+ 'action' => 'dbs:RetryDownloadTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'DBInstance',
- 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeBackupDataList',
- 'description' => '查询备份数据',
- 'operationType' => 'list',
+ 'apiName' => 'ModifyBackupPolicy',
+ 'description' => '修改备份策略',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:DescribeBackupDataList',
- 'authLevel' => 'resource',
+ 'action' => 'dbs:ModifyBackupPolicy',
+ 'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'conditional',
- 'product' => 'DBS',
- 'resourceType' => 'DBInstance',
- 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeCostInfoByDbsInstance',
- 'description' => '根据dbs实例id获取收费详情。',
- 'operationType' => 'get',
+ 'apiName' => 'CreateDownload',
+ 'description' => '创建下载任务',
+ 'operationType' => 'create',
'ramAction' => [
- 'action' => 'dbs:DescribeCostInfoByDbsInstance',
+ 'action' => 'dbs:CreateDownload',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'DBInstance', 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}'],
],
],
],
[
- 'apiName' => 'DescribeSandboxInstances',
- 'description' => '查看沙箱实例列表',
+ 'apiName' => 'DescribeBackupPolicy',
+ 'description' => '查询备份策略',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DescribeSandboxInstances',
- 'authLevel' => 'resource',
+ 'action' => 'dbs:DescribeBackupPolicy',
+ 'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeDownloadBackupSetStorageInfo',
- 'description' => '查看下载备份集的存储信息',
+ 'apiName' => 'ChangeResourceGroup',
+ 'description' => 'DBS资源转组API',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DescribeDownloadBackupSetStorageInfo',
+ 'action' => 'dbs:ChangeResourceGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'ChangeResourceGroup',
- 'description' => 'DBS资源转组API',
+ 'apiName' => 'DescribeSandboxRecoveryTime',
+ 'description' => '查看可恢复时间范围',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:ChangeResourceGroup',
+ 'action' => 'dbs:DescribeSandboxRecoveryTime',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DeleteSandboxInstance',
- 'description' => '释放沙箱实例',
- 'operationType' => 'delete',
+ 'apiName' => 'DescribeSandboxInstances',
+ 'description' => '查看沙箱实例列表',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DeleteSandboxInstance',
+ 'action' => 'dbs:DescribeSandboxInstances',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeBackupPolicy',
- 'description' => '查询备份策略',
- 'operationType' => 'get',
+ 'apiName' => 'CreateAdvancedPolicy',
+ 'description' => '开启高级备份策略',
+ 'operationType' => 'update',
'ramAction' => [
- 'action' => 'dbs:DescribeBackupPolicy',
+ 'action' => 'dbs:CreateAdvancedPolicy',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeSandboxRecoveryTime',
- 'description' => '查看可恢复时间范围',
- 'operationType' => 'get',
+ 'apiName' => 'DeleteSandboxInstance',
+ 'description' => '释放沙箱实例',
+ 'operationType' => 'delete',
'ramAction' => [
- 'action' => 'dbs:DescribeSandboxRecoveryTime',
+ 'action' => 'dbs:DeleteSandboxInstance',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'DescribeSandboxBackupSets',
- 'description' => '查询快照列表',
+ 'apiName' => 'DescribeCostInfoByDbsInstance',
+ 'description' => '根据dbs实例id获取收费详情。',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DescribeSandboxBackupSets',
+ 'action' => 'dbs:DescribeCostInfoByDbsInstance',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
- 'apiName' => 'RetryDownloadTask',
- 'description' => '重试高级下载任务',
+ 'apiName' => 'DescribeDownloadSupport',
+ 'description' => '查询当前实例是否支持高级下载',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:RetryDownloadTask',
+ 'action' => 'dbs:DescribeDownloadSupport',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'DescribeDownloadSupport',
- 'description' => '查询当前实例是否支持高级下载',
+ 'apiName' => 'DescribeDownloadBackupSetStorageInfo',
+ 'description' => '查看下载备份集的存储信息',
'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:DescribeDownloadSupport',
+ 'action' => 'dbs:DescribeDownloadBackupSetStorageInfo',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
],
],
],
[
- 'apiName' => 'ModifyBackupPolicy',
- 'description' => '修改备份策略',
- 'operationType' => 'update',
+ 'apiName' => 'DescribeDownloadTask',
+ 'description' => '查询下载任务列表',
+ 'operationType' => 'get',
'ramAction' => [
- 'action' => 'dbs:ModifyBackupPolicy',
- 'authLevel' => 'operate',
+ 'action' => 'dbs:DescribeDownloadTask',
+ 'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
- [
- 'validationType' => 'always',
- 'product' => 'DBS',
- 'resourceType' => '全部资源',
- 'arn' => '*',
- ],
+ ['validationType' => 'always', 'product' => 'DBS', 'resourceType' => 'DBInstance', 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}'],
],
],
],
],
'resourceTypes' => [
- [
- 'validationType' => 'always',
- 'resourceType' => 'DBInstance',
- 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}',
- ],
- [
- 'validationType' => 'always',
- 'resourceType' => 'BackupPlan',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}',
- ],
- [
- 'validationType' => 'always',
- 'resourceType' => 'DataSource',
- 'arn' => 'acs:dbs:{#regionId}:{#accountId}:',
- ],
+ ['validationType' => 'conditional', 'resourceType' => 'DBInstance', 'arn' => 'acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}'],
+ ['validationType' => 'always', 'resourceType' => 'BackupPlan', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}'],
+ ['validationType' => 'always', 'resourceType' => 'DataSource', 'arn' => 'acs:dbs:{#regionId}:{#accountId}:'],
],
],
];