Difference between revisions of "Example output: aws ec2 describe-instances"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
  [[aws ec2 describe-instances]]
 
  [[aws ec2 describe-instances]]
  
<pre>
+
 
{
+
{
 
     "Reservations": [
 
     "Reservations": [
 
         {
 
         {
Line 9: Line 9:
 
                 {
 
                 {
 
                 "AmiLaunchIndex": 0,
 
                 "AmiLaunchIndex": 0,
                 "ImageId": "ami-0abcdef1234567890,
+
                 "[[ImageId]]": "ami-0abcdef1234567890,
                 "InstanceId": "i-1234567890abcdef0,
+
                 "[[InstanceId]]": "i-1234567890abcdef0,
 
                 "InstanceType": "t2.micro",
 
                 "InstanceType": "t2.micro",
 
                 "KeyName": "MyKeyPair",
 
                 "KeyName": "MyKeyPair",
Line 23: Line 23:
 
                 },
 
                 },
 
                 "PrivateDnsName": "ip-10-0-0-157.us-east-2.compute.internal",
 
                 "PrivateDnsName": "ip-10-0-0-157.us-east-2.compute.internal",
                 "PrivateIpAddress": "10.0.0.157",
+
                 "[[PrivateIpAddress]]": "10.0.0.157",
 
                 "ProductCodes": [],
 
                 "ProductCodes": [],
 
                 "PublicDnsName": "",
 
                 "PublicDnsName": "",
Line 107: Line 107:
 
         "ReservationId": "r-02a3f596d91211712",
 
         "ReservationId": "r-02a3f596d91211712",
 
     }
 
     }
}
+
}
</pre>
+
 
  
 
== See also ==
 
== See also ==
 +
* {{aws ec2 describe-instances}}
 
* {{aws ec2}}
 
* {{aws ec2}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Latest revision as of 09:04, 25 September 2023

aws ec2 describe-instances


{
   "Reservations": [
       {
           "Groups": [],
           "Instances": [
               {
               "AmiLaunchIndex": 0,
               "ImageId": "ami-0abcdef1234567890,
               "InstanceId": "i-1234567890abcdef0,
               "InstanceType": "t2.micro",
               "KeyName": "MyKeyPair",
               "LaunchTime": "2018-05-10T08:05:20.000Z",
               "Monitoring": {
                   "State": "disabled"
               },
               "Placement": {
                   "AvailabilityZone": "us-east-2a",
                   "GroupName": "",
                   "Tenancy": "default"
               },
               "PrivateDnsName": "ip-10-0-0-157.us-east-2.compute.internal",
               "PrivateIpAddress": "10.0.0.157",
               "ProductCodes": [],
               "PublicDnsName": "",
               "State": {
                   "Code": 0,
                   "Name": "pending"
               },
               "StateTransitionReason": "",
               "SubnetId": "subnet-04a636d18e83cfacb",
               "VpcId": "vpc-1234567890abcdef0",
               "Architecture": "x86_64",
               "BlockDeviceMappings": [],
               "ClientToken": "",
               "EbsOptimized": false,
               "Hypervisor": "xen",
               "NetworkInterfaces": [
                   {
                       "Attachment": {
                           "AttachTime": "2018-05-10T08:05:20.000Z",
                           "AttachmentId": "eni-attach-0e325c07e928a0405",
                           "DeleteOnTermination": true,
                           "DeviceIndex": 0,
                           "Status": "attaching"
                       },
                       "Description": "",
                       "Groups": [
                           {
                               "GroupName": "MySecurityGroup",
                               "GroupId": "sg-0598c7d356eba48d7"
                           }
                       ],
                       "Ipv6Addresses": [],
                       "MacAddress": "0a:ab:58:e0:67:e2",
                       "NetworkInterfaceId": "eni-0c0a29997760baee7",
                       "OwnerId": "123456789012",
                       "PrivateDnsName": "ip-10-0-0-157.us-east-2.compute.internal",
                       "PrivateIpAddress": "10.0.0.157"
                       "PrivateIpAddresses": [
                           {
                               "Primary": true,
                               "PrivateDnsName": "ip-10-0-0-157.us-east-2.compute.internal",
                               "PrivateIpAddress": "10.0.0.157"
                           }
                       ],
                       "SourceDestCheck": true,
                       "Status": "in-use",
                       "SubnetId": "subnet-04a636d18e83cfacb",
                       "VpcId": "vpc-1234567890abcdef0",
                       "InterfaceType": "interface"
                   }
               ],
               "RootDeviceName": "/dev/xvda",
               "RootDeviceType": "ebs",
               "SecurityGroups": [
                   {
                       "GroupName": "MySecurityGroup",
                       "GroupId": "sg-0598c7d356eba48d7"
                   }
               ],
               "SourceDestCheck": true,
               "StateReason": {
                   "Code": "pending",
                   "Message": "pending"
               },
               "Tags": [],
               "VirtualizationType": "hvm",
               "CpuOptions": {
                   "CoreCount": 1,
                   "ThreadsPerCore": 1
               },
               "CapacityReservationSpecification": {
                   "CapacityReservationPreference": "open"
               },
               "MetadataOptions": {
                   "State": "pending",
                   "HttpTokens": "optional",
                   "HttpPutResponseHopLimit": 1,
                   "HttpEndpoint": "enabled"
               }
           }
       ],
       "OwnerId": "123456789012"
       "ReservationId": "r-02a3f596d91211712",
   }
}


See also[edit]

Advertising: