Domain name for API request: cls.intl.tencentcloudapi.com.
Create a query view
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: CreateSearchView. |
| Version | Yes | String | Common Params. The value used for this API: 2020-10-16. |
| Region | No | String | Common Params. This parameter is not required for this API. |
| LogsetId | Yes | String | log set id Logset to which the query view belongs. It is only used to manage the query view. Topics contained in the query view can be irrelevant to this logset. |
| LogsetRegion | Yes | String | Region of the logset Parameter format: ap-guangzhou |
| ViewName | Yes | String | View name Input parameter limit: Supports up to 255 characters. Cannot contain " |
| ViewType | Yes | String | View type Enumeration value:
The topic type in the field of Topics should match the ViewType. |
| Topics.N | Yes | Array of ViewSearchTopic | The query view contains topics, with a maximum of 10 topics. The topic information configured in the Topics field should match the ViewType. |
| ViewIdPrefix | No | String | Custom query view id prefix Parameter format: ViewId format of successfully created query view is ${ViewIdPrefix}-view |
| Description | No | String | Description |
| Parameter Name | Type | Description |
|---|---|---|
| ViewId | String | View 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. |
POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateSearchView
<Common request parameters>
{
"LogsetId": "b*******-diy-1254139626",
"LogsetRegion": "ap-**************",
"ViewName": "b*******_test_00001",
"ViewType": "log",
"Topics": [
{
"Region": "ap-guang*********",
"LogsetId": "1dbef1b5-2559-45fd-b41f-272ebd5a4535",
"TopicId": "b*******-diy-1254139626"
}
],
"ViewIdPrefix": "b*******_test_00001",
"Description": "b*******-tag-key-value test"
}
{
"Response": {
"ViewId": "b*******_test_00001-view",
"RequestId": "550f786a-3943-43f0-a88e-1c3222bee72d"
}
}
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. |
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| InvalidParameter | Incorrect parameter. |
| InvalidParameterValue | Incorrect parameter value. |
| MissingParameter | Missing parameter. |
| OperationDenied | Operation denied. |
| OperationDenied.ACLFailed | ACL verification failed. |
| OperationDenied.AccountDestroy | The account has been terminated. |
| OperationDenied.AccountIsolate | The account has overdue payments. |
| OperationDenied.AccountNotExists | The account does not exist. |
| ResourceNotFound.LogsetNotExist | The specified logset does not exist. |
| ResourceNotFound.TopicNotExist | The log topic does not exist. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan