tencent cloud

APIs

ModifyShipper

Download
Focus Mode
Font Size
Last updated: 2026-06-10 15:02:49

1. API Description

Domain name for API request: cls.intl.tencentcloudapi.com.

This API is used to modify an existing shipping rule. To use this API, you need to grant CLS the write permission of the specified bucket.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: ModifyShipper.
Version Yes String Common Params. The value used for this API: 2020-10-16.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
ShipperId Yes String

Shipping rule ID.

Bucket No String

COS bucket, see the supported bucket naming conventions.

Prefix No String

The new directory prefix delivered by the Shipping Rule.

  • Only 0-9A-Za-z-_/ are allowed.
  • Supports a maximum of 256 characters.
Status No Boolean

Switch state of shipping rules. true: enable delivery task; false: disable delivery task.

ShipperName No String

Shipping rule name

Interval No Integer

Shipping time interval in seconds. Default: 300. Valid range: 300-900.

MaxSize No Integer

Maximum value of delivered files in MB. Default: 256. Range: 5-256.

FilterRules.N No Array of FilterRuleInfo

Filter rules for log shipping. Matched logs are shipped. The relationship between the rules is and. Up to 5 rules are allowed. An empty array indicates all logs are shipped without filtering.

Partition No String

Partition rules for log shipping support strftime time format representation

Compress No CompressInfo

Compression configuration of shipped logs

Content No ContentInfo

Content format configuration for shipped logs

FilenameMode No Integer

Delivery file naming configuration. 0: Random number naming. 1: Delivery time naming.

StorageType No String

The storage type. Default value is STANDARD. For enumeration values, please refer to the storage class overview document.
Reference values include:

  • STANDARD: standard storage
  • STANDARD_IA: infrequent storage
  • ARCHIVE: archive storage
  • DEEP_ARCHIVE: deep archive storage
  • MAZ_STANDARD: standard storage (multi-AZ)
  • MAZ_STANDARD_IA: infrequent storage (multi-AZ)
  • INTELLIGENT_TIERING: intelligent tiering storage
  • MAZ_INTELLIGENT_TIERING: intelligent tiering storage (multi-AZ)
RoleArn No String

Role access description name Create role

ExternalId No String

External ID

TimeZone No String

Used to generate time variables in the file path shipped to COS.

Input limitation: Supports the following time zone list

  • GMT-12:00
  • GMT-11:00
  • GMT-10:00
  • GMT-09:30
  • GMT-09:00
  • GMT-08:00
  • GMT-07:00
  • GMT-06:00
  • GMT-05:00
  • GMT-04:00
  • GMT-03:30
  • GMT-03:00
  • GMT-02:00
  • GMT-01:00
  • GMT+00:00
  • GMT+01:00
  • GMT+02:00
  • GMT+03:30
  • GMT+04:00
  • GMT+04:30
  • GMT+05:00
  • GMT+05:30
  • GMT+05:45
  • GMT+06:00
  • GMT+06:30
  • GMT+07:00
  • GMT+08:00
  • GMT+09:00
  • GMT+09:30
  • GMT+10:00
  • GMT+10:30
  • GMT+11:00
  • GMT+11:30
  • GMT+12:00
  • GMT+12:45
  • GMT+13:00
  • GMT+14:00
  • UTC-11:00
  • UTC-10:00
  • UTC-09:00
  • UTC-08:00
  • UTC-12:00
  • UTC-07:00
  • UTC-06:00
  • UTC-05:00
  • UTC-04:30
  • UTC-04:00
  • UTC-03:30
  • UTC-03:00
  • UTC-02:00
  • UTC-01:00
  • UTC+00:00
  • UTC+01:00
  • UTC+02:00
  • UTC+03:00
  • UTC+03:30
  • UTC+04:00
  • UTC+04:30
  • UTC+05:00
  • UTC+05:45
  • UTC+06:00
  • UTC+06:30
  • UTC+07:00
  • UTC+08:00
  • UTC+09:00
  • UTC+09:30
  • UTC+10:00
  • UTC+11:00
  • UTC+12:00
  • UTC+13:00
DSLFilter No String

Pre-filtering process - filter out original data written to COS

3. Output Parameters

Parameter Name Type Description
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Modify COS Task Delivery

Modify delivery COS Task

Input Example

POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyShipper
<Common request parameters>

{
    "ShipperId": "2ac8a8aa-xxxx-xxxx-84cd-8cd2beeeae17",
    "Bucket": "bucket-test-12541111",
    "Prefix": "bow-test-12541111",
    "ShipperName": "bow-test-shipper-12541111",
    "Interval": 300,
    "MaxSize": 5,
    "FilenameMode": 1,
    "FilterRules": [
        {
            "Key": "http",
            "Regex": "^(\\d+\\.\\d+)\\..*",
            "Value": "172.16"
        }
    ],
    "Partition": "/%Y/%m/%d/%H/",
    "Compress": {
        "Format": "none"
    },
    "RoleArn": "",
    "ExternalId": "",
    "Content": {
        "Format": "json",
        "Json": {
            "EnableTag": true,
            "MetaFields": [
                "__SOURCE__",
                "__FILENAME__",
                "__TIMESTAMP__",
                "__HOSTNAME__"
            ],
            "JsonType": 1
        }
    }
}

Output Example

{
    "Response": {
        "RequestId": "6ef60bec-xxxx-xxxx-bb20-270359fb54a7"
    }
}

Example2 Modify Delivery Task

Change to cross-account delivery

Input Example

POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyShipper
<Common request parameters>

{
    "ShipperId": "3f9562a7-xxxx-xxxx-b32a-d51a927226a7",
    "Bucket": "examplebucket-1250000000",
    "Prefix": "bowtest-1250000000",
    "ShipperName": "bow-test-1250000000",
    "Interval": 300,
    "MaxSize": 10,
    "FilenameMode": 1,
    "FilterRules": [
        {
            "Key": "http",
            "Regex": "^(\\d+\\.\\d+)\\..*",
            "Value": "172.16"
        }
    ],
    "Partition": "/%Y/%m/%d/%H/",
    "Compress": {
        "Format": "gzip"
    },
    "RoleArn": "qcs::cam::uin/123123123:roleName/uinA_writeCLS_to_COS",
    "ExternalId": "123123123123123",
    "Content": {
        "Format": "json",
        "Json": {
            "EnableTag": true,
            "MetaFields": [
                "__SOURCE__",
                "__FILENAME__",
                "__TIMESTAMP__",
                "__HOSTNAME__"
            ],
            "JsonType": 0
        }
    }
}

Output Example

{
    "Response": {
        "RequestId": "25d826d2-xxxx-xxxx-a4b6-f5490e86ae81"
    }
}

Example3 Modify Cos delivery time zone

Input Example

POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyShipper
<Common request parameters>

{
    "ShipperId": "cd21db88-cfda-4164-8f8b-b236128f1f69",
    "TimeZone": "UTC+04:30"
}

Output Example

{
    "Response": {
        "RequestId": "ff84fdef-f2aa-43a2-8208-74481e99cd89"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure CAM signature/authentication error.
FailedOperation Operation failed.
InternalError Internal error.
InvalidParameter Incorrect parameter.
InvalidParameterValue Incorrect parameter value.
OperationDenied.ACLFailed ACL verification failed.
OperationDenied.AccountDestroy The account has been terminated.
OperationDenied.AccountIsolate The account has overdue payments.
OperationDenied.AccountNotExists The account does not exist.
ResourceNotFound The resource does not exist.
ResourceNotFound.ShipperNotExist The shipping rule does not exist.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback