閱讀1025 返回首頁    go 阿裏雲 go 技術社區[雲棲]


修改實例管理終端口令__實例相關接口_API 參考_雲服務器 ECS-阿裏雲

描述

修改 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. 400

示例

請求示例

  1. https://ecs.aliyuncs.com/?Action=ModifyInstanceVncPasswd
  2. &DescribeInstanceVncUrl
  3. &InstanceId=AY121018033933eae8689
  4. &VncPassword=123456
  5. &<公共請求參數>

返回示例

XML格式

  1. <ModifyInstanceVncPasswdResponse>
  2. <RequestId>FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC</RequestId>
  3. </ModifyInstanceVncPasswdResponse>

JSON格式

  1. {
  2. "RequestId": "FDB6C963-9CE8-4B7F-BCA3-845F6BD29AFC",
  3. }

最後更新:2016-11-23 16:03:50

  上一篇:go 查詢實例管理終端地址__實例相關接口_API 參考_雲服務器 ECS-阿裏雲
  下一篇:go 續費實例__實例相關接口_API 參考_雲服務器 ECS-阿裏雲