{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"User":{"example":{"access_key":"user_name","admin":false,"default_group_perm":"DENY","default_topic_perm":"DENY","group_perms":[{"name":"group1","perm":"PUB|SUB"}],"secret_key":"**************","topic_perms":[{"name":"topic1","perm":"PUB|SUB"}],"white_remote_address":""},"properties":{"access_key":{"description":"用户名,只能英文字母开头,且由英文字母、数字、中划线、下划线组成,长度为7~64个字符。","type":"string"},"admin":{"description":"是否为管理员。","type":"boolean"},"default_group_perm":{"description":"默认的消费组权限。","enum":["SUB","DENY"],"type":"string"},"default_topic_perm":{"description":"默认的主题权限。","enum":["PUB","SUB","PUB|SUB","DENY"],"type":"string"},"group_perms":{"description":"特殊的消费组权限。","items":{"properties":{"name":{"description":"消费组名称。","type":"string"},"perm":{"description":"权限。","enum":["SUB","DENY"],"type":"string"}},"type":"object"},"type":"array"},"secret_key":{"description":"密钥。\n8-32个字符。\n至少包含以下字符中的3种:\n - 大写字母\n - 小写字母\n - 数字\n - 特殊字符`~!@#$%^&*()-_=+\\\\|[{}];:\\'\\\",<.>/?密钥。\n不能与名称或倒序的名称相同。","type":"string"},"topic_perms":{"description":"特殊的主题权限。","items":{"properties":{"name":{"description":"主题名称。","type":"string"},"perm":{"description":"权限。","enum":["PUB","SUB","PUB|SUB","DENY"],"type":"string"}},"type":"object"},"type":"array"},"white_remote_address":{"description":"IP白名单。","type":"string"}},"type":"object"}},"description":null,"group_id":"3fc4437f7aee45c4a961299b745011f5","host":"dms.cn-north-4.myhuaweicloud.com","id":"fbafc27fbe914c49bc67d74a533f3f00","info_version":"v2","method":"post","name":"CreateUser","parameters":{},"paths":{"/v2/{project_id}/instances/{instance_id}/users":{"post":{"description":"创建用户。","operationId":"CreateUser","parameters":[{"description":"项目ID,获取方式请参见[获取项目ID](hrm-api-0011.xml)。","in":"path","name":"project_id","required":true,"type":"string"},{"description":"实例ID。","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"请求消息。","in":"body","name":"CreateUserRequestBody","required":true,"schema":{"$ref":"#/definitions/User"}}],"responses":{"200":{"description":"创建成功。","examples":{"application/json":{"access_key":"test_01","admin":false,"default_group_perm":"DENY","default_topic_perm":"SUB","group_perms":[],"secret_key":"**************","topic_perms":[],"white_remote_address":""}},"schema":{"$ref":"#/definitions/User"}}},"summary":"创建用户","tags":["用户管理"],"x-api-type":"open-api","x-hybridcloud":true,"x-is-registered":"Y","x-open-region-cloud":"hws,ct,hws_hk,ctc,hws_eu,ocb,g42,hk_g42,tm,sbc,hk_sbc,cmcc,hk_tm,hcs,fcs","x-produc-type":"rocketmq","x-request-examples-1":{"access_key":"user_name","admin":false,"default_group_perm":"DENY","default_topic_perm":"DENY","group_perms":[{"name":"group1","perm":"PUB|SUB"}],"secret_key":"**************","topic_perms":[{"name":"topic1","perm":"PUB|SUB"}],"white_remote_address":""},"x-request-examples-description-1":"创建一个非管理员的用户,授予发布、订阅topic1和group1的权限。","x-request-examples-url-1":"POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/users","x-support-sdk":"Y"}}},"product_short":"RocketMQ","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建用户","tags":"用户管理","uri":null,"version":"2.0"}