Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

メニュー

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Function Version

Function Versions are specific versions of JavaScript Node.js code that execute at a particular domain.

The steps to create Functions are as follows:

  1. Create a Function
  2. Create a Function Version (this resource) via serverless-upload.twilio.com

We will need the Function Version SID to include this Function in a Build.

FunctionVersion properties

Names in PHP format
sid
sid<ZN> Not PII

The unique SID identifier of this Function Version.

accountSid
sid<AC> Not PII

The unique SID identifier of the Account that owns this Function Version.

serviceSid
sid<ZS> Not PII

The unique SID identifier of the Service for this Function Version.

functionSid
sid<ZH> Not PII

The unique SID identifier of the Function that is the parent for this Function Version.

path
文字列 PII MTL: 7 DAYS

The URL-friendly string by which this Function Version can be referenced.

visibility
enum:visibility Not PII

The access control which determines how the Function Version can be accessed. One of public, protected, or private.

dateCreated
date_time<iso8601> Not PII

The date that this Function Version was created, given in ISO 8601 format.

url
url Not PII

The URL of this Function Version.

Fetch a FunctionVersion resource

GET
https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}
パラメーター
Names in None format
service_sid
必須
GET sid_like<ZS> Not PII

The unique SID identifier of the Service for this Function Version.

function_sid
必須
GET sid<ZH> Not PII

The unique SID identifier of the Function that is the parent for this Function Version.

sid
必須
GET sid<ZN> Not PII

The unique SID identifier of this Function Version.

        
        
        
        

        Read multiple FunctionVersion resources

        GET
        https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions
        パラメーター
        Names in None format
        service_sid
        必須
        GET sid_like<ZS> Not PII

        The unique SID identifier of the Service for these Function Versions.

        function_sid
        必須
        GET sid<ZH> Not PII

        The unique SID identifier of the Function that is the parent for this Function Version.

              
              
              
              
              Rate this page:

              ヘルプが必要ですか?

              誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。