Skip to main content Link Menu Expand (external link) Document Search Copy Copied

ResetULHostInstancePassword

Introduction

Reset the administrator password of the lightweight application cloud host.

This operation requires the UHost instance to be closed.

Instructions

You can choose any of the following methods to initiate an API request:

Multilingual OpenSDK / Java /

CloudShell cloud command line

Definition

Common parameter

Parameter name Type   Required
Action string The corresponding API instruction name, the current API is ResetULHostInstancePassword Yes
PublicKey string The user’s public key, available from Console fetch Yes
Signature string According to the public key and API The user signature generated by the directive is found in Signature algorithm Yes

Request parameter

Parameter Name Type Description Required
Region string See List of Regions and Availability Zones Yes
ProjectId string Project ID (example: org-04ibqy), This field, by default, is empty and is only required when the account is a Sub-Account Please refer to GetProjectList interface No
ULHostId string ULHost instance ID Yes
Password string Login password Yes

Response field

Field Name Type Description Required
RetCode int Return status code, if it is 0, it returns successfully, if it is not 0, it fails Yes
Action string Action command name Yes
Message string Returns an error message, and provides detailed description information when RetCode is not 0 No
ULHostId string ULHost instance ID Yes

Example

Example request

https://api.scloud.sg?Action=ResetULHostInstancePassword
&Region=vn-sng
&ProjectId=CAUPAisq
&ULHostId=jCauOLoz
&Password=AgZVFGfu

Example response

{
  "Action": "ResetULHostInstancePasswordResponse",
  "RetCode": 0,
  "ULHostId": "NcJIRRyi"
}