技术员联盟提供win764位系统下载,win10,win7,xp,装机纯净版,64位旗舰版,绿色软件,免费软件下载基地!

当前位置:主页 > 教程 > 服务器类 >

阿里云如何使用修改实例管理终端口令接口

来源:技术员联盟┆发布时间:2017-12-05 18:12┆点击:

  修改实例管理终端口令

  描述

  修改 ECS 实例的 Web 管理终端口令

  密码长度必须是 6 个字符,可以包含大小写字母和数字,不支持特殊字符

  修改密码后,需要在控制台或者 API 重启实例

  请求参数

名称 类型 是否必须 描述
Action   String     系统规定参数,取值:ModifyInstanceVncPasswd  
RegionId   String     ECS 实例所在的 Region  
InstanceId   String     ECS 实例  
VncPassword   String     ECS 实例的 VNC 口令  

  返回参数

  全是公共返回参数,详见公共返回参数

  错误码

错误代码 描述 Http 状态码
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

  &<公共请求参数>

  返回示例

  XML格式

  

  FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC

  

  JSON格式

  {

  "RequestId": "FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC",