Retrieve a specific log.
A record of an event that occurred related to a function invocation.
Retrieve a specific log.
Path parameters
-
The SID of the Service to fetch the Log resource from.
-
The SID of the environment with the Log resource to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^ZE[0-9a-fA-F]{32}$
. -
The SID of the Log resource to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^NO[0-9a-fA-F]{32}$
.
GET
/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}
curl \
--request GET 'https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}' \
--user "username:password"
Response examples (200)
{
"sid": "NO00000000000000000000000000000000",
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments/ZE00000000000000000000000000000000/Logs/NO00000000000000000000000000000000",
"level": "warning",
"message": "This is a warning",
"build_sid": "ZB00000000000000000000000000000000",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"request_sid": "RQ00000000000000000000000000000000",
"service_sid": "ZS00000000000000000000000000000000",
"date_created": "2018-11-10T20:00:00Z",
"function_sid": "ZH00000000000000000000000000000000",
"deployment_sid": "ZD00000000000000000000000000000000",
"environment_sid": "ZE00000000000000000000000000000000"
}