Home > Operation and Maintenance > Linux Operation and Maintenance > Modify some information about an instance, including instance password, name, description, host name, and custom data.

Modify some information about an instance, including instance password, name, description, host name, and custom data.

坏嘻嘻
Release: 2018-09-20 13:56:00
Original
2299 people have browsed it

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

Modify some information about an instance, including instance password, name, description, host name, and custom data.

##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
&<公共请求参数>
Copy after login

Return example

XML format

<ModifyInstanceAttributeResponse>
    <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</ModifyInstanceAttributeResponse>
Copy after login

JSON format

{
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Copy after login

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

Modify some information about an instance, including instance password, name, description, host name, and custom data.

Modify some information about an instance, including instance password, name, description, host name, and custom data.

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template