Get vehicle information (AWS CLI) - AWS IoT FleetWise

Get vehicle information (AWS CLI)

You can use the ListVehicles API operation to verify if a vehicle has been deleted. The following example uses the AWS CLI.

To retrieve a paginated list of summaries of all vehicles, run the following command.

aws iotfleetwise list-vehicles

You can use the GetVehicle API operation to retrieve vehicle information. The following example uses the AWS CLI.

To retrieve the metadata of a vehicle, run the following command.

Replace vehicle-name with the ID of the vehicle that you want to retrieve.

aws iotfleetwise get-vehicle --vehicle-name vehicle-name
Note

This operation is eventually consistent. In other words, changes to the vehicle might not be reflected immediately.