调用ModifyVisualServicePasswd设置指定集群的VNC远程可视化服务的连接密码。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ModifyVisualServicePasswd

系统规定参数。取值:ModifyVisualServicePasswd

ClusterId String ehpc-hz-jeJki6****

集群ID。

Passwd String 1254****

VNC远程可视化服务的连接密码。长度为8至30个字符,必须同时包含大小写英文字母、数字和特殊符号中的三类字符。特殊符号可以是:

()~!@#$%^&*-_+=|{}[]:;'/<>,.?/
说明 请务必使用HTTPS协议调用API以避免可能发生的密码泄露。
RunasUser String root

集群的用户名。默认为root用户。您可以调用ListUsers查询集群中的用户列表。

RunasUserPassword String 2145****

集群的用户密码。

返回数据

名称 类型 示例值 描述
Message String Service started.

VNC远程可视化服务的状态。可能值:

  • Service started.:已启动
  • Service stopped.:已停止
RequestId String 896D338C-E4F4-41EC-A154-D605E5DE6880

请求ID。

示例

请求示例

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ModifyVisualServicePasswd
&ClusterId=ehpc-hz-jeJki6****
&Passwd=1254****
&RunasUser=root
&RunasUserPassword=2145****
&<公共请求参数>

正常返回示例

XML格式

<ModifyVisualServicePasswdResponse>
      <Message>Service started.</Message>
      <RequestId>896D338C-E4F4-41EC-A154-D605E5DE6880</RequestId>
</ModifyVisualServicePasswdResponse>

JSON格式

{
        "Message": "Service started.",
        "RequestId": "896D338C-E4F4-41EC-A154-D605E5DE6880" 
}

错误码

HttpCode 错误码 错误信息 描述
503 ServiceUnavailable The request has failed due to a temporary failure of the server 请求失败,服务暂时不可用

访问错误中心查看更多错误码。