{"base_path":null,"components":{"parameters":{"AuthToken":{"description":"用户Token。\n获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。","in":"header","name":"X-Auth-Token","required":true,"schema":{"type":"string"}},"DomainId":{"description":"帐号ID","in":"path","name":"domain_id","required":true,"schema":{"maxLength":36,"pattern":"[\\w-]+","type":"string"}}},"schemas":{"AggregationAuthorizationRequest":{"description":"资源聚合器授权请求体。","properties":{"authorized_account_id":{"description":"要授权的资源聚合器的帐号ID。","maxLength":36,"minLength":1,"pattern":"[\\w-]+","type":"string"},"tags":{"description":"标签列表","items":{"$ref":"#/components/schemas/ResourceTag"},"maxItems":20,"type":"array"}},"required":["authorized_account_id"],"type":"object"},"AggregationAuthorizationResp":{"description":"资源聚合器授权。","properties":{"aggregation_authorization_urn":{"description":"资源聚合器授权标识符。","type":"string"},"authorized_account_id":{"description":"授权的资源聚合器的帐号ID。","type":"string"},"created_at":{"description":"资源聚合器授权的创建时间。","type":"string"},"tags":{"description":"标签列表","items":{"$ref":"#/components/schemas/ResourceTag"},"maxItems":20,"type":"array"}},"type":"object"},"ErrorResp":{"description":"异常错误","properties":{"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误消息内容","type":"string"}},"type":"object"},"ResourceTag":{"nullable":false,"properties":{"key":{"description":"键。最大长度128个unicode字符。 key符合3.1 KEY字符集规范。","maxLength":128,"minLength":1,"nullable":false,"pattern":"^((?!\\s)(?!_sys_)[\\p{L}\\p{Z}\\p{N}_.:=+\\-@]*)(?<!\\s)$","type":"string"},"value":{"description":"值。每个值最大长度255个unicode字符。value符合3.2 VALUE字符集规范。","maxLength":255,"minLength":0,"nullable":false,"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*)$","type":"string"}},"required":["key","value"],"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"cad6b80b035b41d09866cb93e54bff47","host":"rms.myhuaweicloud.com","id":"d3abefcae8b748e895c03795c24b3bee","info_version":"v1","method":"put","name":"CreateAggregationAuthorization","parameters":null,"paths":{"/v1/resource-manager/domains/{domain_id}/aggregators/aggregation-authorization":{"put":{"description":"给资源聚合器帐号授予从源帐号收集数据的权限。","operationId":"CreateAggregationAuthorization","parameters":[{"$ref":"#/components/parameters/AuthToken"},{"$ref":"#/components/parameters/DomainId"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregationAuthorizationRequest"}}},"description":"资源聚合器授权请求体。"},"responses":{"200":{"content":{"application/json":{"example":{"aggregation_authorization_urn":"rms::e74e043fab784a45ad88f5ef6a4bcffc:aggregationAuthorization:fb51a91e798a4beb831c9be365aba4db","authorized_account_id":"3fd23817bd85480e8dc4f520075de348","created_at":"2020-01-18T02:49:12.465Z"},"schema":{"$ref":"#/components/schemas/AggregationAuthorizationResp"}}},"description":"操作成功。"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}},"description":"输入参数不合法。"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}},"description":"用户认证失败或无操作权限。"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}},"description":"服务器内部错误。"}},"security":[{"AccessKeyAuth":[]}],"summary":"创建资源聚合器授权","tags":["Aggregator"],"x-is-registered":"Y","x-open-region-cloud":"hws,hws_hk","x-order":6,"x-request-examples-1":{"authorized_account_id":"3fd23817bd85480e8dc4f520075de348"},"x-request-examples-description-1":"给资源聚合器帐号授予从源帐号收集数据的权限。","x-request-examples-url-1":"PUT https://{endpoint}/v1/resource-manager/domains/{domain_id}/aggregators/aggregation-authorization","x-support-sdk":"Y"}}},"product_short":"Config","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建资源聚合器授权","tags":"聚合器","uri":null,"version":"3.0.0"}