Retrieve a the content of a specific Function Version resource

GET /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content

The code of a Function Version.

Retrieve a the content of a specific Function Version resource.

Path parameters

  • ServiceSid string Required

    The SID of the Service to fetch the Function Version content from.

  • FunctionSid string Required

    The SID of the Function that is the parent of the Function Version content to fetch.

  • Sid string Required

    The SID of the Function Version content to fetch.

Responses

  • OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the Function Version resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • content string | null

      The content of the Function Version resource

    • function_sid string | null

      The SID of the Function that is the parent of the Function Version

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZH[0-9a-fA-F]{32}$.

    • service_sid string | null

      The SID of the Service that the Function Version resource is associated with

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZS[0-9a-fA-F]{32}$.

    • sid string | null

      The unique string that identifies the Function Version resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZN[0-9a-fA-F]{32}$.

    • url string(uri) | null
GET /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content
curl \
 -X GET https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "content": "string",
  "function_sid": "string",
  "service_sid": "string",
  "sid": "string",
  "url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "content": "string",
  "function_sid": "string",
  "service_sid": "string",
  "sid": "string",
  "url": "https://example.com"
}