The behavior of the API when an instance is securely locked
Note that disk-related behavior relies on the operationlocks of the instance in In_use state, otherwise you can ignore the operationlocks of the instance.
Security lockout refers to the operationlocks containing lockreason:security in the outgoing parameter returned by Describeinstanceattribute.
Interface |
Behavior |
Allocatepublicipaddress |
Error |
Attachdisk |
Error |
Authorizesecuritygroup |
Normal logic |
Createdisk |
Normal logic |
CreateImage |
Normal logic |
CreateInstance |
- |
Createsecuritygroup |
Normal logic |
CreateSnapshot |
Error (In_use state only for disks that are mounted on this instance) |
Deletedisk |
Normal logic |
DeleteImage |
Normal logic |
Deleteinstance |
Normal logic |
Deletesecuritygroup |
Normal logic |
Deletesnapshot |
Normal logic |
Describeautosnapshotpolicy |
Normal logic |
Describedisks |
Normal logic |
Describeimages |
Normal logic |
Describeinstanceattribute |
Normal logic |
Describeinstancestatus |
Normal logic |
Describeinstancetypes |
Normal logic |
Describeinstancemonitordata |
Normal logic |
Describeregions |
Normal logic |
Describesecuritygroupattribute |
Normal logic |
Describesecuritygroups |
Normal logic |
Describesnapshotattribute |
Normal logic |
Describesnapshots |
Normal logic |
Describezones |
Normal logic |
Detachdisk |
Error |
Joinsecuritygroup |
Error |
Leavesecuritygroup |
Error |
Modifyautosnapshotpolicy |
Normal logic |
Modifydiskattribute |
Normal logic |
Modifyinstanceattribute |
Error |
Rebootinstance |
Error |
Reinitdisk |
Error (In_use), normal logic (other states) |
Replacesystemdisk |
Normal logic |
Resetdisk |
Error |
Revokesecuritygroup |
Normal logic |
Startinstance |
Error |
Stopinstance |
Error |