curl --request GET \
--url https://api.ctrl-hub.com/v3/orgs/{org_id}/iam/service-accounts/{service_account_id}/logs/{log_id} \
--header 'X-Session-Token: <api-key>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"actor": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
},
"duration": 123,
"request": {
"time": "2023-11-07T05:31:56Z",
"headers": {},
"body": "<string>",
"path": "<string>",
"query": {},
"raw_query": "<string>",
"method": "<string>",
"content_length": 123
},
"response": {
"time": "2023-11-07T05:31:56Z",
"body": "<string>",
"headers": {},
"status": 123
}
},
"relationships": {
"actor": {
"data": {
"type": "users",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"service_account": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
}
}
},
"jsonapi": {
"version": "<string>"
}
}Get an individual service account log by its ID.
curl --request GET \
--url https://api.ctrl-hub.com/v3/orgs/{org_id}/iam/service-accounts/{service_account_id}/logs/{log_id} \
--header 'X-Session-Token: <api-key>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"actor": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
},
"duration": 123,
"request": {
"time": "2023-11-07T05:31:56Z",
"headers": {},
"body": "<string>",
"path": "<string>",
"query": {},
"raw_query": "<string>",
"method": "<string>",
"content_length": 123
},
"response": {
"time": "2023-11-07T05:31:56Z",
"body": "<string>",
"headers": {},
"status": 123
}
},
"relationships": {
"actor": {
"data": {
"type": "users",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"service_account": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
}
}
},
"jsonapi": {
"version": "<string>"
}
}Session token for authentication.
The unique identifier for the organisation.
The unique identifier for the service account.
The unique identifier for the log.
Limit the number of resources returned by the API
x >= 1Offset the resources returned by the API
x >= 0