CmdID

CmdID / aws / aws ec2

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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 lines

For more information, see Monitor the state of your Amazon EC2 Dedicated Hosts in the Amazon EC2 User Guide.

Options

4 in the AWS CLI reference
--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.