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.

坏嘻嘻
坏嘻嘻Original
2018-09-20 13:56:002308browse

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
&<公共请求参数>

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.

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!

Statement:
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