2009-01-12 69 views
13

什么是Amazon EC2 API的有效instanceState?它似乎没有在当前的API doc中定义。谷歌并没有太多的变化。到目前为止,我知道:什么是Amazon EC2 API的有效instanceState?

  • 0:待定
  • 16:运行
  • 32:关闭向下
  • 48:终止

但我敢肯定,我之前看过一个error状态。

谢谢!

+0

这里是包含所有可用状态的文档页面 http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_InstanceState.html – Zippp 2016-08-23 11:47:20

回答

23

由于发布的,目前的状态是:

 
+--------+---------------+ 
| Code |  State  | 
+--------+---------------+ 
| 0 | pending | 
| 16 | running | 
| 32 | shutting-down | 
| 48 | terminated | 
| 64 | stopping | 
| 80 | stopped  | 
+--------+---------------+ 

和文档可以中找到Amazon Elastic Compute Cloud API参考InstanceStateType

The do cs还提到了一个州代码272,其中“通常表示主机运行实例时出现问题”。他们建议首先尝试重新启动,如果不能解决问题,则发布在EC2 forums上。

+0

现在这非常相关:http://33.media .tumblr.com/tumblr_mdrbo2ilt21rbq6yxo1_500.gif – Sergio 2014-12-04 22:11:30

1

该文档似乎已被移动,我仍然无法找到它们。这里有两个状态代码

  1. 64:停止
  2. 80:停止