Skip to Content
New release 12 available 🎉

License Traces

GET/v1/license-tracesGET /v1/license-traces

Code samples

# You can also use wget curl -X GET /v1/license-traces \ -H 'Accept: text/plain' \ -H 'x-api-key: API_KEY'

GET /v1/license-traces

Retrieves license traces based on the provided request parameters.

Parameters

NameInTypeRequiredDescription
licenseIdqueryinteger(int32)falsenone
selectquerystringfalsenone
filterquerystringfalsenone
sortquerystringfalsenone
takequeryinteger(int32)falsenone
skipqueryinteger(int32)falsenone

Example responses

200 Response

{"success":true,"code":0,"message":"string","licenseTraces":[{"id":0,"clientIp":"string","clientId":"string","clientName":"string","machineId":"string","createdDate":"2019-08-24T14:15:22Z","action":0,"geoLocation":"string","meta":"string","licenseId":0}],"totalLicenseTracesCount":0}
{ "success": true, "code": 0, "message": "string", "licenseTraces": [ { "id": 0, "clientIp": "string", "clientId": "string", "clientName": "string", "machineId": "string", "createdDate": "2019-08-24T14:15:22Z", "action": 0, "geoLocation": "string", "meta": "string", "licenseId": 0 } ], "totalLicenseTracesCount": 0 }

Responses

StatusMeaningDescriptionSchema
200OK OKManagement.GetLicenseTracesResponse

Authentication: API key (x-api-key).

DELETE/v1/license-tracesDELETE /v1/license-traces

Code samples

# You can also use wget curl -X DELETE /v1/license-traces \ -H 'Content-Type: application/json-patch+json' \ -H 'Accept: text/plain' \ -H 'x-api-key: API_KEY'

DELETE /v1/license-traces

Deletes a license trace based on the provided request parameters.

Body parameter

{ "traceId": 0, "licenseId": 0, "filter": "string" }

Parameters

NameInTypeRequiredDescription
bodybodyManagement.DeleteLicenseTraceRequestfalseThe request containing the parameters for deleting a license trace.

Example responses

200 Response

{"success":true,"code":0,"message":"string"}
{ "success": true, "code": 0, "message": "string" }

Responses

StatusMeaningDescriptionSchema
200OK OKManagement.DeleteLicenseTraceResponse

Authentication: API key (x-api-key).

POST/v1/license-traces/geolocationPOST /v1/license-traces/geolocation

Code samples

# You can also use wget curl -X POST /v1/license-traces/geolocation \ -H 'Content-Type: application/json-patch+json' \ -H 'Accept: text/plain' \ -H 'x-api-key: API_KEY'

POST /v1/license-traces/geolocation

Resolves where the named traces’ client addresses are and stores the answers.

The lookup happens here, with the geolocation service this deployment is configured with (GeoLocationService in the application settings): the caller never needs a provider of its own, and no credential travels. The route sets GeoLocation and can touch nothing else, so a write path opened for a convenience cannot become a way to edit a trace. Given no ids, it takes the oldest traces that still have an address and no location.

Body parameter

{ "traceIds": [ 0 ], "limit": 0 }

Parameters

NameInTypeRequiredDescription
bodybodyManagement.ResolveLicenseTraceLocationsRequestfalseWhich traces to locate, or how many to take.

Example responses

200 Response

{"success":true,"code":0,"message":"string","resolvedCount":0,"unresolvedCount":0}
{ "success": true, "code": 0, "message": "string", "resolvedCount": 0, "unresolvedCount": 0 }

Responses

StatusMeaningDescriptionSchema
200OK OKManagement.ResolveLicenseTraceLocationsResponse

Authentication: API key (x-api-key).

Last updated on