huawei-cloud-api-definitions-RMS 0.1.20240402

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"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"}},"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"}},"type":"object"},"ErrorResp":{"description":"异常错误","properties":{"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误消息内容","type":"string"}},"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"71684d03de7545d7bdc1ae5caf95614f","host":"rms.myhuaweicloud.com","id":"fcbdab5d14e243c1a36633cdec01bb89","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":"RMS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建资源聚合器授权","tags":"聚合器","uri":null,"version":"3.0.0"}