ListDefaultCollectorConfigurations
Invokes ListDefaultCollectorConfigurations to retrieve the default configuration file of a collector.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:ListDefaultCollectorConfigurations |
get |
*All Resource
|
None | None |
Request syntax
GET /openapi/beats/default-configurations HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| resType |
string |
Yes |
The collector type. Valid values:
|
fileBeat |
| resVersion |
string |
Yes |
The collector version. The available versions vary depending on the machine type on which the collector is deployed. Valid values:
|
6.8.5_with_community |
| sourceType |
string |
No |
The type of machine on which the collector is deployed. If you do not specify this parameter, all types are returned. Valid values:
|
ECS |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
8BAE3C32-8E4A-47D6-B4B0-95B5DE643BF5 |
| Result |
array<object> |
The returned results. |
|
|
object |
|||
| content |
string |
The content of the configuration file. |
- key: log\n title: Log file content\n description: >\n Contains log file lines.\n fields:\n ...... |
| fileName |
string |
The name of the configuration file. |
fields.yml |
Examples
Success response
JSON format
{
"RequestId": "8BAE3C32-8E4A-47D6-B4B0-95B5DE643BF5",
"Result": [
{
"content": "- key: log\\n title: Log file content\\n description: >\\n Contains log file lines.\\n fields:\\n ......",
"fileName": "fields.yml"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ComponentCodeValueError | component value is disable | |
| 401 | UserNotOpen | Aliyun account is not open elasticsearch | |
| 401 | StsRoleAccountNoPermission | Role account has no permission or expired | |
| 401 | SubAccountNoPermission | Aliyun sub account has no permission, please authorize your sub account in Aliyun RAM | |
| 401 | UserUnauthorized | Authentication required |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.