{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"ResourceTenant":{"properties":{"domain_id":{"description":"账号ID","type":"string"},"domain_name":{"description":"账号名称","type":"string"},"type":{"description":"创建的委托类型","type":"string"}},"required":["domain_id","domain_name","type"],"type":"object"}},"description":null,"group_id":"c917c7a19aa04328b7e47a1def0e0acd","host":"css.cn-north-4.myhuaweicloud.com","id":"f00742cb18234ca5b7639d32312f65c3","info_version":"v1","method":"post","name":"CreateAgency","parameters":{},"paths":{"/v1.0/{project_id}/agency/create":{"post":{"description":"当CSS预置委托不存在时,自动创建委托并赋予CSS依赖的权限。\n当CSS预置委托存在时,去除依赖的高风险权限,设置为最小化权限。","operationId":"CreateAgency","parameters":[{"description":"项目ID","in":"path","name":"project_id","required":true,"type":"string"},{"description":"自动创建委托请求体。","in":"body","name":"req","required":false,"schema":{"$ref":"#/definitions/ResourceTenant"}}],"responses":{"200":{"description":"请求已成功。"},"400":{"description":"非法请求。\n建议直接修改该请求,不要重试该请求。"},"403":{"description":"请求被拒绝访问。\n返回该状态码,表明请求能够到达服务端,且服务端能够理解用户请求,但是拒绝做更多的事情,因为该请求被设置为拒绝访问,建议直接修改该请求,不要重试该请求。"}},"summary":"自动创建委托","tags":["集群管理接口"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-is-registered":"Y","x-request-examples-1":{"domain_id":"id","domain_name":"name","type":"obs"},"x-request-examples-description-1":"创建快照及日志备份依赖的委托请求示例。","x-request-examples-text-1":{"domain_id":"id","domain_name":"name","type":"obs"},"x-request-examples-url-1":"POST https://{Endpoint}/v1.0/{project_id}/agency/create","x-support-sdk":"Y"}}},"product_short":"CSS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"自动创建委托","tags":"集群管理接口","uri":null,"version":"2.0"}