huawei-cloud-api-definitions-Workspace 0.1.20250711

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"[\"application/json\",\"application/json;charset=utf-8\"]","definitions":{"AccountInfo":{"description":"账户详细信息。","properties":{"account":{"description":"账户,账户的格式必须为:账户(组)的形式。","example":"zhangsan******@test.com","maxLength":128,"minLength":1,"type":"string"},"account_type":{"$ref":"#/definitions/AccountTypeEnum","description":"用户类型。"},"domain":{"description":"域名(用户组必填,不填时使用默认值 local.com)。","example":"siv.**.huawei.com","maxLength":64,"minLength":1,"type":"string"},"platform_type":{"$ref":"#/definitions/PlatformTypeEnum"}},"required":["account","account_type"],"type":"object"},"AccountTypeEnum":{"description":"账户类型:\n* 'SIMPLE' - 普通用户\n* 'USER_GROUP' - 用户组","enum":["SIMPLE","USER_GROUP"],"example":"SIMPLE","type":"string"},"AssignType":{"description":"* `ALL_USER` - 全部用户\n* `ASSIGN_USER` - 授权指定用户","enum":["ALL_USER","ASSIGN_USER"],"example":"ALL_USER","type":"string"},"BaseResp":{"description":"API响应基类。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00139901","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The request message is invalid.","readOnly":true,"type":"string"}}},"BatchAssignAppAuthorizationsReq":{"description":"批量设置应用授权。","properties":{"app_ids":{"description":"批量唯一标识请求列表,一次请求数量区间 [1, 20]。","example":["3f791197-d166-4c8e-81e4-38c40ffc1989","62f48b59-0ebb-4b1e-ad35-f64948a0591b"],"items":{"description":"唯一标识。","maxLength":128,"minLength":1,"type":"string"},"maxItems":20,"minItems":1,"type":"array","uniqueItems":true,"x-annotations":"@Size(max = 20, min = 1)"},"authorization_type":{"$ref":"#/definitions/AssignType"},"del_users":{"description":"取消授权用户列表,一次请求数量区间 [0, 100]。","items":{"$ref":"#/definitions/AccountInfo"},"maxItems":100,"minItems":0,"type":"array","uniqueItems":true,"x-annotations":"@Size(max = 100, min = 0)"},"users":{"description":"新增授权用户列表,一次请求数量区间 [0, 100]。","items":{"$ref":"#/definitions/AccountInfo"},"maxItems":100,"minItems":0,"type":"array","uniqueItems":true,"x-annotations":"@Size(max = 100, min = 0)"}},"required":["app_ids","authorization_type"]},"PlatformTypeEnum":{"description":"平台类型:\n* `AD` - AD域\n* `LOCAL` - LiteAs","enum":["AD","LOCAL"],"example":"AD","type":"string"}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"b329edba1dd745f4b1f1d8970d76ff3d","info_version":"v2","method":"post","name":"BatchUpdateAppAuthorizations","parameters":{},"paths":{"/v1/{project_id}/app-center/apps/actions/batch-assign-authorization":{"post":{"description":"批量设置应用授权。","operationId":"BatchUpdateAppAuthorizations","parameters":[{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":102400,"minLength":1,"name":"X-Auth-Token","required":false,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"项目ID。","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"批量设置应用授权。","in":"body","name":"BatchUpdateAppAuthorizationsRequestBody","required":true,"schema":{"$ref":"#/definitions/BatchAssignAppAuthorizationsReq"}}],"responses":{"200":{"description":"成功响应。"},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResp"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResp"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResp"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResp"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/BaseResp"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResp"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/BaseResp"}}},"schemes":["https"],"security":[{"apig-auth-iam-used-authn5":[]}],"summary":"批量设置应用授权","tags":["AppCenter"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal_token,public","x-apigateway-backend":{"httpVpcEndpoints":{"description":"","method":"POST","name":"wks-appcenter-lb","path":"/v1/{project_id}/app-center/apps/actions/batch-assign-authorization","scheme":"https","timeout":30000},"parameters":[{"description":"","in":"header","name":"X-Auth-Token","origin":"request","value":"X-Auth-Token"},{"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_default_operate","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-1":{"app_ids":["3f791197-d166-4c8e-81e4-38c40ffc1989","62f48b59-0ebb-4b1e-ad35-f64948a0591b"],"authorization_type":"ALL_USER","del_users":[{"account":"zhangsan******@test.com","account_type":"SIMPLE","domain":"siv.**.huawei.com","platform_type":"AD"}],"users":[{"account":"zhangsan******@test.com","account_type":"SIMPLE","domain":"siv.**.huawei.com","platform_type":"AD"}]},"x-request-examples-text-1":{"app_ids":["3f791197-d166-4c8e-81e4-38c40ffc1989","62f48b59-0ebb-4b1e-ad35-f64948a0591b"],"authorization_type":"ALL_USER","del_users":[{"account":"zhangsan******@test.com","account_type":"SIMPLE","domain":"siv.**.huawei.com","platform_type":"AD"}],"users":[{"account":"zhangsan******@test.com","account_type":"SIMPLE","domain":"siv.**.huawei.com","platform_type":"AD"}]},"x-support-apig-group":"workspace","x-support-sdk":"Y"}}},"product_short":"Workspace","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"}