接口请求域名: apm.intl.tencentcloudapi.com 。
对外开放的openApi,客户可以灵活的指定需要修改的字段,再加入需要修改的服务列表.
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:ModifyGeneralApmApplicationConfig。 |
| Version | 是 | String | 公共参数,本接口取值:2021-06-22。 |
| Region | 是 | String | 公共参数,详见产品支持的 地域列表。 |
| InstanceId | 是 | String | 业务系统Id |
| Tags.N | 是 | Array of ApmTag | 需要修改的字段key value分别指定字段名、字段值 具体字段请见 |
| ServiceNames.N | 是 | Array of String | 需要修改配置的应用列表名称 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| Message | String | 返回值描述 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
客户希望可以通过Api批量修改应用的配置信息
POST / HTTP/1.1
Host: apm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyGeneralApmApplicationConfig
<公共请求参数>
{
"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"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| FailedOperation | 操作失败。 |
| FailedOperation.ApmCredentialNotExist | token信息不存在。 |
| FailedOperation.DuplicateService | 请勿填写重复的应用名 |
| FailedOperation.DuplicateTagField | 请勿填写重复的标签名 |
| FailedOperation.InvalidRegex | 非法的正则表达式。 |
| FailedOperation.InvalidTagField | Tag中指定了无效的Key |
| FailedOperation.InvalidToken | 不合法token |
| FailedOperation.ServiceListExceedingLimitNumber | 应用数超过10个 |
| FailedOperation.ServiceListNull | 应用列表为空 |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback