获取OpenSearch应用的数据采集清单。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
GET /v4/openapi/app-groups/[appGroupIdentity]/data-collections HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
appGroupIdentity | String | Path | 是 | my_app_group_name |
应用名称 |
pageNumber | Integer | Query | 否 | 1 |
页码,默认 pageNumber = 1 |
pageSize | Integer | Query | 否 | 10 |
每页返回数目,默认 pageSize = 10 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
requestId | String | 959D8782-B130-95EB-86CC-1F6ED447981F |
请求ID |
result | Array of result |
数据采集信息 |
|
created | Integer | 1581065837 |
创建时间 |
dataCollectionType | String | BEHAVIOR |
数据采集的类型
|
id | String | 286 |
数据采集ID |
industryName | String | GENERAL |
行业名称
|
name | String | os_function_test_v1 |
数据采集名称 |
status | Integer | 2 |
状态
|
sundialId | String | 1755 |
sundial的ID |
type | String | server |
数据采集端的类型
注:目前只支持 server |
updated | Integer | 1581065904 |
更新时间 |
totalCount | Integer | 1 |
总条数 |
示例
请求示例
GET /v4/openapi/app-groups/os_function_test_v1/data-collections
正常返回示例
XML
格式
<requestId>959D8782-B130-95EB-86CC-1F6ED447981F</requestId>
<totalCount>1</totalCount>
<result>
<id>286</id>
<name>os_function_test_v1</name>
<type>server</type>
<status>2</status>
<dataCollectionType>BEHAVIOR</dataCollectionType>
<industryName>GENERAL</industryName>
<created>1581065837</created>
<updated>1581065904</updated>
<sundialId>1755</sundialId>
</result>
JSON
格式
{
"requestId": "959D8782-B130-95EB-86CC-1F6ED447981F",
"totalCount": 1,
"result": {
"id": 286,
"name": "os_function_test_v1",
"type": "server",
"status": 2,
"dataCollectionType": "BEHAVIOR",
"industryName": "GENERAL",
"created": 1581065837,
"updated": 1581065904,
"sundialId": 1755
}
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交