调用ListDefaultCollectorConfigurations,获取采集器的默认配置文件。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
elasticsearch:ListDefaultCollectorConfigurations |
get |
*全部资源
|
无 | 无 |
请求语法
GET /openapi/beats/default-configurations HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| resType |
string |
是 |
采集器类型。可选值:
|
fileBeat |
| resVersion |
string |
是 |
采集器版本。采集器部署的机器类型不同,可选的版本也不同,具体说明如下:
|
6.8.5_with_community |
| sourceType |
string |
否 |
指定采集器部署机器的类型,不填则返回全部。可选值:
|
ECS |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
8BAE3C32-8E4A-47D6-B4B0-95B5DE643BF5 |
| Result |
array<object> |
返回结果。 |
|
|
object |
|||
| content |
string |
配置文件内容。 |
- key: log\n title: Log file content\n description: >\n Contains log file lines.\n fields:\n ...... |
| fileName |
string |
配置文件名称。 |
fields.yml |
示例
正常返回示例
JSON格式
{
"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"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。