curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/functions/{functionId}/calls/{callId}/logs \
--header 'Authorization: Bearer <token>'{
"items": [
{
"timestamp": 1585350274000,
"message": "Did do fancy thing"
},
{
"timestamp": 1585350276000,
"message": "Did do another fancy thing"
}
]
}Required capabilities:
functionsAcl:READ
Get logs from a function call.
curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/functions/{functionId}/calls/{callId}/logs \
--header 'Authorization: Bearer <token>'{
"items": [
{
"timestamp": 1585350274000,
"message": "Did do fancy thing"
},
{
"timestamp": 1585350276000,
"message": "Did do another fancy thing"
}
]
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
The function call id.
The function id.
OK
Show child attributes
Was this page helpful?