Domain name for API request: apm.intl.tencentcloudapi.com.
This API is used to create a business purchase in 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: CreateApmInstance. |
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. |
Name | Yes | String | Business system name. |
Description | No | String | Business system description information. |
TraceDuration | No | Integer | Retention period of trace data (unit: days, the default storage duration is 3 days). |
Tags.N | No | Array of ApmTag | Business system tag list. |
SpanDailyCounters | No | Integer | The report quota value of the business system. the default value is 0, indicating no limit on the report quota. (obsolete). |
PayMode | No | Integer | Billing model of the business system (0: pay-as-you-go, 1: prepaid). |
Free | No | Integer | Whether it is a free edition business system (0 = paid edition; 1 = tsf restricted free edition; 2 = free edition). |
Parameter Name | Type | Description |
---|---|---|
InstanceId | String | Business system id. |
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. |
Create an APM business system
POST / HTTP/1.1
Host: apm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateApmInstance
<Common request parameters>
{
"Name": "Observability-Test"
"Description": "Testing environment"
"Tags": [
{
"Key": "appid",
"Value": "123123422"
}
]
}
{
"Response": {
"InstanceId": "apm-CVfliqa8U",
"RequestId": "49fktc24elkfi4a1mkyir-9t2pt2stlx"
}
}
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.InvalidParam | Invalid input parameter. |
FailedOperation.InvalidRequest | Invalid request. |
FailedOperation.RegionNotSupport | This region is not supported. |
FailedOperation.SendRequest | Failed to send the query request. |