阿里云如何使用修改實例管理終端口令接口
來源:技術(shù)員聯(lián)盟┆發(fā)布時間:2017-12-05 18:12┆點擊:
修改實例管理終端口令
描述
修改 ECS 實例的 Web 管理終端口令
密碼長度必須是 6 個字符,可以包含大小寫字母和數(shù)字,不支持特殊字符
修改密碼后,需要在控制臺或者 API 重啟實例
請求參數(shù)
名稱
類型
是否必須
描述
Action
String
是
系統(tǒng)規(guī)定參數(shù),取值:ModifyInstanceVncPasswd
RegionId
String
是
ECS 實例所在的 Region
InstanceId
String
是
ECS 實例
VncPassword
String
是
ECS 實例的 VNC 口令
返回參數(shù)
全是公共返回參數(shù),詳見公共返回參數(shù)
錯誤碼
錯誤代碼
描述
Http 狀態(tài)碼
InvalidRegionId.NotFound
The RegionId provided does not exist in our records.
404
MissingParameter
The input parameter "InstanceId" that is mandatory for processing this request is not supplied.
400
IncorrectInstanceStatus
The current status of the resource does not support this operation.
403
InternalError
The request processing has failed due to some unknown error.
500
IncorrectVncPassword.Malformed
The specified parameter "VncPassword" is not valid.
示例
請求示例
https://ecs.aliyuncs.com/?Action=ModifyInstanceVncPasswd
&DescribeInstanceVncUrl
&InstanceId=AY121018033933eae8689
&VncPassword=123456
&<公共請求參數(shù)>
返回示例
XML格式
FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC
JSON格式
{
"RequestId": "FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC",