Get vehicle information (AWS CLI) - AWS IoT FleetWise

Get vehicle information (AWS CLI)

AWS IoT FleetWise is in preview release and is subject to change. We recommend that you use the service only with test data, and not in production environments.

While AWS IoT FleetWise is in preview, you must download the preview AWS SDK and AWS CLI to use the API operations for this service. These API operations aren't available in the public AWS SDK or AWS CLI. For more information, see AWS CLI and AWS SDKs (preview).

You can use the ListVehicles API operation to verify if a vehicle has been deleted. The follow 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 follow 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 you want to retrieve.

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