Get AWS IoT FleetWise fleet information
You can use the ListFleetsForVehicle API operation to retrieve a paginated list of IDs of all fleets that the vehicle belongs to. The following example uses the AWS CLI.
To retrieve a paginated list of IDs of all fleets that the vehicle belongs to, run the following command.
Replace vehicle-name
with the ID of the vehicle.
aws iotfleetwise list-fleets-for-vehicle \ --vehicle-name
vehicle-name
If you enabled encryption using a customer managed AWS KMS key, include the following policy statement so that your role can invoke the ListFleetsForVehicle
API operation.
You can use the ListVehiclesInFleet API operation to retrieve a paginated list of summaries of all vehicles in a fleet. The following example uses the AWS CLI.
To retrieve a paginated list of summaries of all vehicles in a fleet, run the following command.
Replace fleet-id
with the ID of the fleet.
aws iotfleetwise list-vehicles-in-fleet \ --fleet-id
fleet-id
If you enabled encryption using a customer managed AWS KMS key, include the following policy statement so that your role can invoke the ListVehiclesInFleet
API operation.
You can use the GetFleet API operation to retrieve fleet information. The following example uses the AWS CLI.
To retrieve the metadata of a fleet, run the following command.
Replace fleet-id
with the ID of the fleet.
aws iotfleetwise get-fleet \ --fleet-id
fleet-id
Note
This operation is eventually consistent
If you enabled encryption using a customer managed AWS KMS key, include the following policy statement so that your role can invoke the GetFleet
API operation.