メニュー

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?

Service Rate Limit Buckets

A Bucket defines the limit that should be enforced against the key it is associated with. A Rate Limit can have multiple buckets so that you can detect and stop attacks at different velocities.

必要なもの:

  1. Create a Verification Service
  2. Create a Service Rate Limit

If you are just getting started with Rate Limits in Verify we recommend checking out our guide on Using Verify Service Rate Limits to Protect Your Application before diving into the API.

Bucket properties

Names in PHP format
sid
sid<BL> Not PII

A 34 character string that uniquely identifies this Bucket.

rateLimitSid
sid<RK> Not PII

The Twilio-provided string that uniquely identifies the Rate Limit resource.

serviceSid
sid<VA> Not PII

The SID of the Service the resource is associated with.

accountSid
sid<AC> Not PII

The SID of the Account that created the Rate Limit resource.

max
integer Not PII

Maximum number of requests permitted in during the interval.

interval
integer Not PII

Number of seconds that the rate limit will be enforced over.

dateCreated
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in RFC 2822 format.

dateUpdated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

url
url Not PII

The URL of this resource.

Create a Bucket

post
https://verify.twilio.com/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets
パラメーター
Names in None format
service_sid
必須
post sid<VA> Not PII

The SID of the Service the resource is associated with.

rate_limit_sid
必須
post sid<RK> Not PII

The Twilio-provided string that uniquely identifies the Rate Limit resource.

max
必須
post integer Not PII

Maximum number of requests permitted in during the interval.

interval
必須
post integer Not PII

Number of seconds that the rate limit will be enforced over.

例 1
        
        
        
        

        Fetch a Bucket

        GET
        https://verify.twilio.com/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}
        パラメーター
        Names in None format
        service_sid
        必須
        GET sid<VA> Not PII

        The SID of the Service the resource is associated with.

        rate_limit_sid
        必須
        GET sid<RK> Not PII

        The Twilio-provided string that uniquely identifies the Rate Limit resource.

        sid
        必須
        GET sid<BL> Not PII

        A 34 character string that uniquely identifies this Bucket.

        例 1
              
              
              
              

              List all Buckets

              GET
              https://verify.twilio.com/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets
              パラメーター
              Names in None format
              service_sid
              必須
              GET sid<VA> Not PII

              The SID of the Service the resource is associated with.

              rate_limit_sid
              必須
              GET sid<RK> Not PII

              The Twilio-provided string that uniquely identifies the Rate Limit resource.

              例 1
                    
                    
                    
                    

                    Update a Bucket

                    post
                    https://verify.twilio.com/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}
                    パラメーター
                    Names in None format
                    service_sid
                    必須
                    post sid<VA> Not PII

                    The SID of the Service the resource is associated with.

                    rate_limit_sid
                    必須
                    post sid<RK> Not PII

                    The Twilio-provided string that uniquely identifies the Rate Limit resource.

                    sid
                    必須
                    post sid<BL> Not PII

                    A 34 character string that uniquely identifies this Bucket.

                    max
                    オプション
                    post integer Not PII

                    Maximum number of requests permitted in during the interval.

                    interval
                    オプション
                    post integer Not PII

                    Number of seconds that the rate limit will be enforced over.

                    例 1
                          
                          
                          
                          

                          Delete a Bucket

                          削除する
                          https://verify.twilio.com/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}
                          パラメーター
                          Names in None format
                          service_sid
                          必須
                          削除する sid<VA> Not PII

                          The SID of the Service the resource is associated with.

                          rate_limit_sid
                          必須
                          削除する sid<RK> Not PII

                          The Twilio-provided string that uniquely identifies the Rate Limit resource.

                          sid
                          必須
                          削除する sid<BL> Not PII

                          A 34 character string that uniquely identifies this Bucket.

                          例 1
                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

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