Home >Operation and Maintenance >Linux Operation and Maintenance >Modify some information about an instance, including instance password, name, description, host name, and custom data.
This article brings you some information about how to modify an instance, including instance password, name, description, host name and custom data. It has certain reference value. Friends in need can refer to it. , hope it helps you.
ModifyInstanceAttribute
Description
When calling this interface, you need to pay attention to:
The instance status is The instance password cannot be reset while it is starting.
The OperationLocks of the ECS instance controlled by security cannot be marked as "LockReason": "security".
After resetting the password, you need to restart the instance in the console or call RebootInstance for the changes to take effect. Restarting within the instance will not take effect.
When the instance status is Stopped and the instance custom data usage limit is met, custom data can be modified.
Request parameters
##Return parameters
are all public return parameters. See Public Return Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=ModifyInstanceAttribute &InstanceId=i-instance1 &Password=pwd &<公共请求参数>
Return example
XML format
<ModifyInstanceAttributeResponse> <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId> </ModifyInstanceAttributeResponse>
JSON format
{ "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E" }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of Modify some information about an instance, including instance password, name, description, host name, and custom data.. For more information, please follow other related articles on the PHP Chinese website!