Sets a connection password for the VNC Remote visualization service of a specified cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyVisualServicePasswd

The operation that you want to perform. Set the value to ModifyVisualServicePasswd

ClusterId String Yes ehpc-hz-jeJki6****

The ID of the cluster.

Passwd String Yes 1254****

The connection password of the VNC remote visualization service. The password must be 8 to 30 characters in length and include at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:

()~! @#$%^&*-_+=|{}[]:;'/<>,.? /
Note You must use HTTPS to call the API to ensure that the password remains confidential.
RunasUser String Yes root

The username of the cluster. Default value: root user. You can call the ListUsers operation to query all users in a cluster.

RunasUserPassword String Yes 2145****

The user password of the cluster.

Response parameters

Parameter Type Example Description
Message String Service started.

The status of the VNC Remote visualization service. Valid values:

  • Service started.: started
  • Service stopped.: stopped
RequestId String 896D338C-E4F4-41EC-A154-D605E5DE6880

The ID of the request.

Examples

Sample requests

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ModifyVisualServicePasswd
&ClusterId=ehpc-hz-jeJki6****
&Passwd=1254****
&RunasUser=root
&RunasUserPassword=2145****
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

HttpCode Error code Error message Description
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The server is temporarily unavailable.

For a list of error codes, visit the API Error Center.