{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"App":{"description":"应用信息。","properties":{"app_group_id":{"description":"应用组标识Id。","example":"1","readOnly":true,"type":"string"},"command_param":{"description":"启动命令行参数。","example":"","readOnly":true,"type":"string"},"description":{"description":"应用描述。","example":"Google浏览器","readOnly":true,"type":"string"},"execute_path":{"description":"执行路径。","example":"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe","readOnly":true,"type":"string"},"icon_index":{"description":"应用图标的索引。","example":1,"readOnly":true,"type":"integer"},"icon_path":{"description":"应用图标的路径。","example":"C:\\Users\\zhangSan\\AppData\\Local\\Google\\Chrome.png","readOnly":true,"type":"string"},"icon_url":{"description":"图标url。","example":"https://workspace*****.obs.cn-north-**.myhuaweicloud.com/1.png","readOnly":true,"type":"string"},"id":{"description":"应用ID。","example":"1","readOnly":true,"type":"string"},"name":{"description":"应用名称。","example":"Chrome","readOnly":true,"type":"string"},"publish_at":{"description":"发布时间。","example":"2022-03-07T10:40:43.858Z","format":"date-time","readOnly":true,"type":"string"},"publishable":{"description":"是否可发布应用:\n- true: 可发布。\n- false: 不可发布。","example":false,"readOnly":true,"type":"boolean"},"publisher":{"description":"应用发布者。","example":"Google Chrome","readOnly":true,"type":"string"},"sandbox_enable":{"description":"是否使用沙箱模式运行,取值为:\n- false: 表示不以沙箱模式运行。\n- true: 表示以沙箱模式运行。","example":false,"readOnly":true,"type":"boolean"},"source_type":{"description":"应用类型:\n- '1':系统内置应用\n- '2':镜像应用\n- '3':自定义应用","example":2,"readOnly":true,"type":"integer"},"state":{"$ref":"#/definitions/AppStateEnum"},"tenant_id":{"description":"所在的租户ID。","example":"2b31ed520xxxxxxebedb6e57xxxxxxxx","readOnly":true,"type":"string"},"version":{"description":"应用版本号。","example":"99.0.4844.51","readOnly":true,"type":"string"},"work_path":{"description":"应用工作目录。","example":"C:\\Users\\zhangSan\\AppData\\Local\\Google\\Chrome","readOnly":true,"type":"string"}}},"AppStateEnum":{"description":"应用状态:\n* `NORMAL` - 正常状态。\n* `FORBIDDEN` - 禁用状态。","enum":["NORMAL","FORBIDDEN"],"example":"NORMAL","pattern":"^(NORMAL|FORBIDDEN)?$","type":"string"},"BaseResp":{"description":"API响应基类。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00149901","maxLength":16,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述。","example":"The request message is invalid.","maxLength":255,"minLength":1,"type":"string"}}},"ListAppResp":{"allOf":[{"$ref":"#/definitions/PageResp"},{"properties":{"items":{"description":"查发布的应用列表。","items":{"$ref":"#/definitions/App"},"maxItems":100,"minItems":0,"type":"array"}},"type":"object"}],"description":"查询到的应用数据。"},"PageResp":{"description":"API列表查询响应\n\n**⚠ 警告: 此Model不生成java代码,允许其它Model中引用,请勿直接作为Model使用**","properties":{"count":{"description":"总数","example":0,"maximum":2147483647,"minimum":0,"type":"integer"}}},"PublishApp":{"description":"发布应用的结构体。","properties":{"command_param":{"description":"启动命令行参数。","example":"","maxLength":2048,"minLength":0,"type":"string"},"description":{"description":"应用描述。","example":"Google浏览器","maxLength":255,"minLength":0,"type":"string"},"execute_path":{"description":"执行路径。","example":"C:\\Program Files\\7-Zip\\7zFM.exe","maxLength":255,"minLength":1,"type":"string"},"icon_index":{"description":"应用图标的索引。","example":1,"maximum":2147483647,"minimum":0,"type":"integer"},"icon_path":{"description":"应用图标的路径。","example":"C:\\Program Files\\7-Zip\\7zFM.exe","maxLength":255,"minLength":0,"type":"string"},"icon_uri":{"description":"图标地址,该字段当前未使用。\n> - 图片的默认大小当前限制为8KB,即1024 * 8字节。\n> - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。","example":"https://localhost/workspace/apss/a31adf13df14fsdf1.png","maxLength":10977,"minLength":0,"type":"string"},"name":{"description":"应用名称,名称需满足如下规则:\n1. 名称允许可见字符或空格,不可为全空格。\n2. 不允许包含如下字符:^;|~`{}[]<>。\n3. 长度1~64个字符。","example":"Chrome","pattern":"^(?! +$)[\\S ]{1,64}$","type":"string"},"publisher":{"description":"应用发布者。","example":"Google Chrome","maxLength":255,"minLength":0,"type":"string"},"sandbox_enable":{"default":false,"description":"是否使用沙箱模式运行,取值为:\n- false: 表示不以沙箱模式运行。\n- true: 表示以沙箱模式运行。","example":false,"type":"boolean"},"source_image_ids":{"description":"镜像ids,最多20个。","example":["540353431508881411","542520897580310528","566046407643889664"],"items":{"maxLength":128,"minLength":1,"type":"string"},"maxItems":20,"minItems":0,"type":"array"},"source_type":{"description":"应用类型:\n- '1':系统保留不可用。\n- '2':镜像应用。\n- '3':自定义应用。","example":2,"maximum":3,"minimum":1,"type":"integer"},"version":{"description":"应用版本号。","example":"99.0.4844.51","maxLength":255,"minLength":0,"type":"string"},"work_path":{"description":"应用工作目录。","example":"C:\\Program Files\\7-Zip","maxLength":255,"minLength":0,"type":"string"}},"required":["execute_path","name","source_type"]},"PublishAppReq":{"description":"发布应用请求。","properties":{"items":{"description":"发布应用列表(单次最多20个应用)。","items":{"$ref":"#/definitions/PublishApp"},"maxItems":20,"minItems":1,"type":"array"}},"required":["items"]}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"a65af3ee649a41c3bd47228b55ed1143","info_version":"v1","method":"post","name":"PublishApp","parameters":{},"paths":{"/v1/{project_id}/app-groups/{app_group_id}/apps":{"post":{"description":"批量发布应用,不允许发布同名的应用。","operationId":"PublishApp","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":"项目ID。","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"应用组ID。","in":"path","maxLength":128,"minLength":1,"name":"app_group_id","required":true,"type":"string","x-example":"1"},{"description":"publish app request body.","in":"body","name":"PublishAppRequestBody","required":true,"schema":{"$ref":"#/definitions/PublishAppReq"}}],"responses":{"200":{"description":"操作成功。","examples":{"application/json":{"count":1,"items":[{"app_group_id":"656582710889807872","command_param":"","description":"","execute_path":"C:\\Program Files\\7-Zip\\7zFM.exe","icon_index":0,"icon_path":"C:\\Program Files\\7-Zip\\7zFM.exe","id":"656599335839993860","name":"7-Zip File Manager","publish_at":"2024-01-15T08:39:56.265Z","publisher":"Igor Pavlov","sandbox_enable":false,"source_type":2,"state":"NORMAL","tenant_id":"26a0420e9e284569a23f1b2f7d9b5011","version":"19.0.0.0","work_path":""}]}},"schema":{"$ref":"#/definitions/ListAppResp"}},"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":["Application"],"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/{app_group_id}/apps","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"},{"description":"","in":"path","name":"app_group_id","origin":"request","value":"app_group_id"}],"type":"HTTP-VPC"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-ratelimit":"workspace_publish_apps","x-apigateway-request-type":"public","x-is-registered":"Y","x-order":1,"x-request-examples-1":{"items":[{"command_param":"","description":"","execute_path":"C:\\Program Files\\7-Zip\\7zFM.exe","icon_index":0,"icon_path":"C:\\Program Files\\7-Zip\\7zFM.exe","name":"7-Zip File Manager","publisher":"Igor Pavlov","source_image_ids":["5d411710-98ac-47b5-af7c-3ecf6a0514b5"],"source_type":2,"version":"19.0.0.0","work_path":""}]},"x-request-examples-url-1":"POST /v1/a4da8115c9d8464ead3a38309130523f/app-groups/656582710889807872/apps","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"}