View rule list
    • PDF

    View rule list

    • PDF

    Article Summary

    Summary

    Views a list of rules.

    Request

    Request 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}
    

    Request parameters

    Parameter nameRequired statusTypeRestrictionsDescription
    pageNointPage number. Default: 0
    sizeNointSize of result list. Default: 10

    Response

    Response body

    {
        "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"
            }
        }
    }
    
    CategoryTypeDescription
    statusstringIndicates whether response was successful
    body.content[].namestringName of the trigger
    body.content[].descriptionstringDescription of the trigger
    body.content[].statusstringRule status
    body.content[].querystringTrigger query
    body.content[].modifyTimelocalDateTimeTrigger last modified date
    body.content[].registerTimelocalDateTimeTrigger creation date
    body.content[].filterTopicstringTrigger topic

    Example

    {
        "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
            }
        }
    }
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.