ルールの照会
- 印刷する
- PDF
ルールの照会
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
概要
ルールを照会します。
リクエスト
リクエストURL
GET {CLOUD_IOT_CORE_API_URL}/rules/{ruleName}
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}
Path Variables
項目 | 必須の有無 | タイプ | 説明 |
---|---|---|---|
ruleName | Yes | string | ルール名 |
レスポンス
レスポンスボディ
{
"status": "string",
"body": {
"rule": {
"name": "string",
"description": "string",
"status": "string",
"query": "string",
"modifyTime": "localDateTime",
"registerTime": "localDateTime",
"filterTopic": "string"
},
"actions": {
"matchActionList": [
{
"type": "string",
"relatedProduct": "string",
"displayName": "string",
"modifyTime": "localDateTime",
"registerTime": "localDateTime",
"relatedProductAction": "json"
}
],
"errorAction": {
"type": "string",
"relatedProduct": "string",
"displayName": "string",
"modifyTime": "localDateTime",
"registerTime": "localDateTime",
"relatedProductAction": "json"
}
}
}
}
項目 | タイプ | 説明 |
---|---|---|
status | string | レスポンスの成否 |
body.rule.name | string | ルール名 |
body.rule.description | string | ルール説明 |
body.rule.status | string | ルールの状態 |
body.rule.query | string | ルールクエリ |
body.rule.modifyTime | localDateTime | 最終修正日 |
body.rule.registerTime | localDateTime | ルールの作成日 |
body.rule.filterTopic | string | ルールトピック |
body.actions.matchActionList[].type | string | アクションロール(M: matchedAction、E: errorAction) |
body.actions.matchActionList[].relatedProduct | string | アクションの種類 |
body.actions.matchActionList[].displayName | string | アクションの代表名 |
body.actions.matchActionList[].modifyTime | string | アクションの最終修正日 |
body.actions.matchActionList[].registerTime | string | アクションの作成日 |
body.actions.matchActionList[].relatedProductAction | json | アクションの詳細 |
body.actions.errorAction.type | string | アクションロール(M: matchedAction、E: errorAction) |
body.actions.errorAction.relatedProduct | string | エラーアクションの種類 |
body.actions.errorAction.displayName | string | エラーアクションの代表名 |
body.actions.errorAction.modifyTime | string | エラーアクションの最終修正日 |
body.actions.errorAction.registerTime | string | エラーアクションの作成日 |
body.actions.errorAction.relatedProductAction | json | エラーアクションの詳細 |
レスポンス例
{
"status": "SUCCESS",
"body": {
"rule": {
"name": "lux",
"description": "turn off",
"status": "ENABLE",
"query": "select lux, bulb_id from \"myhome100/abc/+/abc\" where lux > -1",
"modifyTime": "2020-09-27 12:52:08",
"registerTime": "2020-09-27 12:52:08",
"filterTopic": "myhome100/abc/+/abc"
},
"actions": {
"matchActionList": [
{
"type": "M",
"relatedProduct": "REPUBLISH",
"displayName": "republish_a",
"modifyTime": "2020-09-27 12:52:08",
"registerTime": "2020-09-27 12:52:08",
"relatedProductAction": {
"topic": "republish_a",
"version": 1
}
}
],
"errorAction": {
"type": "E",
"relatedProduct": "REPUBLISH",
"displayName": "republish_a",
"modifyTime": "2020-09-27 12:52:08",
"registerTime": "2020-09-27 12:52:08",
"relatedProductAction": {
"topic": "republish_a",
"version": 1
}
}
}
}
}
この記事は役に立ちましたか?