百度智能云

All Product Document

          Virtual Private Cloud

          Update Rate Limitation Rule of IPv6 Gateway

          Description

          Modify the rate limitation rule of the IPv6 gateway.

          • The rate limitation value must be between 1 and the maximum bandwidth of the IPv6 gateway.
          • Both the ingress bandwidth and egress bandwidth cannot be empty simultaneously.

          Request Structure

          PUT /v{version}/IPv6Gateway/{gatewayId}/rateLimitRule/{rateLimitRuleId}?clientToken={clientToken} HTTP/1.1    
          Host: bcc.bd.baidubce.com      
          Authorization: authorization string
          {
              "ingressBandwidthInMbps":{ingressBandwidthInMbps},
              "egressBandwidthInMbps":{egressBandwidthInMbps}
          }

          Request Header Field

          No other special header fields are available except for the public header field.

          Request Parameters

          Parameter Name Type Required? Parameter Position Description
          version String Yes URL parameter API version number
          clientToken String No Query parameters Idempotent Token, which is an ASCII string with a length of not more than 64 bits. For details, see Idempotency of ClientToken.
          gatewayId String Yes URL parameter IPv6 gateway Id
          rateLimitRuleId String Yes URL parameter Rate limitation rule Id
          ingressBandwidthInMbps int Yes RequestBody parameter Ingress bandwidth of the rate limitation rule
          egressBandwidthInMbps int Yes RequestBody parameter Egress bandwidth of the rate limitation rule

          Return Header Field

          No other special header fields are available except for the public header field.

          Return Parameter

          No special return parameters.

          Request Example

          PUT /v1/IPv6Gateway/gw-5af4eb65/rateLimitRule/ipv6_qos-0b56ec38 HTTP/1.1
          Host: bcc.bd.baidubce.com
          authorization: bce-auth-v1/c3119080364d11e8912505e5e0ae9978/2018-04-02T08:14:25Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security- 
          token/6b93bfd5ca2328fcb5560fa57f56253d80a629f6aac9c9cb74adf9a055fceb53
          {
              "ingressBandwidthInMbps":3,
              "egressBandwidthInMbps":5
          }

          Return Example

          HTTP/1.1 200 OK
          x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
          Date: Mon, 02 Apr 2018 08:14:25 GMT
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          Previous
          Query Rate Limitation Rule List of IPv6 Gateway
          Next
          Upgrade and Downgrade IPv6 Gateway Bandwidth