Retrieve a the content of a specific Function Version resource.
The code of a Function Version.
Retrieve a the content of a specific Function Version resource.
Path parameters
-
The SID of the Service to fetch the Function Version content from.
-
The SID of the Function that is the parent of the Function Version content to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^ZH[0-9a-fA-F]{32}$
. -
The SID of the Function Version content to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^ZN[0-9a-fA-F]{32}$
.
GET
/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content
curl \
--request GET 'https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content' \
--user "username:password"
Response examples (200)
{
"sid": "ZN00000000000000000000000000000000",
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Functions/ZH00000000000000000000000000000000/Versions/ZN00000000000000000000000000000000/Content",
"content": "exports.handler = function (context, event, callback) {\n const request = require(\"request\");\n return request(\"http://www.google.com\", function (error, response, body) {\n callback(null, response.statusCode);\n });\n};",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ZS00000000000000000000000000000000",
"function_sid": "ZH00000000000000000000000000000000"
}