Retrieve a list of geofencing event subscription
GET/devicelocation/subscriptions
Retrieve a list of geofencing event subscription(s).
Returns
id: string
The unique identifier of the subscription in the scope of the subscription manager. When this information is contained within an event notification, this concept SHALL be referred as subscriptionId as per Commonalities Event Notification Model.
startsAt: string
Date when the event subscription will begin/began It must follow RFC 3339 and must have time zone.
formatdate-time
expiresAt: optional string
Date when the event subscription will expire. Only provided when subscriptionExpireTime is indicated by API client or Telco Operator has specific policy about that.
It must follow RFC 3339 and must have time zone.
formatdate-time
Retrieve a list of geofencing event subscription
curl https://api.example.com/camara/devicelocation/subscriptions \
-H "Authorization: Bearer $CAMARA_BEARER_TOKEN"[
{
"id": "1119920371",
"config": {
"initialEvent": true,
"subscriptionExpireTime": "2023-01-17T13:18:23.682Z",
"subscriptionMaxEvents": 5,
"subscriptionDetail": {
"area": {
"areaType": "CIRCLE"
},
"device": {
"ipv4Address": {
"privateAddress": "84.125.93.10",
"publicAddress": "84.125.93.10",
"publicPort": 59765
},
"ipv6Address": "2001:db8:85a3:8d3:1319:8a2e:370:7344",
"networkAccessIdentifier": "123456789@domain.com",
"phoneNumber": "+123456789"
}
}
},
"protocol": "HTTP",
"sink": "https://endpoint.example.com/sink",
"startsAt": "2023-07-03T12:27:08.312Z",
"types": [
"org.camaraproject.geofencing-subscriptions.v0.area-entered"
],
"expiresAt": "2023-07-03T12:27:08.312Z",
"status": "ACTIVATION_REQUESTED"
}
]{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Client specified an invalid argument, request body or query param."
}{
"status": 401,
"code": "UNAUTHENTICATED",
"message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}{
"status": 403,
"code": "PERMISSION_DENIED",
"message": "Client does not have sufficient permissions to perform this action."
}Returns Examples
[
{
"id": "1119920371",
"config": {
"initialEvent": true,
"subscriptionExpireTime": "2023-01-17T13:18:23.682Z",
"subscriptionMaxEvents": 5,
"subscriptionDetail": {
"area": {
"areaType": "CIRCLE"
},
"device": {
"ipv4Address": {
"privateAddress": "84.125.93.10",
"publicAddress": "84.125.93.10",
"publicPort": 59765
},
"ipv6Address": "2001:db8:85a3:8d3:1319:8a2e:370:7344",
"networkAccessIdentifier": "123456789@domain.com",
"phoneNumber": "+123456789"
}
}
},
"protocol": "HTTP",
"sink": "https://endpoint.example.com/sink",
"startsAt": "2023-07-03T12:27:08.312Z",
"types": [
"org.camaraproject.geofencing-subscriptions.v0.area-entered"
],
"expiresAt": "2023-07-03T12:27:08.312Z",
"status": "ACTIVATION_REQUESTED"
}
]{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Client specified an invalid argument, request body or query param."
}{
"status": 401,
"code": "UNAUTHENTICATED",
"message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}{
"status": 403,
"code": "PERMISSION_DENIED",
"message": "Client does not have sufficient permissions to perform this action."
}