Domain name for API request: csip.intl.tencentcloudapi.com.
Set the sampling rate for object storage scan.
A maximum of 20 requests can be initiated per second for this API.
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: ModifyCosAuditObjectSampleRate. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| BucketIdSet.N | No | Array of Integer | Bucket asset id set |
| SampleRateSet.N | No | Array of Float | Sampling rate collection |
| TargetAppId | No | Integer | appid; required when passing DefaultSampleRate; selectable when only modifying existing buckets |
| DefaultSampleRate | No | Float | Modify the default value of the newly-added bucket for TargetAppId when passed in; do not modify the default value when not passed in Value range: [0.001, 1] |
| Parameter Name | Type | Description |
|---|---|---|
| DefaultSampleRateUpdated | Boolean | Whether the default sampling rate was actually submitted this time |
| DefaultSampleRate | Float | When DefaultSampleRateUpdated=true, the value after modification is returned |
| UpdatedBucketCount | Integer | Number of existing buckets successfully submitted this time |
| 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. |
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyCosAuditObjectSampleRate
<Common request parameters>
{
"BucketIdSet": [
1346438
],
"SampleRateSet": [
0.5
],
"TargetAppId": 260209268,
"DefaultSampleRate": 0.01
}
{
"Response": {
"DefaultSampleRate": 0.01,
"DefaultSampleRateUpdated": true,
"RequestId": "466d34ac-169a-4b5e-b194-9541b0871a66",
"UpdatedBucketCount": 1
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation | Operation failed. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue | Parameter value error. |
| OperationDenied | Operation denied. |
| ResourceInUse | The resource is occupied. |
| ResourceNotFound | The resource does not exist. |
| ResourceUnavailable | Resources are unavailable. |
| ResourcesSoldOut | Resources are sold out. |
| UnauthorizedOperation | Unauthorized operation. |
| UnknownParameter | Unknown parameter error. |
| UnsupportedOperation | The operation is not supported. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários