Single link speed limit

Last updated: 2020-02-16 17:42:28


COS supports traffic throttling when uploading and downloading files to ensure the network bandwidth of your other applications. You can use the PutObjectPostObjectGetObjectUploadPart The x-cos-traffic-limit parameter is used when the request is made, and the speed limit value is set. COS will control the network bandwidth of this request according to the speed limit value set.


  • Users use the x-cos-traffic-limit parameter to specify the speed limit for this request when requesting Object, PostObject, GetObject and UploadPart. This parameter can be set to header, request parameters, or in the form field when using the form upload API.
  • The value of the x-cos-traffic-limit parameter must be numeric and the unit defaults to bit/s.
  • The speed limit is set in the range of 819200-838860800, that is, 100KB/s-100MB picks. If it is beyond this range, a 400th error will be returned.

API Use Case

The following is an example of a simple upload API. The speed limit is 1048576 bit/s, that is, 128KB API:

PUT /exampleobject HTTP/1.1
Content-Length: 13
Authorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1561109068;1561116268&q-key-time=1561109068;1561116268&q-header-list=content-length;content-md5;content-type;date;host&q-url-param-list=&q-signature=998bfc8836fc205d09e455c14e3d7e623bd2****
x-cos-traffic-limit: 1048576