aws ec2 describe-hosts
Describes the specified Dedicated Hosts or all your Dedicated Hosts. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To view details about Dedicated Hosts
The following describe-hosts example displays details for the available Dedicated Hosts in your AWS account.
aws ec2 describe-hosts --filter "Name=state,Values=available"Identify--filterThe filters.Its output, shortened
{
"Hosts": [
{
"HostId": "h-07879acf49EXAMPLE",
"Tags": [
{
"Value": "production",
"Key": "purpose"
}
],
"HostProperties": {
"Cores": 48,
"TotalVCpus": 96,
"InstanceType": "m5.large",
"Sockets": 2
},
"Instances": [],
"State": "available",
"AvailabilityZone": "us-west-2a",
"AvailableCapacity": {
"AvailableInstanceCapacity": [
{
"AvailableCapacity": 48,
"InstanceType": "m5.large",
"TotalCapacity": 48
}
],
"AvailableVCpus": 96
},
"HostRecovery": "on",
… 5 more linesFor more information, see Monitor the state of your Amazon EC2 Dedicated Hosts in the Amazon EC2 User Guide.
Options
--filterThe filters.--host-idsThe IDs of the Dedicated Hosts.--max-resultsThe maximum number of results to return for the request in a single page.--next-tokenThe token to use to retrieve the next page of results.