huawei-cloud-api-definitions-GaussDBforNoSQL 0.1.20251128

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"CreateDbCacheRuleRequestBody":{"properties":{"dbcache_mapping_id":{"description":"内存加速映射ID。","type":"string"},"key_columns":{"description":"映射的key使用的column列表。","items":{"type":"string"},"type":"array"},"key_prefix":{"description":"键前缀。最长限制1024字符。需确保key_prefix和target_database在当前映射下唯一。","type":"string"},"key_separator":{"description":"映射的key分隔符。只允许一个字符。","type":"string"},"name":{"description":"内存加速规则名称。不超过256字符,需要确保在当前映射下唯一。","type":"string"},"source_db_schema":{"description":"源端数据库。","type":"string"},"source_db_table":{"description":"源端数据表。","type":"string"},"storage_type":{"description":"目标数据存储类型。 取值为: hash。","type":"string"},"target_database":{"description":"目标数据库。取值范围: [0-999]。","type":"string"},"ttl":{"description":"key的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。","type":"string"},"value_columns":{"description":"映射的value使用的column列表。","items":{"type":"string"},"type":"array"},"value_separator":{"description":"映射的value分隔符。只允许一个字符。","type":"string"}},"required":["dbcache_mapping_id","name","source_db_schema","source_db_table","storage_type","target_database","key_columns","value_columns","key_separator","key_prefix"],"type":"object"},"CreateDbCacheRuleResponseBody":{"description":"创建内存加速规则响应体。","properties":{"id":{"description":"内存加速规则ID。","type":"string"}},"required":["id"],"type":"object"}},"description":null,"group_id":"e59009abc8d6499f9f8dc004e69d73d7","host":"gaussdb-nosql.cn-north-4.myhuaweicloud.com","id":"a3a62c75ebe64235a9b846d2f5f889b5","info_version":"v3","method":"post","name":"CreateDbCacheRule","parameters":{},"paths":{"/v3/{project_id}/dbcache/rule":{"post":{"description":"创建内存加速规则。","operationId":"CreateDbCacheRule","parameters":[{"description":"租户在某一region下的project ID。","in":"path","name":"project_id","required":true,"type":"string"},{"description":"用户Token。","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"创建内存加速规则请求体。","in":"body","name":"CreateDbCacheRuleRequestBody","required":false,"schema":{"$ref":"#/definitions/CreateDbCacheRuleRequestBody"}}],"responses":{"200":{"description":"Success.","examples":{"application/json":{"id":"04efe8e2-9255-44ae-a98b-d87cae411890"}},"schema":{"$ref":"#/definitions/CreateDbCacheRuleResponseBody"}}},"summary":"创建内存加速规则","tags":["实例管理"],"x-api-type":"open-api","x-constraint":"仅支持GeminiDB Redis主备类型实例。","x-is-registered":"Y","x-order":1,"x-request-examples-1":{"dbcache_mapping_id":"e6f8526c-8b9c-4811-9218-4d2d7c1ddde1","key_columns":["sno","sname"],"key_prefix":"prefix1","key_separator":":","name":"mysql_a1-to-redis_01","source_db_schema":"test","source_db_table":"students_info_t","storage_type":"hash","target_database":"0","ttl":"-1","value_columns":["sno","sname","age"]},"x-request-examples-description-1":"创建内存加速规则。","x-request-examples-text-1":{"dbcache_mapping_id":"e6f8526c-8b9c-4811-9218-4d2d7c1ddde1","key_columns":["sno","sname"],"key_prefix":"prefix1","key_separator":":","name":"mysql_a1-to-redis_01","source_db_schema":"test","source_db_table":"students_info_t","storage_type":"hash","target_database":"0","ttl":"-1","value_columns":["sno","sname","age"]},"x-request-examples-url-1":"POST https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/dbcache/rule","x-support-sdk":"Y"}}},"product_short":"GaussDBforNoSQL","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建内存加速规则","tags":"实例管理","uri":null,"version":"2.0"}