dcloud ec2 instances list

List instances

IAM ec2:DescribeInstancesRead

Synopsis

dcloud ec2 instances list [flags]

Flags

  • --stateOptional

    enum

    Only instances in this state

    One of: pending, running, rebooting, stopping, stopped, shutting-down, terminated

  • --limitOptional

    number

    At most this many, oldest first (default 100)

    Constraints: integer, 1-500

  • --offsetOptional

    number

    Skip this many first: the next page is offset + limit (default 0)

    Constraints: integer, 0-1000000

  • --tagOptional

    string

    Only instances carrying these tags: "env=preview,slot=3" (all must match; a bare key: present)

    Constraints: 1-512 chars

  • --nameOptional

    string

    Only instances whose name or id contains this

    Constraints: 1-64 chars

Example

dcloud ec2 instances list

Generated from the API description, the same one the API checks requests against and the CLI is built from.