Tutorial: Get geofence collection details - Amazon Location Service

Tutorial: Get geofence collection details

You can get details about any geofence collection resource in your AWS account using the Amazon Location console, the AWS CLI, or the Amazon Location APIs:

Console

To view the details of a geofence collection using the Amazon Location console

  1. Open the Amazon Location console at https://console.aws.amazon.com/location/.

  2. Choose Geofence collections from the left navigation pane.

  3. Under My geofence collections, select the name link of the target geofence collection.

API

Use the DescribeGeofenceCollection operation from the Amazon Location Geofences APIs.

The following example is an API request to get the geofence collection details for ExampleCollection.

GET /geofencing/v0/collections/ExampleCollection

The following is an example response for DescribeGeofenceCollection:

{ "CollectionArn": "arn:aws:geo:us-west-2:123456789012:geofence-collection/GeofenceCollection", "CollectionName": "ExampleCollection", "CreateTime": 2020-09-30T22:59:34.142Z, "Description": "string", "KmsKeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", "Tags": { "Tag1" : "Value1" }, "UpdateTime": 2020-09-30T23:59:34.142Z }
CLI

Use the describe-geofence-collection command.

The following example is an AWS CLI to get the geofence collection details for ExampleCollection.

aws location describe-geofence-collection \ --collection-name "ExampleCollection"