diff options
Diffstat (limited to 'data/zh_cn/hdr/2017-09-25/api-docs.php')
| -rw-r--r-- | data/zh_cn/hdr/2017-09-25/api-docs.php | 6965 |
1 files changed, 2665 insertions, 4300 deletions
diff --git a/data/zh_cn/hdr/2017-09-25/api-docs.php b/data/zh_cn/hdr/2017-09-25/api-docs.php index d9b45b3..d78873a 100644 --- a/data/zh_cn/hdr/2017-09-25/api-docs.php +++ b/data/zh_cn/hdr/2017-09-25/api-docs.php @@ -1,233 +1,161 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'hdr', - 'version' => '2017-09-25', - ], + 'info' => ['style' => 'RPC', 'product' => 'hdr', 'version' => '2017-09-25'], 'directories' => [ [ - 'id' => 151406, - 'title' => '服务器管理', + 'children' => ['RegisterServers', 'UnregisterServer', 'DescribeServer', 'DescribeServers'], 'type' => 'directory', - 'children' => [ - 'RegisterServers', - 'UnregisterServer', - 'DescribeServer', - 'DescribeServers', - ], + 'title' => '服务器管理', + 'id' => 307586, ], [ - 'id' => 151411, - 'title' => '站点对管理', + 'children' => ['DescribeSitePairs', 'DescribeSite', 'DeleteSitePair', 'CreateSitePair', 'DescribeSitePair'], 'type' => 'directory', - 'children' => [ - 'DescribeSitePairs', - 'DescribeSite', - 'DeleteSitePair', - 'CreateSitePair', - 'DescribeSitePair', - ], + 'title' => '站点对管理', + 'id' => 307591, ], [ - 'id' => 151417, - 'title' => '故障切换', + 'children' => ['EnableReplication', 'DisableReplication', 'TestFailover', 'TestCleanup', 'DescribeRecoveryPoints', 'ChangeRecoveryPoint', 'CommitFailover', 'ForcedFailover'], 'type' => 'directory', - 'children' => [ - 'EnableReplication', - 'DisableReplication', - 'TestFailover', - 'TestCleanup', - 'DescribeRecoveryPoints', - 'ChangeRecoveryPoint', - 'CommitFailover', - 'ForcedFailover', - ], + 'title' => '故障切换', + 'id' => 307597, ], [ - 'id' => 151426, - 'title' => '故障恢复', + 'children' => ['TriggerReversedRegister', 'DescribeInfrastructures', 'ReversedEnableReplication', 'ReversedDisableReplication', 'Failback'], 'type' => 'directory', - 'children' => [ - 'TriggerReversedRegister', - 'DescribeInfrastructures', - 'ReversedEnableReplication', - 'ReversedDisableReplication', - 'Failback', - ], + 'title' => '故障恢复', + 'id' => 307606, ], [ - 'id' => 180810, - 'title' => '恢复计划', + 'children' => ['CreateRecoveryPlan', 'DeleteRecoveryPlan', 'DescribeRecoveryPlan', 'DescribeRecoveryPlans', 'UpdateRecoveryPlan'], 'type' => 'directory', - 'children' => [ - 'CreateRecoveryPlan', - 'DeleteRecoveryPlan', - 'DescribeRecoveryPlan', - 'DescribeRecoveryPlans', - 'UpdateRecoveryPlan', - ], + 'title' => '恢复计划', + 'id' => 307616, ], [ - 'id' => 151432, - 'title' => '其它', + 'children' => ['DescribeAvailableInstanceTypes', 'DescribeTask'], 'type' => 'directory', - 'children' => [ - 'DescribeAvailableInstanceTypes', - 'DescribeTasks', - 'DescribeTask', - ], + 'title' => '其它', + 'id' => 307612, ], [ - 'id' => 193000, - 'title' => '其他', + 'children' => ['DescribeSitePairStatistics', 'DescribeSummary', 'DescribeTasks'], 'type' => 'directory', - 'children' => [ - 'DescribeSitePairStatistics', - 'DescribeSummary', - ], + 'title' => '其他', + 'id' => 307622, ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'RegisterServers' => [ - 'summary' => '添加受保护服务器。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ChangeRecoveryPoint' => [ + 'summary' => '更换恢复点。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrE49XN0', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ - 'name' => 'SitePairId', + 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'title' => '站点对ID', - 'description' => '站点对ID', - 'type' => 'string', - 'required' => false, - 'example' => 's-000cm9ax8sgzwujrzdwt', - ], + 'schema' => ['description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-000bak4sdet6gv8q0c2j'], ], [ - 'name' => 'ServerInstancesInfo', + 'name' => 'RecoveryInstanceName', 'in' => 'query', - 'schema' => [ - 'title' => '注册服务器信息', - 'description' => '注册服务器信息', - 'type' => 'string', - 'required' => false, - 'example' => '"[{\\"instanceId\\":\\"i-uf60ngpe9sseu5gsgu45\\",\\"privateIpAddress\\":\\"192.168.1.198\\",\\"osType\\":\\"linux\\",\\"osName\\":\\"CentOS 7.8 64位\\",\\"cpu\\":2,\\"memory\\":4294967296,\\"hostName\\":\\"hdr-test\\"}]"', - ], + 'schema' => ['description' => '恢复的实例名称', 'type' => 'string', 'required' => false, 'example' => 'HDR_Recovery-sr-000c9550g8gycc8oi4fb-cpr'], ], [ - 'name' => 'AgentPort', + 'name' => 'RecoveryCpu', 'in' => 'query', - 'schema' => [ - 'title' => '代理服务端口,默认9080', - 'description' => '代理服务端口,默认9080', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '9080', - 'default' => '9080', - ], + 'schema' => ['description' => '恢复的实例CPU核数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'], ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '返回结果码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'D76E741C-68B7-5281-8C5B-698AD06B0D89', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-0001nlbcl4bynbb67x4w', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', - ], - ], - ], + [ + 'name' => 'RecoveryMemory', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例内存大小', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '4294967296'], ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"D76E741C-68B7-5281-8C5B-698AD06B0D89\\",\\n \\"TaskId\\": \\"t-0001nlbcl4bynbb67x4w\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '添加受保护服务器', - ], - 'UnregisterServer' => [ - 'summary' => '注销受保护服务器。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'RecoveryInstanceType', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例规格', 'type' => 'string', 'required' => false, 'example' => 'ecs.r6.3xlarge'], ], - ], - 'operationType' => 'write', - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', + [ + 'name' => 'RecoveryUseSsd', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例是否使用SSD', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], - ], - 'parameters' => [ [ - 'name' => 'ServerId', + 'name' => 'RecoveryUseEssd', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例是否使用ESSD', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + ], + [ + 'name' => 'RecoveryNetwork', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例所在的VSwitch ID', 'type' => 'string', 'required' => false, 'example' => 'vsw-uf61v3bg6r790ir22jqv4'], + ], + [ + 'name' => 'RecoveryReserveIp', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例是否保留源机IP', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + ], + [ + 'name' => 'RecoveryUseDhcp', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例是否使用DHCP分配IP', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + ], + [ + 'name' => 'RecoveryIpAddress', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例手动指定IP', 'type' => 'string', 'required' => false, 'example' => '192.168.2.2'], + ], + [ + 'name' => 'RecoveryPostScriptType', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例启动后执行的脚本类型', 'type' => 'string', 'required' => false, 'example' => 'SHELL'], + ], + [ + 'name' => 'RecoveryPostScriptContent', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例启动后执行的脚本内容', 'type' => 'string', 'required' => false, 'example' => 'echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts'], + ], + [ + 'name' => 'RecoveryPointId', + 'in' => 'query', + 'schema' => ['description' => '恢复点ID', 'type' => 'string', 'required' => false, 'example' => 'rp-0001625ljmig7ahibe0y'], + ], + [ + 'name' => 'RecoveryPointTime', + 'in' => 'query', + 'schema' => ['description' => '恢复点时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1637002799'], + ], + [ + 'name' => 'EipAddressId', + 'in' => 'query', + 'schema' => ['description' => '恢复的实例绑定的弹性网卡ID', 'type' => 'string', 'required' => false, 'example' => 'eip-2zelae2qye2ztjfj82f9z'], + ], + [ + 'name' => 'RecoveryEssdPerformanceLevel', 'in' => 'query', 'schema' => [ - 'description' => '受保护服务器ID', + 'description' => 'ESSD盘的PL等级,支持的PL等级按照最小的云盘大小进行判断', 'type' => 'string', - 'required' => true, - 'example' => 'sr-000jf20efavec47ucq5g', + 'required' => false, + 'example' => 'PL1', + 'default' => 'PL1', + 'enum' => ['PL0', 'PL1', 'PL2', 'PL3'], ], ], ], @@ -236,71 +164,58 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'D2E81EC9-B206-54EA-BBCF-9D4D6AFE7AA8', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'BBCC4082-98DF-5804-96C6-0E74C37C5867'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-0007wl5r0hvxrj68rrbg'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"D2E81EC9-B206-54EA-BBCF-9D4D6AFE7AA8\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '注销受保护服务器', - ], - 'DescribeServer' => [ - 'summary' => '查询受保护服务器。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"BBCC4082-98DF-5804-96C6-0E74C37C5867\\",\\n \\"TaskId\\": \\"t-0007wl5r0hvxrj68rrbg\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '更换恢复点', + 'changeSet' => [ + ['createdAt' => '2024-01-09T05:42:17.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-01-09T06:59:39.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '请求参数发生变更、错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:ChangeRecoveryPoint', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CommitFailover' => [ + 'summary' => '确认故障切换。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrKVSJIZ', 'FEATUREhdrEJMNXE', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-0005qxusucbiga738e9s', - ], + 'schema' => ['description' => '受保护的服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-000bzkmmlwghq3soqry2'], ], ], 'responses' => [ @@ -308,396 +223,127 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'PrimarySiteId' => [ - 'description' => '主站站点ID', - 'type' => 'string', - 'example' => 'si-0001jntih0phb0i2w1ya', - ], - 'ServerId' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'example' => 'sr-0005qxusucbiip0g6t93', - ], - 'RecoveryUseDhcp' => [ - 'description' => '恢复是否使用DHCP自动分配IP', - 'type' => 'boolean', - 'example' => 'false', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'BBCC4082-98DF-5804-96C6-0E74C37C5867', - ], - 'RecoveryMemory' => [ - 'description' => '故障切换使用的实例内存大小', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4294967296', - ], - 'SourceGatewayVersion' => [ - 'description' => '主站网关版本', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'IncrementalSyncStartTime' => [ - 'description' => '增量复制开始时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'CrashConsistentPointPolicy' => [ - 'description' => '恢复点策略', - 'type' => 'string', - 'example' => '{\\"scheduleType\\":\\"CRON\\",\\"expression\\":\\"0 0 */1 * * 0,1,2,3,4,5,6\\",\\"initialDelay\\":0}', - ], - 'Success' => [ - 'description' => '请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'RecoveryPostScriptContent' => [ - 'description' => '故障切换的实例启动后执行的脚本内容', - 'type' => 'string', - 'example' => 'echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts', - ], - 'TestRecoveredInstanceId' => [ - 'description' => '容灾演练的实例ID', - 'type' => 'string', - 'example' => 'i-bp13zgzv13am2n2z92lb', - ], - 'ReplicationNetwork' => [ - 'description' => '复制网络VSwitch ID', - 'type' => 'string', - 'example' => 'vsw-bp1g0s2u3b2kbn46kiy53', - ], - 'RecoveryUseEssd' => [ - 'description' => '故障切换的实例云盘类型是否使用ESSD', - 'type' => 'boolean', - 'example' => 'false', - ], - 'TargetGatewayVersion' => [ - 'description' => '目的端网关版本', - 'type' => 'string', - 'example' => 'i-bp13zgzv13am2n2z92lb', - ], - 'OsType' => [ - 'description' => '操作系统类型', - 'type' => 'string', - 'example' => 'linux', - ], - 'FullSyncStartTime' => [ - 'description' => '全量复制开始时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'ReplicationUseSsd' => [ - 'description' => '复影实例是否使用SSD云盘', - 'type' => 'boolean', - 'example' => 'false', - ], - 'Rpo' => [ - 'description' => '恢复时间目标,单位秒', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '45', - ], - 'Consistent' => [ - 'description' => '是否处于一致性状态', - 'type' => 'boolean', - 'example' => 'false', - ], - 'FullSyncTotalSize' => [ - 'description' => '全量复制大小,单位B', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '365072220160', - ], - 'RecoveredIpAddress' => [ - 'description' => '容灾切换的实例IP', - 'type' => 'string', - 'example' => '192.168.2.2', - ], - 'Alias' => [ - 'description' => '别名', - 'type' => 'string', - 'example' => 'bsdewmpci_rz', - ], - 'Status' => [ - 'description' => '实例状态', - 'type' => 'string', - 'example' => 'replicating', - ], - 'TestFailoverStatus' => [ - 'description' => '容灾演练状态', - 'type' => 'string', - 'example' => 'testFailovered', - ], - 'ReplicationUseEssd' => [ - 'description' => '复影实例是否使用ESSD云盘', - 'type' => 'boolean', - 'example' => 'false', - ], - 'OsDetail' => [ - 'description' => '操作系统详情', - 'type' => 'string', - 'example' => 'CentOS;7.9.2009', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'TestRecoveredIpAddress' => [ - 'description' => '容灾演练的机器IP地址', - 'type' => 'string', - 'example' => '192.168.2.2', - ], - 'SecondarySiteId' => [ - 'description' => '从站站点ID', - 'type' => 'string', - 'example' => 'si-000imvpcegvbh6i5kd2u', - ], - 'FullSyncProgress' => [ - 'description' => '全量复制进度百分比', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '17', - ], - 'RecoveryInstanceType' => [ - 'description' => '故障切换的实例规格', - 'type' => 'string', - 'example' => 'ecs.c5.2xlarge', - ], - 'IpAddress' => [ - 'description' => '受保护服务器IP地址', - 'type' => 'string', - 'example' => '30.42.105.6', - ], - 'RecoveryInstanceName' => [ - 'description' => '故障切换的实例名称', - 'type' => 'string', - 'example' => 'HDR_Recovery-sr-000bzkmmlwghq3soqry2', - ], - 'OriginalInstanceId' => [ - 'description' => '源端实例ID', - 'type' => 'string', - 'example' => 'i-bp19axn91irnsi9204xg', - ], - 'RecoveredInstanceId' => [ - 'description' => '容灾切换的实例ID', - 'type' => 'string', - 'example' => 'i-bp19axn91irnsi9204xg', - ], - 'RecoveryReserveIp' => [ - 'description' => '演练实例是否保留源机的IP(需要演练所在的VSwitch包含相应网段)', - 'type' => 'boolean', - 'example' => 'false', - ], - 'Code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => '200', - ], - 'Memory' => [ - 'description' => '内存大小', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '8589934591', - ], - 'RecoveryIpAddress' => [ - 'description' => '故障切换的实例手动设置IP', - 'type' => 'string', - 'example' => '192.168.2.2', - ], - 'RecoveryNetwork' => [ - 'description' => '故障切换的实例所在的VSwitch ID', - 'type' => 'string', - 'example' => 'vsw-uf61v3bg6r790ir22jqv4', - ], - 'Errno' => [ - 'description' => '出错原因', - 'type' => 'string', - 'example' => 'cdr.console.plugin.failed_to_connect', - ], - 'ReplicationUseOriginalInstance' => [ - 'description' => '反向复制使用源机', - 'type' => 'boolean', - 'example' => 'false', - ], - 'Hostname' => [ - 'description' => '主机名称', - 'type' => 'string', - 'example' => 'iZ2ze0jazgwtuxettbk1ywZ', - ], - 'RecoveryCpu' => [ - 'description' => '故障切换的实例CPU核数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'AgentPort' => [ - 'description' => '客户端代理端口', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '9080', - ], - 'ReplicationUseDhcp' => [ - 'description' => '复制是否使用DHCP。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'TestRecoveredInstanceName' => [ - 'description' => '容灾演练的实例名称', - 'type' => 'string', - 'example' => 'HDR_Recovery-sr-000c2rz7q8tak59pt6sw', - ], - 'AgentVersion' => [ - 'description' => '客户端版本', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'FullSyncCurrentSize' => [ - 'description' => '全量复制已完成大小,单位B', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3285276688384', - ], - 'ReplicationInfrastructureType' => [ - 'description' => '复制使用的基础设施类型', - 'type' => 'string', - 'example' => 'aliyun', - ], - 'Cpu' => [ - 'description' => 'CPU核数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'RecoveryPostScriptType' => [ - 'description' => '演练实例启动后执行脚本类型,可选项:SHELL', - 'type' => 'string', - 'example' => 'SHELL', - ], - 'ReplicationInfrastructureId' => [ - 'description' => '目标站点基础设施ID', - 'type' => 'string', - 'example' => 'is-000bzkmmlwgibbduuoff', - ], - 'ConnectionStatus' => [ - 'description' => '连接状态', - 'type' => 'string', - 'example' => 'connected', - ], - 'Operations' => [ - 'description' => '支持的操作', - 'type' => 'string', - 'example' => '"{\\"Resynchronize\\":true,\\"TestFailover\\":true,\\"TestCleanup\\":true,\\"ChangeRecoveryPoint\\":true,\\"UnregisterServer\\":true,\\"ReversedEnableReplication\\":true,\\"ReversedDisableReplication\\":true,\\"DisableReplication\\":true,\\"CommitFailover\\":true,\\"RestartServer\\":true,\\"UpgradeServer\\":true,\\"ForcedFailover\\":true,\\"RepairReplication\\":true,\\"EnableReplication\\":true,\\"TriggerReversedRegister\\":true,\\"SetupAgent\\":true,\\"TriggerRegister\\":true,\\"CollectSupportBundle\\":true,\\"Failback\\":true}"', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-0004ka624vrza82g46ne', - ], - 'RecoveryUseSsd' => [ - 'description' => '故障切换的实例云盘类型是否使用SSD', - 'type' => 'boolean', - 'example' => 'false', - ], - 'Disks' => [ - 'description' => '磁盘信息例表。', - 'type' => 'string', - 'example' => '[{\\"id\\":\\"0\\",\\"boot\\":true,\\"size\\":500363689984}]', - ], - 'RecoveryEssdPerformanceLevel' => [ - 'description' => '演练、切换实例使用ESSD选定的PL等级', - 'type' => 'string', - 'example' => 'PL1', - ], - 'LatestRecoveryPointTime' => [ - 'description' => '最近一次创建恢复点的时间', - 'type' => 'string', - 'example' => '1661419052', - ], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '18603D03-FEA4-5FA8-878F-B03F11578F5F'], + 'TaskId' => ['description' => '任务ID', 'type' => 'string', 'example' => 't-0007wl5r0hvxrj68rrbg'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PrimarySiteId\\": \\"si-0001jntih0phb0i2w1ya\\",\\n \\"ServerId\\": \\"sr-0005qxusucbiip0g6t93\\",\\n \\"RecoveryUseDhcp\\": false,\\n \\"RequestId\\": \\"BBCC4082-98DF-5804-96C6-0E74C37C5867\\",\\n \\"RecoveryMemory\\": 4294967296,\\n \\"SourceGatewayVersion\\": \\"3.7.3\\",\\n \\"IncrementalSyncStartTime\\": 0,\\n \\"CrashConsistentPointPolicy\\": \\"{\\\\\\\\\\\\\\"scheduleType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"CRON\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"expression\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"0 0 */1 * * 0,1,2,3,4,5,6\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"initialDelay\\\\\\\\\\\\\\":0}\\",\\n \\"Success\\": true,\\n \\"RecoveryPostScriptContent\\": \\"echo \\\\\\\\\\\\\\"127.0.0.1 kubernetes.docker.internal\\\\\\\\\\\\\\" >> /etc/hosts\\",\\n \\"TestRecoveredInstanceId\\": \\"i-bp13zgzv13am2n2z92lb\\",\\n \\"ReplicationNetwork\\": \\"vsw-bp1g0s2u3b2kbn46kiy53\\",\\n \\"RecoveryUseEssd\\": false,\\n \\"TargetGatewayVersion\\": \\"i-bp13zgzv13am2n2z92lb\\",\\n \\"OsType\\": \\"linux\\",\\n \\"FullSyncStartTime\\": 0,\\n \\"ReplicationUseSsd\\": false,\\n \\"Rpo\\": 45,\\n \\"Consistent\\": false,\\n \\"FullSyncTotalSize\\": 365072220160,\\n \\"RecoveredIpAddress\\": \\"192.168.2.2\\",\\n \\"Alias\\": \\"bsdewmpci_rz\\",\\n \\"Status\\": \\"replicating\\",\\n \\"TestFailoverStatus\\": \\"testFailovered\\",\\n \\"ReplicationUseEssd\\": false,\\n \\"OsDetail\\": \\"CentOS;7.9.2009\\",\\n \\"Message\\": \\"successful\\",\\n \\"TestRecoveredIpAddress\\": \\"192.168.2.2\\",\\n \\"SecondarySiteId\\": \\"si-000imvpcegvbh6i5kd2u\\",\\n \\"FullSyncProgress\\": 17,\\n \\"RecoveryInstanceType\\": \\"ecs.c5.2xlarge\\",\\n \\"IpAddress\\": \\"30.42.105.6\\",\\n \\"RecoveryInstanceName\\": \\"HDR_Recovery-sr-000bzkmmlwghq3soqry2\\",\\n \\"OriginalInstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"RecoveredInstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"RecoveryReserveIp\\": false,\\n \\"Code\\": \\"200\\",\\n \\"Memory\\": 8589934591,\\n \\"RecoveryIpAddress\\": \\"192.168.2.2\\",\\n \\"RecoveryNetwork\\": \\"vsw-uf61v3bg6r790ir22jqv4\\",\\n \\"Errno\\": \\"cdr.console.plugin.failed_to_connect\\",\\n \\"ReplicationUseOriginalInstance\\": false,\\n \\"Hostname\\": \\"iZ2ze0jazgwtuxettbk1ywZ\\",\\n \\"RecoveryCpu\\": 4,\\n \\"AgentPort\\": 9080,\\n \\"ReplicationUseDhcp\\": false,\\n \\"TestRecoveredInstanceName\\": \\"HDR_Recovery-sr-000c2rz7q8tak59pt6sw\\",\\n \\"AgentVersion\\": \\"3.7.3\\",\\n \\"FullSyncCurrentSize\\": 3285276688384,\\n \\"ReplicationInfrastructureType\\": \\"aliyun\\",\\n \\"Cpu\\": 4,\\n \\"RecoveryPostScriptType\\": \\"SHELL\\",\\n \\"ReplicationInfrastructureId\\": \\"is-000bzkmmlwgibbduuoff\\",\\n \\"ConnectionStatus\\": \\"connected\\",\\n \\"Operations\\": \\"\\\\\\"{\\\\\\\\\\\\\\"Resynchronize\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TestFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TestCleanup\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ChangeRecoveryPoint\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"UnregisterServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ReversedEnableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ReversedDisableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"DisableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"CommitFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"RestartServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"UpgradeServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ForcedFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"RepairReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"EnableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TriggerReversedRegister\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"SetupAgent\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TriggerRegister\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"CollectSupportBundle\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"Failback\\\\\\\\\\\\\\":true}\\\\\\"\\",\\n \\"TaskId\\": \\"t-0004ka624vrza82g46ne\\",\\n \\"RecoveryUseSsd\\": false,\\n \\"Disks\\": \\"[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"boot\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"size\\\\\\\\\\\\\\":500363689984}]\\",\\n \\"RecoveryEssdPerformanceLevel\\": \\"PL1\\",\\n \\"LatestRecoveryPointTime\\": \\"1661419052\\"\\n}","type":"json"}]', - 'title' => '查询受保护服务器', - ], - 'DescribeServers' => [ - 'summary' => '查询受保护服务器。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"18603D03-FEA4-5FA8-878F-B03F11578F5F\\",\\n \\"TaskId\\": \\"t-0007wl5r0hvxrj68rrbg\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '确认故障切换', + 'changeSet' => [ + ['createdAt' => '2024-01-09T05:42:18.000Z', 'description' => '错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:CommitFailover', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateRecoveryPlan' => [ + 'summary' => '创建恢复计划。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'list', + 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'SitePairId', 'in' => 'query', - 'schema' => [ - 'description' => '站点对ID', - 'type' => 'string', - 'required' => false, - 'example' => 's-0007rvzart0u501t4e5r', - ], + 'schema' => ['description' => '站点对ID。', 'type' => 'string', 'required' => false, 'example' => 's-xxxxxxxxxxxxxxxxxx'], ], [ - 'name' => 'ServerIds', + 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '受保护服务器ID列表', - 'type' => 'string', - 'required' => false, - 'example' => '"[\\"sr-0005qxusucbi38lqfc2q\\",\\"sr-0005qxusucbi38lqfc2r\\"]"', - ], + 'schema' => ['description' => '恢复计划名称。', 'type' => 'string', 'required' => false, 'example' => 'test1'], ], [ - 'name' => 'PageNumber', + 'name' => 'Direction', 'in' => 'query', - 'schema' => [ - 'description' => '分页参数:当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => '恢复计划的方向,支持**forward**。', 'type' => 'string', 'required' => false, 'example' => 'forward'], ], [ - 'name' => 'PageSize', + 'name' => 'Content', 'in' => 'query', - 'schema' => [ - 'description' => '分页参数:每页显示条数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['description' => '恢复计划详情。', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .' "groups": ['."\n" + .' {'."\n" + .' "name": "Group-1",'."\n" + .' "id": "Group-1",'."\n" + .' "servers": ['."\n" + .' {'."\n" + .' "name": "sr-xxxxxxxxxxxxxxxxxx",'."\n" + .' "serverId": "sr-xxxxxxxxxxxxxxxxxx",'."\n" + .' "testFailoverAction": {'."\n" + .' "eipAddressId": "",'."\n" + .' "recoveryPostScriptContent": "",'."\n" + .' "recoveryPostScriptType": "POWERSHELL",'."\n" + .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo",'."\n" + .' "recoveryCpu": 2,'."\n" + .' "recoveryMemory": 4294967296,'."\n" + .' "recoveryUseEssd": false,'."\n" + .' "recoveryUseSsd": false,'."\n" + .' "recoveryReserveIp": false,'."\n" + .' "recoveryUseDhcp": true,'."\n" + .' "recoveryIpAddress": "",'."\n" + .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" + .' },'."\n" + .' "testCleanupAction": {},'."\n" + .' "changeRecoveryPointAction": {'."\n" + .' "eipAddressId": "",'."\n" + .' "recoveryPostScriptContent": "",'."\n" + .' "recoveryPostScriptType": "POWERSHELL",'."\n" + .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr",'."\n" + .' "recoveryCpu": 2,'."\n" + .' "recoveryMemory": 4294967296,'."\n" + .' "recoveryUseEssd": false,'."\n" + .' "recoveryUseSsd": false,'."\n" + .' "recoveryReserveIp": false,'."\n" + .' "recoveryUseDhcp": true,'."\n" + .' "recoveryIpAddress": "",'."\n" + .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" + .' },'."\n" + .' "forcedFailoverAction": {'."\n" + .' "eipAddressId": "",'."\n" + .' "recoveryPostScriptContent": "",'."\n" + .' "recoveryPostScriptType": "POWERSHELL",'."\n" + .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo",'."\n" + .' "recoveryCpu": 2,'."\n" + .' "recoveryMemory": 4294967296,'."\n" + .' "recoveryUseEssd": false,'."\n" + .' "recoveryUseSsd": false,'."\n" + .' "recoveryReserveIp": false,'."\n" + .' "recoveryUseDhcp": true,'."\n" + .' "recoveryIpAddress": "",'."\n" + .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .'}'], ], ], 'responses' => [ @@ -705,395 +351,50 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => 'D2B255D3-9736-5169-B488-C735A8BBCD79', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageSize' => [ - 'description' => '分页查询时每页的行数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => '页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'TotalCount' => [ - 'description' => '总条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'Servers' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'server' => [ - 'description' => '受保护服务器信息', - 'type' => 'array', - 'items' => [ - 'description' => '受保护服务器信息', - 'type' => 'object', - 'properties' => [ - 'RecoveredInstanceName' => [ - 'description' => '容灾切换实例名称', - 'type' => 'string', - 'example' => 'recovered_server', - ], - 'PrimarySiteId' => [ - 'description' => '主站站点ID', - 'type' => 'string', - 'example' => 'si-000cm9ax8sgplgye2vc4', - ], - 'ServerId' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'example' => 'sr-000cm9ax8sh2381wa7kv', - ], - 'RecoveryUseDhcp' => [ - 'description' => '容灾切换的实例是否使用DHCP分配IP', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RecoveryMemory' => [ - 'description' => '容灾切换的实例内存大小', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '8589934592', - ], - 'SourceGatewayVersion' => [ - 'description' => '主站网关版本', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'IncrementalSyncStartTime' => [ - 'description' => '增量复制开始时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1646049677', - ], - 'CrashConsistentPointPolicy' => [ - 'description' => '恢复点策略', - 'type' => 'string', - 'example' => '"{\\"scheduleType\\":\\"CRON\\",\\"expression\\":\\"0 0 */1 * * 0,1,2,3,4,5,6\\",\\"initialDelay\\":0}"', - ], - 'RecoveryPostScriptContent' => [ - 'description' => '容灾演练、容灾切换等机器启动后执行的脚本内容', - 'type' => 'string', - 'example' => '"echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts"', - ], - 'TestRecoveredInstanceId' => [ - 'description' => '容灾演练的实例ID', - 'type' => 'string', - 'example' => 'i-bp13zgzv13am2n2z92lb', - ], - 'ReplicationNetwork' => [ - 'description' => '复影服务器所在的VSwitch ID', - 'type' => 'string', - 'example' => 'vsw-2zey7xe0m8dbqrks2jb9h', - ], - 'RecoveryUseEssd' => [ - 'description' => '容灾演练、容灾切换的实例是否使用ESSD', - 'type' => 'boolean', - 'example' => 'false', - ], - 'TargetGatewayVersion' => [ - 'description' => '目的端网关版本', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'OsType' => [ - 'description' => '操作系统类型', - 'type' => 'string', - 'example' => 'linux', - ], - 'FullSyncStartTime' => [ - 'description' => '全量复制开始时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'ReplicationUseSsd' => [ - 'description' => '复影服务器是否使用SSD', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Rpo' => [ - 'description' => '恢复时间目标,单位秒', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'Consistent' => [ - 'description' => '是否处于一致性状态', - 'type' => 'boolean', - 'example' => 'true', - ], - 'FullSyncTotalSize' => [ - 'description' => '全量复制大小,单位B', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '150202220544', - ], - 'RecoveredIpAddress' => [ - 'description' => '容灾切换的实例IP', - 'type' => 'string', - 'example' => '192.168.2.2', - ], - 'Alias' => [ - 'description' => '别名', - 'type' => 'string', - 'example' => 'test-ecs', - ], - 'Status' => [ - 'description' => '状态', - 'type' => 'string', - 'example' => 'replicating', - ], - 'TestFailoverStatus' => [ - 'description' => '容灾演练状态', - 'type' => 'string', - 'example' => 'testFailovered', - ], - 'ReplicationUseEssd' => [ - 'description' => '复影服务器是否使用ESSD', - 'type' => 'boolean', - 'example' => 'false', - ], - 'OsDetail' => [ - 'description' => '操作系统详情', - 'type' => 'string', - 'example' => 'CentOS;7.9.2009', - ], - 'TestRecoveredIpAddress' => [ - 'description' => '容灾演练的机器IP地址', - 'type' => 'string', - 'example' => '192.168.2.2', - ], - 'SecondarySiteId' => [ - 'description' => '从站站点ID', - 'type' => 'string', - 'example' => 'si-0007o5em8n6mhm8hee1l', - ], - 'FullSyncProgress' => [ - 'description' => '全量复制进度百分比', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'RecoveryInstanceType' => [ - 'description' => '容灾切换的实例规格', - 'type' => 'string', - 'example' => 'ecs.r6.3xlarge', - ], - 'IpAddress' => [ - 'description' => '内网IP地址', - 'type' => 'string', - 'example' => '30.42.105.6', - ], - 'RecoveryInstanceName' => [ - 'description' => '容灾切换的实例名称', - 'type' => 'string', - 'example' => 'HDR_Recovery-sr-000c2rz7q8tak59pt6sw', - ], - 'OriginalInstanceId' => [ - 'description' => '源端实例ID', - 'type' => 'string', - 'example' => 'i-bp19axn91irnsi9204xg', - ], - 'InstanceId' => [ - 'description' => 'ECS实例ID', - 'type' => 'string', - 'example' => 'i-bp19axn91irnsi9204xg', - ], - 'RecoveredInstanceId' => [ - 'description' => '容灾切换的实例ID', - 'type' => 'string', - 'example' => 'i-bp19axn91irnsi9204xg', - ], - 'RecoveryReserveIp' => [ - 'description' => '容灾切换实例保留源端IP', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Memory' => [ - 'description' => '内存大小', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4294967295', - ], - 'RecoveryIpAddress' => [ - 'description' => '容灾切换设置的手动IP地址', - 'type' => 'string', - 'example' => '192.168.2.2', - ], - 'RecoveryNetwork' => [ - 'description' => '复影服务器所在的虚拟交换机ID', - 'type' => 'string', - 'example' => 'vsw-uf63qu8ocjcly44tai570', - ], - 'Errno' => [ - 'description' => '出错原因', - 'type' => 'string', - 'example' => 'cdr.console.plugin.alicloud.agent_deploy_already_installed', - ], - 'ReplicationUseOriginalInstance' => [ - 'description' => '复影服务器使用源机,仅反向复制时有效', - 'type' => 'boolean', - 'example' => 'false', - ], - 'Hostname' => [ - 'description' => '主机名称', - 'type' => 'string', - 'example' => 'test', - ], - 'RecoveryCpu' => [ - 'description' => '容灾切换的实例CPU核数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'AgentPort' => [ - 'description' => '客户端代理端口', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '9080', - ], - 'ReplicationUseDhcp' => [ - 'description' => '复影服务器使用DHCP分配IP', - 'type' => 'boolean', - 'example' => 'false', - ], - 'TestRecoveredInstanceName' => [ - 'description' => '容灾演练的实例名称', - 'type' => 'string', - 'example' => 'HDR_Recovery-sr-000c2rz7q8tak59pt6sw', - ], - 'AgentVersion' => [ - 'description' => '客户端版本', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'FullSyncCurrentSize' => [ - 'description' => '全量复制已完成大小,单位B', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1603469836288', - ], - 'ReplicationInfrastructureType' => [ - 'description' => '复制使用的基础设施类型', - 'type' => 'string', - 'example' => 'aliyun', - ], - 'Cpu' => [ - 'description' => 'CPU核数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'RecoveryPostScriptType' => [ - 'description' => '容灾切换的实例启动后执行的脚本类型', - 'type' => 'string', - 'example' => 'SHELL', - ], - 'ReplicationInfrastructureId' => [ - 'description' => '复制使用的基础设施ID', - 'type' => 'string', - 'example' => 'is-0004ka624vrxd9xsvs4f', - ], - 'ConnectionStatus' => [ - 'description' => '连接状态', - 'type' => 'string', - 'example' => 'connected', - ], - 'Operations' => [ - 'description' => '该实例支持与禁用的操作列表', - 'type' => 'string', - 'example' => '"{\\"Resynchronize\\":true,\\"TestFailover\\":true,\\"TestCleanup\\":true,\\"ChangeRecoveryPoint\\":true,\\"UnregisterServer\\":true,\\"ReversedEnableReplication\\":true,\\"ReversedDisableReplication\\":true,\\"DisableReplication\\":true,\\"CommitFailover\\":true,\\"RestartServer\\":true,\\"UpgradeServer\\":true,\\"ForcedFailover\\":true,\\"RepairReplication\\":true,\\"EnableReplication\\":true,\\"TriggerReversedRegister\\":true,\\"SetupAgent\\":true,\\"TriggerRegister\\":true,\\"CollectSupportBundle\\":true,\\"Failback\\":true}"', - ], - 'TaskId' => [ - 'description' => '正在执行的任务ID', - 'type' => 'string', - 'example' => 't-0007rvzart0v31c0x93q', - ], - 'RecoveryUseSsd' => [ - 'description' => '容灾切换的实例是否使用SSD', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Disks' => [ - 'description' => '磁盘信息列表', - 'type' => 'string', - 'example' => '[{\\"id\\":\\"0\\",\\"boot\\":true,\\"size\\":500363689984}]', - ], - 'RecoveryEssdPerformanceLevel' => [ - 'description' => '演练、切换使用ESSD时选定的PL等级', - 'type' => 'string', - 'example' => 'PL3', - ], - 'LatestRecoveryPointTime' => [ - 'description' => '最近一次创建恢复点的时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1661419052', - ], - ], - ], - ], - ], - ], + 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'FEC3D491-15BB-5C8F-902E-773794FF1B29'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-00055g8sxr0ys0g99n83'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D2B255D3-9736-5169-B488-C735A8BBCD79\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 2,\\n \\"TotalCount\\": 10,\\n \\"Servers\\": {\\n \\"server\\": [\\n {\\n \\"RecoveredInstanceName\\": \\"recovered_server\\",\\n \\"PrimarySiteId\\": \\"si-000cm9ax8sgplgye2vc4\\",\\n \\"ServerId\\": \\"sr-000cm9ax8sh2381wa7kv\\",\\n \\"RecoveryUseDhcp\\": true,\\n \\"RecoveryMemory\\": 8589934592,\\n \\"SourceGatewayVersion\\": \\"3.7.3\\",\\n \\"IncrementalSyncStartTime\\": 1646049677,\\n \\"CrashConsistentPointPolicy\\": \\"\\\\\\"{\\\\\\\\\\\\\\"scheduleType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"CRON\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"expression\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"0 0 */1 * * 0,1,2,3,4,5,6\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"initialDelay\\\\\\\\\\\\\\":0}\\\\\\"\\",\\n \\"RecoveryPostScriptContent\\": \\"\\\\\\"echo \\\\\\\\\\\\\\"127.0.0.1 kubernetes.docker.internal\\\\\\\\\\\\\\" >> /etc/hosts\\\\\\"\\",\\n \\"TestRecoveredInstanceId\\": \\"i-bp13zgzv13am2n2z92lb\\",\\n \\"ReplicationNetwork\\": \\"vsw-2zey7xe0m8dbqrks2jb9h\\",\\n \\"RecoveryUseEssd\\": false,\\n \\"TargetGatewayVersion\\": \\"3.7.3\\",\\n \\"OsType\\": \\"linux\\",\\n \\"FullSyncStartTime\\": 0,\\n \\"ReplicationUseSsd\\": true,\\n \\"Rpo\\": 30,\\n \\"Consistent\\": true,\\n \\"FullSyncTotalSize\\": 150202220544,\\n \\"RecoveredIpAddress\\": \\"192.168.2.2\\",\\n \\"Alias\\": \\"test-ecs\\",\\n \\"Status\\": \\"replicating\\",\\n \\"TestFailoverStatus\\": \\"testFailovered\\",\\n \\"ReplicationUseEssd\\": false,\\n \\"OsDetail\\": \\"CentOS;7.9.2009\\",\\n \\"TestRecoveredIpAddress\\": \\"192.168.2.2\\",\\n \\"SecondarySiteId\\": \\"si-0007o5em8n6mhm8hee1l\\",\\n \\"FullSyncProgress\\": 0,\\n \\"RecoveryInstanceType\\": \\"ecs.r6.3xlarge\\",\\n \\"IpAddress\\": \\"30.42.105.6\\",\\n \\"RecoveryInstanceName\\": \\"HDR_Recovery-sr-000c2rz7q8tak59pt6sw\\",\\n \\"OriginalInstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"InstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"RecoveredInstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"RecoveryReserveIp\\": true,\\n \\"Memory\\": 4294967295,\\n \\"RecoveryIpAddress\\": \\"192.168.2.2\\",\\n \\"RecoveryNetwork\\": \\"vsw-uf63qu8ocjcly44tai570\\",\\n \\"Errno\\": \\"cdr.console.plugin.alicloud.agent_deploy_already_installed\\",\\n \\"ReplicationUseOriginalInstance\\": false,\\n \\"Hostname\\": \\"test\\",\\n \\"RecoveryCpu\\": 4,\\n \\"AgentPort\\": 9080,\\n \\"ReplicationUseDhcp\\": false,\\n \\"TestRecoveredInstanceName\\": \\"HDR_Recovery-sr-000c2rz7q8tak59pt6sw\\",\\n \\"AgentVersion\\": \\"3.7.3\\",\\n \\"FullSyncCurrentSize\\": 1603469836288,\\n \\"ReplicationInfrastructureType\\": \\"aliyun\\",\\n \\"Cpu\\": 4,\\n \\"RecoveryPostScriptType\\": \\"SHELL\\",\\n \\"ReplicationInfrastructureId\\": \\"is-0004ka624vrxd9xsvs4f\\",\\n \\"ConnectionStatus\\": \\"connected\\",\\n \\"Operations\\": \\"\\\\\\"{\\\\\\\\\\\\\\"Resynchronize\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TestFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TestCleanup\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ChangeRecoveryPoint\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"UnregisterServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ReversedEnableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ReversedDisableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"DisableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"CommitFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"RestartServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"UpgradeServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ForcedFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"RepairReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"EnableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TriggerReversedRegister\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"SetupAgent\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TriggerRegister\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"CollectSupportBundle\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"Failback\\\\\\\\\\\\\\":true}\\\\\\"\\",\\n \\"TaskId\\": \\"t-0007rvzart0v31c0x93q\\",\\n \\"RecoveryUseSsd\\": true,\\n \\"Disks\\": \\"[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"boot\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"size\\\\\\\\\\\\\\":500363689984}]\\",\\n \\"RecoveryEssdPerformanceLevel\\": \\"PL3\\",\\n \\"LatestRecoveryPointTime\\": 1661419052\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询受保护服务器', - ], - 'DescribeSitePairs' => [ - 'summary' => '查询站点对信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"FEC3D491-15BB-5C8F-902E-773794FF1B29\\",\\n \\"TaskId\\": \\"t-00055g8sxr0ys0g99n83\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '创建恢复计划', + 'changeSet' => [ + ['createdAt' => '2024-01-09T05:42:17.000Z', 'description' => '响应参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'hdr:CreateRecoveryPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateSitePair' => [ + 'summary' => '创建容灾站点对。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'list', + 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ @@ -1103,30 +404,59 @@ 'description' => '站点对类型', 'type' => 'string', 'required' => false, + 'enumValueTitles' => ['cloud2cloud' => 'cloud2cloud', 'zone2zone' => 'zone2zone'], 'example' => 'cloud2cloud', ], ], [ - 'name' => 'PageNumber', + 'name' => 'PrimarySiteName', 'in' => 'query', - 'schema' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '主站站点名称', 'type' => 'string', 'required' => false, 'example' => '杭州可用区G'], ], [ - 'name' => 'PageSize', + 'name' => 'PrimarySiteType', 'in' => 'query', - 'schema' => [ - 'description' => '分页查询时设置的每页行数,默认值为10。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '主站站点类型', 'type' => 'string', 'required' => false, 'example' => 'cloud'], + ], + [ + 'name' => 'PrimarySiteRegionId', + 'in' => 'query', + 'schema' => ['description' => '主站地域ID', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'], + ], + [ + 'name' => 'PrimarySiteVpcId', + 'in' => 'query', + 'schema' => ['description' => '主站VPC ID', 'type' => 'string', 'required' => false, 'example' => 'vpc-uf6j3rao8wkr7hb4uopv2'], + ], + [ + 'name' => 'PrimarySiteZoneId', + 'in' => 'query', + 'schema' => ['description' => '主站可用区ID,站点对类型为跨可用区容灾时有效', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-g'], + ], + [ + 'name' => 'SecondarySiteName', + 'in' => 'query', + 'schema' => ['description' => '从站站点名称', 'type' => 'string', 'required' => false, 'example' => '杭州可用区F'], + ], + [ + 'name' => 'SecondarySiteType', + 'in' => 'query', + 'schema' => ['description' => '从站站点类型', 'type' => 'string', 'required' => false, 'example' => 'cloud'], + ], + [ + 'name' => 'SecondarySiteRegionId', + 'in' => 'query', + 'schema' => ['description' => '从站地域ID', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'], + ], + [ + 'name' => 'SecondarySiteVpcId', + 'in' => 'query', + 'schema' => ['description' => '从站专有网络ID', 'type' => 'string', 'required' => false, 'example' => 'vpc-bp1wu55gbyqd7gh3yu3ey'], + ], + [ + 'name' => 'SecondarySiteZoneId', + 'in' => 'query', + 'schema' => ['description' => '从站可用区ID,仅站点对类型为跨可用区容灾时有效', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-i'], ], ], 'responses' => [ @@ -1134,191 +464,59 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '24CFBF97-EAD7-5D53-8D50-7F9E9D20C3A3', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageSize' => [ - 'description' => '分页查询时设置的每页行数,默认值为10。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'TotalCount' => [ - 'description' => '总数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '28', - ], - 'SitePairs' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'sitePair' => [ - 'description' => '站点对信息', - 'type' => 'array', - 'items' => [ - 'description' => '站点对信息', - 'type' => 'object', - 'properties' => [ - 'SitePairType' => [ - 'description' => '站点对类型', - 'type' => 'string', - 'example' => 'cloud2cloud', - ], - 'LocalSiteName' => [ - 'description' => '本地站点名称', - 'type' => 'string', - 'example' => 'local-site', - ], - 'SecondarySiteId' => [ - 'description' => '从站ID', - 'type' => 'string', - 'example' => 'si-0007nrkb2riv9yalg8s8', - ], - 'PrimarySiteId' => [ - 'description' => '主站ID', - 'type' => 'string', - 'example' => 'si-000as7kbj0cmlp3tt60m', - ], - 'Version' => [ - 'description' => '网关版本号', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'ServerCount' => [ - 'description' => '受保护服务器数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '14', - ], - 'CloudSiteName' => [ - 'description' => '云上站点名称', - 'type' => 'string', - 'example' => 'cloud-site', - ], - 'SitePairId' => [ - 'description' => '站点对ID', - 'type' => 'string', - 'example' => 's-0003obqyc8f8lx2pf6m9', - ], - 'SecondarySiteName' => [ - 'description' => '从站名称', - 'type' => 'string', - 'example' => 'SH', - ], - 'PrimarySiteName' => [ - 'description' => '主站名称', - 'type' => 'string', - 'example' => 'HZ', - ], - 'CreatedTime' => [ - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1636092147', - ], - 'ReplicationStatistics' => [ - 'description' => '复制状态统计', - 'type' => 'object', - 'properties' => [ - 'Healthy' => [ - 'description' => '处于健康状态(全量复制、实时复制)的受保护服务器数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4', - ], - 'Warning' => [ - 'description' => '处于警告状态(RPO超过20分钟、暂时断开连接等)的受保护服务器数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'Critical' => [ - 'description' => '处于危险状态(复制失败等)的受保护服务器数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'NotApplicable' => [ - 'description' => '处于其他状态的受保护服务器数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D14F1EB0-30B7-5A38-92E7-C2D11077D5CA'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'SitePairId' => ['description' => '站点对ID', 'type' => 'string', 'example' => 's-000bvn4shsuhq4cph5i8'], + 'SecondarySiteId' => ['description' => '从站站点ID', 'type' => 'string', 'example' => 'si-000imvpcegvbh6i5kd2u'], + 'PrimarySiteId' => ['description' => '主站站点ID', 'type' => 'string', 'example' => 'si-0001jntih0phb0i2w1ya'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"24CFBF97-EAD7-5D53-8D50-7F9E9D20C3A3\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 5,\\n \\"TotalCount\\": 28,\\n \\"SitePairs\\": {\\n \\"sitePair\\": [\\n {\\n \\"SitePairType\\": \\"cloud2cloud\\",\\n \\"LocalSiteName\\": \\"local-site\\",\\n \\"SecondarySiteId\\": \\"si-0007nrkb2riv9yalg8s8\\",\\n \\"PrimarySiteId\\": \\"si-000as7kbj0cmlp3tt60m\\",\\n \\"Version\\": \\"3.7.3\\",\\n \\"ServerCount\\": 14,\\n \\"CloudSiteName\\": \\"cloud-site\\",\\n \\"SitePairId\\": \\"s-0003obqyc8f8lx2pf6m9\\",\\n \\"SecondarySiteName\\": \\"SH\\",\\n \\"PrimarySiteName\\": \\"HZ\\",\\n \\"CreatedTime\\": 1636092147,\\n \\"ReplicationStatistics\\": {\\n \\"Healthy\\": 4,\\n \\"Warning\\": 0,\\n \\"Critical\\": 0,\\n \\"NotApplicable\\": 0\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询站点对信息', - ], - 'DescribeSite' => [ - 'summary' => '查询站点信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D14F1EB0-30B7-5A38-92E7-C2D11077D5CA\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"SitePairId\\": \\"s-000bvn4shsuhq4cph5i8\\",\\n \\"SecondarySiteId\\": \\"si-000imvpcegvbh6i5kd2u\\",\\n \\"PrimarySiteId\\": \\"si-0001jntih0phb0i2w1ya\\"\\n}","type":"json"}]', + 'title' => '创建站点对', + 'changeSet' => [ + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ['createdAt' => '2022-03-02T02:04:10.000Z', 'description' => '错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'hdr:CreateSitePair', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DeleteRecoveryPlan' => [ + 'summary' => '根据恢复计划ID删除指定的恢复计划。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrEJMNXE', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ - 'name' => 'SiteId', + 'name' => 'RecoveryPlanId', 'in' => 'query', - 'schema' => [ - 'description' => '站点ID', - 'type' => 'string', - 'required' => true, - 'example' => 'si-000bzkmmlwh01trrecuw', - ], + 'schema' => ['description' => '恢复计划ID。', 'type' => 'string', 'required' => false, 'example' => 'rp-xxxxxxxxxxxxxxxx'], ], ], 'responses' => [ @@ -1326,78 +524,39 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'description' => '专有网络ID', - 'type' => 'string', - 'example' => 'vpc-bp1c3byhnaoj3u96sgk12', - ], - 'Type' => [ - 'description' => '站点类型', - 'type' => 'string', - 'example' => 'cloud', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'B30A844D-E4CF-5382-A0D4-3DE76A8AD2AE', - ], - 'SiteId' => [ - 'description' => '站点ID', - 'type' => 'string', - 'example' => 'si-000bzkmmlwh01trrecuw', - ], - 'UserSecurityGroupId' => [ - 'description' => '用户安全组ID', - 'type' => 'string', - 'example' => 'sg-bp1466glrmpqfsq4zpjs', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'ZoneId' => [ - 'description' => '可用区ID', - 'type' => 'string', - 'example' => 'cn-shanghai-l', - ], - 'Code' => [ - 'description' => '返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'Name' => [ - 'description' => '站点名称', - 'type' => 'string', - 'example' => 'SH', - ], - 'RegionId' => [ - 'description' => '站点所在的地域ID', - 'type' => 'string', - 'example' => 'cn-shanghai', - ], + 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '36C9E5CF-D575-5074-9A3E-79251448D708'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-0006ezqwy1swxqgcrfvx'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + ], + 'description' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"36C9E5CF-D575-5074-9A3E-79251448D708\\",\\n \\"TaskId\\": \\"t-0006ezqwy1swxqgcrfvx\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '删除恢复计划', + 'changeSet' => [ + ['createdAt' => '2024-01-09T06:12:19.000Z', 'description' => '响应参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'hdr:DeleteRecoveryPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"VpcId\\": \\"vpc-bp1c3byhnaoj3u96sgk12\\",\\n \\"Type\\": \\"cloud\\",\\n \\"RequestId\\": \\"B30A844D-E4CF-5382-A0D4-3DE76A8AD2AE\\",\\n \\"SiteId\\": \\"si-000bzkmmlwh01trrecuw\\",\\n \\"UserSecurityGroupId\\": \\"sg-bp1466glrmpqfsq4zpjs\\",\\n \\"Success\\": true,\\n \\"ZoneId\\": \\"cn-shanghai-l\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Name\\": \\"SH\\",\\n \\"RegionId\\": \\"cn-shanghai\\"\\n}","type":"json"}]', - 'title' => '查询站点信息', ], 'DeleteSitePair' => [ 'summary' => '删除站点对。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1408,23 +567,13 @@ 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'SitePairId', 'in' => 'query', - 'schema' => [ - 'description' => '站点对ID', - 'type' => 'string', - 'required' => true, - 'example' => 's-0003obqyc8f8a6u3bfw4', - ], + 'schema' => ['description' => '站点对ID', 'type' => 'string', 'required' => true, 'example' => 's-0003obqyc8f8a6u3bfw4'], ], ], 'responses' => [ @@ -1432,174 +581,152 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '26365F46-16D9-5A56-B1EF-62D12C04E071', - ], - 'Success' => [ - 'description' => '请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '26365F46-16D9-5A56-B1EF-62D12C04E071'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"26365F46-16D9-5A56-B1EF-62D12C04E071\\",\\n \\"Success\\": true\\n}","type":"json"}]', 'title' => '删除站点对', - ], - 'CreateSitePair' => [ - 'summary' => '创建容灾站点对。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2022-03-02T02:04:10.000Z', 'description' => '错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'hdr:DeleteSitePair', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeAvailableInstanceTypes' => [ + 'summary' => '查询(演练、故障切换、故障恢复等场景的)可用规格。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrF01CKY', 'FEATUREhdrE49XN0'], ], 'parameters' => [ [ - 'name' => 'SitePairType', + 'name' => 'Region', 'in' => 'query', - 'schema' => [ - 'description' => '站点对类型', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'cloud2cloud' => 'cloud2cloud', - 'zone2zone' => 'zone2zone', - ], - 'example' => 'cloud2cloud', - ], + 'schema' => ['description' => '地域ID', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai'], ], [ - 'name' => 'PrimarySiteName', + 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'description' => '主站站点名称', - 'type' => 'string', - 'required' => false, - 'example' => '杭州可用区G', - ], + 'schema' => ['description' => '可用区ID', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing-g'], ], [ - 'name' => 'PrimarySiteType', + 'name' => 'DiskType', 'in' => 'query', 'schema' => [ - 'description' => '主站站点类型', + 'description' => '磁盘类型', 'type' => 'string', - 'required' => false, - 'example' => 'cloud', + 'required' => true, + 'enumValueTitles' => ['cloud_efficiency,cloud_essd,cloud_ssd' => 'cloud_efficiency,cloud_essd,cloud_ssd'], + 'example' => 'cloud_efficiency', ], ], [ - 'name' => 'PrimarySiteRegionId', + 'name' => 'ChargeType', 'in' => 'query', 'schema' => [ - 'description' => '主站地域ID', + 'description' => '付费类型', 'type' => 'string', 'required' => false, - 'example' => 'cn-shanghai', + 'enumValueTitles' => ['PostPaid' => 'PostPaid', 'PrePaid' => 'PrePaid'], + 'example' => 'PostPaid', + 'default' => 'PostPaid', + 'enum' => ['PostPaid', 'PrePaid'], ], ], [ - 'name' => 'PrimarySiteVpcId', + 'name' => 'Network', 'in' => 'query', 'schema' => [ - 'description' => '主站VPC ID', + 'description' => '网络类型', 'type' => 'string', 'required' => false, - 'example' => 'vpc-uf6j3rao8wkr7hb4uopv2', + 'enumValueTitles' => ['classic' => 'classic', 'vpc' => 'vpc'], + 'example' => 'vpc', + 'default' => 'vpc', ], ], [ - 'name' => 'PrimarySiteZoneId', + 'name' => 'IoOptimized', 'in' => 'query', - 'schema' => [ - 'description' => '主站可用区ID,站点对类型为跨可用区容灾时有效', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou-g', - ], + 'schema' => ['description' => '是否属于IO优化型实例', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], ], [ - 'name' => 'SecondarySiteName', + 'name' => 'SortBy', 'in' => 'query', 'schema' => [ - 'description' => '从站站点名称', + 'description' => '排序依据', 'type' => 'string', 'required' => false, - 'example' => '杭州可用区F', + 'enumValueTitles' => ['memory' => 'memory', 'vcpu' => 'vcpu'], + 'example' => 'vcpu', + 'default' => 'network', ], ], [ - 'name' => 'SecondarySiteType', + 'name' => 'Order', 'in' => 'query', 'schema' => [ - 'description' => '从站站点类型', + 'description' => '排序方式', 'type' => 'string', 'required' => false, - 'example' => 'cloud', + 'enumValueTitles' => ['asc' => 'asc', 'desc' => 'desc'], + 'example' => 'asc', + 'default' => 'desc', + 'enum' => ['asc', 'desc'], ], ], [ - 'name' => 'SecondarySiteRegionId', + 'name' => 'Filter', 'in' => 'query', - 'schema' => [ - 'description' => '从站地域ID', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '查询过滤表达式。多个表达式之间用分号;隔开。表达式由键、操作符和值组成。'."\n" + ."\n" + .'键支持:'."\n" + .'* vcpu:实例规格的CPU核数'."\n" + .'* memory:实例规格的内存'."\n" + ."\n" + .'操作符支持<、<=、>、>=、=等。值为数字整型。', 'type' => 'string', 'required' => false, 'example' => 'vcpu>=2;vcpu<16;memory>=4;'], ], [ - 'name' => 'SecondarySiteVpcId', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '从站专有网络ID', - 'type' => 'string', - 'required' => false, - 'example' => 'vpc-bp1wu55gbyqd7gh3yu3ey', - ], + 'schema' => ['description' => '分页参数:当前页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], ], [ - 'name' => 'SecondarySiteZoneId', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'description' => '从站可用区ID,仅站点对类型为跨可用区容灾时有效', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou-i', - ], + 'schema' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '10'], + ], + [ + 'name' => 'UserClient', + 'in' => 'query', + 'schema' => ['description' => '是否使用用户角色查询可用规格(默认使用混合云容灾服务账号进行查询),部分白名单实例规格需要开启该开关才能查询到结果。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], ], 'responses' => [ @@ -1607,58 +734,53 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'D14F1EB0-30B7-5A38-92E7-C2D11077D5CA', - ], - 'Success' => [ - 'description' => '请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Code' => [ - 'description' => '返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'SitePairId' => [ - 'description' => '站点对ID', - 'type' => 'string', - 'example' => 's-000bvn4shsuhq4cph5i8', - ], - 'SecondarySiteId' => [ - 'description' => '从站站点ID', - 'type' => 'string', - 'example' => 'si-000imvpcegvbh6i5kd2u', - ], - 'PrimarySiteId' => [ - 'description' => '主站站点ID', - 'type' => 'string', - 'example' => 'si-0001jntih0phb0i2w1ya', + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '1A7577E8-755A-5BF5-A6BA-B87286D0743F'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['description' => '返回结果编码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'PageSize' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'PageNumber' => ['description' => '分页参数:当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'TotalCount' => ['description' => '查询到的实例总数。', 'type' => 'integer', 'format' => 'int32', 'example' => '11'], + 'InstanceTypes' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'instanceType' => [ + 'description' => '可用实例规格列表。', + 'type' => 'array', + 'items' => ['description' => '可用实例规格', 'type' => 'string', 'example' => 'ecs.g5ne.xlarge'], + ], + ], + 'description' => '', ], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D14F1EB0-30B7-5A38-92E7-C2D11077D5CA\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"SitePairId\\": \\"s-000bvn4shsuhq4cph5i8\\",\\n \\"SecondarySiteId\\": \\"si-000imvpcegvbh6i5kd2u\\",\\n \\"PrimarySiteId\\": \\"si-0001jntih0phb0i2w1ya\\"\\n}","type":"json"}]', - 'title' => '创建站点对', - ], - 'DescribeSitePair' => [ - 'summary' => '查询站点对信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1A7577E8-755A-5BF5-A6BA-B87286D0743F\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 11,\\n \\"InstanceTypes\\": {\\n \\"instanceType\\": [\\n \\"ecs.g5ne.xlarge\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询可用规格', + 'changeSet' => [ + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '请求参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeAvailableInstanceTypes', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeInfrastructures' => [ + 'summary' => '查询站点基础设施信息,混合云容灾服务支持IDC上云容灾、跨区域容灾、跨可用区容灾,不同场景下站点使用的基础设施不同,例如IDC上云容灾的源端站点可能使用物理机、VCenter作为基础设施;跨区域容灾与跨可用区容灾目前主要使用阿里云作为基础设施。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1666,26 +788,26 @@ ], 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ'], ], 'parameters' => [ [ - 'name' => 'SitePairId', + 'name' => 'SiteId', 'in' => 'query', - 'schema' => [ - 'description' => '站点对ID', - 'type' => 'string', - 'required' => true, - 'example' => 's-0007rvzart0c4cn130df', - ], + 'schema' => ['description' => '站点ID', 'type' => 'string', 'required' => false, 'example' => 'si-0005btelnqjwguycypba'], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => '分页参数:当前页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '10'], ], ], 'responses' => [ @@ -1693,166 +815,213 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'SitePairType' => [ - 'description' => '站点对类型', - 'type' => 'string', - 'example' => 'cloud2cloud', - ], - 'Success' => [ - 'description' => '请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'SecondarySiteId' => [ - 'description' => '从站站点ID', - 'type' => 'string', - 'example' => 'si-0007rvzart0a2wpup82m', - ], - 'PrimarySiteId' => [ - 'description' => '主站站点ID', - 'type' => 'string', - 'example' => 'si-0001jntih0phb0i2w1ya', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '700F1972-16A2-5639-A937-D2A6D61557B8', - ], - 'Version' => [ - 'description' => '版本号', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'Code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => '200', - ], - 'SitePairId' => [ - 'description' => '站点对ID', - 'type' => 'string', - 'example' => 's-000j6lhiuvdqakqa6k7l', - ], - 'SecondarySiteName' => [ - 'description' => '从站站点名称', - 'type' => 'string', - 'example' => '杭州D区', - ], - 'CreatedTime' => [ - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1637293095', - ], - 'PrimarySiteName' => [ - 'description' => '主站站点名称', - 'type' => 'string', - 'example' => '杭州F区', + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '32AC7E7F-5484-548D-8D3F-905238B75080'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'PageSize' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'PageNumber' => ['description' => '分页参数:当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'TotalCount' => ['description' => '总条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Infrastructures' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'infrastructure' => [ + 'description' => '基础设施信息列表', + 'type' => 'array', + 'items' => [ + 'description' => '基础设施信息', + 'type' => 'object', + 'properties' => [ + 'Type' => ['description' => '基础设施类型', 'type' => 'string', 'example' => 'aliyun'], + 'Status' => ['description' => '状态', 'type' => 'string', 'example' => 'connected'], + 'IpAddress' => ['description' => 'IP地址', 'type' => 'string', 'example' => '172.18.122.66'], + 'InfrastructureId' => ['description' => '基础设施ID', 'type' => 'string', 'example' => 'is-0005qxusucbig0c42dlo'], + 'Errno' => ['description' => '状态异常原因', 'type' => 'string', 'example' => 'cdr.console.plugin.failed_to_connect'], + 'Name' => ['description' => '基础设施名称', 'type' => 'string', 'example' => 'si-0006w0mxd3w8jiifu77l-infrastructure1'], + ], + ], + ], + ], + 'description' => '', ], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"SitePairType\\": \\"cloud2cloud\\",\\n \\"Success\\": true,\\n \\"Message\\": \\"successful\\",\\n \\"SecondarySiteId\\": \\"si-0007rvzart0a2wpup82m\\",\\n \\"PrimarySiteId\\": \\"si-0001jntih0phb0i2w1ya\\",\\n \\"RequestId\\": \\"700F1972-16A2-5639-A937-D2A6D61557B8\\",\\n \\"Version\\": \\"3.7.3\\",\\n \\"Code\\": \\"200\\",\\n \\"SitePairId\\": \\"s-000j6lhiuvdqakqa6k7l\\",\\n \\"SecondarySiteName\\": \\"杭州D区\\",\\n \\"CreatedTime\\": 1637293095,\\n \\"PrimarySiteName\\": \\"杭州F区\\"\\n}","type":"json"}]', - 'title' => '查询站点对信息', - ], - 'EnableReplication' => [ - 'summary' => '启动复制。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"32AC7E7F-5484-548D-8D3F-905238B75080\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 2,\\n \\"TotalCount\\": 1,\\n \\"Infrastructures\\": {\\n \\"infrastructure\\": [\\n {\\n \\"Type\\": \\"aliyun\\",\\n \\"Status\\": \\"connected\\",\\n \\"IpAddress\\": \\"172.18.122.66\\",\\n \\"InfrastructureId\\": \\"is-0005qxusucbig0c42dlo\\",\\n \\"Errno\\": \\"cdr.console.plugin.failed_to_connect\\",\\n \\"Name\\": \\"si-0006w0mxd3w8jiifu77l-infrastructure1\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询站点基础设施', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeInfrastructures', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeRecoveryPlan' => [ + 'summary' => '查询恢复计划详情。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ - 'name' => 'ServerId', + 'name' => 'RecoveryPlanId', 'in' => 'query', + 'schema' => ['description' => '恢复计划ID。', 'type' => 'string', 'required' => false, 'example' => 'rp-xxxxxxxxxxxxxxxxxx'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '受保护服务器ID', - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-0005qxusucbo6yomzb9x', + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => '恢复计划状态。其中:'."\n" + ."\n" + .'- **creating**:创建中'."\n" + .'- **updating**:更新中'."\n" + .'- **deleting**:删除中'."\n" + .'- **failed**:失败'."\n" + .'- **init**:已初始化'."\n" + .'- **running**:执行中', 'type' => 'string', 'example' => 'init'], + 'Direction' => ['description' => '恢复计划的方向,支持**forward**。', 'type' => 'string', 'example' => 'forward'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6F3884EC-AECB-52EF-AFE3-BC13A9688DEB'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'Name' => ['description' => '恢复计划名称。', 'type' => 'string', 'example' => 'test'], + 'Content' => ['description' => '恢复计划详情。', 'type' => 'string', 'example' => '{'."\n" + .' "groups": ['."\n" + .' {'."\n" + .' "name": "Group-1",'."\n" + .' "id": "Group-1",'."\n" + .' "servers": ['."\n" + .' {'."\n" + .' "name": "sr-xxxxxxxxxxxxxxxxxx",'."\n" + .' "serverId": "sr-xxxxxxxxxxxxxxxxxx",'."\n" + .' "testFailoverAction": {'."\n" + .' "eipAddressId": "",'."\n" + .' "recoveryPostScriptContent": "",'."\n" + .' "recoveryPostScriptType": "POWERSHELL",'."\n" + .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo",'."\n" + .' "recoveryCpu": 2,'."\n" + .' "recoveryMemory": 4294967296,'."\n" + .' "recoveryUseEssd": false,'."\n" + .' "recoveryUseSsd": false,'."\n" + .' "recoveryReserveIp": false,'."\n" + .' "recoveryUseDhcp": true,'."\n" + .' "recoveryIpAddress": "",'."\n" + .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" + .' },'."\n" + .' "testCleanupAction": {},'."\n" + .' "changeRecoveryPointAction": {'."\n" + .' "eipAddressId": "",'."\n" + .' "recoveryPostScriptContent": "",'."\n" + .' "recoveryPostScriptType": "POWERSHELL",'."\n" + .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr",'."\n" + .' "recoveryCpu": 2,'."\n" + .' "recoveryMemory": 4294967296,'."\n" + .' "recoveryUseEssd": false,'."\n" + .' "recoveryUseSsd": false,'."\n" + .' "recoveryReserveIp": false,'."\n" + .' "recoveryUseDhcp": true,'."\n" + .' "recoveryIpAddress": "",'."\n" + .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" + .' },'."\n" + .' "forcedFailoverAction": {'."\n" + .' "eipAddressId": "",'."\n" + .' "recoveryPostScriptContent": "",'."\n" + .' "recoveryPostScriptType": "POWERSHELL",'."\n" + .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo",'."\n" + .' "recoveryCpu": 2,'."\n" + .' "recoveryMemory": 4294967296,'."\n" + .' "recoveryUseEssd": false,'."\n" + .' "recoveryUseSsd": false,'."\n" + .' "recoveryReserveIp": false,'."\n" + .' "recoveryUseDhcp": true,'."\n" + .' "recoveryIpAddress": "",'."\n" + .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .'}'], + 'RecoveryPlanId' => ['description' => '恢复计划ID。', 'type' => 'string', 'example' => 'rp-xxxxxxxxxxxxxxxxxx'], + ], + 'description' => '', ], ], - [ - 'name' => 'ReplicationUseSsd', - 'in' => 'query', - 'schema' => [ - 'title' => '复影实例是否使用SSD云盘', - 'description' => '复影实例是否使用SSD云盘', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"init\\",\\n \\"Direction\\": \\"forward\\",\\n \\"RequestId\\": \\"6F3884EC-AECB-52EF-AFE3-BC13A9688DEB\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Name\\": \\"test\\",\\n \\"Content\\": \\"{\\\\n \\\\\\"groups\\\\\\": [\\\\n {\\\\n \\\\\\"name\\\\\\": \\\\\\"Group-1\\\\\\",\\\\n \\\\\\"id\\\\\\": \\\\\\"Group-1\\\\\\",\\\\n \\\\\\"servers\\\\\\": [\\\\n {\\\\n \\\\\\"name\\\\\\": \\\\\\"sr-xxxxxxxxxxxxxxxxxx\\\\\\",\\\\n \\\\\\"serverId\\\\\\": \\\\\\"sr-xxxxxxxxxxxxxxxxxx\\\\\\",\\\\n \\\\\\"testFailoverAction\\\\\\": {\\\\n \\\\\\"eipAddressId\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptContent\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptType\\\\\\": \\\\\\"POWERSHELL\\\\\\",\\\\n \\\\\\"recoveryInstanceName\\\\\\": \\\\\\"HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo\\\\\\",\\\\n \\\\\\"recoveryCpu\\\\\\": 2,\\\\n \\\\\\"recoveryMemory\\\\\\": 4294967296,\\\\n \\\\\\"recoveryUseEssd\\\\\\": false,\\\\n \\\\\\"recoveryUseSsd\\\\\\": false,\\\\n \\\\\\"recoveryReserveIp\\\\\\": false,\\\\n \\\\\\"recoveryUseDhcp\\\\\\": true,\\\\n \\\\\\"recoveryIpAddress\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryNetwork\\\\\\": \\\\\\"vsw-xxxxxxxxxxxxxxxxxx\\\\\\"\\\\n },\\\\n \\\\\\"testCleanupAction\\\\\\": {},\\\\n \\\\\\"changeRecoveryPointAction\\\\\\": {\\\\n \\\\\\"eipAddressId\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptContent\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptType\\\\\\": \\\\\\"POWERSHELL\\\\\\",\\\\n \\\\\\"recoveryInstanceName\\\\\\": \\\\\\"HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr\\\\\\",\\\\n \\\\\\"recoveryCpu\\\\\\": 2,\\\\n \\\\\\"recoveryMemory\\\\\\": 4294967296,\\\\n \\\\\\"recoveryUseEssd\\\\\\": false,\\\\n \\\\\\"recoveryUseSsd\\\\\\": false,\\\\n \\\\\\"recoveryReserveIp\\\\\\": false,\\\\n \\\\\\"recoveryUseDhcp\\\\\\": true,\\\\n \\\\\\"recoveryIpAddress\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryNetwork\\\\\\": \\\\\\"vsw-xxxxxxxxxxxxxxxxxx\\\\\\"\\\\n },\\\\n \\\\\\"forcedFailoverAction\\\\\\": {\\\\n \\\\\\"eipAddressId\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptContent\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptType\\\\\\": \\\\\\"POWERSHELL\\\\\\",\\\\n \\\\\\"recoveryInstanceName\\\\\\": \\\\\\"HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo\\\\\\",\\\\n \\\\\\"recoveryCpu\\\\\\": 2,\\\\n \\\\\\"recoveryMemory\\\\\\": 4294967296,\\\\n \\\\\\"recoveryUseEssd\\\\\\": false,\\\\n \\\\\\"recoveryUseSsd\\\\\\": false,\\\\n \\\\\\"recoveryReserveIp\\\\\\": false,\\\\n \\\\\\"recoveryUseDhcp\\\\\\": true,\\\\n \\\\\\"recoveryIpAddress\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryNetwork\\\\\\": \\\\\\"vsw-xxxxxxxxxxxxxxxxxx\\\\\\"\\\\n }\\\\n }\\\\n ]\\\\n }\\\\n ]\\\\n}\\",\\n \\"RecoveryPlanId\\": \\"rp-xxxxxxxxxxxxxxxxxx\\"\\n}","type":"json"}]', + 'title' => '查询恢复计划详情', + 'changeSet' => [ + ['createdAt' => '2024-01-09T06:12:19.000Z', 'description' => '响应参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeRecoveryPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'DescribeRecoveryPlans' => [ + 'summary' => '查询站点对中的恢复计划列表。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'ReplicationUseEssd', - 'in' => 'query', - 'schema' => [ - 'title' => '复影实例是否使用ESSD云盘', - 'description' => '复影实例是否使用ESSD云盘', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], + ], + 'parameters' => [ [ - 'name' => 'ReplicationNetwork', + 'name' => 'SitePairId', 'in' => 'query', - 'schema' => [ - 'title' => '复制网络VSwitch ID', - 'description' => '复制网络VSwitch ID', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-bp1g0s2u3b2kbn46kiy53', - ], + 'schema' => ['description' => '站点对ID。', 'type' => 'string', 'required' => false, 'example' => 's-0005qxusucbii5ab6wuj'], ], [ - 'name' => 'RecoveryNetwork', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'title' => '恢复网络VSwitch ID', - 'description' => '恢复网络VSwitch ID', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-bp1g0s2u3b2kbn46kiy53', - ], + 'schema' => ['description' => '分页查询时设置的页数,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], ], [ - 'name' => 'CrashConsistentPointPolicy', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'title' => '恢复点策略', - 'description' => '恢复点策略', - 'type' => 'string', - 'required' => false, - 'example' => '{"scheduleType":"CRON","expression":"0 0 */1 * * 0,1,2,3,4,5,6","initialDelay":0}', - ], + 'schema' => ['description' => '分页查询时设置的每页行数,默认值为10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '10'], ], ], 'responses' => [ @@ -1860,70 +1029,91 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '接口状态或POP错误码。取值说明如下:2xx:成功。 3xx:重定向。 4xx:请求错误。 5xx:服务器错误。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '响应消息,若成功,则返回success', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '接口请求唯一标识符。', - 'type' => 'string', - 'example' => 'E50FE4A6-C876-5D6F-8A09-93442308AA7B', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'F2812CD7-03E7-5774-9EE5-827D8398A670'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['description' => '接口返回码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'PageSize' => ['description' => '分页查询时的每页行数,最大值:100默认值:10', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'PageNumber' => ['description' => '分页查询的当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'TotalCount' => ['description' => '恢复计划数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'RecoveryPlans' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'recoveryPlan' => [ + 'description' => '恢复计划列表。', + 'type' => 'array', + 'items' => [ + 'description' => '恢复计划详情。', + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => '恢复计划状态。其中,'."\n" + ."\n" + .'- **creating**:创建中'."\n" + .'- **updating**:更新中'."\n" + .'- **deleting**:删除中'."\n" + .'- **failed**:失败'."\n" + .'- **init**:已初始化'."\n" + .'- **running**:执行中', 'type' => 'string', 'example' => 'init'], + 'Direction' => ['description' => '恢复计划的方向,支持**forward**。', 'type' => 'string', 'example' => 'forward'], + 'Name' => ['description' => '恢复计划名称。', 'type' => 'string', 'example' => 'test-1'], + 'RecoveryPlanId' => ['description' => '恢复计划ID。', 'type' => 'string', 'example' => 'rp-xxxxxxxxxxxxxxxxxx'], + ], + ], + ], + ], + 'description' => '', ], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"E50FE4A6-C876-5D6F-8A09-93442308AA7B\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '启动复制', - ], - 'DisableReplication' => [ - 'summary' => '停止复制。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2812CD7-03E7-5774-9EE5-827D8398A670\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 1,\\n \\"RecoveryPlans\\": {\\n \\"recoveryPlan\\": [\\n {\\n \\"Status\\": \\"init\\",\\n \\"Direction\\": \\"forward\\",\\n \\"Name\\": \\"test-1\\",\\n \\"RecoveryPlanId\\": \\"rp-xxxxxxxxxxxxxxxxxx\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询恢复计划列表', + 'changeSet' => [ + ['createdAt' => '2024-01-09T06:27:23.000Z', 'description' => '响应参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeRecoveryPlans', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeRecoveryPoints' => [ + 'summary' => '查询可用恢复点。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'title' => '受保护服务器ID', - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-000cvyfewfi6fzi9zoql', - ], + 'schema' => ['description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-0008fj9dbe1xzlg6805i'], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['description' => '开始时间,从开始时间查询可用恢复点', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1633503912'], ], ], 'responses' => [ @@ -1931,262 +1121,411 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '接口状态或POP错误码。取值说明如下:2xx:成功。 3xx:重定向。 4xx:请求错误。 5xx:服务器错误。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => 'B7F69F73-51C4-5D3F-B2BE-E1BD99022C15', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', + 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回消息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8260C928-1A54-545A-A3F2-51E6327D28E6'], + 'TotalCount' => ['description' => '可用恢复点的总数', 'type' => 'integer', 'format' => 'int32', 'example' => '15'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'RecoveryPoints' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'recoveryPoint' => [ + 'description' => '恢复点信息。', + 'type' => 'array', + 'items' => [ + 'description' => '恢复点信息。', + 'type' => 'object', + 'properties' => [ + 'ApplicationConsistent' => ['description' => '恢复点是否满足应用一致性', 'type' => 'boolean', 'example' => 'false'], + 'RecoveryPointTime' => ['description' => '恢复点时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1637118000'], + 'Disabled' => ['description' => '恢复点是否被禁用。', 'type' => 'boolean', 'example' => 'false'], + 'RecoveryPointId' => ['description' => '恢复点ID', 'type' => 'string', 'example' => 'rp-0000syrdl2f8a7te4063'], + 'Used' => ['description' => '恢复点是否已被使用', 'type' => 'boolean', 'example' => 'false'], + 'DisableReason' => ['description' => '恢复点被禁用的原因', 'type' => 'string', 'example' => 'inconsistent'], + ], + ], + ], + ], + 'description' => '', ], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"B7F69F73-51C4-5D3F-B2BE-E1BD99022C15\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '停止复制', - ], - 'TestFailover' => [ - 'summary' => '容灾演练。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"8260C928-1A54-545A-A3F2-51E6327D28E6\\",\\n \\"TotalCount\\": 15,\\n \\"Success\\": true,\\n \\"RecoveryPoints\\": {\\n \\"recoveryPoint\\": [\\n {\\n \\"ApplicationConsistent\\": false,\\n \\"RecoveryPointTime\\": 1637118000,\\n \\"Disabled\\": false,\\n \\"RecoveryPointId\\": \\"rp-0000syrdl2f8a7te4063\\",\\n \\"Used\\": false,\\n \\"DisableReason\\": \\"inconsistent\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询可用恢复点', + 'changeSet' => [ + ['createdAt' => '2024-01-09T06:27:24.000Z', 'description' => '错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeRecoveryPoints', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeServer' => [ + 'summary' => '查询受保护服务器。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'title' => '受保护服务器ID', - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-000cvyfewfi7eudxml1a', - ], + 'schema' => ['description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-0005qxusucbiga738e9s'], ], - [ - 'name' => 'RecoveryInstanceName', - 'in' => 'query', - 'schema' => [ - 'title' => '演练的实例名称', - 'description' => '演练的实例名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test-failover-instance', - ], - ], - [ - 'name' => 'RecoveryCpu', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '演练实例的CPU核数', - 'description' => '演练实例的CPU核数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '2', - 'default' => '2', + 'type' => 'object', + 'properties' => [ + 'PrimarySiteId' => ['description' => '主站站点ID', 'type' => 'string', 'example' => 'si-0001jntih0phb0i2w1ya'], + 'ServerId' => ['description' => '受保护服务器ID', 'type' => 'string', 'example' => 'sr-0005qxusucbiip0g6t93'], + 'RecoveryUseDhcp' => ['description' => '恢复是否使用DHCP自动分配IP', 'type' => 'boolean', 'example' => 'false'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'BBCC4082-98DF-5804-96C6-0E74C37C5867'], + 'RecoveryMemory' => ['description' => '故障切换使用的实例内存大小', 'type' => 'integer', 'format' => 'int64', 'example' => '4294967296'], + 'SourceGatewayVersion' => ['description' => '主站网关版本', 'type' => 'string', 'example' => '3.7.3'], + 'IncrementalSyncStartTime' => ['description' => '增量复制开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'CrashConsistentPointPolicy' => ['description' => '恢复点策略', 'type' => 'string', 'example' => '{\\"scheduleType\\":\\"CRON\\",\\"expression\\":\\"0 0 */1 * * 0,1,2,3,4,5,6\\",\\"initialDelay\\":0}'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'RecoveryPostScriptContent' => ['description' => '故障切换的实例启动后执行的脚本内容', 'type' => 'string', 'example' => 'echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts'], + 'TestRecoveredInstanceId' => ['description' => '容灾演练的实例ID', 'type' => 'string', 'example' => 'i-bp13zgzv13am2n2z92lb'], + 'ReplicationNetwork' => ['description' => '复制网络VSwitch ID', 'type' => 'string', 'example' => 'vsw-bp1g0s2u3b2kbn46kiy53'], + 'RecoveryUseEssd' => ['description' => '故障切换的实例云盘类型是否使用ESSD', 'type' => 'boolean', 'example' => 'false'], + 'TargetGatewayVersion' => ['description' => '目的端网关版本', 'type' => 'string', 'example' => 'i-bp13zgzv13am2n2z92lb'], + 'OsType' => ['description' => '操作系统类型', 'type' => 'string', 'example' => 'linux'], + 'FullSyncStartTime' => ['description' => '全量复制开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'ReplicationUseSsd' => ['description' => '复影实例是否使用SSD云盘', 'type' => 'boolean', 'example' => 'false'], + 'Rpo' => ['description' => '恢复时间目标,单位秒', 'type' => 'integer', 'format' => 'int32', 'example' => '45'], + 'Consistent' => ['description' => '是否处于一致性状态', 'type' => 'boolean', 'example' => 'false'], + 'FullSyncTotalSize' => ['description' => '全量复制大小,单位B', 'type' => 'integer', 'format' => 'int64', 'example' => '365072220160'], + 'RecoveredIpAddress' => ['description' => '容灾切换的实例IP', 'type' => 'string', 'example' => '192.168.2.2'], + 'Alias' => ['description' => '别名', 'type' => 'string', 'example' => 'bsdewmpci_rz'], + 'Status' => ['description' => '实例状态', 'type' => 'string', 'example' => 'replicating'], + 'TestFailoverStatus' => ['description' => '容灾演练状态', 'type' => 'string', 'example' => 'testFailovered'], + 'ReplicationUseEssd' => ['description' => '复影实例是否使用ESSD云盘', 'type' => 'boolean', 'example' => 'false'], + 'OsDetail' => ['description' => '操作系统详情', 'type' => 'string', 'example' => 'CentOS;7.9.2009'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'TestRecoveredIpAddress' => ['description' => '容灾演练的机器IP地址', 'type' => 'string', 'example' => '192.168.2.2'], + 'SecondarySiteId' => ['description' => '从站站点ID', 'type' => 'string', 'example' => 'si-000imvpcegvbh6i5kd2u'], + 'FullSyncProgress' => ['description' => '全量复制进度百分比', 'type' => 'integer', 'format' => 'int32', 'example' => '17'], + 'RecoveryInstanceType' => ['description' => '故障切换的实例规格', 'type' => 'string', 'example' => 'ecs.c5.2xlarge'], + 'IpAddress' => ['description' => '受保护服务器IP地址', 'type' => 'string', 'example' => '30.42.105.6'], + 'RecoveryInstanceName' => ['description' => '故障切换的实例名称', 'type' => 'string', 'example' => 'HDR_Recovery-sr-000bzkmmlwghq3soqry2'], + 'OriginalInstanceId' => ['description' => '源端实例ID', 'type' => 'string', 'example' => 'i-bp19axn91irnsi9204xg'], + 'RecoveredInstanceId' => ['description' => '容灾切换的实例ID', 'type' => 'string', 'example' => 'i-bp19axn91irnsi9204xg'], + 'RecoveryReserveIp' => ['description' => '演练实例是否保留源机的IP(需要演练所在的VSwitch包含相应网段)', 'type' => 'boolean', 'example' => 'false'], + 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'Memory' => ['description' => '内存大小', 'type' => 'integer', 'format' => 'int64', 'example' => '8589934591'], + 'RecoveryIpAddress' => ['description' => '故障切换的实例手动设置IP', 'type' => 'string', 'example' => '192.168.2.2'], + 'RecoveryNetwork' => ['description' => '故障切换的实例所在的VSwitch ID', 'type' => 'string', 'example' => 'vsw-uf61v3bg6r790ir22jqv4'], + 'Errno' => ['description' => '出错原因', 'type' => 'string', 'example' => 'cdr.console.plugin.failed_to_connect'], + 'ReplicationUseOriginalInstance' => ['description' => '反向复制使用源机', 'type' => 'boolean', 'example' => 'false'], + 'Hostname' => ['description' => '主机名称', 'type' => 'string', 'example' => 'iZ2ze0jazgwtuxettbk1ywZ'], + 'RecoveryCpu' => ['description' => '故障切换的实例CPU核数', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], + 'AgentPort' => ['description' => '客户端代理端口', 'type' => 'integer', 'format' => 'int32', 'example' => '9080'], + 'ReplicationUseDhcp' => ['description' => '复制是否使用DHCP。', 'type' => 'boolean', 'example' => 'false'], + 'TestRecoveredInstanceName' => ['description' => '容灾演练的实例名称', 'type' => 'string', 'example' => 'HDR_Recovery-sr-000c2rz7q8tak59pt6sw'], + 'AgentVersion' => ['description' => '客户端版本', 'type' => 'string', 'example' => '3.7.3'], + 'FullSyncCurrentSize' => ['description' => '全量复制已完成大小,单位B', 'type' => 'integer', 'format' => 'int64', 'example' => '3285276688384'], + 'ReplicationInfrastructureType' => ['description' => '复制使用的基础设施类型', 'type' => 'string', 'example' => 'aliyun'], + 'Cpu' => ['description' => 'CPU核数', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], + 'RecoveryPostScriptType' => ['description' => '演练实例启动后执行脚本类型,可选项:SHELL', 'type' => 'string', 'example' => 'SHELL'], + 'ReplicationInfrastructureId' => ['description' => '目标站点基础设施ID', 'type' => 'string', 'example' => 'is-000bzkmmlwgibbduuoff'], + 'ConnectionStatus' => ['description' => '连接状态', 'type' => 'string', 'example' => 'connected'], + 'Operations' => ['description' => '支持的操作', 'type' => 'string', 'example' => '"{\\"Resynchronize\\":true,\\"TestFailover\\":true,\\"TestCleanup\\":true,\\"ChangeRecoveryPoint\\":true,\\"UnregisterServer\\":true,\\"ReversedEnableReplication\\":true,\\"ReversedDisableReplication\\":true,\\"DisableReplication\\":true,\\"CommitFailover\\":true,\\"RestartServer\\":true,\\"UpgradeServer\\":true,\\"ForcedFailover\\":true,\\"RepairReplication\\":true,\\"EnableReplication\\":true,\\"TriggerReversedRegister\\":true,\\"SetupAgent\\":true,\\"TriggerRegister\\":true,\\"CollectSupportBundle\\":true,\\"Failback\\":true}"'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-0004ka624vrza82g46ne'], + 'RecoveryUseSsd' => ['description' => '故障切换的实例云盘类型是否使用SSD', 'type' => 'boolean', 'example' => 'false'], + 'Disks' => ['description' => '磁盘信息例表。', 'type' => 'string', 'example' => '[{\\"id\\":\\"0\\",\\"boot\\":true,\\"size\\":500363689984}]'], + 'RecoveryEssdPerformanceLevel' => ['description' => '演练、切换实例使用ESSD选定的PL等级', 'type' => 'string', 'example' => 'PL1'], + 'LatestRecoveryPointTime' => ['description' => '最近一次创建恢复点的时间', 'type' => 'string', 'example' => '1661419052'], + ], + 'description' => '', ], ], - [ - 'name' => 'RecoveryMemory', - 'in' => 'query', - 'schema' => [ - 'title' => '演练实例的内存大小,单位MB', - 'description' => '演练实例的内存大小,单位MB', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '4294967296', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PrimarySiteId\\": \\"si-0001jntih0phb0i2w1ya\\",\\n \\"ServerId\\": \\"sr-0005qxusucbiip0g6t93\\",\\n \\"RecoveryUseDhcp\\": false,\\n \\"RequestId\\": \\"BBCC4082-98DF-5804-96C6-0E74C37C5867\\",\\n \\"RecoveryMemory\\": 4294967296,\\n \\"SourceGatewayVersion\\": \\"3.7.3\\",\\n \\"IncrementalSyncStartTime\\": 0,\\n \\"CrashConsistentPointPolicy\\": \\"{\\\\\\\\\\\\\\"scheduleType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"CRON\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"expression\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"0 0 */1 * * 0,1,2,3,4,5,6\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"initialDelay\\\\\\\\\\\\\\":0}\\",\\n \\"Success\\": true,\\n \\"RecoveryPostScriptContent\\": \\"echo \\\\\\\\\\\\\\"127.0.0.1 kubernetes.docker.internal\\\\\\\\\\\\\\" >> /etc/hosts\\",\\n \\"TestRecoveredInstanceId\\": \\"i-bp13zgzv13am2n2z92lb\\",\\n \\"ReplicationNetwork\\": \\"vsw-bp1g0s2u3b2kbn46kiy53\\",\\n \\"RecoveryUseEssd\\": false,\\n \\"TargetGatewayVersion\\": \\"i-bp13zgzv13am2n2z92lb\\",\\n \\"OsType\\": \\"linux\\",\\n \\"FullSyncStartTime\\": 0,\\n \\"ReplicationUseSsd\\": false,\\n \\"Rpo\\": 45,\\n \\"Consistent\\": false,\\n \\"FullSyncTotalSize\\": 365072220160,\\n \\"RecoveredIpAddress\\": \\"192.168.2.2\\",\\n \\"Alias\\": \\"bsdewmpci_rz\\",\\n \\"Status\\": \\"replicating\\",\\n \\"TestFailoverStatus\\": \\"testFailovered\\",\\n \\"ReplicationUseEssd\\": false,\\n \\"OsDetail\\": \\"CentOS;7.9.2009\\",\\n \\"Message\\": \\"successful\\",\\n \\"TestRecoveredIpAddress\\": \\"192.168.2.2\\",\\n \\"SecondarySiteId\\": \\"si-000imvpcegvbh6i5kd2u\\",\\n \\"FullSyncProgress\\": 17,\\n \\"RecoveryInstanceType\\": \\"ecs.c5.2xlarge\\",\\n \\"IpAddress\\": \\"30.42.105.6\\",\\n \\"RecoveryInstanceName\\": \\"HDR_Recovery-sr-000bzkmmlwghq3soqry2\\",\\n \\"OriginalInstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"RecoveredInstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"RecoveryReserveIp\\": false,\\n \\"Code\\": \\"200\\",\\n \\"Memory\\": 8589934591,\\n \\"RecoveryIpAddress\\": \\"192.168.2.2\\",\\n \\"RecoveryNetwork\\": \\"vsw-uf61v3bg6r790ir22jqv4\\",\\n \\"Errno\\": \\"cdr.console.plugin.failed_to_connect\\",\\n \\"ReplicationUseOriginalInstance\\": false,\\n \\"Hostname\\": \\"iZ2ze0jazgwtuxettbk1ywZ\\",\\n \\"RecoveryCpu\\": 4,\\n \\"AgentPort\\": 9080,\\n \\"ReplicationUseDhcp\\": false,\\n \\"TestRecoveredInstanceName\\": \\"HDR_Recovery-sr-000c2rz7q8tak59pt6sw\\",\\n \\"AgentVersion\\": \\"3.7.3\\",\\n \\"FullSyncCurrentSize\\": 3285276688384,\\n \\"ReplicationInfrastructureType\\": \\"aliyun\\",\\n \\"Cpu\\": 4,\\n \\"RecoveryPostScriptType\\": \\"SHELL\\",\\n \\"ReplicationInfrastructureId\\": \\"is-000bzkmmlwgibbduuoff\\",\\n \\"ConnectionStatus\\": \\"connected\\",\\n \\"Operations\\": \\"\\\\\\"{\\\\\\\\\\\\\\"Resynchronize\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TestFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TestCleanup\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ChangeRecoveryPoint\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"UnregisterServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ReversedEnableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ReversedDisableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"DisableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"CommitFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"RestartServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"UpgradeServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ForcedFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"RepairReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"EnableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TriggerReversedRegister\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"SetupAgent\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TriggerRegister\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"CollectSupportBundle\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"Failback\\\\\\\\\\\\\\":true}\\\\\\"\\",\\n \\"TaskId\\": \\"t-0004ka624vrza82g46ne\\",\\n \\"RecoveryUseSsd\\": false,\\n \\"Disks\\": \\"[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"boot\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"size\\\\\\\\\\\\\\":500363689984}]\\",\\n \\"RecoveryEssdPerformanceLevel\\": \\"PL1\\",\\n \\"LatestRecoveryPointTime\\": \\"1661419052\\"\\n}","type":"json"}]', + 'title' => '查询受保护服务器', + 'changeSet' => [ + ['createdAt' => '2024-01-09T06:27:22.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-01-09T07:04:54.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '请求参数发生变更、响应参数发生变更、错误码发生变更'], + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '响应参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeServer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'DescribeServers' => [ + 'summary' => '查询受保护服务器。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'RecoveryInstanceType', - 'in' => 'query', - 'schema' => [ - 'title' => '演练的实例规格,未指定时按照指定的CPU核数、内存大小自动寻找可用规格', - 'description' => '演练的实例规格,未指定时按照指定的CPU核数、内存大小自动寻找可用规格', - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.c5.large ', - 'default' => 'null', - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], + ], + 'parameters' => [ [ - 'name' => 'RecoveryUseSsd', + 'name' => 'SitePairId', 'in' => 'query', - 'schema' => [ - 'title' => '演练实例是否使用SSD类型的云盘', - 'description' => '演练实例是否使用SSD类型的云盘', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '站点对ID', 'type' => 'string', 'required' => false, 'example' => 's-0007rvzart0u501t4e5r'], ], [ - 'name' => 'RecoveryUseEssd', + 'name' => 'ServerIds', 'in' => 'query', - 'schema' => [ - 'title' => '演练实例是否使用ESSD类型的云盘', - 'description' => '演练实例是否使用ESSD类型的云盘', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '受保护服务器ID列表', 'type' => 'string', 'required' => false, 'example' => '"[\\"sr-0005qxusucbi38lqfc2q\\",\\"sr-0005qxusucbi38lqfc2r\\"]"'], ], [ - 'name' => 'RecoveryNetwork', + 'name' => 'PageNumber', 'in' => 'query', - 'allowEmptyValue' => false, - 'schema' => [ - 'title' => '演练实例所在的VSwitch ID', - 'description' => '演练实例所在的VSwitch ID', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-bp1g0s2u3b2kbn46kiy53', - ], + 'schema' => ['description' => '分页参数:当前页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], ], [ - 'name' => 'RecoveryReserveIp', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'title' => '演练实例是否保留源机的IP(需要演练所在的VSwitch包含相应网段)', - 'description' => '演练实例是否保留源机的IP(需要演练所在的VSwitch包含相应网段)', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '分页参数:每页显示条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '10'], ], - [ - 'name' => 'RecoveryUseDhcp', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '演练实例是否使用DHCP指定IP', - 'description' => '演练实例是否使用DHCP指定IP', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => 'D2B255D3-9736-5169-B488-C735A8BBCD79'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'PageSize' => ['description' => '分页查询时每页的行数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'PageNumber' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'TotalCount' => ['description' => '总条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'Servers' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'server' => [ + 'description' => '受保护服务器信息', + 'type' => 'array', + 'items' => [ + 'description' => '受保护服务器信息', + 'type' => 'object', + 'properties' => [ + 'RecoveredInstanceName' => ['description' => '容灾切换实例名称', 'type' => 'string', 'example' => 'recovered_server'], + 'PrimarySiteId' => ['description' => '主站站点ID', 'type' => 'string', 'example' => 'si-000cm9ax8sgplgye2vc4'], + 'ServerId' => ['description' => '受保护服务器ID', 'type' => 'string', 'example' => 'sr-000cm9ax8sh2381wa7kv'], + 'RecoveryUseDhcp' => ['description' => '容灾切换的实例是否使用DHCP分配IP', 'type' => 'boolean', 'example' => 'true'], + 'RecoveryMemory' => ['description' => '容灾切换的实例内存大小', 'type' => 'integer', 'format' => 'int64', 'example' => '8589934592'], + 'SourceGatewayVersion' => ['description' => '主站网关版本', 'type' => 'string', 'example' => '3.7.3'], + 'IncrementalSyncStartTime' => ['description' => '增量复制开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1646049677'], + 'CrashConsistentPointPolicy' => ['description' => '恢复点策略', 'type' => 'string', 'example' => '"{\\"scheduleType\\":\\"CRON\\",\\"expression\\":\\"0 0 */1 * * 0,1,2,3,4,5,6\\",\\"initialDelay\\":0}"'], + 'RecoveryPostScriptContent' => ['description' => '容灾演练、容灾切换等机器启动后执行的脚本内容', 'type' => 'string', 'example' => '"echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts"'], + 'TestRecoveredInstanceId' => ['description' => '容灾演练的实例ID', 'type' => 'string', 'example' => 'i-bp13zgzv13am2n2z92lb'], + 'ReplicationNetwork' => ['description' => '复影服务器所在的VSwitch ID', 'type' => 'string', 'example' => 'vsw-2zey7xe0m8dbqrks2jb9h'], + 'RecoveryUseEssd' => ['description' => '容灾演练、容灾切换的实例是否使用ESSD', 'type' => 'boolean', 'example' => 'false'], + 'TargetGatewayVersion' => ['description' => '目的端网关版本', 'type' => 'string', 'example' => '3.7.3'], + 'OsType' => ['description' => '操作系统类型', 'type' => 'string', 'example' => 'linux'], + 'FullSyncStartTime' => ['description' => '全量复制开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'ReplicationUseSsd' => ['description' => '复影服务器是否使用SSD', 'type' => 'boolean', 'example' => 'true'], + 'Rpo' => ['description' => '恢复时间目标,单位秒', 'type' => 'integer', 'format' => 'int32', 'example' => '30'], + 'Consistent' => ['description' => '是否处于一致性状态', 'type' => 'boolean', 'example' => 'true'], + 'FullSyncTotalSize' => ['description' => '全量复制大小,单位B', 'type' => 'integer', 'format' => 'int64', 'example' => '150202220544'], + 'RecoveredIpAddress' => ['description' => '容灾切换的实例IP', 'type' => 'string', 'example' => '192.168.2.2'], + 'Alias' => ['description' => '别名', 'type' => 'string', 'example' => 'test-ecs'], + 'Status' => ['description' => '状态', 'type' => 'string', 'example' => 'replicating'], + 'TestFailoverStatus' => ['description' => '容灾演练状态', 'type' => 'string', 'example' => 'testFailovered'], + 'ReplicationUseEssd' => ['description' => '复影服务器是否使用ESSD', 'type' => 'boolean', 'example' => 'false'], + 'OsDetail' => ['description' => '操作系统详情', 'type' => 'string', 'example' => 'CentOS;7.9.2009'], + 'TestRecoveredIpAddress' => ['description' => '容灾演练的机器IP地址', 'type' => 'string', 'example' => '192.168.2.2'], + 'SecondarySiteId' => ['description' => '从站站点ID', 'type' => 'string', 'example' => 'si-0007o5em8n6mhm8hee1l'], + 'FullSyncProgress' => ['description' => '全量复制进度百分比', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'RecoveryInstanceType' => ['description' => '容灾切换的实例规格', 'type' => 'string', 'example' => 'ecs.r6.3xlarge'], + 'IpAddress' => ['description' => '内网IP地址', 'type' => 'string', 'example' => '30.42.105.6'], + 'RecoveryInstanceName' => ['description' => '容灾切换的实例名称', 'type' => 'string', 'example' => 'HDR_Recovery-sr-000c2rz7q8tak59pt6sw'], + 'OriginalInstanceId' => ['description' => '源端实例ID', 'type' => 'string', 'example' => 'i-bp19axn91irnsi9204xg'], + 'InstanceId' => ['description' => 'ECS实例ID', 'type' => 'string', 'example' => 'i-bp19axn91irnsi9204xg'], + 'RecoveredInstanceId' => ['description' => '容灾切换的实例ID', 'type' => 'string', 'example' => 'i-bp19axn91irnsi9204xg'], + 'RecoveryReserveIp' => ['description' => '容灾切换实例保留源端IP', 'type' => 'boolean', 'example' => 'true'], + 'Memory' => ['description' => '内存大小', 'type' => 'integer', 'format' => 'int64', 'example' => '4294967295'], + 'RecoveryIpAddress' => ['description' => '容灾切换设置的手动IP地址', 'type' => 'string', 'example' => '192.168.2.2'], + 'RecoveryNetwork' => ['description' => '复影服务器所在的虚拟交换机ID', 'type' => 'string', 'example' => 'vsw-uf63qu8ocjcly44tai570'], + 'Errno' => ['description' => '出错原因', 'type' => 'string', 'example' => 'cdr.console.plugin.alicloud.agent_deploy_already_installed'], + 'ReplicationUseOriginalInstance' => ['description' => '复影服务器使用源机,仅反向复制时有效', 'type' => 'boolean', 'example' => 'false'], + 'Hostname' => ['description' => '主机名称', 'type' => 'string', 'example' => 'test'], + 'RecoveryCpu' => ['description' => '容灾切换的实例CPU核数', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], + 'AgentPort' => ['description' => '客户端代理端口', 'type' => 'integer', 'format' => 'int32', 'example' => '9080'], + 'ReplicationUseDhcp' => ['description' => '复影服务器使用DHCP分配IP', 'type' => 'boolean', 'example' => 'false'], + 'TestRecoveredInstanceName' => ['description' => '容灾演练的实例名称', 'type' => 'string', 'example' => 'HDR_Recovery-sr-000c2rz7q8tak59pt6sw'], + 'AgentVersion' => ['description' => '客户端版本', 'type' => 'string', 'example' => '3.7.3'], + 'FullSyncCurrentSize' => ['description' => '全量复制已完成大小,单位B', 'type' => 'integer', 'format' => 'int64', 'example' => '1603469836288'], + 'ReplicationInfrastructureType' => ['description' => '复制使用的基础设施类型', 'type' => 'string', 'example' => 'aliyun'], + 'Cpu' => ['description' => 'CPU核数', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], + 'RecoveryPostScriptType' => ['description' => '容灾切换的实例启动后执行的脚本类型', 'type' => 'string', 'example' => 'SHELL'], + 'ReplicationInfrastructureId' => ['description' => '复制使用的基础设施ID', 'type' => 'string', 'example' => 'is-0004ka624vrxd9xsvs4f'], + 'ConnectionStatus' => ['description' => '连接状态', 'type' => 'string', 'example' => 'connected'], + 'Operations' => ['description' => '该实例支持与禁用的操作列表', 'type' => 'string', 'example' => '"{\\"Resynchronize\\":true,\\"TestFailover\\":true,\\"TestCleanup\\":true,\\"ChangeRecoveryPoint\\":true,\\"UnregisterServer\\":true,\\"ReversedEnableReplication\\":true,\\"ReversedDisableReplication\\":true,\\"DisableReplication\\":true,\\"CommitFailover\\":true,\\"RestartServer\\":true,\\"UpgradeServer\\":true,\\"ForcedFailover\\":true,\\"RepairReplication\\":true,\\"EnableReplication\\":true,\\"TriggerReversedRegister\\":true,\\"SetupAgent\\":true,\\"TriggerRegister\\":true,\\"CollectSupportBundle\\":true,\\"Failback\\":true}"'], + 'TaskId' => ['description' => '正在执行的任务ID', 'type' => 'string', 'example' => 't-0007rvzart0v31c0x93q'], + 'RecoveryUseSsd' => ['description' => '容灾切换的实例是否使用SSD', 'type' => 'boolean', 'example' => 'true'], + 'Disks' => ['description' => '磁盘信息列表', 'type' => 'string', 'example' => '[{\\"id\\":\\"0\\",\\"boot\\":true,\\"size\\":500363689984}]'], + 'RecoveryEssdPerformanceLevel' => ['description' => '演练、切换使用ESSD时选定的PL等级', 'type' => 'string', 'example' => 'PL3'], + 'LatestRecoveryPointTime' => ['description' => '最近一次创建恢复点的时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1661419052'], + ], + ], + ], + ], + 'description' => '', + ], + ], + 'description' => '', ], ], - [ - 'name' => 'RecoveryIpAddress', - 'in' => 'query', - 'schema' => [ - 'title' => '演练实例的IP', - 'description' => '演练实例的IP', - 'type' => 'string', - 'required' => false, - 'example' => '10.10.10.10', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D2B255D3-9736-5169-B488-C735A8BBCD79\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 2,\\n \\"TotalCount\\": 10,\\n \\"Servers\\": {\\n \\"server\\": [\\n {\\n \\"RecoveredInstanceName\\": \\"recovered_server\\",\\n \\"PrimarySiteId\\": \\"si-000cm9ax8sgplgye2vc4\\",\\n \\"ServerId\\": \\"sr-000cm9ax8sh2381wa7kv\\",\\n \\"RecoveryUseDhcp\\": true,\\n \\"RecoveryMemory\\": 8589934592,\\n \\"SourceGatewayVersion\\": \\"3.7.3\\",\\n \\"IncrementalSyncStartTime\\": 1646049677,\\n \\"CrashConsistentPointPolicy\\": \\"\\\\\\"{\\\\\\\\\\\\\\"scheduleType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"CRON\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"expression\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"0 0 */1 * * 0,1,2,3,4,5,6\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"initialDelay\\\\\\\\\\\\\\":0}\\\\\\"\\",\\n \\"RecoveryPostScriptContent\\": \\"\\\\\\"echo \\\\\\\\\\\\\\"127.0.0.1 kubernetes.docker.internal\\\\\\\\\\\\\\" >> /etc/hosts\\\\\\"\\",\\n \\"TestRecoveredInstanceId\\": \\"i-bp13zgzv13am2n2z92lb\\",\\n \\"ReplicationNetwork\\": \\"vsw-2zey7xe0m8dbqrks2jb9h\\",\\n \\"RecoveryUseEssd\\": false,\\n \\"TargetGatewayVersion\\": \\"3.7.3\\",\\n \\"OsType\\": \\"linux\\",\\n \\"FullSyncStartTime\\": 0,\\n \\"ReplicationUseSsd\\": true,\\n \\"Rpo\\": 30,\\n \\"Consistent\\": true,\\n \\"FullSyncTotalSize\\": 150202220544,\\n \\"RecoveredIpAddress\\": \\"192.168.2.2\\",\\n \\"Alias\\": \\"test-ecs\\",\\n \\"Status\\": \\"replicating\\",\\n \\"TestFailoverStatus\\": \\"testFailovered\\",\\n \\"ReplicationUseEssd\\": false,\\n \\"OsDetail\\": \\"CentOS;7.9.2009\\",\\n \\"TestRecoveredIpAddress\\": \\"192.168.2.2\\",\\n \\"SecondarySiteId\\": \\"si-0007o5em8n6mhm8hee1l\\",\\n \\"FullSyncProgress\\": 0,\\n \\"RecoveryInstanceType\\": \\"ecs.r6.3xlarge\\",\\n \\"IpAddress\\": \\"30.42.105.6\\",\\n \\"RecoveryInstanceName\\": \\"HDR_Recovery-sr-000c2rz7q8tak59pt6sw\\",\\n \\"OriginalInstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"InstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"RecoveredInstanceId\\": \\"i-bp19axn91irnsi9204xg\\",\\n \\"RecoveryReserveIp\\": true,\\n \\"Memory\\": 4294967295,\\n \\"RecoveryIpAddress\\": \\"192.168.2.2\\",\\n \\"RecoveryNetwork\\": \\"vsw-uf63qu8ocjcly44tai570\\",\\n \\"Errno\\": \\"cdr.console.plugin.alicloud.agent_deploy_already_installed\\",\\n \\"ReplicationUseOriginalInstance\\": false,\\n \\"Hostname\\": \\"test\\",\\n \\"RecoveryCpu\\": 4,\\n \\"AgentPort\\": 9080,\\n \\"ReplicationUseDhcp\\": false,\\n \\"TestRecoveredInstanceName\\": \\"HDR_Recovery-sr-000c2rz7q8tak59pt6sw\\",\\n \\"AgentVersion\\": \\"3.7.3\\",\\n \\"FullSyncCurrentSize\\": 1603469836288,\\n \\"ReplicationInfrastructureType\\": \\"aliyun\\",\\n \\"Cpu\\": 4,\\n \\"RecoveryPostScriptType\\": \\"SHELL\\",\\n \\"ReplicationInfrastructureId\\": \\"is-0004ka624vrxd9xsvs4f\\",\\n \\"ConnectionStatus\\": \\"connected\\",\\n \\"Operations\\": \\"\\\\\\"{\\\\\\\\\\\\\\"Resynchronize\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TestFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TestCleanup\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ChangeRecoveryPoint\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"UnregisterServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ReversedEnableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ReversedDisableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"DisableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"CommitFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"RestartServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"UpgradeServer\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"ForcedFailover\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"RepairReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"EnableReplication\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TriggerReversedRegister\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"SetupAgent\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"TriggerRegister\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"CollectSupportBundle\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"Failback\\\\\\\\\\\\\\":true}\\\\\\"\\",\\n \\"TaskId\\": \\"t-0007rvzart0v31c0x93q\\",\\n \\"RecoveryUseSsd\\": true,\\n \\"Disks\\": \\"[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"boot\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"size\\\\\\\\\\\\\\":500363689984}]\\",\\n \\"RecoveryEssdPerformanceLevel\\": \\"PL3\\",\\n \\"LatestRecoveryPointTime\\": 1661419052\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询受保护服务器', + 'changeSet' => [ + ['createdAt' => '2024-01-09T06:27:22.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-01-09T07:04:54.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '响应参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeServers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'DescribeSite' => [ + 'summary' => '查询站点信息。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'RecoveryPostScriptType', - 'in' => 'query', - 'schema' => [ - 'title' => '演练实例启动后执行脚本类型,可选项:SHELL', - 'description' => '演练实例启动后执行脚本类型,可选项:SHELL', - 'type' => 'string', - 'required' => false, - 'example' => 'SHELL', - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREhdrKVSJIZ', 'FEATUREhdrEJMNXE', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], + ], + 'parameters' => [ [ - 'name' => 'RecoveryPostScriptContent', + 'name' => 'SiteId', 'in' => 'query', - 'schema' => [ - 'title' => '演练实例启动后执行脚本', - 'description' => '演练实例启动后执行脚本', - 'type' => 'string', - 'required' => false, - 'example' => 'echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts', - ], + 'schema' => ['description' => '站点ID', 'type' => 'string', 'required' => true, 'example' => 'si-000bzkmmlwh01trrecuw'], ], - [ - 'name' => 'RecoveryPointId', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '演练实例使用的恢复点ID', - 'description' => '演练实例使用的恢复点ID', - 'type' => 'string', - 'required' => false, - 'example' => 'rp-0001cgurtbrvrkj2p2pp', + 'type' => 'object', + 'properties' => [ + 'VpcId' => ['description' => '专有网络ID', 'type' => 'string', 'example' => 'vpc-bp1c3byhnaoj3u96sgk12'], + 'Type' => ['description' => '站点类型', 'type' => 'string', 'example' => 'cloud'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'B30A844D-E4CF-5382-A0D4-3DE76A8AD2AE'], + 'SiteId' => ['description' => '站点ID', 'type' => 'string', 'example' => 'si-000bzkmmlwh01trrecuw'], + 'UserSecurityGroupId' => ['description' => '用户安全组ID', 'type' => 'string', 'example' => 'sg-bp1466glrmpqfsq4zpjs'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'ZoneId' => ['description' => '可用区ID', 'type' => 'string', 'example' => 'cn-shanghai-l'], + 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'Name' => ['description' => '站点名称', 'type' => 'string', 'example' => 'SH'], + 'RegionId' => ['description' => '站点所在的地域ID', 'type' => 'string', 'example' => 'cn-shanghai'], + ], + 'description' => '', ], ], - [ - 'name' => 'RecoveryPointTime', - 'in' => 'query', - 'schema' => [ - 'description' => '恢复点时间,若未指定恢复点ID时,根据恢复点时间查询可用恢复点。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1646046000', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"VpcId\\": \\"vpc-bp1c3byhnaoj3u96sgk12\\",\\n \\"Type\\": \\"cloud\\",\\n \\"RequestId\\": \\"B30A844D-E4CF-5382-A0D4-3DE76A8AD2AE\\",\\n \\"SiteId\\": \\"si-000bzkmmlwh01trrecuw\\",\\n \\"UserSecurityGroupId\\": \\"sg-bp1466glrmpqfsq4zpjs\\",\\n \\"Success\\": true,\\n \\"ZoneId\\": \\"cn-shanghai-l\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Name\\": \\"SH\\",\\n \\"RegionId\\": \\"cn-shanghai\\"\\n}","type":"json"}]', + 'title' => '查询站点信息', + 'changeSet' => [ + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '请求参数发生变更、错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeSite', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'DescribeSitePair' => [ + 'summary' => '查询站点对信息。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'EipAddressId', - 'in' => 'query', - 'schema' => [ - 'title' => '演练实例绑定的弹性公网IP ID', - 'description' => '演练实例绑定的弹性公网IP ID', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-bp1nf283u9p060q4gim7m', - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], + ], + 'parameters' => [ [ - 'name' => 'RecoveryEssdPerformanceLevel', + 'name' => 'SitePairId', 'in' => 'query', - 'schema' => [ - 'description' => 'ESSD盘的PL等级,支持的PL等级按照最小的云盘大小进行判断', - 'type' => 'string', - 'required' => false, - 'example' => 'PL3', - 'default' => 'PL1', - 'enum' => [ - 'PL0', - 'PL1', - 'PL2', - 'PL3', - ], - ], + 'schema' => ['description' => '站点对ID', 'type' => 'string', 'required' => true, 'example' => 's-0007rvzart0c4cn130df'], ], ], 'responses' => [ @@ -2194,76 +1533,64 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求唯一ID,具有唯一性。', - 'type' => 'string', - 'example' => '6758891B-CF5A-5CA6-BF59-633573B91140', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-000h3k00ckeknbukn5a5', - ], - 'Success' => [ - 'description' => '是否调用成功。', - 'type' => 'boolean', - 'example' => 'True', - ], + 'SitePairType' => ['description' => '站点对类型', 'type' => 'string', 'example' => 'cloud2cloud'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'SecondarySiteId' => ['description' => '从站站点ID', 'type' => 'string', 'example' => 'si-0007rvzart0a2wpup82m'], + 'PrimarySiteId' => ['description' => '主站站点ID', 'type' => 'string', 'example' => 'si-0001jntih0phb0i2w1ya'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '700F1972-16A2-5639-A937-D2A6D61557B8'], + 'Version' => ['description' => '版本号', 'type' => 'string', 'example' => '3.7.3'], + 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'SitePairId' => ['description' => '站点对ID', 'type' => 'string', 'example' => 's-000j6lhiuvdqakqa6k7l'], + 'SecondarySiteName' => ['description' => '从站站点名称', 'type' => 'string', 'example' => '杭州D区'], + 'CreatedTime' => ['description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1637293095'], + 'PrimarySiteName' => ['description' => '主站站点名称', 'type' => 'string', 'example' => '杭州F区'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"6758891B-CF5A-5CA6-BF59-633573B91140\\",\\n \\"TaskId\\": \\"t-000h3k00ckeknbukn5a5\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '容灾演练', - ], - 'TestCleanup' => [ - 'summary' => '清理容灾演练环境。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"SitePairType\\": \\"cloud2cloud\\",\\n \\"Success\\": true,\\n \\"Message\\": \\"successful\\",\\n \\"SecondarySiteId\\": \\"si-0007rvzart0a2wpup82m\\",\\n \\"PrimarySiteId\\": \\"si-0001jntih0phb0i2w1ya\\",\\n \\"RequestId\\": \\"700F1972-16A2-5639-A937-D2A6D61557B8\\",\\n \\"Version\\": \\"3.7.3\\",\\n \\"Code\\": \\"200\\",\\n \\"SitePairId\\": \\"s-000j6lhiuvdqakqa6k7l\\",\\n \\"SecondarySiteName\\": \\"杭州D区\\",\\n \\"CreatedTime\\": 1637293095,\\n \\"PrimarySiteName\\": \\"杭州F区\\"\\n}","type":"json"}]', + 'title' => '查询站点对信息', + 'changeSet' => [ + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-02-28T07:54:28.000Z', 'description' => '错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeSitePair', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeSitePairStatistics' => [ + 'summary' => '查询站点对统计信息。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ - 'name' => 'ServerId', + 'name' => 'SitePairId', 'in' => 'query', - 'schema' => [ - 'title' => '受保护服务器ID', - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-000cvyfewfi6fzi9zoql', - ], + 'schema' => ['description' => '站点对ID', 'type' => 'string', 'required' => false, 'example' => 's-0005qxusucbp8acutbrv'], ], ], 'responses' => [ @@ -2271,48 +1598,98 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', + 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => 'C0D9AAEE-8A21-5693-BCBD-8548914E4F3B'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'PrimarySiteGatewayInfo' => [ + 'description' => '主站站点信息', + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => '网关状态', 'type' => 'string', 'example' => 'connected'], + 'GatewayId' => ['description' => '网关ID', 'type' => 'string', 'example' => 'gw-000bzkmmlwgzptnzsdnh'], + 'Version' => ['description' => '网关版本', 'type' => 'string', 'example' => '3.7.3'], + 'HeartbeatedTime' => ['description' => '网关心跳时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1642562996'], + ], ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '531E3DB9-3ED6-5F06-A09A-721F279CB64B', + 'SecondarySiteGatewayInfo' => [ + 'description' => '从站站点信息', + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => '网关状态', 'type' => 'string', 'example' => 'connected'], + 'GatewayId' => ['description' => '网关ID', 'type' => 'string', 'example' => 'gw-0005qxusucbigzug9wpe'], + 'Version' => ['description' => '网关版本', 'type' => 'string', 'example' => '3.7.3'], + 'HeartbeatedTime' => ['description' => '网关心跳时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1642562996'], + ], ], - 'TaskId' => [ - 'description' => '任务id。', - 'type' => 'string', - 'example' => 't-000bzkmmlwh6tpzhitdz', + 'PrimarySiteServers' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'server' => [ + 'description' => '主站说保护服务器信息列表', + 'type' => 'array', + 'items' => [ + 'description' => '主站说保护服务器信息', + 'type' => 'object', + 'properties' => [ + 'AgentVersion' => ['description' => '客户端版本号', 'type' => 'string', 'example' => '3.7.3'], + 'ConnectionStatus' => ['description' => '受保护服务器连接状态', 'type' => 'string', 'example' => 'connected'], + 'IpAddress' => ['description' => '受保护服务器IP地址', 'type' => 'string', 'example' => '30.42.105.6'], + 'ServerId' => ['description' => '受保护服务器ID', 'type' => 'string', 'example' => 'sr-000c2rz7q8tkc0g4xgao'], + ], + ], + ], + ], + 'description' => '', ], - 'Success' => [ - 'description' => '操作是否成功。', - 'type' => 'boolean', - 'example' => 'True', + 'SecondarySiteServers' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'server' => [ + 'description' => '从站受保护服务器信息列表', + 'type' => 'array', + 'items' => [ + 'description' => '从站受保护服务器信息', + 'type' => 'object', + 'properties' => [ + 'AgentVersion' => ['description' => '客户端版本号', 'type' => 'string', 'example' => '3.7.3'], + 'ConnectionStatus' => ['description' => '受保护服务器连接状态', 'type' => 'string', 'example' => 'connected'], + 'IpAddress' => ['description' => '受保护服务器IP地址', 'type' => 'string', 'example' => '192.168.1.4'], + 'ServerId' => ['description' => '受保护服务器ID', 'type' => 'string', 'example' => 'sr-000ikcyl8ucxtxl5f7pi'], + ], + ], + ], + ], + 'description' => '', ], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"531E3DB9-3ED6-5F06-A09A-721F279CB64B\\",\\n \\"TaskId\\": \\"t-000bzkmmlwh6tpzhitdz\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '清理容灾演练环境', - ], - 'DescribeRecoveryPoints' => [ - 'summary' => '查询可用恢复点。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"C0D9AAEE-8A21-5693-BCBD-8548914E4F3B\\",\\n \\"Success\\": true,\\n \\"PrimarySiteGatewayInfo\\": {\\n \\"Status\\": \\"connected\\",\\n \\"GatewayId\\": \\"gw-000bzkmmlwgzptnzsdnh\\",\\n \\"Version\\": \\"3.7.3\\",\\n \\"HeartbeatedTime\\": 1642562996\\n },\\n \\"SecondarySiteGatewayInfo\\": {\\n \\"Status\\": \\"connected\\",\\n \\"GatewayId\\": \\"gw-0005qxusucbigzug9wpe\\",\\n \\"Version\\": \\"3.7.3\\",\\n \\"HeartbeatedTime\\": 1642562996\\n },\\n \\"PrimarySiteServers\\": {\\n \\"server\\": [\\n {\\n \\"AgentVersion\\": \\"3.7.3\\",\\n \\"ConnectionStatus\\": \\"connected\\",\\n \\"IpAddress\\": \\"30.42.105.6\\",\\n \\"ServerId\\": \\"sr-000c2rz7q8tkc0g4xgao\\"\\n }\\n ]\\n },\\n \\"SecondarySiteServers\\": {\\n \\"server\\": [\\n {\\n \\"AgentVersion\\": \\"3.7.3\\",\\n \\"ConnectionStatus\\": \\"connected\\",\\n \\"IpAddress\\": \\"192.168.1.4\\",\\n \\"ServerId\\": \\"sr-000ikcyl8ucxtxl5f7pi\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询站点对统计信息', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeSitePairStatistics', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeSitePairs' => [ + 'summary' => '查询站点对信息。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2323,34 +1700,23 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ - 'name' => 'ServerId', + 'name' => 'SitePairType', 'in' => 'query', - 'schema' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-0008fj9dbe1xzlg6805i', - ], + 'schema' => ['description' => '站点对类型', 'type' => 'string', 'required' => false, 'example' => 'cloud2cloud'], ], [ - 'name' => 'StartTime', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '开始时间,从开始时间查询可用恢复点', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1633503912', - ], + 'schema' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => '分页查询时设置的每页行数,默认值为10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], ], 'responses' => [ @@ -2358,293 +1724,473 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回消息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8260C928-1A54-545A-A3F2-51E6327D28E6', - ], - 'TotalCount' => [ - 'description' => '可用恢复点的总数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '15', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'RecoveryPoints' => [ + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '24CFBF97-EAD7-5D53-8D50-7F9E9D20C3A3'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'PageSize' => ['description' => '分页查询时设置的每页行数,默认值为10。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'PageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'TotalCount' => ['description' => '总数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '28'], + 'SitePairs' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ - 'recoveryPoint' => [ - 'description' => '恢复点信息。', + 'sitePair' => [ + 'description' => '站点对信息', 'type' => 'array', 'items' => [ - 'description' => '恢复点信息。', + 'description' => '站点对信息', 'type' => 'object', 'properties' => [ - 'ApplicationConsistent' => [ - 'description' => '恢复点是否满足应用一致性', - 'type' => 'boolean', - 'example' => 'false', - ], - 'RecoveryPointTime' => [ - 'description' => '恢复点时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1637118000', - ], - 'Disabled' => [ - 'description' => '恢复点是否被禁用。', - 'type' => 'boolean', - 'example' => 'false', + 'SitePairType' => ['description' => '站点对类型', 'type' => 'string', 'example' => 'cloud2cloud'], + 'LocalSiteName' => ['description' => '本地站点名称', 'type' => 'string', 'example' => 'local-site'], + 'SecondarySiteId' => ['description' => '从站ID', 'type' => 'string', 'example' => 'si-0007nrkb2riv9yalg8s8'], + 'PrimarySiteId' => ['description' => '主站ID', 'type' => 'string', 'example' => 'si-000as7kbj0cmlp3tt60m'], + 'Version' => ['description' => '网关版本号', 'type' => 'string', 'example' => '3.7.3'], + 'ServerCount' => ['description' => '受保护服务器数量', 'type' => 'integer', 'format' => 'int32', 'example' => '14'], + 'CloudSiteName' => ['description' => '云上站点名称', 'type' => 'string', 'example' => 'cloud-site'], + 'SitePairId' => ['description' => '站点对ID', 'type' => 'string', 'example' => 's-0003obqyc8f8lx2pf6m9'], + 'SecondarySiteName' => ['description' => '从站名称', 'type' => 'string', 'example' => 'SH'], + 'PrimarySiteName' => ['description' => '主站名称', 'type' => 'string', 'example' => 'HZ'], + 'CreatedTime' => ['description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1636092147'], + 'ReplicationStatistics' => [ + 'description' => '复制状态统计', + 'type' => 'object', + 'properties' => [ + 'Healthy' => ['description' => '处于健康状态(全量复制、实时复制)的受保护服务器数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '4'], + 'Warning' => ['description' => '处于警告状态(RPO超过20分钟、暂时断开连接等)的受保护服务器数量', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'Critical' => ['description' => '处于危险状态(复制失败等)的受保护服务器数量', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'NotApplicable' => ['description' => '处于其他状态的受保护服务器数量', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + ], ], - 'RecoveryPointId' => [ - 'description' => '恢复点ID', - 'type' => 'string', - 'example' => 'rp-0000syrdl2f8a7te4063', + ], + ], + ], + ], + 'description' => '', + ], + ], + 'description' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"24CFBF97-EAD7-5D53-8D50-7F9E9D20C3A3\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 5,\\n \\"TotalCount\\": 28,\\n \\"SitePairs\\": {\\n \\"sitePair\\": [\\n {\\n \\"SitePairType\\": \\"cloud2cloud\\",\\n \\"LocalSiteName\\": \\"local-site\\",\\n \\"SecondarySiteId\\": \\"si-0007nrkb2riv9yalg8s8\\",\\n \\"PrimarySiteId\\": \\"si-000as7kbj0cmlp3tt60m\\",\\n \\"Version\\": \\"3.7.3\\",\\n \\"ServerCount\\": 14,\\n \\"CloudSiteName\\": \\"cloud-site\\",\\n \\"SitePairId\\": \\"s-0003obqyc8f8lx2pf6m9\\",\\n \\"SecondarySiteName\\": \\"SH\\",\\n \\"PrimarySiteName\\": \\"HZ\\",\\n \\"CreatedTime\\": 1636092147,\\n \\"ReplicationStatistics\\": {\\n \\"Healthy\\": 4,\\n \\"Warning\\": 0,\\n \\"Critical\\": 0,\\n \\"NotApplicable\\": 0\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询站点对信息', + 'changeSet' => [ + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ['createdAt' => '2021-11-16T02:41:16.000Z', 'description' => '响应参数发生变更、错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeSitePairs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'DescribeSummary' => [ + 'summary' => '查询概览信息。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREhdrKVSJIZ', 'FEATUREhdrEJMNXE', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => 'DE78056B-E82A-52FD-BF5E-F737D8B63845'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'ServerCount' => ['description' => '受保护服务器总数量', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'TotalSize' => ['description' => '站点对总数量', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'DbServerCount' => ['description' => '数据库服务器数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'SiteCount' => ['description' => '站点数量', 'type' => 'integer', 'format' => 'int64', 'example' => '4'], + 'ReplicationDetails' => [ + 'description' => '复制状态统计信息', + 'type' => 'object', + 'properties' => [ + 'WarningServers' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'warningServer' => [ + 'description' => '处于警告状态的受保护服务器信息', + 'type' => 'array', + 'items' => [ + 'description' => '处于警告状态的受保护服务器信息', + 'type' => 'object', + 'properties' => [ + 'ServerId' => ['description' => '受保护服务器ID', 'type' => 'string', 'example' => 'sr-000fzufp79icz33l4pak'], + 'InstanceId' => ['description' => '受保护服务器实例ID', 'type' => 'string', 'example' => 'i-bp1a4374akk4527gbt9x'], + 'SitePairId' => ['description' => '受保护服务器站点对ID', 'type' => 'string', 'example' => 's-000bzkmmlwh5riquud19'], + 'Rpo' => ['description' => 'RPO', 'type' => 'integer', 'format' => 'int64', 'example' => '30'], + 'Status' => ['description' => '状态', 'type' => 'string', 'example' => 'replicating'], + 'ConnectionStatus' => ['description' => '连接状态', 'type' => 'string', 'example' => 'connected'], + ], ], - 'Used' => [ - 'description' => '恢复点是否已被使用', - 'type' => 'boolean', - 'example' => 'false', + ], + ], + 'description' => '', + ], + 'CriticalServers' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'criticalServer' => [ + 'description' => '处于危险状态的受保护服务器信息', + 'type' => 'array', + 'items' => [ + 'description' => '处于危险状态的受保护服务器信息', + 'type' => 'object', + 'properties' => [ + 'ServerId' => ['description' => '受保护服务器ID', 'type' => 'string', 'example' => 'sr-0005qxusucb0fqqdf4ba'], + 'InstanceId' => ['description' => '受保护服务器实例ID', 'type' => 'string', 'example' => 'i-bp1a4374akk4527gbt9x'], + 'SitePairId' => ['description' => '受保护服务器站点对ID', 'type' => 'string', 'example' => 's-0005qxusucbii3ba2uve'], + 'Rpo' => ['description' => 'RPO', 'type' => 'integer', 'format' => 'int64', 'example' => '30'], + 'Status' => ['description' => '状态', 'type' => 'string', 'example' => 'replicating'], + 'ConnectionStatus' => ['description' => '连接状态', 'type' => 'string', 'example' => 'connected'], + ], ], - 'DisableReason' => [ - 'description' => '恢复点被禁用的原因', - 'type' => 'string', - 'example' => 'inconsistent', + ], + ], + 'description' => '', + ], + 'NotApplicableServers' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'notApplicableServer' => [ + 'description' => '处于非复制状态的受保护服务器信息', + 'type' => 'array', + 'items' => [ + 'description' => '处于未复制状态的受保护服务器信息', + 'type' => 'object', + 'properties' => [ + 'ServerId' => ['description' => '受保护服务器ID', 'type' => 'string', 'example' => 'sr-000iji78mxxc93yldd2e'], + 'InstanceId' => ['description' => '受保护服务器实例ID', 'type' => 'string', 'example' => 'i-bp1a4374akk4527gbt9x'], + 'SitePairId' => ['description' => '受保护服务器站点对ID', 'type' => 'string', 'example' => 's-000bzkmmlwh5riquud19'], + 'Rpo' => ['description' => 'RPO', 'type' => 'integer', 'format' => 'int64', 'example' => '40'], + 'Status' => ['description' => '状态', 'type' => 'string', 'example' => 'replicating'], + 'ConnectionStatus' => ['description' => '连接状态', 'type' => 'string', 'example' => 'connected'], + ], ], ], ], + 'description' => '', ], ], ], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"8260C928-1A54-545A-A3F2-51E6327D28E6\\",\\n \\"TotalCount\\": 15,\\n \\"Success\\": true,\\n \\"RecoveryPoints\\": {\\n \\"recoveryPoint\\": [\\n {\\n \\"ApplicationConsistent\\": false,\\n \\"RecoveryPointTime\\": 1637118000,\\n \\"Disabled\\": false,\\n \\"RecoveryPointId\\": \\"rp-0000syrdl2f8a7te4063\\",\\n \\"Used\\": false,\\n \\"DisableReason\\": \\"inconsistent\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询可用恢复点', - ], - 'ChangeRecoveryPoint' => [ - 'summary' => '更换恢复点。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DE78056B-E82A-52FD-BF5E-F737D8B63845\\",\\n \\"Success\\": true,\\n \\"ServerCount\\": 2,\\n \\"TotalSize\\": 10,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"DbServerCount\\": 0,\\n \\"SiteCount\\": 4,\\n \\"ReplicationDetails\\": {\\n \\"WarningServers\\": {\\n \\"warningServer\\": [\\n {\\n \\"ServerId\\": \\"sr-000fzufp79icz33l4pak\\",\\n \\"InstanceId\\": \\"i-bp1a4374akk4527gbt9x\\",\\n \\"SitePairId\\": \\"s-000bzkmmlwh5riquud19\\",\\n \\"Rpo\\": 30,\\n \\"Status\\": \\"replicating\\",\\n \\"ConnectionStatus\\": \\"connected\\"\\n }\\n ]\\n },\\n \\"CriticalServers\\": {\\n \\"criticalServer\\": [\\n {\\n \\"ServerId\\": \\"sr-0005qxusucb0fqqdf4ba\\",\\n \\"InstanceId\\": \\"i-bp1a4374akk4527gbt9x\\",\\n \\"SitePairId\\": \\"s-0005qxusucbii3ba2uve\\",\\n \\"Rpo\\": 30,\\n \\"Status\\": \\"replicating\\",\\n \\"ConnectionStatus\\": \\"connected\\"\\n }\\n ]\\n },\\n \\"NotApplicableServers\\": {\\n \\"notApplicableServer\\": [\\n {\\n \\"ServerId\\": \\"sr-000iji78mxxc93yldd2e\\",\\n \\"InstanceId\\": \\"i-bp1a4374akk4527gbt9x\\",\\n \\"SitePairId\\": \\"s-000bzkmmlwh5riquud19\\",\\n \\"Rpo\\": 40,\\n \\"Status\\": \\"replicating\\",\\n \\"ConnectionStatus\\": \\"connected\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', + 'title' => '查询概览信息', + 'changeSet' => [ + ['createdAt' => '2021-11-16T02:41:16.000Z', 'description' => '响应参数发生变更、错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeSummary', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DescribeTask' => [ + 'summary' => '查询任务。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ - 'name' => 'ServerId', + 'name' => 'TaskId', 'in' => 'query', + 'schema' => ['description' => '任务ID', 'type' => 'string', 'required' => true, 'example' => 't-0005qxusucbnl5efovq9'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-000bak4sdet6gv8q0c2j', + 'type' => 'object', + 'properties' => [ + 'Progress' => ['description' => '任务进度百分比。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '8F8A2274-F2A5-5782-89A0-7FA442BFA16B'], + 'UpdatedTime' => ['description' => '最后修改时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1636452195'], + 'StatusCode' => ['description' => '任务状态', 'type' => 'string', 'example' => 'hdr.task.TestFailoverTask.waitStartFailover'], + 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => '200'], + 'Name' => ['description' => '任务名称', 'type' => 'string', 'example' => 'hdr.task.name.TestFailoverTask'], + 'TaskId' => ['description' => '任务ID', 'type' => 'string', 'example' => 't-000bzkmmlwh57miq4mwh'], + 'Content' => ['description' => '任务内容。', 'type' => 'string', 'example' => '-'], + 'CreatedTime' => ['description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1646100927'], + ], + 'description' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Progress\\": 100,\\n \\"Success\\": true,\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"8F8A2274-F2A5-5782-89A0-7FA442BFA16B\\",\\n \\"UpdatedTime\\": 1636452195,\\n \\"StatusCode\\": \\"hdr.task.TestFailoverTask.waitStartFailover\\",\\n \\"Code\\": \\"200\\",\\n \\"Name\\": \\"hdr.task.name.TestFailoverTask\\",\\n \\"TaskId\\": \\"t-000bzkmmlwh57miq4mwh\\",\\n \\"Content\\": \\"-\\",\\n \\"CreatedTime\\": 1646100927\\n}","type":"json"}]', + 'title' => '查询任务', + 'changeSet' => [ + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'DescribeTasks' => [ + 'summary' => '查询任务列表。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'RecoveryInstanceName', + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREhdrKVSJIZ', 'FEATUREhdrEJMNXE', 'FEATUREhdrF01CKY', 'FEATUREhdrE49XN0'], + ], + 'parameters' => [ + [ + 'name' => 'SitePairId', 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例名称', - 'type' => 'string', - 'required' => false, - 'example' => 'HDR_Recovery-sr-000c9550g8gycc8oi4fb-cpr', - ], + 'schema' => ['description' => '站点对ID', 'type' => 'string', 'required' => false, 'example' => 's-000cm9ax8sh22u8r9gs0'], ], [ - 'name' => 'RecoveryCpu', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例CPU核数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '4', - ], + 'schema' => ['description' => '分页查询的当前页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], ], [ - 'name' => 'RecoveryMemory', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例内存大小', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '4294967296', - ], + 'schema' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '10'], ], [ - 'name' => 'RecoveryInstanceType', + 'name' => 'SortBy', 'in' => 'query', 'schema' => [ - 'description' => '恢复的实例规格', + 'description' => '按创建时间或更新时间排序', 'type' => 'string', 'required' => false, - 'example' => 'ecs.r6.3xlarge', + 'enumValueTitles' => ['updatedTime' => 'updatedTime', 'createdTime' => 'createdTime'], + 'example' => 'createdTime', ], ], - [ - 'name' => 'RecoveryUseSsd', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '恢复的实例是否使用SSD', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => '86FFBA6E-D087-53E0-8593-4575925CB9DC'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageSize' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'PageNumber' => ['description' => '分页查询的当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'TotalCount' => ['description' => '总条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '53'], + 'Tasks' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'task' => [ + 'description' => '任务列表。', + 'type' => 'array', + 'items' => [ + 'description' => '任务列表', + 'type' => 'object', + 'properties' => [ + 'Progress' => ['description' => '任务进度百分比。', 'type' => 'integer', 'format' => 'int32', 'example' => '90'], + 'UpdatedTime' => ['description' => '最后修改时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1637292645'], + 'StatusCode' => ['description' => '任务状态', 'type' => 'string', 'example' => 'hdr.task.completed'], + 'TargetName' => ['description' => '任务的目标', 'type' => 'string', 'example' => 'sr-000ftuch27gfuv8wvpyj'], + 'Name' => ['description' => '任务名称', 'type' => 'string', 'example' => 'CommitFailoverTask'], + 'CreatedTime' => ['description' => '任务创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1636092147'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-0007wl5r0hvxrp3c3x8z'], + ], + ], + ], + ], + 'description' => '', + ], + ], + 'description' => '', ], ], - [ - 'name' => 'RecoveryUseEssd', - 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例是否使用ESSD', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86FFBA6E-D087-53E0-8593-4575925CB9DC\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 3,\\n \\"TotalCount\\": 53,\\n \\"Tasks\\": {\\n \\"task\\": [\\n {\\n \\"Progress\\": 90,\\n \\"UpdatedTime\\": 1637292645,\\n \\"StatusCode\\": \\"hdr.task.completed\\",\\n \\"TargetName\\": \\"sr-000ftuch27gfuv8wvpyj\\",\\n \\"Name\\": \\"CommitFailoverTask\\",\\n \\"CreatedTime\\": 1636092147,\\n \\"TaskId\\": \\"t-0007wl5r0hvxrp3c3x8z\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询任务列表', + 'changeSet' => [ + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '响应参数发生变更、错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeTasks', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'DisableReplication' => [ + 'summary' => '停止复制。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'RecoveryNetwork', - 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例所在的VSwitch ID', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-uf61v3bg6r790ir22jqv4', - ], + 'AK' => [], ], + ], + 'operationType' => 'readAndWrite', + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], + ], + 'parameters' => [ [ - 'name' => 'RecoveryReserveIp', + 'name' => 'ServerId', 'in' => 'query', + 'schema' => ['title' => '受保护服务器ID', 'description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-000cvyfewfi6fzi9zoql'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '恢复的实例是否保留源机IP', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => '接口状态或POP错误码。取值说明如下:2xx:成功。 3xx:重定向。 4xx:请求错误。 5xx:服务器错误。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => 'B7F69F73-51C4-5D3F-B2BE-E1BD99022C15'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + ], + 'description' => '', ], ], - [ - 'name' => 'RecoveryUseDhcp', - 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例是否使用DHCP分配IP', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"B7F69F73-51C4-5D3F-B2BE-E1BD99022C15\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '停止复制', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:DisableReplication', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'EnableReplication' => [ + 'summary' => '启动复制。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'RecoveryIpAddress', - 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例手动指定IP', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.2.2', - ], + 'AK' => [], ], + ], + 'operationType' => 'readAndWrite', + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], + ], + 'parameters' => [ [ - 'name' => 'RecoveryPostScriptType', + 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例启动后执行的脚本类型', - 'type' => 'string', - 'required' => false, - 'example' => 'SHELL', - ], + 'schema' => ['title' => '受保护服务器ID', 'description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-0005qxusucbo6yomzb9x'], ], [ - 'name' => 'RecoveryPostScriptContent', + 'name' => 'ReplicationUseSsd', 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例启动后执行的脚本内容', - 'type' => 'string', - 'required' => false, - 'example' => 'echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts', - ], + 'schema' => ['title' => '复影实例是否使用SSD云盘', 'description' => '复影实例是否使用SSD云盘', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ - 'name' => 'RecoveryPointId', + 'name' => 'ReplicationUseEssd', 'in' => 'query', - 'schema' => [ - 'description' => '恢复点ID', - 'type' => 'string', - 'required' => false, - 'example' => 'rp-0001625ljmig7ahibe0y', - ], + 'schema' => ['title' => '复影实例是否使用ESSD云盘', 'description' => '复影实例是否使用ESSD云盘', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ - 'name' => 'RecoveryPointTime', + 'name' => 'ReplicationNetwork', 'in' => 'query', - 'schema' => [ - 'description' => '恢复点时间', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1637002799', - ], + 'schema' => ['title' => '复制网络VSwitch ID', 'description' => '复制网络VSwitch ID', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1g0s2u3b2kbn46kiy53'], ], [ - 'name' => 'EipAddressId', + 'name' => 'RecoveryNetwork', 'in' => 'query', - 'schema' => [ - 'description' => '恢复的实例绑定的弹性网卡ID', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-2zelae2qye2ztjfj82f9z', - ], + 'schema' => ['title' => '恢复网络VSwitch ID', 'description' => '恢复网络VSwitch ID', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1g0s2u3b2kbn46kiy53'], ], [ - 'name' => 'RecoveryEssdPerformanceLevel', + 'name' => 'CrashConsistentPointPolicy', 'in' => 'query', - 'schema' => [ - 'description' => 'ESSD盘的PL等级,支持的PL等级按照最小的云盘大小进行判断', - 'type' => 'string', - 'required' => false, - 'example' => 'PL1', - 'default' => 'PL1', - 'enum' => [ - 'PL0', - 'PL1', - 'PL2', - 'PL3', - ], - ], + 'schema' => ['title' => '恢复点策略', 'description' => '恢复点策略', 'type' => 'string', 'required' => false, 'example' => '{"scheduleType":"CRON","expression":"0 0 */1 * * 0,1,2,3,4,5,6","initialDelay":0}'], ], ], 'responses' => [ @@ -2652,48 +2198,36 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'BBCC4082-98DF-5804-96C6-0E74C37C5867', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-0007wl5r0hvxrj68rrbg', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '接口状态或POP错误码。取值说明如下:2xx:成功。 3xx:重定向。 4xx:请求错误。 5xx:服务器错误。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '响应消息,若成功,则返回success', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '接口请求唯一标识符。', 'type' => 'string', 'example' => 'E50FE4A6-C876-5D6F-8A09-93442308AA7B'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"BBCC4082-98DF-5804-96C6-0E74C37C5867\\",\\n \\"TaskId\\": \\"t-0007wl5r0hvxrj68rrbg\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '更换恢复点', - ], - 'CommitFailover' => [ - 'summary' => '确认故障切换。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"E50FE4A6-C876-5D6F-8A09-93442308AA7B\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '启动复制', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:EnableReplication', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'Failback' => [ + 'summary' => '故障恢复。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2704,23 +2238,73 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrEJMNXE', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '受保护的服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-000bzkmmlwghq3soqry2', - ], + 'schema' => ['description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-000bzkmmlwghj95tnx15'], + ], + [ + 'name' => 'RecoveryInfrastructureId', + 'in' => 'query', + 'schema' => ['description' => '恢复站点基础设施ID', 'type' => 'string', 'required' => false, 'example' => 'is-0007rvzart0rz2byr2x0'], + ], + [ + 'name' => 'RecoveryInstanceName', + 'in' => 'query', + 'schema' => ['description' => '容灾恢复的实例名称', 'type' => 'string', 'required' => false, 'example' => 'HDR_Recovery-sr-0007rvzart0rz2bv9fzm'], + ], + [ + 'name' => 'RecoveryCpu', + 'in' => 'query', + 'schema' => ['description' => '容灾恢复的实例CPU核数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'], + ], + [ + 'name' => 'RecoveryMemory', + 'in' => 'query', + 'schema' => ['description' => '容灾恢复的实例内存大小,单位MB', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '4294967296'], + ], + [ + 'name' => 'RecoveryInstanceType', + 'in' => 'query', + 'schema' => ['description' => '容灾恢复的实例规格,若未指定,将根据CPU核数和内存大小自动寻找可用的实例规格', 'type' => 'string', 'required' => false, 'example' => 'ecs.c5.2xlarge'], + ], + [ + 'name' => 'RecoveryNetwork', + 'in' => 'query', + 'schema' => ['description' => '故障恢复的实例所在的VSwitch ID', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1xmea0mkjtxqoubk7q8'], + ], + [ + 'name' => 'RecoveryReserveIp', + 'in' => 'query', + 'schema' => ['description' => '故障恢复的实例保留原有IP', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + ], + [ + 'name' => 'RecoveryUseDhcp', + 'in' => 'query', + 'schema' => ['description' => '故障恢复的实例使用DHCP分配IP', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + ], + [ + 'name' => 'RecoveryIpAddress', + 'in' => 'query', + 'schema' => ['description' => '故障恢复的实例手动设置IP', 'type' => 'string', 'required' => false, 'example' => '192.168.2.2'], + ], + [ + 'name' => 'RecoveryPostScriptType', + 'in' => 'query', + 'schema' => ['description' => '故障恢复的实例启动后执行的脚本类型', 'type' => 'string', 'required' => false, 'example' => 'SHELL'], + ], + [ + 'name' => 'RecoveryPostScriptContent', + 'in' => 'query', + 'schema' => ['description' => '故障恢复的实例启动后执行的脚本内容', 'type' => 'string', 'required' => false, 'example' => '"echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts"'], + ], + [ + 'name' => 'RecoveryPointId', + 'in' => 'query', + 'schema' => ['description' => '恢复点ID', 'type' => 'string', 'required' => false, 'example' => 'rp-0001625ljmig7ahibe0y'], ], ], 'responses' => [ @@ -2728,48 +2312,39 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '18603D03-FEA4-5FA8-878F-B03F11578F5F', - ], - 'TaskId' => [ - 'description' => '任务ID', - 'type' => 'string', - 'example' => 't-0007wl5r0hvxrj68rrbg', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '56CF7F68-C07B-5BE2-BE82-09D8E9719076'], + 'TaskId' => ['description' => '任务id。', 'type' => 'string', 'example' => 't-0004ka624vrza82g46ne'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + ], + 'description' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"56CF7F68-C07B-5BE2-BE82-09D8E9719076\\",\\n \\"TaskId\\": \\"t-0004ka624vrza82g46ne\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '故障恢复', + 'changeSet' => [ + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '请求参数发生变更、错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:Failback', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"18603D03-FEA4-5FA8-878F-B03F11578F5F\\",\\n \\"TaskId\\": \\"t-0007wl5r0hvxrj68rrbg\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '确认故障切换', ], 'ForcedFailover' => [ 'summary' => '故障切换。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2780,176 +2355,88 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrEJMNXE', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrKVSJIZ', 'FEATUREhdrEJMNXE', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-000ih1rl47q6hksc910d', - ], + 'schema' => ['description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-000ih1rl47q6hksc910d'], ], [ 'name' => 'RecoveryInstanceName', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例名称', - 'type' => 'string', - 'required' => false, - 'example' => 'HDR_Recovery-sr-000bzkmmlwghq3soqry2', - ], + 'schema' => ['description' => '故障切换的实例名称', 'type' => 'string', 'required' => false, 'example' => 'HDR_Recovery-sr-000bzkmmlwghq3soqry2'], ], [ 'name' => 'RecoveryCpu', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例CPU核数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '4', - ], + 'schema' => ['description' => '故障切换的实例CPU核数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'], ], [ 'name' => 'RecoveryMemory', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例内存大小', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '4294967296', - ], + 'schema' => ['description' => '故障切换的实例内存大小', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '4294967296'], ], [ 'name' => 'RecoveryInstanceType', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例规格', - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.r5.3xlarge', - ], + 'schema' => ['description' => '故障切换的实例规格', 'type' => 'string', 'required' => false, 'example' => 'ecs.r5.3xlarge'], ], [ 'name' => 'RecoveryUseSsd', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例云盘类型是否使用SSD', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '故障切换的实例云盘类型是否使用SSD', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'RecoveryUseEssd', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例云盘类型是否使用ESSD', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '故障切换的实例云盘类型是否使用ESSD', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'RecoveryNetwork', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例所在的VSwitch ID', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-bp1fh05y7ybq9kep6rtwu', - ], + 'schema' => ['description' => '故障切换的实例所在的VSwitch ID', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1fh05y7ybq9kep6rtwu'], ], [ 'name' => 'RecoveryReserveIp', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例是否保留源机IP', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '故障切换的实例是否保留源机IP', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'RecoveryUseDhcp', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例是否使用DHCP分配IP', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '故障切换的实例是否使用DHCP分配IP', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'RecoveryIpAddress', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例手动设置IP', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.2.2', - ], + 'schema' => ['description' => '故障切换的实例手动设置IP', 'type' => 'string', 'required' => false, 'example' => '192.168.2.2'], ], [ 'name' => 'RecoveryPostScriptType', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例启动后执行的脚本类型', - 'type' => 'string', - 'required' => false, - 'example' => 'SHELL', - ], + 'schema' => ['description' => '故障切换的实例启动后执行的脚本类型', 'type' => 'string', 'required' => false, 'example' => 'SHELL'], ], [ 'name' => 'RecoveryPostScriptContent', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例启动后执行的脚本内容', - 'type' => 'string', - 'required' => false, - 'example' => 'echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts', - ], + 'schema' => ['description' => '故障切换的实例启动后执行的脚本内容', 'type' => 'string', 'required' => false, 'example' => 'echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts'], ], [ 'name' => 'RecoveryPointId', 'in' => 'query', - 'schema' => [ - 'description' => '恢复点ID', - 'type' => 'string', - 'required' => false, - 'example' => 'rp-000184qxs690bth6jyqn', - ], + 'schema' => ['description' => '恢复点ID', 'type' => 'string', 'required' => false, 'example' => 'rp-000184qxs690bth6jyqn'], ], [ 'name' => 'RecoveryPointTime', 'in' => 'query', - 'schema' => [ - 'description' => '恢复点时间', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1636526948', - ], + 'schema' => ['description' => '恢复点时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1636526948'], ], [ 'name' => 'EipAddressId', 'in' => 'query', - 'schema' => [ - 'description' => '故障切换的实例绑定的弹性网卡ID', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-bp1x7nua6eab8m4vsis9k', - ], + 'schema' => ['description' => '故障切换的实例绑定的弹性网卡ID', 'type' => 'string', 'required' => false, 'example' => 'eip-bp1x7nua6eab8m4vsis9k'], ], [ 'name' => 'RecoveryEssdPerformanceLevel', @@ -2960,12 +2447,7 @@ 'required' => false, 'example' => 'PL2', 'default' => 'PL1', - 'enum' => [ - 'PL0', - 'PL1', - 'PL2', - 'PL3', - ], + 'enum' => ['PL0', 'PL1', 'PL2', 'PL3'], ], ], ], @@ -2974,75 +2456,69 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '26DF0E81-08E2-5AE3-96AA-05F5F826261C', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-000ios55mggw4ifiy3nc', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '26DF0E81-08E2-5AE3-96AA-05F5F826261C'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-000ios55mggw4ifiy3nc'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"26DF0E81-08E2-5AE3-96AA-05F5F826261C\\",\\n \\"TaskId\\": \\"t-000ios55mggw4ifiy3nc\\",\\n \\"Success\\": true\\n}","type":"json"}]', 'title' => '故障切换', - ], - 'TriggerReversedRegister' => [ - 'summary' => '反向注册,将完成故障切换的实例从目的端站点反向注册到源端站点,为后续启动反向复制实现故障恢复做准备。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2024-01-09T06:44:32.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-01-09T06:59:39.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-03-03T07:59:07.000Z', 'description' => '请求参数发生变更、错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:ForcedFailover', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'RegisterServers' => [ + 'summary' => '添加受保护服务器。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', + 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrE49XN0'], ], 'parameters' => [ [ - 'name' => 'ServerId', + 'name' => 'SitePairId', 'in' => 'query', - 'schema' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-0007rvzart0bneyhl4q1', - ], + 'schema' => ['title' => '站点对ID', 'description' => '站点对ID', 'type' => 'string', 'required' => false, 'example' => 's-000cm9ax8sgzwujrzdwt'], + ], + [ + 'name' => 'ServerInstancesInfo', + 'in' => 'query', + 'schema' => ['title' => '注册服务器信息', 'description' => '注册服务器信息', 'type' => 'string', 'required' => false, 'example' => '"[{\\"instanceId\\":\\"i-uf60ngpe9sseu5gsgu45\\",\\"privateIpAddress\\":\\"192.168.1.198\\",\\"osType\\":\\"linux\\",\\"osName\\":\\"CentOS 7.8 64位\\",\\"cpu\\":2,\\"memory\\":4294967296,\\"hostName\\":\\"hdr-test\\"}]"'], + ], + [ + 'name' => 'AgentPort', + 'in' => 'query', + 'schema' => ['title' => '代理服务端口,默认9080', 'description' => '代理服务端口,默认9080', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '9080', 'default' => '9080'], ], ], 'responses' => [ @@ -3050,97 +2526,56 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '1D39F0BE-B3F9-5AA9-AD49-BE8CD7B4BF7B', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-000fzufp79idzl6bniso', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '返回结果码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D76E741C-68B7-5281-8C5B-698AD06B0D89'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-0001nlbcl4bynbb67x4w'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"1D39F0BE-B3F9-5AA9-AD49-BE8CD7B4BF7B\\",\\n \\"TaskId\\": \\"t-000fzufp79idzl6bniso\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '反向注册', - ], - 'DescribeInfrastructures' => [ - 'summary' => '查询站点基础设施信息,混合云容灾服务支持IDC上云容灾、跨区域容灾、跨可用区容灾,不同场景下站点使用的基础设施不同,例如IDC上云容灾的源端站点可能使用物理机、VCenter作为基础设施;跨区域容灾与跨可用区容灾目前主要使用阿里云作为基础设施。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"D76E741C-68B7-5281-8C5B-698AD06B0D89\\",\\n \\"TaskId\\": \\"t-0001nlbcl4bynbb67x4w\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '添加受保护服务器', + 'changeSet' => [ + ['createdAt' => '2022-03-02T02:04:09.000Z', 'description' => '请求参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:RegisterServers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ReversedDisableReplication' => [ + 'summary' => '停止反向复制。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'systemTags' => [ - 'operationType' => 'list', + 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - ], + 'abilityTreeNodes' => ['FEATUREhdrKVSJIZ', 'FEATUREhdrF01CKY', 'FEATUREhdrEJMNXE'], ], 'parameters' => [ [ - 'name' => 'SiteId', - 'in' => 'query', - 'schema' => [ - 'description' => '站点ID', - 'type' => 'string', - 'required' => false, - 'example' => 'si-0005btelnqjwguycypba', - ], - ], - [ - 'name' => 'PageNumber', + 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '分页参数:当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], - ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => '分页大小。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-000cm9ax8sh2i6pc16u9'], ], ], 'responses' => [ @@ -3148,107 +2583,36 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '32AC7E7F-5484-548D-8D3F-905238B75080', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageSize' => [ - 'description' => '分页大小。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => '分页参数:当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'TotalCount' => [ - 'description' => '总条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Infrastructures' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'infrastructure' => [ - 'description' => '基础设施信息列表', - 'type' => 'array', - 'items' => [ - 'description' => '基础设施信息', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => '基础设施类型', - 'type' => 'string', - 'example' => 'aliyun', - ], - 'Status' => [ - 'description' => '状态', - 'type' => 'string', - 'example' => 'connected', - ], - 'IpAddress' => [ - 'description' => 'IP地址', - 'type' => 'string', - 'example' => '172.18.122.66', - ], - 'InfrastructureId' => [ - 'description' => '基础设施ID', - 'type' => 'string', - 'example' => 'is-0005qxusucbig0c42dlo', - ], - 'Errno' => [ - 'description' => '状态异常原因', - 'type' => 'string', - 'example' => 'cdr.console.plugin.failed_to_connect', - ], - 'Name' => [ - 'description' => '基础设施名称', - 'type' => 'string', - 'example' => 'si-0006w0mxd3w8jiifu77l-infrastructure1', - ], - ], - ], - ], - ], - ], + 'Code' => ['description' => '接口返回码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '5904D638-152A-5F1F-8652-E535EABF3ABA'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + ], + 'description' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"5904D638-152A-5F1F-8652-E535EABF3ABA\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '停止反向复制', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:ReversedDisableReplication', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"32AC7E7F-5484-548D-8D3F-905238B75080\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 2,\\n \\"TotalCount\\": 1,\\n \\"Infrastructures\\": {\\n \\"infrastructure\\": [\\n {\\n \\"Type\\": \\"aliyun\\",\\n \\"Status\\": \\"connected\\",\\n \\"IpAddress\\": \\"172.18.122.66\\",\\n \\"InfrastructureId\\": \\"is-0005qxusucbig0c42dlo\\",\\n \\"Errno\\": \\"cdr.console.plugin.failed_to_connect\\",\\n \\"Name\\": \\"si-0006w0mxd3w8jiifu77l-infrastructure1\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询站点基础设施', ], 'ReversedEnableReplication' => [ 'summary' => '启动反向复制。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3259,203 +2623,117 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - ], + 'abilityTreeNodes' => ['FEATUREhdrE49XN0', 'FEATUREhdrF01CKY', 'FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ'], ], 'parameters' => [ [ 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-000cm9ax8sh2381wa7kv', - ], + 'schema' => ['description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-000cm9ax8sh2381wa7kv'], ], [ 'name' => 'ReplicationUseOriginalInstance', 'in' => 'query', - 'schema' => [ - 'description' => '反向复制使用源机', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '反向复制使用源机', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], ], [ 'name' => 'ReplicationInfrastructureId', 'in' => 'query', - 'schema' => [ - 'description' => '目标站点基础设施ID', - 'type' => 'string', - 'required' => false, - 'example' => 'is-000bzkmmlwgibbduuoff', - ], + 'schema' => ['description' => '目标站点基础设施ID', 'type' => 'string', 'required' => false, 'example' => 'is-000bzkmmlwgibbduuoff'], ], [ 'name' => 'ReplicationLocation', 'in' => 'query', - 'schema' => [ - 'description' => '目标站点地址。', - 'type' => 'string', - 'required' => false, - 'example' => '{'."\n" - .' "type": "Datacenter",'."\n" - .' "name": "Datacenter",'."\n" - .' "moId": "datacenter-3",'."\n" - .' "path": "Datacenter",'."\n" - .' "properties": {'."\n" - .' "folderId": "group-v4"'."\n" - .' },'."\n" - .' "__level": 0'."\n" - .'}', - ], + 'schema' => ['description' => '目标站点地址。', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .' "type": "Datacenter",'."\n" + .' "name": "Datacenter",'."\n" + .' "moId": "datacenter-3",'."\n" + .' "path": "Datacenter",'."\n" + .' "properties": {'."\n" + .' "folderId": "group-v4"'."\n" + .' },'."\n" + .' "__level": 0'."\n" + .'}'], ], [ 'name' => 'ReplicationComputeResource', 'in' => 'query', - 'schema' => [ - 'description' => '目标站点计算资源。', - 'type' => 'string', - 'required' => false, - 'example' => '{'."\n" - .' "type": "ComputeResource",'."\n" - .' "name": "*",'."\n" - .' "moId": "*",'."\n" - .' "path": "Datacenter/host/*",'."\n" - .' "properties": {'."\n" - .' "resourcePoolId": "resgroup-33135",'."\n" - .' "hasHost": true'."\n" - .' },'."\n" - .' "__level": 0'."\n" - .'}', - ], + 'schema' => ['description' => '目标站点计算资源。', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .' "type": "ComputeResource",'."\n" + .' "name": "*",'."\n" + .' "moId": "*",'."\n" + .' "path": "Datacenter/host/*",'."\n" + .' "properties": {'."\n" + .' "resourcePoolId": "resgroup-33135",'."\n" + .' "hasHost": true'."\n" + .' },'."\n" + .' "__level": 0'."\n" + .'}'], ], [ 'name' => 'ReplicationDatastore', 'in' => 'query', - 'schema' => [ - 'description' => '反向复制数据存储。', - 'type' => 'string', - 'required' => false, - 'example' => '{'."\n" - .' "type": "Datastore",'."\n" - .' "name": "NTNX_storage",'."\n" - .' "moId": "datastore-*",'."\n" - .' "path": "*",'."\n" - .' "properties": {'."\n" - .' "freeSpace": "2406020349952",'."\n" - .' "capacity": "14817637171200"'."\n" - .' },'."\n" - .' "__level": 0'."\n" - .'}', - ], + 'schema' => ['description' => '反向复制数据存储。', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .' "type": "Datastore",'."\n" + .' "name": "NTNX_storage",'."\n" + .' "moId": "datastore-*",'."\n" + .' "path": "*",'."\n" + .' "properties": {'."\n" + .' "freeSpace": "2406020349952",'."\n" + .' "capacity": "14817637171200"'."\n" + .' },'."\n" + .' "__level": 0'."\n" + .'}'], ], [ 'name' => 'ReplicationNetwork', 'in' => 'query', - 'schema' => [ - 'description' => '反向复制的复制网络VSwitch ID', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-bp1ii4x07tey6sisg4blp', - ], + 'schema' => ['description' => '反向复制的复制网络VSwitch ID', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1ii4x07tey6sisg4blp'], ], [ 'name' => 'ReplicationUseDhcp', 'in' => 'query', - 'schema' => [ - 'description' => '反向复制是否使用DHCP。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '反向复制是否使用DHCP。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'ReplicationIpAddress', 'in' => 'query', - 'schema' => [ - 'description' => '目标IP地址。', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.0.12', - ], + 'schema' => ['description' => '目标IP地址。', 'type' => 'string', 'required' => false, 'example' => '192.168.0.12'], ], [ 'name' => 'ReplicationNetMask', 'in' => 'query', - 'schema' => [ - 'description' => '目标网络掩码。', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.0.0/16', - ], + 'schema' => ['description' => '目标网络掩码。', 'type' => 'string', 'required' => false, 'example' => '192.168.0.0/16'], ], [ 'name' => 'ReplicationDns', 'in' => 'query', - 'schema' => [ - 'description' => '目标DNS。', - 'type' => 'string', - 'required' => false, - 'example' => '10.11.0.10', - ], + 'schema' => ['description' => '目标DNS。', 'type' => 'string', 'required' => false, 'example' => '10.11.0.10'], ], [ 'name' => 'ReplicationGateway', 'in' => 'query', - 'schema' => [ - 'description' => '目标网关。', - 'type' => 'string', - 'required' => false, - 'example' => '10.11.0.1', - ], + 'schema' => ['description' => '目标网关。', 'type' => 'string', 'required' => false, 'example' => '10.11.0.1'], ], [ 'name' => 'RecoveryNetwork', 'in' => 'query', - 'schema' => [ - 'description' => '反向复制的恢复网络VSwitch ID', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-bp1xmea0mkjtxqoubk7q8', - ], + 'schema' => ['description' => '反向复制的恢复网络VSwitch ID', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1xmea0mkjtxqoubk7q8'], ], [ 'name' => 'CrashConsistentPointPolicy', 'in' => 'query', - 'schema' => [ - 'description' => '崩溃一致性恢复点策略。', - 'type' => 'string', - 'required' => false, - 'example' => '{"scheduleType":"CRON","expression":"0 0 */1 * * 0,1,2,3,4,5,6","initialDelay":0}', - ], + 'schema' => ['description' => '崩溃一致性恢复点策略。', 'type' => 'string', 'required' => false, 'example' => '{"scheduleType":"CRON","expression":"0 0 */1 * * 0,1,2,3,4,5,6","initialDelay":0}'], ], [ 'name' => 'AppConsistentPointPolicy', 'in' => 'query', - 'schema' => [ - 'description' => '应用一致性恢复点策略。', - 'type' => 'string', - 'required' => false, - 'example' => '{"scheduleType":"CRON","expression":"0 0 */1 * * 0,1,2,3,4,5,6","initialDelay":0}', - ], + 'schema' => ['description' => '应用一致性恢复点策略。', 'type' => 'string', 'required' => false, 'example' => '{"scheduleType":"CRON","expression":"0 0 */1 * * 0,1,2,3,4,5,6","initialDelay":0}'], ], [ 'name' => 'ShadowInstanceType', 'in' => 'query', - 'schema' => [ - 'description' => '复影ECS实例规格。', - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.g6.xlarge', - ], + 'schema' => ['description' => '复影ECS实例规格。', 'type' => 'string', 'required' => false, 'example' => 'ecs.g6.xlarge'], ], ], 'responses' => [ @@ -3463,74 +2741,54 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '接口返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'D5CF3A51-1F39-5B16-AC0C-AD9B632D100D', - ], - 'TaskId' => [ - 'description' => '任务id。', - 'type' => 'string', - 'example' => 't-0004ka624vrxwublmqw6', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '接口返回码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D5CF3A51-1F39-5B16-AC0C-AD9B632D100D'], + 'TaskId' => ['description' => '任务id。', 'type' => 'string', 'example' => 't-0004ka624vrxwublmqw6'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"D5CF3A51-1F39-5B16-AC0C-AD9B632D100D\\",\\n \\"TaskId\\": \\"t-0004ka624vrxwublmqw6\\",\\n \\"Success\\": true\\n}","type":"json"}]', 'title' => '启动反向复制', - ], - 'ReversedDisableReplication' => [ - 'summary' => '停止反向复制。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:ReversedEnableReplication', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'TestCleanup' => [ + 'summary' => '清理容灾演练环境。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'write', 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrF01CKY', - 'FEATUREhdrEJMNXE', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-000cm9ax8sh2i6pc16u9', - ], + 'schema' => ['title' => '受保护服务器ID', 'description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-000cvyfewfi6fzi9zoql'], ], ], 'responses' => [ @@ -3538,43 +2796,37 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '接口返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '5904D638-152A-5F1F-8652-E535EABF3ABA', - ], - 'Success' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '531E3DB9-3ED6-5F06-A09A-721F279CB64B'], + 'TaskId' => ['description' => '任务id。', 'type' => 'string', 'example' => 't-000bzkmmlwh6tpzhitdz'], + 'Success' => ['description' => '操作是否成功。', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"5904D638-152A-5F1F-8652-E535EABF3ABA\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '停止反向复制', - ], - 'Failback' => [ - 'summary' => '故障恢复。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"531E3DB9-3ED6-5F06-A09A-721F279CB64B\\",\\n \\"TaskId\\": \\"t-000bzkmmlwh6tpzhitdz\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '清理容灾演练环境', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:TestCleanup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'TestFailover' => [ + 'summary' => '容灾演练。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3585,305 +2837,100 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'required' => false, - 'example' => 'sr-000bzkmmlwghj95tnx15', - ], - ], - [ - 'name' => 'RecoveryInfrastructureId', - 'in' => 'query', - 'schema' => [ - 'description' => '恢复站点基础设施ID', - 'type' => 'string', - 'required' => false, - 'example' => 'is-0007rvzart0rz2byr2x0', - ], + 'schema' => ['title' => '受保护服务器ID', 'description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-000cvyfewfi7eudxml1a'], ], [ 'name' => 'RecoveryInstanceName', 'in' => 'query', - 'schema' => [ - 'description' => '容灾恢复的实例名称', - 'type' => 'string', - 'required' => false, - 'example' => 'HDR_Recovery-sr-0007rvzart0rz2bv9fzm', - ], + 'schema' => ['title' => '演练的实例名称', 'description' => '演练的实例名称', 'type' => 'string', 'required' => false, 'example' => 'test-failover-instance'], ], [ 'name' => 'RecoveryCpu', 'in' => 'query', - 'schema' => [ - 'description' => '容灾恢复的实例CPU核数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '4', - ], + 'schema' => ['title' => '演练实例的CPU核数', 'description' => '演练实例的CPU核数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'default' => '2'], ], [ 'name' => 'RecoveryMemory', 'in' => 'query', - 'schema' => [ - 'description' => '容灾恢复的实例内存大小,单位MB', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '4294967296', - ], + 'schema' => ['title' => '演练实例的内存大小,单位MB', 'description' => '演练实例的内存大小,单位MB', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '4294967296'], ], [ 'name' => 'RecoveryInstanceType', 'in' => 'query', - 'schema' => [ - 'description' => '容灾恢复的实例规格,若未指定,将根据CPU核数和内存大小自动寻找可用的实例规格', - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.c5.2xlarge', - ], + 'schema' => ['title' => '演练的实例规格,未指定时按照指定的CPU核数、内存大小自动寻找可用规格', 'description' => '演练的实例规格,未指定时按照指定的CPU核数、内存大小自动寻找可用规格', 'type' => 'string', 'required' => false, 'example' => 'ecs.c5.large ', 'default' => 'null'], + ], + [ + 'name' => 'RecoveryUseSsd', + 'in' => 'query', + 'schema' => ['title' => '演练实例是否使用SSD类型的云盘', 'description' => '演练实例是否使用SSD类型的云盘', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], + ], + [ + 'name' => 'RecoveryUseEssd', + 'in' => 'query', + 'schema' => ['title' => '演练实例是否使用ESSD类型的云盘', 'description' => '演练实例是否使用ESSD类型的云盘', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], ], [ 'name' => 'RecoveryNetwork', 'in' => 'query', - 'schema' => [ - 'description' => '故障恢复的实例所在的VSwitch ID', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-bp1xmea0mkjtxqoubk7q8', - ], + 'allowEmptyValue' => false, + 'schema' => ['title' => '演练实例所在的VSwitch ID', 'description' => '演练实例所在的VSwitch ID', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1g0s2u3b2kbn46kiy53'], ], [ 'name' => 'RecoveryReserveIp', 'in' => 'query', - 'schema' => [ - 'description' => '故障恢复的实例保留原有IP', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['title' => '演练实例是否保留源机的IP(需要演练所在的VSwitch包含相应网段)', 'description' => '演练实例是否保留源机的IP(需要演练所在的VSwitch包含相应网段)', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], ], [ 'name' => 'RecoveryUseDhcp', 'in' => 'query', - 'schema' => [ - 'description' => '故障恢复的实例使用DHCP分配IP', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['title' => '演练实例是否使用DHCP指定IP', 'description' => '演练实例是否使用DHCP指定IP', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], ], [ 'name' => 'RecoveryIpAddress', 'in' => 'query', - 'schema' => [ - 'description' => '故障恢复的实例手动设置IP', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.2.2', - ], + 'schema' => ['title' => '演练实例的IP', 'description' => '演练实例的IP', 'type' => 'string', 'required' => false, 'example' => '10.10.10.10'], ], [ 'name' => 'RecoveryPostScriptType', 'in' => 'query', - 'schema' => [ - 'description' => '故障恢复的实例启动后执行的脚本类型', - 'type' => 'string', - 'required' => false, - 'example' => 'SHELL', - ], + 'schema' => ['title' => '演练实例启动后执行脚本类型,可选项:SHELL', 'description' => '演练实例启动后执行脚本类型,可选项:SHELL', 'type' => 'string', 'required' => false, 'example' => 'SHELL'], ], [ 'name' => 'RecoveryPostScriptContent', 'in' => 'query', - 'schema' => [ - 'description' => '故障恢复的实例启动后执行的脚本内容', - 'type' => 'string', - 'required' => false, - 'example' => '"echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts"', - ], + 'schema' => ['title' => '演练实例启动后执行脚本', 'description' => '演练实例启动后执行脚本', 'type' => 'string', 'required' => false, 'example' => 'echo \\"127.0.0.1 kubernetes.docker.internal\\" >> /etc/hosts'], ], [ 'name' => 'RecoveryPointId', 'in' => 'query', - 'schema' => [ - 'description' => '恢复点ID', - 'type' => 'string', - 'required' => false, - 'example' => 'rp-0001625ljmig7ahibe0y', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '56CF7F68-C07B-5BE2-BE82-09D8E9719076', - ], - 'TaskId' => [ - 'description' => '任务id。', - 'type' => 'string', - 'example' => 't-0004ka624vrza82g46ne', - ], - 'Success' => [ - 'description' => '请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - ], - ], - ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"56CF7F68-C07B-5BE2-BE82-09D8E9719076\\",\\n \\"TaskId\\": \\"t-0004ka624vrza82g46ne\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '故障恢复', - ], - 'CreateRecoveryPlan' => [ - 'summary' => '创建恢复计划。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'write', - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], - ], - 'parameters' => [ - [ - 'name' => 'SitePairId', - 'in' => 'query', - 'schema' => [ - 'description' => '站点对ID。', - 'type' => 'string', - 'required' => false, - 'example' => 's-xxxxxxxxxxxxxxxxxx', - ], + 'schema' => ['title' => '演练实例使用的恢复点ID', 'description' => '演练实例使用的恢复点ID', 'type' => 'string', 'required' => false, 'example' => 'rp-0001cgurtbrvrkj2p2pp'], ], [ - 'name' => 'Name', + 'name' => 'RecoveryPointTime', 'in' => 'query', - 'schema' => [ - 'description' => '恢复计划名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test1', - ], + 'schema' => ['description' => '恢复点时间,若未指定恢复点ID时,根据恢复点时间查询可用恢复点。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1646046000'], ], [ - 'name' => 'Direction', + 'name' => 'EipAddressId', 'in' => 'query', - 'schema' => [ - 'description' => '恢复计划的方向,支持**forward**。', - 'type' => 'string', - 'required' => false, - 'example' => 'forward', - ], + 'schema' => ['title' => '演练实例绑定的弹性公网IP ID', 'description' => '演练实例绑定的弹性公网IP ID', 'type' => 'string', 'required' => false, 'example' => 'eip-bp1nf283u9p060q4gim7m'], ], [ - 'name' => 'Content', + 'name' => 'RecoveryEssdPerformanceLevel', 'in' => 'query', 'schema' => [ - 'description' => '恢复计划详情。', + 'description' => 'ESSD盘的PL等级,支持的PL等级按照最小的云盘大小进行判断', 'type' => 'string', 'required' => false, - 'example' => '{'."\n" - .' "groups": ['."\n" - .' {'."\n" - .' "name": "Group-1",'."\n" - .' "id": "Group-1",'."\n" - .' "servers": ['."\n" - .' {'."\n" - .' "name": "sr-xxxxxxxxxxxxxxxxxx",'."\n" - .' "serverId": "sr-xxxxxxxxxxxxxxxxxx",'."\n" - .' "testFailoverAction": {'."\n" - .' "eipAddressId": "",'."\n" - .' "recoveryPostScriptContent": "",'."\n" - .' "recoveryPostScriptType": "POWERSHELL",'."\n" - .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo",'."\n" - .' "recoveryCpu": 2,'."\n" - .' "recoveryMemory": 4294967296,'."\n" - .' "recoveryUseEssd": false,'."\n" - .' "recoveryUseSsd": false,'."\n" - .' "recoveryReserveIp": false,'."\n" - .' "recoveryUseDhcp": true,'."\n" - .' "recoveryIpAddress": "",'."\n" - .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" - .' },'."\n" - .' "testCleanupAction": {},'."\n" - .' "changeRecoveryPointAction": {'."\n" - .' "eipAddressId": "",'."\n" - .' "recoveryPostScriptContent": "",'."\n" - .' "recoveryPostScriptType": "POWERSHELL",'."\n" - .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr",'."\n" - .' "recoveryCpu": 2,'."\n" - .' "recoveryMemory": 4294967296,'."\n" - .' "recoveryUseEssd": false,'."\n" - .' "recoveryUseSsd": false,'."\n" - .' "recoveryReserveIp": false,'."\n" - .' "recoveryUseDhcp": true,'."\n" - .' "recoveryIpAddress": "",'."\n" - .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" - .' },'."\n" - .' "forcedFailoverAction": {'."\n" - .' "eipAddressId": "",'."\n" - .' "recoveryPostScriptContent": "",'."\n" - .' "recoveryPostScriptType": "POWERSHELL",'."\n" - .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo",'."\n" - .' "recoveryCpu": 2,'."\n" - .' "recoveryMemory": 4294967296,'."\n" - .' "recoveryUseEssd": false,'."\n" - .' "recoveryUseSsd": false,'."\n" - .' "recoveryReserveIp": false,'."\n" - .' "recoveryUseDhcp": true,'."\n" - .' "recoveryIpAddress": "",'."\n" - .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" - .' }'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .' ]'."\n" - .'}', + 'example' => 'PL3', + 'default' => 'PL1', + 'enum' => ['PL0', 'PL1', 'PL2', 'PL3'], ], ], ], @@ -3892,48 +2939,41 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'FEC3D491-15BB-5C8F-902E-773794FF1B29', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-00055g8sxr0ys0g99n83', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求唯一ID,具有唯一性。', 'type' => 'string', 'example' => '6758891B-CF5A-5CA6-BF59-633573B91140'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-000h3k00ckeknbukn5a5'], + 'Success' => ['description' => '是否调用成功。', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"FEC3D491-15BB-5C8F-902E-773794FF1B29\\",\\n \\"TaskId\\": \\"t-00055g8sxr0ys0g99n83\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '创建恢复计划', - ], - 'DeleteRecoveryPlan' => [ - 'summary' => '根据恢复计划ID删除指定的恢复计划。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"6758891B-CF5A-5CA6-BF59-633573B91140\\",\\n \\"TaskId\\": \\"t-000h3k00ckeknbukn5a5\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '容灾演练', + 'changeSet' => [ + ['createdAt' => '2024-01-09T07:12:48.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-01-09T06:59:39.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-02-28T11:04:29.000Z', 'description' => '请求参数发生变更、错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:TestFailover', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'TriggerReversedRegister' => [ + 'summary' => '反向注册,将完成故障切换的实例从目的端站点反向注册到源端站点,为后续启动反向复制实现故障恢复做准备。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3941,26 +2981,16 @@ ], 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ - 'name' => 'RecoveryPlanId', + 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '恢复计划ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rp-xxxxxxxxxxxxxxxx', - ], + 'schema' => ['description' => '受保护服务器ID', 'type' => 'string', 'required' => false, 'example' => 'sr-0007rvzart0bneyhl4q1'], ], ], 'responses' => [ @@ -3968,256 +2998,54 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '返回码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '36C9E5CF-D575-5074-9A3E-79251448D708', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-0006ezqwy1swxqgcrfvx', - ], - 'Success' => [ - 'description' => '请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '错误码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '1D39F0BE-B3F9-5AA9-AD49-BE8CD7B4BF7B'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-000fzufp79idzl6bniso'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"36C9E5CF-D575-5074-9A3E-79251448D708\\",\\n \\"TaskId\\": \\"t-0006ezqwy1swxqgcrfvx\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '删除恢复计划', - ], - 'DescribeRecoveryPlan' => [ - 'summary' => '查询恢复计划详情。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], - ], - 'parameters' => [ - [ - 'name' => 'RecoveryPlanId', - 'in' => 'query', - 'schema' => [ - 'description' => '恢复计划ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rp-xxxxxxxxxxxxxxxxxx', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'description' => '恢复计划状态。其中:'."\n" - ."\n" - .'- **creating**:创建中'."\n" - .'- **updating**:更新中'."\n" - .'- **deleting**:删除中'."\n" - .'- **failed**:失败'."\n" - .'- **init**:已初始化'."\n" - .'- **running**:执行中', - 'type' => 'string', - 'example' => 'init', - ], - 'Direction' => [ - 'description' => '恢复计划的方向,支持**forward**。', - 'type' => 'string', - 'example' => 'forward', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '6F3884EC-AECB-52EF-AFE3-BC13A9688DEB', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Code' => [ - 'description' => '返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'Name' => [ - 'description' => '恢复计划名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'Content' => [ - 'description' => '恢复计划详情。', - 'type' => 'string', - 'example' => '{'."\n" - .' "groups": ['."\n" - .' {'."\n" - .' "name": "Group-1",'."\n" - .' "id": "Group-1",'."\n" - .' "servers": ['."\n" - .' {'."\n" - .' "name": "sr-xxxxxxxxxxxxxxxxxx",'."\n" - .' "serverId": "sr-xxxxxxxxxxxxxxxxxx",'."\n" - .' "testFailoverAction": {'."\n" - .' "eipAddressId": "",'."\n" - .' "recoveryPostScriptContent": "",'."\n" - .' "recoveryPostScriptType": "POWERSHELL",'."\n" - .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo",'."\n" - .' "recoveryCpu": 2,'."\n" - .' "recoveryMemory": 4294967296,'."\n" - .' "recoveryUseEssd": false,'."\n" - .' "recoveryUseSsd": false,'."\n" - .' "recoveryReserveIp": false,'."\n" - .' "recoveryUseDhcp": true,'."\n" - .' "recoveryIpAddress": "",'."\n" - .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" - .' },'."\n" - .' "testCleanupAction": {},'."\n" - .' "changeRecoveryPointAction": {'."\n" - .' "eipAddressId": "",'."\n" - .' "recoveryPostScriptContent": "",'."\n" - .' "recoveryPostScriptType": "POWERSHELL",'."\n" - .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr",'."\n" - .' "recoveryCpu": 2,'."\n" - .' "recoveryMemory": 4294967296,'."\n" - .' "recoveryUseEssd": false,'."\n" - .' "recoveryUseSsd": false,'."\n" - .' "recoveryReserveIp": false,'."\n" - .' "recoveryUseDhcp": true,'."\n" - .' "recoveryIpAddress": "",'."\n" - .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" - .' },'."\n" - .' "forcedFailoverAction": {'."\n" - .' "eipAddressId": "",'."\n" - .' "recoveryPostScriptContent": "",'."\n" - .' "recoveryPostScriptType": "POWERSHELL",'."\n" - .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo",'."\n" - .' "recoveryCpu": 2,'."\n" - .' "recoveryMemory": 4294967296,'."\n" - .' "recoveryUseEssd": false,'."\n" - .' "recoveryUseSsd": false,'."\n" - .' "recoveryReserveIp": false,'."\n" - .' "recoveryUseDhcp": true,'."\n" - .' "recoveryIpAddress": "",'."\n" - .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" - .' }'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .' ]'."\n" - .'}', - ], - 'RecoveryPlanId' => [ - 'description' => '恢复计划ID。', - 'type' => 'string', - 'example' => 'rp-xxxxxxxxxxxxxxxxxx', - ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"1D39F0BE-B3F9-5AA9-AD49-BE8CD7B4BF7B\\",\\n \\"TaskId\\": \\"t-000fzufp79idzl6bniso\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '反向注册', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:TriggerReversedRegister', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"init\\",\\n \\"Direction\\": \\"forward\\",\\n \\"RequestId\\": \\"6F3884EC-AECB-52EF-AFE3-BC13A9688DEB\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Name\\": \\"test\\",\\n \\"Content\\": \\"{\\\\n \\\\\\"groups\\\\\\": [\\\\n {\\\\n \\\\\\"name\\\\\\": \\\\\\"Group-1\\\\\\",\\\\n \\\\\\"id\\\\\\": \\\\\\"Group-1\\\\\\",\\\\n \\\\\\"servers\\\\\\": [\\\\n {\\\\n \\\\\\"name\\\\\\": \\\\\\"sr-xxxxxxxxxxxxxxxxxx\\\\\\",\\\\n \\\\\\"serverId\\\\\\": \\\\\\"sr-xxxxxxxxxxxxxxxxxx\\\\\\",\\\\n \\\\\\"testFailoverAction\\\\\\": {\\\\n \\\\\\"eipAddressId\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptContent\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptType\\\\\\": \\\\\\"POWERSHELL\\\\\\",\\\\n \\\\\\"recoveryInstanceName\\\\\\": \\\\\\"HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo\\\\\\",\\\\n \\\\\\"recoveryCpu\\\\\\": 2,\\\\n \\\\\\"recoveryMemory\\\\\\": 4294967296,\\\\n \\\\\\"recoveryUseEssd\\\\\\": false,\\\\n \\\\\\"recoveryUseSsd\\\\\\": false,\\\\n \\\\\\"recoveryReserveIp\\\\\\": false,\\\\n \\\\\\"recoveryUseDhcp\\\\\\": true,\\\\n \\\\\\"recoveryIpAddress\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryNetwork\\\\\\": \\\\\\"vsw-xxxxxxxxxxxxxxxxxx\\\\\\"\\\\n },\\\\n \\\\\\"testCleanupAction\\\\\\": {},\\\\n \\\\\\"changeRecoveryPointAction\\\\\\": {\\\\n \\\\\\"eipAddressId\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptContent\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptType\\\\\\": \\\\\\"POWERSHELL\\\\\\",\\\\n \\\\\\"recoveryInstanceName\\\\\\": \\\\\\"HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr\\\\\\",\\\\n \\\\\\"recoveryCpu\\\\\\": 2,\\\\n \\\\\\"recoveryMemory\\\\\\": 4294967296,\\\\n \\\\\\"recoveryUseEssd\\\\\\": false,\\\\n \\\\\\"recoveryUseSsd\\\\\\": false,\\\\n \\\\\\"recoveryReserveIp\\\\\\": false,\\\\n \\\\\\"recoveryUseDhcp\\\\\\": true,\\\\n \\\\\\"recoveryIpAddress\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryNetwork\\\\\\": \\\\\\"vsw-xxxxxxxxxxxxxxxxxx\\\\\\"\\\\n },\\\\n \\\\\\"forcedFailoverAction\\\\\\": {\\\\n \\\\\\"eipAddressId\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptContent\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryPostScriptType\\\\\\": \\\\\\"POWERSHELL\\\\\\",\\\\n \\\\\\"recoveryInstanceName\\\\\\": \\\\\\"HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo\\\\\\",\\\\n \\\\\\"recoveryCpu\\\\\\": 2,\\\\n \\\\\\"recoveryMemory\\\\\\": 4294967296,\\\\n \\\\\\"recoveryUseEssd\\\\\\": false,\\\\n \\\\\\"recoveryUseSsd\\\\\\": false,\\\\n \\\\\\"recoveryReserveIp\\\\\\": false,\\\\n \\\\\\"recoveryUseDhcp\\\\\\": true,\\\\n \\\\\\"recoveryIpAddress\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"recoveryNetwork\\\\\\": \\\\\\"vsw-xxxxxxxxxxxxxxxxxx\\\\\\"\\\\n }\\\\n }\\\\n ]\\\\n }\\\\n ]\\\\n}\\",\\n \\"RecoveryPlanId\\": \\"rp-xxxxxxxxxxxxxxxxxx\\"\\n}","type":"json"}]', - 'title' => '查询恢复计划详情', ], - 'DescribeRecoveryPlans' => [ - 'summary' => '查询站点对中的恢复计划列表。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UnregisterServer' => [ + 'summary' => '注销受保护服务器。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'list', + 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrEJMNXE', 'FEATUREhdrKVSJIZ', 'FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ - 'name' => 'SitePairId', - 'in' => 'query', - 'schema' => [ - 'description' => '站点对ID。', - 'type' => 'string', - 'required' => false, - 'example' => 's-0005qxusucbii5ab6wuj', - ], - ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => '分页查询时设置的页数,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], - ], - [ - 'name' => 'PageSize', + 'name' => 'ServerId', 'in' => 'query', - 'schema' => [ - 'description' => '分页查询时设置的每页行数,默认值为10。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['description' => '受保护服务器ID', 'type' => 'string', 'required' => true, 'example' => 'sr-000jf20efavec47ucq5g'], ], ], 'responses' => [ @@ -4225,104 +3053,38 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'F2812CD7-03E7-5774-9EE5-827D8398A670', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Code' => [ - 'description' => '接口返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageSize' => [ - 'description' => '分页查询时的每页行数,最大值:100默认值:10', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => '分页查询的当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'TotalCount' => [ - 'description' => '恢复计划数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'RecoveryPlans' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'recoveryPlan' => [ - 'description' => '恢复计划列表。', - 'type' => 'array', - 'items' => [ - 'description' => '恢复计划详情。', - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'description' => '恢复计划状态。其中,'."\n" - ."\n" - .'- **creating**:创建中'."\n" - .'- **updating**:更新中'."\n" - .'- **deleting**:删除中'."\n" - .'- **failed**:失败'."\n" - .'- **init**:已初始化'."\n" - .'- **running**:执行中', - 'type' => 'string', - 'example' => 'init', - ], - 'Direction' => [ - 'description' => '恢复计划的方向,支持**forward**。', - 'type' => 'string', - 'example' => 'forward', - ], - 'Name' => [ - 'description' => '恢复计划名称。', - 'type' => 'string', - 'example' => 'test-1', - ], - 'RecoveryPlanId' => [ - 'description' => '恢复计划ID。', - 'type' => 'string', - 'example' => 'rp-xxxxxxxxxxxxxxxxxx', - ], - ], - ], - ], - ], - ], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D2E81EC9-B206-54EA-BBCF-9D4D6AFE7AA8'], + 'Success' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + ], + 'description' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"D2E81EC9-B206-54EA-BBCF-9D4D6AFE7AA8\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '注销受保护服务器', + 'changeSet' => [ + ['createdAt' => '2022-03-02T02:04:10.000Z', 'description' => '错误码发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:UnregisterServer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2812CD7-03E7-5774-9EE5-827D8398A670\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 1,\\n \\"RecoveryPlans\\": {\\n \\"recoveryPlan\\": [\\n {\\n \\"Status\\": \\"init\\",\\n \\"Direction\\": \\"forward\\",\\n \\"Name\\": \\"test-1\\",\\n \\"RecoveryPlanId\\": \\"rp-xxxxxxxxxxxxxxxxxx\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询恢复计划列表', ], 'UpdateRecoveryPlan' => [ 'summary' => '编辑恢复计划内容。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4333,97 +3095,79 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', - ], + 'abilityTreeNodes' => ['FEATUREhdrE49XN0', 'FEATUREhdrF01CKY'], ], 'parameters' => [ [ 'name' => 'RecoveryPlanId', 'in' => 'query', - 'schema' => [ - 'description' => '恢复计划ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rp-xxxxxxxxxxxxxxxx', - ], + 'schema' => ['description' => '恢复计划ID。', 'type' => 'string', 'required' => false, 'example' => 'rp-xxxxxxxxxxxxxxxx'], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '恢复计划名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test-1', - ], + 'schema' => ['description' => '恢复计划名称。', 'type' => 'string', 'required' => false, 'example' => 'test-1'], ], [ 'name' => 'Content', 'in' => 'query', - 'schema' => [ - 'description' => '恢复计划详情。', - 'type' => 'string', - 'required' => false, - 'example' => '{'."\n" - .' "groups": ['."\n" - .' {'."\n" - .' "name": "Group-1",'."\n" - .' "id": "Group-1",'."\n" - .' "servers": ['."\n" - .' {'."\n" - .' "name": "sr-xxxxxxxxxxxxxxxxxx",'."\n" - .' "serverId": "sr-xxxxxxxxxxxxxxxxxx",'."\n" - .' "testFailoverAction": {'."\n" - .' "eipAddressId": "",'."\n" - .' "recoveryPostScriptContent": "",'."\n" - .' "recoveryPostScriptType": "POWERSHELL",'."\n" - .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo",'."\n" - .' "recoveryCpu": 2,'."\n" - .' "recoveryMemory": 4294967296,'."\n" - .' "recoveryUseEssd": false,'."\n" - .' "recoveryUseSsd": false,'."\n" - .' "recoveryReserveIp": false,'."\n" - .' "recoveryUseDhcp": true,'."\n" - .' "recoveryIpAddress": "",'."\n" - .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" - .' },'."\n" - .' "testCleanupAction": {},'."\n" - .' "changeRecoveryPointAction": {'."\n" - .' "eipAddressId": "",'."\n" - .' "recoveryPostScriptContent": "",'."\n" - .' "recoveryPostScriptType": "POWERSHELL",'."\n" - .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr",'."\n" - .' "recoveryCpu": 2,'."\n" - .' "recoveryMemory": 4294967296,'."\n" - .' "recoveryUseEssd": false,'."\n" - .' "recoveryUseSsd": false,'."\n" - .' "recoveryReserveIp": false,'."\n" - .' "recoveryUseDhcp": true,'."\n" - .' "recoveryIpAddress": "",'."\n" - .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" - .' },'."\n" - .' "forcedFailoverAction": {'."\n" - .' "eipAddressId": "",'."\n" - .' "recoveryPostScriptContent": "",'."\n" - .' "recoveryPostScriptType": "POWERSHELL",'."\n" - .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo",'."\n" - .' "recoveryCpu": 2,'."\n" - .' "recoveryMemory": 4294967296,'."\n" - .' "recoveryUseEssd": false,'."\n" - .' "recoveryUseSsd": false,'."\n" - .' "recoveryReserveIp": false,'."\n" - .' "recoveryUseDhcp": true,'."\n" - .' "recoveryIpAddress": "",'."\n" - .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" - .' }'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .' ]'."\n" - .'}', - ], + 'schema' => ['description' => '恢复计划详情。', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .' "groups": ['."\n" + .' {'."\n" + .' "name": "Group-1",'."\n" + .' "id": "Group-1",'."\n" + .' "servers": ['."\n" + .' {'."\n" + .' "name": "sr-xxxxxxxxxxxxxxxxxx",'."\n" + .' "serverId": "sr-xxxxxxxxxxxxxxxxxx",'."\n" + .' "testFailoverAction": {'."\n" + .' "eipAddressId": "",'."\n" + .' "recoveryPostScriptContent": "",'."\n" + .' "recoveryPostScriptType": "POWERSHELL",'."\n" + .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo",'."\n" + .' "recoveryCpu": 2,'."\n" + .' "recoveryMemory": 4294967296,'."\n" + .' "recoveryUseEssd": false,'."\n" + .' "recoveryUseSsd": false,'."\n" + .' "recoveryReserveIp": false,'."\n" + .' "recoveryUseDhcp": true,'."\n" + .' "recoveryIpAddress": "",'."\n" + .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" + .' },'."\n" + .' "testCleanupAction": {},'."\n" + .' "changeRecoveryPointAction": {'."\n" + .' "eipAddressId": "",'."\n" + .' "recoveryPostScriptContent": "",'."\n" + .' "recoveryPostScriptType": "POWERSHELL",'."\n" + .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr",'."\n" + .' "recoveryCpu": 2,'."\n" + .' "recoveryMemory": 4294967296,'."\n" + .' "recoveryUseEssd": false,'."\n" + .' "recoveryUseSsd": false,'."\n" + .' "recoveryReserveIp": false,'."\n" + .' "recoveryUseDhcp": true,'."\n" + .' "recoveryIpAddress": "",'."\n" + .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" + .' },'."\n" + .' "forcedFailoverAction": {'."\n" + .' "eipAddressId": "",'."\n" + .' "recoveryPostScriptContent": "",'."\n" + .' "recoveryPostScriptType": "POWERSHELL",'."\n" + .' "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo",'."\n" + .' "recoveryCpu": 2,'."\n" + .' "recoveryMemory": 4294967296,'."\n" + .' "recoveryUseEssd": false,'."\n" + .' "recoveryUseSsd": false,'."\n" + .' "recoveryReserveIp": false,'."\n" + .' "recoveryUseDhcp": true,'."\n" + .' "recoveryIpAddress": "",'."\n" + .' "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx"'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .'}'], ], ], 'responses' => [ @@ -4431,1022 +3175,643 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'F1B86896-AB3E-5861-9E33-10486F056BB3', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-000ir69ra7neqp2p4qdv', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], + 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'F1B86896-AB3E-5861-9E33-10486F056BB3'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-000ir69ra7neqp2p4qdv'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'True'], ], + 'description' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"F1B86896-AB3E-5861-9E33-10486F056BB3\\",\\n \\"TaskId\\": \\"t-000ir69ra7neqp2p4qdv\\",\\n \\"Success\\": true\\n}","type":"json"}]', 'title' => '编辑恢复计划', + 'changeSet' => [ + ['createdAt' => '2024-01-09T07:12:48.000Z', 'description' => '响应参数发生变更'], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:UpdateRecoveryPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], ], - 'DescribeAvailableInstanceTypes' => [ - 'summary' => '查询(演练、故障切换、故障恢复等场景的)可用规格。', - 'methods' => [ - 'post', - 'get', + ], + 'endpoints' => [ + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'hdr.cn-shanghai.aliyuncs.com', 'endpoint' => 'hdr.cn-shanghai.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'hdr.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'hdr.cn-zhangjiakou.aliyuncs.com', 'vpc' => ''], + ], + 'errorCodes' => [ + ['code' => 'DrillVpcInUse', 'message' => 'The VPC for drill is used for drill groups.', 'http_code' => 400, 'description' => '设置的演练VPC被演练组使用中。'], + ['code' => 'Forbidden.NoPermission', 'message' => 'You are not authorized to do this operation.', 'http_code' => 403, 'description' => '您没有操作权限。'], + ['code' => 'InvalidImageSize', 'message' => 'The image size exceeds the system disk capacity.', 'http_code' => 400, 'description' => '镜像大小超过系统盘容量。'], + ['code' => 'InvalidParameter', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => '参数错误。'], + ['code' => 'ORDER.OPEND', 'message' => 'You have already enabled, please go to the console to use it.', 'http_code' => 400, 'description' => '您已开通,请直接去控制台开始使用。'], + ['code' => 'ORDER.OPENED', 'message' => 'You have already enabled, please go to the console to use it.', 'http_code' => 400, 'description' => '您已开通,请直接去控制台使用'], + ['code' => 'PERMISSION_DENIED', 'message' => 'No permission.', 'http_code' => 403, 'description' => '无权限调用'], + ['code' => 'ServiceReadOnly', 'message' => 'The service is read-only right now, check the service endpoint please.', 'http_code' => 400, 'description' => '服务当前只读,请确认服务Endpoint是否正确。'], + ['code' => 'ServiceReadyOnly', 'message' => 'The service is read only right now, check the service endpoint please.', 'http_code' => 500, 'description' => '服务当前只读,请确认服务Endpoint是否正确。'], + ['code' => 'SitePairIsNotEmpty', 'message' => 'The site pair may contains protection group, network mapping or security group mapping.', 'http_code' => 400, 'description' => '站点对下可能存在保护组、网络映射或安全组映射等资源。'], + ], + 'changeSet' => [ + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'TestFailover'], + ['description' => '响应参数发生变更', 'api' => 'UpdateRecoveryPlan'], ], - 'schemes' => [ - 'http', - 'https', + 'createdAt' => '2024-01-09T07:12:53.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'ForcedFailover'], ], - 'security' => [ - [ - 'AK' => [], - ], + 'createdAt' => '2024-01-09T06:44:36.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeRecoveryPlans'], + ['description' => '错误码发生变更', 'api' => 'DescribeRecoveryPoints'], + ['description' => '响应参数发生变更', 'api' => 'DescribeServer'], + ['description' => '响应参数发生变更', 'api' => 'DescribeServers'], + ], + 'createdAt' => '2024-01-09T06:27:42.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DeleteRecoveryPlan'], + ['description' => '响应参数发生变更', 'api' => 'DescribeRecoveryPlan'], ], - 'operationType' => 'read', - 'systemTags' => [ + 'createdAt' => '2024-01-09T06:12:37.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'ChangeRecoveryPoint'], + ['description' => '错误码发生变更', 'api' => 'CommitFailover'], + ['description' => '响应参数发生变更', 'api' => 'CreateRecoveryPlan'], + ], + 'createdAt' => '2024-01-09T05:42:37.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeServer'], + ['description' => '响应参数发生变更', 'api' => 'DescribeServers'], + ], + 'createdAt' => '2023-01-09T07:06:00.000Z', + 'description' => 'DescribeServer和DescribeServers返回RecoveryHostName', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'ChangeRecoveryPoint'], + ['description' => '响应参数发生变更', 'api' => 'ForcedFailover'], + ['description' => '响应参数发生变更', 'api' => 'TestFailover'], + ], + 'createdAt' => '2023-01-09T07:01:14.000Z', + 'description' => 'ForcedFailover、TestFailover、ChangeRecoveryPoint支持指定HostName', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeServer'], + ['description' => '响应参数发生变更', 'api' => 'DescribeServers'], + ], + 'createdAt' => '2022-04-20T06:14:02.000Z', + 'description' => 'DescribeServer与DescribeServers接口出参新增最近恢复点时间', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更、错误码发生变更', 'api' => 'ChangeRecoveryPoint'], + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'CreateSitePair'], + ['description' => '请求参数发生变更', 'api' => 'DescribeAvailableInstanceTypes'], + ['description' => '请求参数发生变更、响应参数发生变更、错误码发生变更', 'api' => 'DescribeServer'], + ['description' => '响应参数发生变更', 'api' => 'DescribeServers'], + ['description' => '请求参数发生变更、错误码发生变更', 'api' => 'DescribeSite'], + ['description' => '响应参数发生变更', 'api' => 'DescribeSitePair'], + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'DescribeSitePairs'], + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'DescribeTask'], + ['description' => '响应参数发生变更、错误码发生变更', 'api' => 'DescribeTasks'], + ], + 'createdAt' => '2022-03-08T02:42:53.000Z', + 'description' => '文档更新', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateSitePair'], + ['description' => '错误码发生变更', 'api' => 'DeleteSitePair'], + ['description' => '请求参数发生变更', 'api' => 'RegisterServers'], + ['description' => '错误码发生变更', 'api' => 'UnregisterServer'], + ], + 'createdAt' => '2022-03-02T03:19:29.000Z', + 'description' => '更新部分接口的可见性', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更、错误码发生变更', 'api' => 'TestFailover'], + ], + 'createdAt' => '2022-03-01T16:05:29.000Z', + 'description' => '更新TestFailover描述与示例值', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'DeployGateway'], + ], + 'createdAt' => '2022-02-28T08:27:22.000Z', + 'description' => '将内部使用的API转为私有,为发布文档和SDK做准备', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'DescribeSitePair'], + ], + 'createdAt' => '2022-02-28T08:00:43.000Z', + 'description' => '将非必要公开的API转为私有,为发布文档和SDK做准备', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更、错误码发生变更', 'api' => 'DescribeServerInstances'], + ], + 'createdAt' => '2022-02-26T06:35:05.000Z', + 'description' => 'DescribeServerInstance接口增加主机名HostName参数', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更、错误码发生变更', 'api' => 'DescribeSitePairs'], + ['description' => '响应参数发生变更、错误码发生变更', 'api' => 'DescribeSummary'], + ], + 'createdAt' => '2021-11-18T05:34:38.000Z', + 'description' => 'DescribeSummary和DescribeSitePairs接口返回服务器复制状态', + ], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeServer'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'CreateRecoveryPlan'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeTasks'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'TestCleanup'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ChangeRecoveryPoint'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DeleteSitePair'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ReversedDisableReplication'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'UnregisterServer'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'CommitFailover'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DisableReplication'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeRecoveryPlan'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeRecoveryPlans'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ForcedFailover'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeTask'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeSitePairStatistics'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeSite'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'EnableReplication'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'TriggerReversedRegister'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeAvailableInstanceTypes'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'UpdateRecoveryPlan'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'TestFailover'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeInfrastructures'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ReversedEnableReplication'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeSummary'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeSitePairs'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'RegisterServers'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeServers'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DeleteRecoveryPlan'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeSitePair'], + ['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DescribeRecoveryPoints'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'CreateSitePair'], + ['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'Failback'], + ], + ], + 'ram' => [ + 'productCode' => 'HDR', + 'productName' => '混合云容灾服务', + 'ramCodes' => ['hdr'], + 'ramLevel' => '操作级', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'DescribeRecoveryPoints', + 'description' => '查询可用恢复点', 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrF01CKY', - 'FEATUREhdrE49XN0', + 'ramAction' => [ + 'action' => 'hdr:DescribeRecoveryPoints', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'Region', - 'in' => 'query', - 'schema' => [ - 'description' => '地域ID', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-shanghai', + [ + 'apiName' => 'DeleteSitePair', + 'description' => '删除站点对', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'hdr:DeleteSitePair', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ZoneId', - 'in' => 'query', - 'schema' => [ - 'description' => '可用区ID', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-beijing-g', + ], + [ + 'apiName' => 'DescribeSitePairStatistics', + 'description' => '查询站点对统计信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeSitePairStatistics', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'DiskType', - 'in' => 'query', - 'schema' => [ - 'description' => '磁盘类型', - 'type' => 'string', - 'required' => true, - 'enumValueTitles' => [ - 'cloud_efficiency,cloud_essd,cloud_ssd' => 'cloud_efficiency,cloud_essd,cloud_ssd', - ], - 'example' => 'cloud_efficiency', + ], + [ + 'apiName' => 'RegisterServers', + 'description' => '添加受保护服务器', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:RegisterServers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ChargeType', - 'in' => 'query', - 'schema' => [ - 'description' => '付费类型', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'PostPaid' => 'PostPaid', - 'PrePaid' => 'PrePaid', - ], - 'example' => 'PostPaid', - 'default' => 'PostPaid', - 'enum' => [ - 'PostPaid', - 'PrePaid', - ], + ], + [ + 'apiName' => 'DescribeSite', + 'description' => '查询站点信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeSite', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'Network', - 'in' => 'query', - 'schema' => [ - 'description' => '网络类型', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'classic' => 'classic', - 'vpc' => 'vpc', - ], - 'example' => 'vpc', - 'default' => 'vpc', + ], + [ + 'apiName' => 'DescribeSitePair', + 'description' => '查询站点对信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeSitePair', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'IoOptimized', - 'in' => 'query', - 'schema' => [ - 'description' => '是否属于IO优化型实例', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'true', + ], + [ + 'apiName' => 'TestCleanup', + 'description' => '清理容灾演练环境', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:TestCleanup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'description' => '排序依据', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'memory' => 'memory', - 'vcpu' => 'vcpu', - ], - 'example' => 'vcpu', - 'default' => 'network', + ], + [ + 'apiName' => 'DescribeTask', + 'description' => '查询任务', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'Order', - 'in' => 'query', - 'schema' => [ - 'description' => '排序方式', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'asc' => 'asc', - 'desc' => 'desc', - ], - 'example' => 'asc', - 'default' => 'desc', - 'enum' => [ - 'asc', - 'desc', - ], + ], + [ + 'apiName' => 'DescribeTasks', + 'description' => '查询任务列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeTasks', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'Filter', - 'in' => 'query', - 'schema' => [ - 'description' => '查询过滤表达式。多个表达式之间用分号;隔开。表达式由键、操作符和值组成。'."\n" - ."\n" - .'键支持:'."\n" - .'* vcpu:实例规格的CPU核数'."\n" - .'* memory:实例规格的内存'."\n" - ."\n" - .'操作符支持<、<=、>、>=、=等。值为数字整型。', - 'type' => 'string', - 'required' => false, - 'example' => 'vcpu>=2;vcpu<16;memory>=4;', + ], + [ + 'apiName' => 'DescribeAvailableInstanceTypes', + 'description' => '查询可用规格', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeAvailableInstanceTypes', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => '分页参数:当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', + ], + [ + 'apiName' => 'DisableReplication', + 'description' => '停止复制', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:DisableReplication', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => '分页大小。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '10', + ], + [ + 'apiName' => 'CreateRecoveryPlan', + 'description' => '创建恢复计划', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'hdr:CreateRecoveryPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'UserClient', - 'in' => 'query', - 'schema' => [ - 'description' => '是否使用用户角色查询可用规格(默认使用混合云容灾服务账号进行查询),部分白名单实例规格需要开启该开关才能查询到结果。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', + ], + [ + 'apiName' => 'UpdateRecoveryPlan', + 'description' => '编辑恢复计划', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:UpdateRecoveryPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '1A7577E8-755A-5BF5-A6BA-B87286D0743F', - ], - 'Success' => [ - 'description' => '请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Code' => [ - 'description' => '返回结果编码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageSize' => [ - 'description' => '分页大小。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => '分页参数:当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'TotalCount' => [ - 'description' => '查询到的实例总数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '11', - ], - 'InstanceTypes' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'instanceType' => [ - 'description' => '可用实例规格列表。', - 'type' => 'array', - 'items' => [ - 'description' => '可用实例规格', - 'type' => 'string', - 'example' => 'ecs.g5ne.xlarge', - ], - ], - ], - ], - ], + [ + 'apiName' => 'TestFailover', + 'description' => '容灾演练', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:TestFailover', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1A7577E8-755A-5BF5-A6BA-B87286D0743F\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 11,\\n \\"InstanceTypes\\": {\\n \\"instanceType\\": [\\n \\"ecs.g5ne.xlarge\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询可用规格', - ], - 'DescribeTasks' => [ - 'summary' => '查询任务列表。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ForcedFailover', + 'description' => '故障切换', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:ForcedFailover', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrEJMNXE', - 'FEATUREhdrF01CKY', - 'FEATUREhdrE49XN0', + [ + 'apiName' => 'TriggerReversedRegister', + 'description' => '反向注册', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:TriggerReversedRegister', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'SitePairId', - 'in' => 'query', - 'schema' => [ - 'description' => '站点对ID', - 'type' => 'string', - 'required' => false, - 'example' => 's-000cm9ax8sh22u8r9gs0', + [ + 'apiName' => 'UnregisterServer', + 'description' => '注销受保护服务器', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:UnregisterServer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => '分页查询的当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', + ], + [ + 'apiName' => 'ReversedEnableReplication', + 'description' => '启动反向复制', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:ReversedEnableReplication', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '10', + ], + [ + 'apiName' => 'CommitFailover', + 'description' => '确认故障切换', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:CommitFailover', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'description' => '按创建时间或更新时间排序', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'updatedTime' => 'updatedTime', - 'createdTime' => 'createdTime', - ], - 'example' => 'createdTime', + ], + [ + 'apiName' => 'DescribeSummary', + 'description' => '查询概览信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeSummary', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => '请求 ID', - 'type' => 'string', - 'example' => '86FFBA6E-D087-53E0-8593-4575925CB9DC', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageSize' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => '分页查询的当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'TotalCount' => [ - 'description' => '总条数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '53', - ], - 'Tasks' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'task' => [ - 'description' => '任务列表。', - 'type' => 'array', - 'items' => [ - 'description' => '任务列表', - 'type' => 'object', - 'properties' => [ - 'Progress' => [ - 'description' => '任务进度百分比。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '90', - ], - 'UpdatedTime' => [ - 'description' => '最后修改时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1637292645', - ], - 'StatusCode' => [ - 'description' => '任务状态', - 'type' => 'string', - 'example' => 'hdr.task.completed', - ], - 'TargetName' => [ - 'description' => '任务的目标', - 'type' => 'string', - 'example' => 'sr-000ftuch27gfuv8wvpyj', - ], - 'Name' => [ - 'description' => '任务名称', - 'type' => 'string', - 'example' => 'CommitFailoverTask', - ], - 'CreatedTime' => [ - 'description' => '任务创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1636092147', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-0007wl5r0hvxrp3c3x8z', - ], - ], - ], - ], - ], - ], - ], + [ + 'apiName' => 'DescribeRecoveryPlans', + 'description' => '查询恢复计划列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeRecoveryPlans', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86FFBA6E-D087-53E0-8593-4575925CB9DC\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 3,\\n \\"TotalCount\\": 53,\\n \\"Tasks\\": {\\n \\"task\\": [\\n {\\n \\"Progress\\": 90,\\n \\"UpdatedTime\\": 1637292645,\\n \\"StatusCode\\": \\"hdr.task.completed\\",\\n \\"TargetName\\": \\"sr-000ftuch27gfuv8wvpyj\\",\\n \\"Name\\": \\"CommitFailoverTask\\",\\n \\"CreatedTime\\": 1636092147,\\n \\"TaskId\\": \\"t-0007wl5r0hvxrp3c3x8z\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询任务列表', - ], - 'DescribeTask' => [ - 'summary' => '查询任务。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'EnableReplication', + 'description' => '启动复制', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:EnableReplication', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', + [ + 'apiName' => 'DescribeInfrastructures', + 'description' => '查询站点基础设施', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeInfrastructures', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'TaskId', - 'in' => 'query', - 'schema' => [ - 'description' => '任务ID', - 'type' => 'string', - 'required' => true, - 'example' => 't-0005qxusucbnl5efovq9', + [ + 'apiName' => 'CreateSitePair', + 'description' => '创建站点对', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'hdr:CreateSitePair', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Progress' => [ - 'description' => '任务进度百分比。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'Message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '8F8A2274-F2A5-5782-89A0-7FA442BFA16B', - ], - 'UpdatedTime' => [ - 'description' => '最后修改时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1636452195', - ], - 'StatusCode' => [ - 'description' => '任务状态', - 'type' => 'string', - 'example' => 'hdr.task.TestFailoverTask.waitStartFailover', - ], - 'Code' => [ - 'description' => '返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'Name' => [ - 'description' => '任务名称', - 'type' => 'string', - 'example' => 'hdr.task.name.TestFailoverTask', - ], - 'TaskId' => [ - 'description' => '任务ID', - 'type' => 'string', - 'example' => 't-000bzkmmlwh57miq4mwh', - ], - 'Content' => [ - 'description' => '任务内容。', - 'type' => 'string', - 'example' => '-', - ], - 'CreatedTime' => [ - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1646100927', - ], - ], + [ + 'apiName' => 'DeleteRecoveryPlan', + 'description' => '删除恢复计划', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'hdr:DeleteRecoveryPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Progress\\": 100,\\n \\"Success\\": true,\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"8F8A2274-F2A5-5782-89A0-7FA442BFA16B\\",\\n \\"UpdatedTime\\": 1636452195,\\n \\"StatusCode\\": \\"hdr.task.TestFailoverTask.waitStartFailover\\",\\n \\"Code\\": \\"200\\",\\n \\"Name\\": \\"hdr.task.name.TestFailoverTask\\",\\n \\"TaskId\\": \\"t-000bzkmmlwh57miq4mwh\\",\\n \\"Content\\": \\"-\\",\\n \\"CreatedTime\\": 1646100927\\n}","type":"json"}]', - 'title' => '查询任务', - ], - 'DescribeSitePairStatistics' => [ - 'summary' => '查询站点对统计信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'DescribeSitePairs', + 'description' => '查询站点对信息', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeSitePairs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrEJMNXE', - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', + [ + 'apiName' => 'Failback', + 'description' => '故障恢复', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:Failback', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'SitePairId', - 'in' => 'query', - 'schema' => [ - 'description' => '站点对ID', - 'type' => 'string', - 'required' => false, - 'example' => 's-0005qxusucbp8acutbrv', + [ + 'apiName' => 'DescribeServers', + 'description' => '查询受保护服务器', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'hdr:DescribeServers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'RequestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => 'C0D9AAEE-8A21-5693-BCBD-8548914E4F3B', - ], - 'Success' => [ - 'description' => '请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'PrimarySiteGatewayInfo' => [ - 'description' => '主站站点信息', - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'description' => '网关状态', - 'type' => 'string', - 'example' => 'connected', - ], - 'GatewayId' => [ - 'description' => '网关ID', - 'type' => 'string', - 'example' => 'gw-000bzkmmlwgzptnzsdnh', - ], - 'Version' => [ - 'description' => '网关版本', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'HeartbeatedTime' => [ - 'description' => '网关心跳时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1642562996', - ], - ], - ], - 'SecondarySiteGatewayInfo' => [ - 'description' => '从站站点信息', - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'description' => '网关状态', - 'type' => 'string', - 'example' => 'connected', - ], - 'GatewayId' => [ - 'description' => '网关ID', - 'type' => 'string', - 'example' => 'gw-0005qxusucbigzug9wpe', - ], - 'Version' => [ - 'description' => '网关版本', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'HeartbeatedTime' => [ - 'description' => '网关心跳时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1642562996', - ], - ], - ], - 'PrimarySiteServers' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'server' => [ - 'description' => '主站说保护服务器信息列表', - 'type' => 'array', - 'items' => [ - 'description' => '主站说保护服务器信息', - 'type' => 'object', - 'properties' => [ - 'AgentVersion' => [ - 'description' => '客户端版本号', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'ConnectionStatus' => [ - 'description' => '受保护服务器连接状态', - 'type' => 'string', - 'example' => 'connected', - ], - 'IpAddress' => [ - 'description' => '受保护服务器IP地址', - 'type' => 'string', - 'example' => '30.42.105.6', - ], - 'ServerId' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'example' => 'sr-000c2rz7q8tkc0g4xgao', - ], - ], - ], - ], - ], - ], - 'SecondarySiteServers' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'server' => [ - 'description' => '从站受保护服务器信息列表', - 'type' => 'array', - 'items' => [ - 'description' => '从站受保护服务器信息', - 'type' => 'object', - 'properties' => [ - 'AgentVersion' => [ - 'description' => '客户端版本号', - 'type' => 'string', - 'example' => '3.7.3', - ], - 'ConnectionStatus' => [ - 'description' => '受保护服务器连接状态', - 'type' => 'string', - 'example' => 'connected', - ], - 'IpAddress' => [ - 'description' => '受保护服务器IP地址', - 'type' => 'string', - 'example' => '192.168.1.4', - ], - 'ServerId' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'example' => 'sr-000ikcyl8ucxtxl5f7pi', - ], - ], - ], - ], - ], - ], - ], + [ + 'apiName' => 'DescribeServer', + 'description' => '查询受保护服务器', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'hdr:DescribeServer', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"C0D9AAEE-8A21-5693-BCBD-8548914E4F3B\\",\\n \\"Success\\": true,\\n \\"PrimarySiteGatewayInfo\\": {\\n \\"Status\\": \\"connected\\",\\n \\"GatewayId\\": \\"gw-000bzkmmlwgzptnzsdnh\\",\\n \\"Version\\": \\"3.7.3\\",\\n \\"HeartbeatedTime\\": 1642562996\\n },\\n \\"SecondarySiteGatewayInfo\\": {\\n \\"Status\\": \\"connected\\",\\n \\"GatewayId\\": \\"gw-0005qxusucbigzug9wpe\\",\\n \\"Version\\": \\"3.7.3\\",\\n \\"HeartbeatedTime\\": 1642562996\\n },\\n \\"PrimarySiteServers\\": {\\n \\"server\\": [\\n {\\n \\"AgentVersion\\": \\"3.7.3\\",\\n \\"ConnectionStatus\\": \\"connected\\",\\n \\"IpAddress\\": \\"30.42.105.6\\",\\n \\"ServerId\\": \\"sr-000c2rz7q8tkc0g4xgao\\"\\n }\\n ]\\n },\\n \\"SecondarySiteServers\\": {\\n \\"server\\": [\\n {\\n \\"AgentVersion\\": \\"3.7.3\\",\\n \\"ConnectionStatus\\": \\"connected\\",\\n \\"IpAddress\\": \\"192.168.1.4\\",\\n \\"ServerId\\": \\"sr-000ikcyl8ucxtxl5f7pi\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询站点对统计信息', - ], - 'DescribeSummary' => [ - 'summary' => '查询概览信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ReversedDisableReplication', + 'description' => '停止反向复制', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:ReversedDisableReplication', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'systemTags' => [ + [ + 'apiName' => 'DescribeRecoveryPlan', + 'description' => '查询恢复计划详情', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREhdrKVSJIZ', - 'FEATUREhdrEJMNXE', - 'FEATUREhdrE49XN0', - 'FEATUREhdrF01CKY', + 'ramAction' => [ + 'action' => 'hdr:DescribeRecoveryPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], - 'tenantRelevance' => 'publicInformation', ], - 'parameters' => [], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => 'DE78056B-E82A-52FD-BF5E-F737D8B63845', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'ServerCount' => [ - 'description' => '受保护服务器总数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'TotalSize' => [ - 'description' => '站点对总数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'Code' => [ - 'description' => '状态码', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], - 'DbServerCount' => [ - 'description' => '数据库服务器数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'SiteCount' => [ - 'description' => '站点数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4', - ], - 'ReplicationDetails' => [ - 'description' => '复制状态统计信息', - 'type' => 'object', - 'properties' => [ - 'WarningServers' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'warningServer' => [ - 'description' => '处于警告状态的受保护服务器信息', - 'type' => 'array', - 'items' => [ - 'description' => '处于警告状态的受保护服务器信息', - 'type' => 'object', - 'properties' => [ - 'ServerId' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'example' => 'sr-000fzufp79icz33l4pak', - ], - 'InstanceId' => [ - 'description' => '受保护服务器实例ID', - 'type' => 'string', - 'example' => 'i-bp1a4374akk4527gbt9x', - ], - 'SitePairId' => [ - 'description' => '受保护服务器站点对ID', - 'type' => 'string', - 'example' => 's-000bzkmmlwh5riquud19', - ], - 'Rpo' => [ - 'description' => 'RPO', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30', - ], - 'Status' => [ - 'description' => '状态', - 'type' => 'string', - 'example' => 'replicating', - ], - 'ConnectionStatus' => [ - 'description' => '连接状态', - 'type' => 'string', - 'example' => 'connected', - ], - ], - ], - ], - ], - ], - 'CriticalServers' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'criticalServer' => [ - 'description' => '处于危险状态的受保护服务器信息', - 'type' => 'array', - 'items' => [ - 'description' => '处于危险状态的受保护服务器信息', - 'type' => 'object', - 'properties' => [ - 'ServerId' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'example' => 'sr-0005qxusucb0fqqdf4ba', - ], - 'InstanceId' => [ - 'description' => '受保护服务器实例ID', - 'type' => 'string', - 'example' => 'i-bp1a4374akk4527gbt9x', - ], - 'SitePairId' => [ - 'description' => '受保护服务器站点对ID', - 'type' => 'string', - 'example' => 's-0005qxusucbii3ba2uve', - ], - 'Rpo' => [ - 'description' => 'RPO', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30', - ], - 'Status' => [ - 'description' => '状态', - 'type' => 'string', - 'example' => 'replicating', - ], - 'ConnectionStatus' => [ - 'description' => '连接状态', - 'type' => 'string', - 'example' => 'connected', - ], - ], - ], - ], - ], - ], - 'NotApplicableServers' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'notApplicableServer' => [ - 'description' => '处于非复制状态的受保护服务器信息', - 'type' => 'array', - 'items' => [ - 'description' => '处于未复制状态的受保护服务器信息', - 'type' => 'object', - 'properties' => [ - 'ServerId' => [ - 'description' => '受保护服务器ID', - 'type' => 'string', - 'example' => 'sr-000iji78mxxc93yldd2e', - ], - 'InstanceId' => [ - 'description' => '受保护服务器实例ID', - 'type' => 'string', - 'example' => 'i-bp1a4374akk4527gbt9x', - ], - 'SitePairId' => [ - 'description' => '受保护服务器站点对ID', - 'type' => 'string', - 'example' => 's-000bzkmmlwh5riquud19', - ], - 'Rpo' => [ - 'description' => 'RPO', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '40', - ], - 'Status' => [ - 'description' => '状态', - 'type' => 'string', - 'example' => 'replicating', - ], - 'ConnectionStatus' => [ - 'description' => '连接状态', - 'type' => 'string', - 'example' => 'connected', - ], - ], - ], - ], - ], - ], - ], - ], - ], + [ + 'apiName' => 'ChangeRecoveryPoint', + 'description' => '更换恢复点', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'hdr:ChangeRecoveryPoint', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'HDR', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DE78056B-E82A-52FD-BF5E-F737D8B63845\\",\\n \\"Success\\": true,\\n \\"ServerCount\\": 2,\\n \\"TotalSize\\": 10,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"DbServerCount\\": 0,\\n \\"SiteCount\\": 4,\\n \\"ReplicationDetails\\": {\\n \\"WarningServers\\": {\\n \\"warningServer\\": [\\n {\\n \\"ServerId\\": \\"sr-000fzufp79icz33l4pak\\",\\n \\"InstanceId\\": \\"i-bp1a4374akk4527gbt9x\\",\\n \\"SitePairId\\": \\"s-000bzkmmlwh5riquud19\\",\\n \\"Rpo\\": 30,\\n \\"Status\\": \\"replicating\\",\\n \\"ConnectionStatus\\": \\"connected\\"\\n }\\n ]\\n },\\n \\"CriticalServers\\": {\\n \\"criticalServer\\": [\\n {\\n \\"ServerId\\": \\"sr-0005qxusucb0fqqdf4ba\\",\\n \\"InstanceId\\": \\"i-bp1a4374akk4527gbt9x\\",\\n \\"SitePairId\\": \\"s-0005qxusucbii3ba2uve\\",\\n \\"Rpo\\": 30,\\n \\"Status\\": \\"replicating\\",\\n \\"ConnectionStatus\\": \\"connected\\"\\n }\\n ]\\n },\\n \\"NotApplicableServers\\": {\\n \\"notApplicableServer\\": [\\n {\\n \\"ServerId\\": \\"sr-000iji78mxxc93yldd2e\\",\\n \\"InstanceId\\": \\"i-bp1a4374akk4527gbt9x\\",\\n \\"SitePairId\\": \\"s-000bzkmmlwh5riquud19\\",\\n \\"Rpo\\": 40,\\n \\"Status\\": \\"replicating\\",\\n \\"ConnectionStatus\\": \\"connected\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', - 'title' => '查询概览信息', - ], - ], - 'endpoints' => [ - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'hdr.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'hdr.cn-zhangjiakou.aliyuncs.com', ], + 'resourceTypes' => [], ], ]; |
