{"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"}}}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"047e9afe5f364e7f976cb32a76131da3","info_version":"v1","method":"post","name":"UploadAppIcon","parameters":{},"paths":{"/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}/icon":{"post":{"consumes":["multipart/form-data"],"description":"修改自定义应用图标。","operationId":"UploadAppIcon","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":"应用ID。","in":"path","maxLength":128,"minLength":1,"name":"app_id","required":true,"type":"string","x-example":"1"},{"description":"应用图标,png格式,限制大小8KB。","in":"formData","name":"data","required":true,"type":"file"}],"responses":{"200":{"description":"成功响应。","schema":{"$ref":"#/definitions/App"}},"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"}},"415":{"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/{app_id}/icon","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"},{"description":"","in":"path","name":"app_id","origin":"request","value":"app_id"}],"type":"HTTP-VPC"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-ratelimit":"workspace_base","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-url-1":"POST /v1/a4da8115c9d8464ead3a38309130523f/app-groups/575772274859184144/apps/575772274dd859184144/icon","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"}