{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"AdDomain":{"description":"域信息。","properties":{"active_dns_ip":{"description":"主DNS IP地址。域类型为LOCAL_AD时需要配置。","maxLength":255,"minLength":1,"pattern":"^((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])$","type":"string"},"active_domain_ip":{"description":"主域控制器IP地址。域类型为LOCAL_AD时需要配置。","maxLength":255,"minLength":1,"pattern":"^((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])$","type":"string"},"active_domain_name":{"description":"主域控制器名称。域类型为LOCAL_AD时需要配置。","maxLength":55,"minLength":1,"type":"string"},"delete_computer_object":{"default":0,"description":"是否在删除桌面的同时删除AD上对应的计算机对象,0代表不删除,1代表删除。","format":"int32","maximum":1,"minimum":0,"type":"integer"},"domain_admin_account":{"description":"域管理员帐号。域类型为LOCAL_AD时需要配置。\n必须为AD服务器上已经存在的域管理员帐号。","maxLength":55,"minLength":1,"type":"string"},"domain_name":{"description":"域名称。域类型为LOCAL_AD时需要配置。\n域名必须为AD服务器上已经存在的域名,且长度不超过55。","maxLength":55,"minLength":1,"type":"string"},"domain_password":{"description":"域管理员账号密码。域类型为LOCAL_AD时需要配置。","maxLength":255,"minLength":1,"type":"string","x-isSensitive":true},"domain_type":{"description":"域类型。\n- LITE_AS:本地认证。\n- LOCAL_AD:本地AD。\n说明:域类型为“LOCAL_AD”时,请确保所选VPC网络与AD所属网络可连通。","enum":["LITE_AS","LOCAL_AD"],"maxLength":55,"minLength":1,"type":"string"},"standby_dns_ip":{"description":"备DNS IP地址。域类型为LOCAL_AD时且配置备节点时需要配置。","maxLength":255,"minLength":0,"pattern":"^((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])$","type":"string"},"standby_domain_ip":{"description":"备域控制器IP地址。域类型为LOCAL_AD时且配置备节点时需要配置。","maxLength":255,"minLength":0,"pattern":"^((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])$","type":"string"},"standby_domain_name":{"description":"备域控制器名称。域类型为LOCAL_AD时且配置备节点时需要配置。","maxLength":55,"minLength":0,"type":"string"},"tls_config":{"$ref":"#/definitions/TlsConfig"},"use_ldaps":{"default":false,"description":"是否开启LDAPS。","type":"boolean"}},"required":["domain_type"]},"AdDomainInfo":{"description":"域信息。","properties":{"domain_admin_account":{"description":"域管理员帐号。","maxLength":55,"minLength":1,"type":"string"},"domain_password":{"description":"域管理员账号密码。","maxLength":255,"minLength":1,"type":"string","x-isSensitive":true},"domain_type":{"description":"域类型。\n- LITE_AS:LiteAS。\n- LOCAL_AD:本地AD。\n说明:域类型为“LOCAL_AD”时,请确保所选VPC网络与“LOCAL_AD”所属网络可连通。","enum":["LITE_AS","LOCAL_AD"],"maxLength":55,"minLength":1,"type":"string"}},"required":["domain_admin_account","domain_password","domain_type"]},"ApplyDedicatedStandbyNetworkParam":{"description":"开通专线备用线路入参","properties":{"address":{"description":"租户指定的专线备用地址","maxLength":255,"minLength":0,"type":"string"},"availability_zone":{"description":"开通服务资源使用的可用分区,默认随机使用2个可用区","items":{"maxLength":255,"minLength":0,"type":"string"},"maxItems":10,"minItems":0,"type":"array"},"port":{"description":"租户指定的专线备用地址端口","maximum":65535,"minimum":1025,"type":"integer"}}},"BaseResponse":{"description":"API响应基类","properties":{"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"ModifyWorkspaceAttributesReq":{"properties":{"access_mode":{"description":"接入模式。\n- INTERNET:互联网接入。\n- DEDICATED:专线接入。\n- BOTH:代表两种接入方式都支持。","enum":["INTERNET","DEDICATED","BOTH"],"maxLength":55,"minLength":1,"type":"string"},"ad_domains":{"$ref":"#/definitions/AdDomain"},"ad_info":{"$ref":"#/definitions/AdDomainInfo"},"apply_dedicated_standby_network_param":{"$ref":"#/definitions/ApplyDedicatedStandbyNetworkParam"},"authorized_collect_log":{"description":"是否授权收集日志。","type":"boolean"},"authorized_hda_upgrade":{"description":"是否授权hda升级。","type":"boolean"},"dc_vnc_ip":{"description":"开通专线访问VNC功能,如果传入的是default则自动创建,如果传入的自定义的dc_vnc_ip则直接使用,如果传入的是close表示关闭自定义VNC","maxLength":255,"minLength":0,"type":"string"},"dedicated_subnets":{"description":"专线接入网段列表,多个网段信息用分号隔开,列表长度不超过5。","example":"192.168.0.0/24;10.0.0.0/16","maxLength":100,"minLength":0,"type":"string"},"enterprise_id":{"description":"企业ID。","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"internet_access_port":{"description":"互联网接入端口。","maxLength":10,"minLength":0,"type":"string"},"is_send_email":{"description":"桌面退订是否发送邮件通知。","type":"boolean"},"subnet_ids":{"description":"子网的网络ID列表。","items":{"maxLength":5000,"minLength":0,"type":"string"},"maxItems":100,"minItems":0,"type":"array","x-maxLength":100,"x-minLength":0}}},"ModifyWorkspaceAttributesRsp":{"description":"修改服务属性响应","properties":{"dc_vnc_ip":{"description":"专线vnc访问的ip","maxLength":255,"minLength":0,"type":"string"},"enterprise_id":{"description":"企业ID","maxLength":255,"minLength":0,"type":"string"},"job_id":{"description":"修改云办公服务属性的任务ID","maxLength":255,"minLength":1,"type":"string"}}},"TlsConfig":{"description":"TLS信息。","properties":{"cert_end_time":{"description":"证书生效截止时间,时间参考样例 2022-01-25T09:24:27。","maxLength":255,"minLength":0,"type":"string"},"cert_pem":{"description":"pem内容, 有则更新,无则上传。查询不返回。","maxLength":8192,"minLength":0,"type":"string"},"cert_start_time":{"description":"证书生效开始时间,时间参考样例 2022-01-25T09:24:27。","maxLength":255,"minLength":0,"type":"string"}}}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"2536b5b8cc8447e28f5ea3f16340c6f5","info_version":"v2","method":"put","name":"UpdateWorkspace","parameters":{},"paths":{"/v2/{project_id}/workspaces":{"put":{"description":"该接口目前支持修改云办公服务属性。单次请求仅支持修改一种属性类型。","operationId":"UpdateWorkspace","parameters":[{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":40000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"发送的实体的MIME类型。","in":"header","maxLength":255,"minLength":1,"name":"Content-Type","required":true,"type":"string","x-example":"application/json"},{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"修改云办公服务属性请求。","in":"body","name":"UpdateWorkspaceRequestBody","required":true,"schema":{"$ref":"#/definitions/ModifyWorkspaceAttributesReq"}}],"responses":{"200":{"description":"修改云办公服务属性响应。","examples":{"application/json":{"job_id":"0000000059071dbc01591661d3990019"}},"schema":{"$ref":"#/definitions/ModifyWorkspaceAttributesRsp"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResponse"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResponse"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResponse"}}},"schemes":["https"],"summary":"修改云办公服务属性","tags":["Workspace"],"x-apiexplorer-hide":"N","x-apig-group":"public,internal_token","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-1":{"access_mode":"BOTH"},"x-request-examples-2":{"ad_domains":{"active_dns_ip":"192.161.43.66","active_domain_ip":"192.161.43.66","active_domain_name":"AD-xxx-0001.vdesktop.huawei.com","domain_admin_account":"vdsadmin","domain_name":"vdesktop.huawei.com","domain_password":"xxxxxxxxxx@","domain_type":"LOCAL_AD","standby_dns_ip":"192.161.43.67","standby_domain_ip":"192.161.43.67","standby_domain_name":"AD-xxx-0002.vdesktop.huawei.com","tls_config":{"cert_pem":"-----BEGIN CERTIFICATE-----\\nMIIDiTCCAnGgAwIBAgIQQdj2u+x1LJ9Dc34un\\n-----END CERTIFICATE"},"use_ldaps":true}},"x-request-examples-3":{"access_mode":"DEDICATED","dedicated_subnets":"192.168.0.0/24;10.0.0.0/16"},"x-request-examples-4":{"is_send_email":false},"x-request-examples-url-1":"PUT /v2/fb2e5ec048384c8f9469d22db0037908/workspaces","x-support-sdk":"Y"}}},"product_short":"Workspace","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改云办公服务属性","tags":"云办公服务","uri":null,"version":"2.0"}