huawei-cloud-api-definitions-GaussDBforNoSQL 0.1.20251031

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"NoSQLDrDateSyncIndicators":{"description":"双活实例rsync同步状态指标值","properties":{"rsync_max_push_cost":{"description":"采集周期内rsync的同步推送耗时最大值,单位us;","format":"int64","type":"integer"},"rsync_max_send_cost":{"description":"采集周期内rsync的同步发送耗时最大值,单位us;","format":"int64","type":"integer"},"rsync_ops":{"description":"节点内同步命令的执行速率,每秒多少条数据;","format":"int64","type":"integer"},"rsync_push_cost":{"description":"同步消息从放入消息队列,直到收到对端响应的平均耗时,单位us;","format":"int64","type":"integer"},"rsync_send_cost":{"description":"同步消息从消息队列取出,直到收到对端响应的平均耗时,单位us;","format":"int64","type":"integer"},"rsync_status":{"description":"rsync的同步状态,1表示正在同步,0表示没有同步;","format":"int32","type":"integer"},"rsync_wal_size":{"description":"节点内的同步WAL堆积大小,单位MB;","format":"int64","type":"integer"}},"type":"object"},"NoSQLDrRpoAndRto":{"description":"容灾实例切换的RPO和RTO指标","properties":{"rpo":{"description":"倒换或切换丢失数据时长,单位:秒(s)","format":"int64","type":"integer"},"rto":{"description":"倒换或切换恢复时长,单位:秒(s)","format":"int64","type":"integer"},"scene":{"description":"场景,枚举值\n  FAILOVER 强制切换; \n  SWITCHOVER 主备倒换","enum":["FAILOVER","SWITCHOVER"],"type":"string"}},"required":["scene"],"type":"object"},"NoSqlDrStatusResponseBody":{"properties":{"data_sync_indicators":{"$ref":"#/definitions/NoSQLDrDateSyncIndicators","description":"数据同步指标,仅当请求实例id为主实例时有值"},"master_instance_id":{"description":"主实例id","type":"string"},"rto_and_rpo_indicators":{"description":"切换或倒换RPO和RTO值,仅当请求实例id为主实例时有值","items":{"$ref":"#/definitions/NoSQLDrRpoAndRto"},"type":"array"},"slave_instance_id":{"description":"备实例id","type":"string"},"status":{"description":"容灾实例数据同步状态\n- NA:实例尚未搭建容灾关系\n- NEW:尚未启动的数据同步状态\n- SYNCING:数据同步正常进行中\n- SUSPENDING:正在暂停数据同步\n- SUSPENDED:数据同步已暂停\n- RECOVERYING:正在恢复数据同步","enum":["NA","NEW","SYNCING","SUSPENDING","SUSPENDED","RECOVERYING"],"type":"string"}},"required":["status"],"type":"object"}},"description":null,"group_id":"e59009abc8d6499f9f8dc004e69d73d7","host":"gaussdb-nosql.cn-north-4.myhuaweicloud.com","id":"4b0570ec89b84860a5a5ab07d0a5c684","info_version":"v3","method":"get","name":"ShowPauseResumeStutus","parameters":{},"paths":{"/v3/{project_id}/instances/{instance_id}/disaster-recovery/data-synchronization":{"get":{"description":"获取容灾实例数据同步状态,主备实例id,数据同步指标值,以及倒换和切换场景下的RPO,RTO指标值。","operationId":"ShowPauseResumeStutus","parameters":[{"description":"用户在某一region下的projectId。","in":"path","name":"project_id","required":true,"type":"string"},{"description":"实例ID。","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"用户Token。","in":"header","name":"X-Auth-Token","required":true,"type":"string"}],"responses":{"200":{"description":"Success","examples":{"application/json":"请求实例id为主实例id:\n{\n  \"master_instance_id\": \"b0965c9010f44ffca9af4ee00746aa8din12\",\n  \"slave_instance_id\": \"c0965c9010f44ffca9af4ee00746aa8din12\",\n  \"status\": \"SYNCING\",\n  \"data_sync_indicators\": {\n    \"rsync_ops\": 100,\n    \"rsync_wal_size\": 30,\n    \"rsync_push_cost\": 30,\n    \"rsync_send_cost\": 20,\n    \"rsync_max_push_cost\": 35,\n    \"rsync_max_send_cost\": 25,\n    \"rsync_status\": 1\n  },\n  \"rto_and_rpo_indicators\": [\n    {\n      \"scene\": \"SWITCHOVER\",\n      \"rpo\": 20,\n      \"rto\": 40\n    },\n    {\n      \"scene\": \"FAILOVER\",\n      \"rpo\": 20,\n      \"rto\": 40\n    }\n  ]\n}\n请求实例id为备实例id:\n{\n  \"master_instance_id\": \"c0965c9010f44ffca9af4ee00746aa8din12\",\n  \"slave_instance_id\": \"b0965c9010f44ffca9af4ee00746aa8din12\",\n  \"status\": \"SYNCING\"\n}"},"schema":{"$ref":"#/definitions/NoSqlDrStatusResponseBody"}}},"summary":"获取容灾实例数据同步状态","tags":["容灾管理"],"x-constraint":"该接口支持GeminiDB Redis数据库实例。","x-file":"AUTO","x-is-registered":"Y","x-open-region-cloud":"hc,hk","x-request-examples-description-1":"获取实例b0965c9010f44ffca9af4ee00746aa8din12数据同步状态","x-request-examples-url-1":"GET https://{endpoint}/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/b0965c9010f44ffca9af4ee00746aa8din12/disaster-recovery/data-synchronization","x-support-sdk":"Y"}}},"product_short":"GaussDBforNoSQL","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"获取容灾实例数据同步状态","tags":"容灾管理","uri":null,"version":"2.0"}