규칙 목록 조회
- 인쇄
- PDF
규칙 목록 조회
- 인쇄
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
개요
규칙 목록을 조회합니다
요청
요청 URL
GET {CLOUD_IOT_CORE_API_URL}/rules
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
요청 파라미터
파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
---|---|---|---|---|
page | No | int | 페이지 번호. 기본값 : 0 | |
size | No | int | 결과 목록 크기. 기본값: 10 |
응답
응답 바디
{
"status": "string",
"body": {
"content": [
{
"name": "string",
"description": "string",
"status": "string",
"query": "string",
"modifyTime": "localDateTime",
"registerTime": "localDateTime",
"filterTopic": "string"
}
],
"page": {
"size": "long",
"totalElements": "long",
"totalPages": "long",
"number": "long"
}
}
}
항목 | 타입 | 설명 |
---|---|---|
status | string | 응답 성공 여부 |
body.content[].name | string | 규칙 이름 |
body.content[].description | string | 규칙 설명 |
body.content[].status | string | 규칙 상태 |
body.content[].query | string | 규칙 쿼리 |
body.content[].modifyTime | localDateTime | 규칙 최근 수정날짜 |
body.content[].registerTime | localDateTime | 규칙 생성날짜 |
body.content[].filterTopic | string | 규칙 토픽 |
예시
{
"status": "SUCCESS",
"body": {
"content": [
{
"name": "lux",
"description": "turn off",
"status": "ENABLE",
"query": "select lux, bulb_id from \"myhome100/abc/+/abc\" where lux > -1",
"modifyTime": "2020-09-25 20:10:56",
"registerTime": "2020-09-25 20:10:56",
"filterTopic": "myhome100/abc/+/abc"
}
],
"page": {
"size": 10,
"totalElements": 1,
"totalPages": 1,
"number": 0
}
}
}
이 문서가 도움이 되었습니까?