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.
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 | No | Array of String | Name of the application list that requires configuration modification. |
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. |
Customers hope to be able to modify the application configuration information in batches through the API.
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"
}
{
"Response": {
"RequestId": "test-test-test0980990"
}
}
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. |
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. |