{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResp":{"description":"API错误响应","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00129901","maxLength":16,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述。","example":"The request message is invalid.","maxLength":255,"minLength":1,"type":"string"}}},"UpdateServerReq":{"description":"更新服务器请求。","properties":{"description":{"description":"服务器描述。","example":"XXX公司 软件开发应用服务器组","maxLength":255,"minLength":0,"type":"string"},"maintain_status":{"description":"服务器维护状态标识:\n* `true` - 添加标记\n* `false` - 移除标记","example":true,"type":"boolean"},"name":{"description":"服务器名称,名称需满足如下规则:\n1. 由中文,英文大小写,数字,_-组成。\n2. 长度范围1~64个字符。","example":"流程开发应用服务器组","maxLength":64,"minLength":1,"pattern":"^(?!\\s +$)[\\w\\u4e00-\\u9fa5\\u002d_]{1,64}$","type":"string"}}}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"44e715c7363f4fbaa5cf7bf3cff38724","info_version":"v1","method":"patch","name":"UpdateServer","parameters":{},"paths":{"/v1/{project_id}/app-servers/{server_id}":{"patch":{"description":"修改服务器。\n> - 服务器的状态修改为维护模式后,用户打开应用,选择可用的服务器进行接入的时候,会过滤掉处于维护模式的服务器。","operationId":"UpdateServer","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":"项目唯一标识。","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"服务器唯一标识。","in":"path","maxLength":128,"minLength":1,"name":"server_id","required":true,"type":"string"},{"description":"修改服务器的请求内容。","in":"body","name":"UpdateServerRequestBody","required":true,"schema":{"$ref":"#/definitions/UpdateServerReq"}}],"responses":{"200":{"description":"操作成功。","examples":{}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/ErrorResp"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/ErrorResp"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/ErrorResp"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/ErrorResp"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/ErrorResp"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/ErrorResp"}}},"schemes":["https"],"security":[{"apig-auth-iam-used-authn5":[]}],"summary":"修改服务器","tags":["Server"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal,public","x-apigateway-backend":{"httpVpcEndpoints":{"description":"","method":"patch","name":"wks-apsmanager-lb","path":"/v1/{project_id}/app-servers/{server_id}","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":"server_id","origin":"request","value":"server_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-order":3,"x-request-examples-1":{"name":"APS-TEST"},"x-request-examples-url-1":"PATCH /v1/a4da8115c9d8464ead3a38309130523f/app-servers/25b1dd14-0c84-4558-aa57-03a6c54b8e75","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"}