tencent cloud

ModifyGeneralApmApplicationConfig
最后更新时间:2025-11-14 16:38:04
ModifyGeneralApmApplicationConfig
最后更新时间: 2025-11-14 16:38:04

1. API Description

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

OpenAPI available for external use. Customers can flexibly specify the fields to be modified, and then add the list of services to be modified.

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: ModifyGeneralApmApplicationConfig.
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.
Tags.N Yes Array of ApmTag Fields to be modified. the key and value respectively specify the field name and field value.
.
For specific fields, please refer to.
ServiceNames.N Yes Array of String Name of the application list that requires configuration modification.

3. Output Parameters

Parameter Name Type Description
Message String Description of the returned value.
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 Application Configuration Information

Customers hope to be able to modify the application configuration information in batches through the API.

Input Example

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

{
    "Tags": [
        {
            "Key": "UrlConvergence",
            "Value": "RPCServer/market.MarketServiceleetcode9(.*?)"
        },
        {
            "Key": "UrlConvergenceThreshold",
            "Value": "600"
        },
        {
            "Key": "UrlConvergenceSwitch",
            "Value": "1"
        },
        {
            "Key": "AgentEnable",
            "Value": "true"
        }
    ],
    "ServiceNames": [
        "stock-service",
        "profile-service28",
        "profile-service08"
    ],
    "InstanceId": "apm-059oXBfTL"
}

Output Example

{
    "Response": {
        "RequestId": "test-test-test0980990"
    }
}

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
FailedOperation Operation failed.
FailedOperation.ApmCredentialNotExist The token information does not exist.
FailedOperation.DuplicateService Do not enter duplicate application names.
FailedOperation.DuplicateTagField Do not enter duplicate Tag names.
FailedOperation.InvalidRegex Invalid regular expression.
FailedOperation.InvalidTagField Invalid key specified in the tag.
FailedOperation.InvalidToken Invalid token.
FailedOperation.ServiceListExceedingLimitNumber The number of applications exceeds 10.
FailedOperation.ServiceListNull Application list is empty.
本页内容是否解决了您的问题?
您也可以 联系销售 提交工单 以寻求帮助。

文档反馈