Modifies the boot configuration of a heterogeneous PC Farm bare metal instance.
Operation description
-
If an instance is in the Starting state, you cannot reset the password of the instance.
-
If the instance is in the Running state, you cannot change the password of the instance.
-
After resetting the password, you must restart the instance in the ENS console or call the RebootInstance operation to apply the change. The restart operation within the instance does not apply the change.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:ModifyInstanceBootConfiguration |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance for which you want to modify the configuration. You can specify only one ID. |
i-instance**** |
| BootType |
string |
Yes |
The startup type. |
pxe |
| BootSet |
string |
No |
The startup method. |
legacy |
| DiskSet |
string |
No |
Specifies whether the startup depends on the disk. |
on |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
6666C5A5-75ED-422E-A022-7121FA18C968 |
Examples
Success response
JSON format
{
"RequestId": "6666C5A5-75ED-422E-A022-7121FA18C968"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstanceNotFound | Instance not found, please check the InstanceId. | Instance not found, please check the instance ID |
| 400 | Parameter.Invalid | The parameter is invalid. Please check your parameters and try it again. | The parameter is invalid. |
| 400 | IncorrectInstanceStatus | The current status of the instance does not support this operation. | The instance is in a state that does not support the current operation. |
| 400 | InvalidInstanceType.NotSupported | The specified InstanceType is not Supported. | The specified instance type does not support the current operation. |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.