291 lines
7.2 KiB
JSON
291 lines
7.2 KiB
JSON
{
|
|
"describe_instances_list": {
|
|
"Reservations": [
|
|
{
|
|
"ReservationId": "r-1234567890abcdef0",
|
|
"OwnerId": "123456789012",
|
|
"Groups": [],
|
|
"Instances": [
|
|
{
|
|
"InstanceId": "i-1234567890abcdef0",
|
|
"InstanceType": "t3.micro",
|
|
"State": {
|
|
"Code": 16,
|
|
"Name": "running"
|
|
},
|
|
"PrivateIpAddress": "10.0.1.100",
|
|
"PublicIpAddress": "54.123.45.67",
|
|
"Tags": [
|
|
{
|
|
"Key": "hostname",
|
|
"Value": "test-server-1"
|
|
},
|
|
{
|
|
"Key": "Name",
|
|
"Value": "test-server-1"
|
|
}
|
|
],
|
|
"SecurityGroups": [
|
|
{
|
|
"GroupId": "sg-12345678",
|
|
"GroupName": "default"
|
|
}
|
|
],
|
|
"BlockDeviceMappings": [
|
|
{
|
|
"DeviceName": "/dev/xvda",
|
|
"Ebs": {
|
|
"VolumeId": "vol-12345678",
|
|
"Status": "attached",
|
|
"AttachTime": "2025-01-07T10:00:00.000Z",
|
|
"DeleteOnTermination": true
|
|
}
|
|
}
|
|
],
|
|
"KeyName": "aws-default",
|
|
"LaunchTime": "2025-01-07T10:00:00.000Z",
|
|
"Placement": {
|
|
"AvailabilityZone": "us-east-1a",
|
|
"GroupName": "",
|
|
"Tenancy": "default"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"ReservationId": "r-0987654321fedcba0",
|
|
"OwnerId": "123456789012",
|
|
"Groups": [],
|
|
"Instances": [
|
|
{
|
|
"InstanceId": "i-0987654321fedcba0",
|
|
"InstanceType": "t3.small",
|
|
"State": {
|
|
"Code": 80,
|
|
"Name": "stopped"
|
|
},
|
|
"PrivateIpAddress": "10.0.1.101",
|
|
"Tags": [
|
|
{
|
|
"Key": "hostname",
|
|
"Value": "test-server-2"
|
|
}
|
|
],
|
|
"SecurityGroups": [
|
|
{
|
|
"GroupId": "sg-87654321",
|
|
"GroupName": "default"
|
|
}
|
|
],
|
|
"BlockDeviceMappings": [
|
|
{
|
|
"DeviceName": "/dev/xvda",
|
|
"Ebs": {
|
|
"VolumeId": "vol-87654321",
|
|
"Status": "attached",
|
|
"AttachTime": "2025-01-06T15:30:00.000Z",
|
|
"DeleteOnTermination": true
|
|
}
|
|
}
|
|
],
|
|
"KeyName": "aws-default",
|
|
"LaunchTime": "2025-01-06T15:30:00.000Z",
|
|
"Placement": {
|
|
"AvailabilityZone": "us-east-1b",
|
|
"GroupName": "",
|
|
"Tenancy": "default"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"describe_instances_single": {
|
|
"Reservations": [
|
|
{
|
|
"ReservationId": "r-1234567890abcdef0",
|
|
"OwnerId": "123456789012",
|
|
"Instances": [
|
|
{
|
|
"InstanceId": "i-1234567890abcdef0",
|
|
"InstanceType": "t3.micro",
|
|
"State": {
|
|
"Code": 16,
|
|
"Name": "running"
|
|
},
|
|
"PrivateIpAddress": "10.0.1.100",
|
|
"PublicIpAddress": "54.123.45.67",
|
|
"Tags": [
|
|
{"Key": "hostname", "Value": "test-server-1"}
|
|
],
|
|
"KeyName": "aws-default"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"describe_volumes_list": {
|
|
"Volumes": [
|
|
{
|
|
"VolumeId": "vol-12345678",
|
|
"Size": 20,
|
|
"State": "in-use",
|
|
"CreateTime": "2025-01-07T10:00:00.000Z",
|
|
"AvailabilityZone": "us-east-1a",
|
|
"VolumeType": "gp3",
|
|
"Iops": 3000,
|
|
"Throughput": 125,
|
|
"Encrypted": false,
|
|
"Attachments": [
|
|
{
|
|
"VolumeId": "vol-12345678",
|
|
"InstanceId": "i-1234567890abcdef0",
|
|
"Device": "/dev/xvda",
|
|
"State": "attached",
|
|
"AttachTime": "2025-01-07T10:00:00.000Z",
|
|
"DeleteOnTermination": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"VolumeId": "vol-87654321",
|
|
"Size": 50,
|
|
"State": "available",
|
|
"CreateTime": "2025-01-05T14:20:00.000Z",
|
|
"AvailabilityZone": "us-east-1a",
|
|
"VolumeType": "gp2",
|
|
"Iops": 100,
|
|
"Throughput": 125,
|
|
"Encrypted": false,
|
|
"Attachments": []
|
|
}
|
|
]
|
|
},
|
|
"describe_volumes_single": {
|
|
"Volumes": [
|
|
{
|
|
"VolumeId": "vol-12345678",
|
|
"Size": 20,
|
|
"State": "in-use",
|
|
"CreateTime": "2025-01-07T10:00:00.000Z",
|
|
"AvailabilityZone": "us-east-1a",
|
|
"VolumeType": "gp3",
|
|
"Iops": 3000,
|
|
"Attachments": [
|
|
{
|
|
"VolumeId": "vol-12345678",
|
|
"InstanceId": "i-1234567890abcdef0",
|
|
"Device": "/dev/xvda",
|
|
"State": "attached"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"create_instance_response": {
|
|
"Instances": [
|
|
{
|
|
"InstanceId": "i-new1234567890abcd",
|
|
"InstanceType": "t3.micro",
|
|
"State": {
|
|
"Code": 0,
|
|
"Name": "pending"
|
|
},
|
|
"PrivateIpAddress": "10.0.1.102",
|
|
"Tags": [
|
|
{"Key": "hostname", "Value": "new-server"}
|
|
],
|
|
"KeyName": "aws-default",
|
|
"LaunchTime": "2025-01-07T11:30:00.000Z",
|
|
"Placement": {
|
|
"AvailabilityZone": "us-east-1a"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"describe_key_pairs": {
|
|
"KeyPairs": [
|
|
{
|
|
"KeyName": "aws-default",
|
|
"KeyPairId": "key-12345abcde",
|
|
"KeyType": "rsa",
|
|
"CreateTime": "2024-12-01T10:00:00.000Z"
|
|
}
|
|
]
|
|
},
|
|
"describe_instance_types": {
|
|
"InstanceTypes": [
|
|
{
|
|
"InstanceType": "t3.micro",
|
|
"VCpuInfo": {
|
|
"DefaultVCpus": 1
|
|
},
|
|
"MemoryInfo": {
|
|
"SizeInMiB": 1024
|
|
},
|
|
"EbsInfo": {
|
|
"EbsOptimizedSupport": "unsupported"
|
|
}
|
|
},
|
|
{
|
|
"InstanceType": "t3.small",
|
|
"VCpuInfo": {
|
|
"DefaultVCpus": 2
|
|
},
|
|
"MemoryInfo": {
|
|
"SizeInMiB": 2048
|
|
},
|
|
"EbsInfo": {
|
|
"EbsOptimizedSupport": "unsupported"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"error_401": {
|
|
"Error": {
|
|
"Code": "UnauthorizedOperation",
|
|
"Message": "You are not authorized to perform this operation"
|
|
}
|
|
},
|
|
"error_404": {
|
|
"Error": {
|
|
"Code": "InvalidInstanceID.NotFound",
|
|
"Message": "The instance ID 'i-notfound' does not exist"
|
|
}
|
|
},
|
|
"error_429": {
|
|
"Error": {
|
|
"Code": "RequestLimitExceeded",
|
|
"Message": "Request rate exceeded. Please retry your requests at a slower rate"
|
|
}
|
|
},
|
|
"pricing_data": [
|
|
{
|
|
"InstanceType": "t3.micro",
|
|
"Pricing": {
|
|
"OnDemand": 0.0104,
|
|
"Reserved": 0.0045
|
|
},
|
|
"VCpu": 1,
|
|
"Memory": "1 GB"
|
|
},
|
|
{
|
|
"InstanceType": "t3.small",
|
|
"Pricing": {
|
|
"OnDemand": 0.0208,
|
|
"Reserved": 0.0090
|
|
},
|
|
"VCpu": 2,
|
|
"Memory": "2 GB"
|
|
},
|
|
{
|
|
"InstanceType": "t3.medium",
|
|
"Pricing": {
|
|
"OnDemand": 0.0416,
|
|
"Reserved": 0.0180
|
|
},
|
|
"VCpu": 2,
|
|
"Memory": "4 GB"
|
|
}
|
|
]
|
|
}
|