Domain name for API request: apm.intl.tencentcloudapi.com.
This API is used to modify the APM business system.
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: ModifyApmInstance. |
| Version | Yes | String | Common Params. The value used for this API: 2021-06-22. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| InstanceId | Yes | String | Business system id. |
| Name | Yes | String | Business system name. |
| Tags.N | No | Array of ApmTag | Tag list. |
| Description | No | String | Business system description. |
| TraceDuration | No | Integer | Retention period of trace data (unit: days). |
| OpenBilling | No | Boolean | Billing switch. |
| SpanDailyCounters | No | Integer | Business system report limit. |
| ErrRateThreshold | No | Integer | Error rate warning line. when the average error rate of the application exceeds this threshold, the system will give an abnormal note. |
| SampleRate | No | Integer | Sampling rate (unit: %). |
| ErrorSample | No | Integer | Error sampling switch (0: off, 1: on). |
| SlowRequestSavedThreshold | No | Integer | Sampling slow call saving threshold (unit: ms). |
| IsRelatedLog | No | Integer | Log feature switch (0: off; 1: on). |
| LogRegion | No | String | Log region, which takes effect after the log feature is enabled. |
| LogTopicID | No | String | CLS log topic id, which takes effect after the log feature is enabled. |
| LogSet | No | String | Logset, which takes effect only after the log feature is enabled. |
| LogSource | No | String | Log source, which takes effect only after the log feature is enabled. |
| CustomShowTags.N | No | Array of String | List of custom display tags. |
| PayMode | No | Integer | Modify billing mode (1: prepaid, 0: pay-as-you-go). |
| ResponseDurationWarningThreshold | No | Integer | Response time warning line. |
| Free | No | Integer | Whether it is free (0 = paid edition; 1 = tsf restricted free edition; 2 = free edition), default 0. |
| IsRelatedDashboard | No | Integer | Whether to associate the dashboard (0 = off, 1 = on). |
| DashboardTopicID | No | String | Associated dashboard id, which takes effect after the associated dashboard is enabled. |
| IsSqlInjectionAnalysis | No | Integer | SQL injection detection switch (0: off, 1: on). |
| IsInstrumentationVulnerabilityScan | No | Integer | Whether to enable component vulnerability detection (0 = no, 1 = yes). |
| IsRemoteCommandExecutionAnalysis | No | Integer | Whether to enable detection of the remote command attack. |
| IsMemoryHijackingAnalysis | No | Integer | Whether to enable detection of Java webshell. |
| LogIndexType | No | Integer | CLS index type. (0 = full-text index; 1 = key-value index). |
| LogTraceIdKey | No | String | Index key of traceId. It is valid when the CLS index type is key-value index. |
| IsDeleteAnyFileAnalysis | No | Integer | Whether to enable the detection of deleting arbitrary files. (0 - disabled; 1: enabled.) |
| IsReadAnyFileAnalysis | No | Integer | Whether to enable the detection of reading arbitrary files. (0 - disabled; 1 - enabled.) |
| IsUploadAnyFileAnalysis | No | Integer | Whether to enable the detection of uploading arbitrary files. (0 - disabled; 1 - enabled.) |
| IsIncludeAnyFileAnalysis | No | Integer | Whether to enable the detection of the inclusion of arbitrary files. (0: disabled, 1: enabled.) |
| IsDirectoryTraversalAnalysis | No | Integer | Whether to enable traversal detection of the directory. (0 - disabled; 1 - enabled). |
| IsTemplateEngineInjectionAnalysis | No | Integer | Whether to enable template engine injection detection. (0: disabled; 1: enabled.) |
| IsScriptEngineInjectionAnalysis | No | Integer | Whether to enable script engine injection detection. (0 - disabled; 1 - enabled.) |
| IsExpressionInjectionAnalysis | No | Integer | Whether to enable expression injection detection. (0 - disabled; 1 - enabled.) |
| IsJNDIInjectionAnalysis | No | Integer | Whether to enable JNDI injection detection. (0 - disabled; 1 - enabled.) |
| IsJNIInjectionAnalysis | No | Integer | Whether to enable JNI injection detection. (0 - disabled, 1 - enabled). |
| IsWebshellBackdoorAnalysis | No | Integer | Whether to enable Webshell backdoor detection. (0 - disabled; 1 - enabled). |
| IsDeserializationAnalysis | No | Integer | Whether to enable deserialization detection. (0 - disabled; 1 - enabled). |
| UrlLongSegmentThreshold | No | Integer | Convergence threshold for URL long segments. |
| UrlNumberSegmentThreshold | No | Integer | Convergence threshold for URL numerical segments. |
| 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. |
This API is used to modify APM business system parameters.
POST / HTTP/1.1
Host: apm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyApmInstance
<Common request parameters>
{
"InstanceId": "apm-CVfliqa8U",
"Tags": [],
"Description": "Test Business System"
"TraceDuration": 0,
"Name": "Test Business System"
"OpenBilling": true,
"SpanDailyCounters": 1,
"ErrRateThreshold": 5,
"SampleRate": 50,
"ErrorSample": 1,
"SlowRequestSavedThreshold": 500,
"IsRelatedLog": 0,
"LogRegion": "",
"LogTopicID": "",
"LogSet": "",
"LogSource": ""
}{
"Response": {
"RequestId": "test-test-test"
}
}
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 |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| AuthFailure.UnauthorizedOperation | AuthFailure.UnauthorizedOperation |
| DryRunOperation | DryRun operation means the request will be successful, but the dryrun parameter is passed. |
| FailedOperation | Operation failed. |
| FailedOperation.AccessTagFail | Tag access failed. |
| FailedOperation.AppIdNotMatchInstanceInfo | The appid does not match the business system information. |
| FailedOperation.InstanceCannotModify | Modification of this business system is not allowed. |
| FailedOperation.InstanceIdIsEmpty | Business system id is empty. |
| FailedOperation.InstanceNotFound | The apm business system does not exist. |
| FailedOperation.InvalidParam | Invalid input parameter. |
| FailedOperation.InvalidRequest | Invalid request. |
| FailedOperation.SendRequest | Failed to send the query request. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
文档反馈