{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"AccountInfo":{"description":"用户详细信息。","properties":{"account":{"description":"用户名(或用户组名),根据 account_type 参数决定值类型。\n`USER` - 用户名。\n`USER_GROUP` - 用户组名。","example":"zhangsan*","maxLength":128,"minLength":1,"type":"string"},"account_type":{"$ref":"#/definitions/AccountTypeEnum"},"domain":{"description":"域名称。","example":"siv.***.huawei.com","maxLength":64,"minLength":0,"type":"string"},"email":{"description":"邮箱。","example":"email**@huawei.com","maxLength":128,"minLength":0,"type":"string"},"id":{"description":"用户ID(或用户组ID),根据 account_type 参数决定值类型。\n对于用户组类型,必须传入用户组ID。\n`USER` - 用户ID。\n`USER_GROUP` - 用户组ID。","example":"zhangsan*","maxLength":128,"minLength":0,"type":"string"},"platform_type":{"$ref":"#/definitions/PlatformTypeEnum"},"telephone_number":{"description":"手机。","example":"13****00","maxLength":128,"minLength":0,"type":"string"}},"required":["account","account_type"],"type":"object"},"AccountTypeEnum":{"description":"用户类型:\n* `USER` - 用户\n* `USER_GROUP` - 用户组","enum":["USER","USER_GROUP"],"example":"USER","type":"string"},"AppGroupAuthorizeReq":{"description":"为应用(组)添加(取消)授权的操作,必须为app_group_ids,app_ids同时赋值。\n> - 批量操作的应用组或者发布应用的授权模式必须统一,即要么都为应用类型的授权,要么都为应用组类型的授权,否则会直接失败(授权类型在创建应用组时指定)。","properties":{"accounts":{"description":"用户(组),单次最多允许操作50个用户(组)。","items":{"$ref":"#/definitions/AccountInfo"},"maxItems":50,"minItems":1,"type":"array"},"app_group_ids":{"description":"应用组ID,最多同时操作10个。","example":["540353431508881411","542520897580310528","566046407643889664"],"items":{"maxLength":128,"minLength":1,"type":"string"},"maxItems":10,"minItems":1,"type":"array","x-annotations":"@Size(max = 10, min = 1)"}},"required":["accounts","app_group_ids"]},"BadRequestErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00211102","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The parameter is invalid.","readOnly":true,"type":"string"}}},"ConflictErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00211103","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The request could not be completed due to a conflict of the resource.","readOnly":true,"type":"string"}}},"ForbiddenErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00081102","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"User does not have permission to access this resource.","readOnly":true,"type":"string"}}},"InternalServerErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00211401","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The requested operation failed. Please try again later.","readOnly":true,"type":"string"}}},"MethodNotAllowedErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00000405","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The method specified in the request is not allowed for this resource.","readOnly":true,"type":"string"}}},"NotFoundErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00211902","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The application does not exist","readOnly":true,"type":"string"}}},"PlatformTypeEnum":{"description":"平台类型:\n* `AD` - AD域\n* `LOCAL` - LiteAs\n* `SYSTEM` - 系统内置","enum":["AD","LOCAL","SYSTEM"],"example":"AD","type":"string"},"ServiceUnavailableErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00050902","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The service is now unavailable to process the request.","readOnly":true,"type":"string"}}},"UnauthorizedErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00211302","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"User authorization error.","readOnly":true,"type":"string"}}}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"82e8d7fad37f4d40840a7c4fa5dccd16","info_version":"v1","method":"post","name":"AddAppGroupAuthorization","parameters":{},"paths":{"/v1/{project_id}/app-groups/authorizations":{"post":{"description":"应用组添加用户授权,授权后用户就获得应用组下所有已发布应用的权限访问。","operationId":"AddAppGroupAuthorization","parameters":[{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":2147483647,"minLength":1,"name":"X-Auth-Token","required":false,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"语言:\n- zh-cn:中文\n- en-us:英文\n- fr-fr: 法文","in":"header","maxLength":32,"minLength":0,"name":"X-Language","required":false,"type":"string","x-example":"zh-cn"},{"description":"项目ID。","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"add app authorization.","in":"body","name":"AddAppGroupAuthorizationRequestBody","required":true,"schema":{"$ref":"#/definitions/AppGroupAuthorizeReq"}}],"responses":{"200":{"description":"操作成功。"},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BadRequestErrorResp"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/UnauthorizedErrorResp"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/ForbiddenErrorResp"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/NotFoundErrorResp"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/MethodNotAllowedErrorResp"}},"409":{"description":"请求中提交的资源格式不支持。","schema":{"$ref":"#/definitions/ConflictErrorResp"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/InternalServerErrorResp"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/ServiceUnavailableErrorResp"}}},"schemes":["https"],"security":[{"apig-auth-iam-used-authn5":[]}],"summary":"增加应用组授权","tags":["Authorization"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal,public","x-apigateway-backend":{"httpVpcEndpoints":{"description":"","method":"POST","name":"wks-appmanager-lb","path":"/v1/{project_id}/app-groups/authorizations","scheme":"https","timeout":30000},"parameters":[{"description":"","in":"header","name":"X-Auth-Token","origin":"request","value":"X-Auth-Token"},{"description":"语言 中文zh-cn 英文en-us。","in":"header","name":"X-Language","origin":"request","value":"X-Language"},{"description":"","in":"path","name":"project_id","origin":"request","value":"project_id"}],"type":"HTTP-VPC"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-ratelimit":"workspace_update_authrorization","x-apigateway-request-type":"public","x-is-registered":"Y","x-order":1,"x-request-examples-1":{"accounts":[{"account":"user000","account_type":"USER","domain":"wksapp***.huawei.com","email":"shuh*****eng**@huawei.com"}],"app_group_ids":["570810904237572135"]},"x-request-examples-url-1":"POST /v1/a4da8115c9d8464ead3a38309130523f/app-groups/authorizations","x-support-hcs":"Y","x-support-sdk":"Y"}}},"product_short":"WorkspaceApp","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-used-authn5":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-opt":{"inner-auth-type":"iam_auth_n5"},"x-apigateway-auth-type":"IAM"}},"summary":"增加应用组授权","tags":"应用授权管理","uri":null,"version":"2.0"}