{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"DBMSuccessRsp":{"properties":{"resp":{"description":"操作结果。","example":"successful","type":"string"}},"required":["resp"]},"ErrorResponse":{"properties":{"error_code":{"description":"错误码。","example":"DBS.200022","type":"string"},"error_msg":{"description":"错误消息。","example":"实例名称已存在。","type":"string"}},"required":["error_code","error_msg"]},"PostgresqlCreateSchemaReq":{"properties":{"owner":{"description":"数据库属主用户。\n\n数据库属主名称在1到63个字符之间,不能以“pg”和数字开头,不能和系统用户名称相同。\n\n系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。","type":"string"},"schema_name":{"description":"schema名称。\n\nschema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库和已存在的schema重名。\nRDS for PostgreSQL模板库包括postgres, template0 ,template1。\n\n已存在的schema包括public,information_schema。","type":"string"}},"required":["schema_name","owner"]},"PostgresqlDatabaseSchemaReq":{"description":"创建数据库schema信息。","properties":{"db_name":{"description":"数据库名称。\n\n数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。\n\nRDS for PostgreSQL模板库包括postgres, template0 ,template1。","type":"string"},"schemas":{"description":"每个元素都是与数据库相关联的schmea信息。单次请求最多支持20个元素。","items":{"$ref":"#/definitions/PostgresqlCreateSchemaReq"},"type":"array"}},"required":["db_name","schemas"]}},"description":null,"group_id":"b7735f867ef44182af9eb77490a46fbf","host":"rds.cn-north-4.myhuaweicloud.com","id":"d278802856484d63ae441ed8aafebfa0","info_version":"v3","method":"post","name":"CreatePostgresqlDatabaseSchema","parameters":{},"paths":{"/v3/{project_id}/instances/{instance_id}/schema":{"post":{"description":"在指定实例的数据库中, 创建数据库schema。","operationId":"CreatePostgresqlDatabaseSchema","parameters":[{"description":"用户Token。","in":"header","name":"x-auth-token","type":"string","x-example":"******"},{"description":"语言","in":"header","name":"X-Language","type":"string","x-example":"zh-cn"},{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-example":"619d3e78f61b4be68bc5aa0b59edcf7b"},{"description":"实例ID。","in":"path","name":"instance_id","required":true,"type":"string","x-example":"e73893ef73754465a8bd2e0857bbf13ein01"},{"description":"请求体。","in":"body","name":"DbSchemaReq","required":true,"schema":{"$ref":"#/definitions/PostgresqlDatabaseSchemaReq"}}],"responses":{"200":{"description":"Success.","examples":{"application/json":{"resp":"successful"}},"schema":{"$ref":"#/definitions/DBMSuccessRsp"}},"default":{"description":"Client or server error.","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"创建数据库SCHEMA","tags":["管理数据库和用户(PostgreSQL)"],"x-constraint":"实例在创建、变更规格、修改端口、冻结、异常等状态下不能执行该操作。","x-request-examples-1":{"db_name":"rds_test","schemas":[{"owner":"teste123","schema_name":"rds"},{"owner":"teste123","schema_name":"rds001"}]},"x-request-examples-description-1":"","x-request-examples-url-1":"POST https://rds.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/instances/3d39c18788b54a919bab633874c159dfin01/schema","x-support-sdk":"Y"}}},"product_short":"RDS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建数据库SCHEMA","tags":"管理数据库和用户(PostgreSQL)","uri":null,"version":"2.0"}