メニュー

Expand
ページを評価:

Sink Validate Resource

The Sink Validate Resource is responsible for confirming that a Sink has been properly configured and is ready to be toggled to the active state.

To create an active Kinesis Sink, you'll need to complete the following steps. Webhook Sinks are active by default but you can choose to validate them if you would like to. The steps in bold are handled using the Sink Validate Resource:

  1. Create a new Sink Resource. The status of Kinesis Sinks will be initialized by default. The status of Webhook Sinks will be active by default.
  2. Create a Sink Test resource using your new Sink. This will publish a test event to your Sink, confirming that you've set up your Sink properly.
  3. Check your Sink to see if the Test event was successfully published.
  4. If the test was successful, retrieve the test_id and create a Sink Validate Resource. This will let Twilio know that you successfully configured the Sink, and will toggle the Sink state to active.

SinkValidate properties

Resource Properties in REST API format
result
文字列 Not PII

Feedback indicating whether the given Sink was validated.

Create a SinkValidate resource

post
https://events.twilio.com/v1/Sinks/{Sid}/Validate

Validates a Sink whose generated test ID matches the supplied test ID.

If the "test_id" does not match the "test_id" that was sent with the test event, the endpoint will return a 400 and the sink status does not change. If the "test_id" supplied is correct, then the Sink returns a 201 and the status of the Sink will be updated to active and the sink described in the configuration will begin to receive data.

パラメーター
Parameters in REST API format
sid
Path
post sid<DG> Not PII

A 34 character string that uniquely identifies the Sink being validated.

test_id
必須
post 文字列 Not PII

A 34 character string that uniquely identifies the test event for a Sink being validated.

例 1
        
        
        
        ページを評価:

        ヘルプが必要ですか?

        We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

              
              
              

              フィードバックくださりありがとうございます!

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

              Sending your feedback...
              🎉 Thank you for your feedback!
              Something went wrong. Please try again.

              Thanks for your feedback!

              Refer us and get $10 in 3 simple steps!

              ステップ1

              Get link

              Get a free personal referral link here

              ステップ2:

              Give $10

              Your user signs up and upgrade using link

              ステップ3

              Get $10

              1,250 free SMSes
              OR 1,000 free voice mins
              OR 12,000 chats
              OR more