# Deep Security Manager REST API

## Name: query

A Smart Folder query

JSON Example:
    {"query":
     {
       "key": 'GENERAL_HOST_NAME' | 'GENERAL_DISPLAY_NAME' | 'GENERAL_GROUP_NAME' | 'GENERAL_OS' | 'GENERAL_IP' | 'GENERAL_POLICY' | 'GENERAL_AGENT_ACTIVATED' | 'GENERAL_DOCKER_RUNNING' | 'AWS_TAG' | 'AWS_SECURITY_GROUP' | 'AWS_SECURITY_GROUP_ID' | 'AWS_AMI_ID' | 'AWS_ACCOUNT_ID' | 'AWS_ACCOUNT_ALIAS' | 'AWS_REGION_ID' | 'AWS_REGION_NAME' | 'AWS_VPC_ID' | 'AWS_SUBNET_ID' | 'AZURE_SUBSCRIPTION_NAME' | 'AZURE_RESOURCE_GROUP' | 'VCENTER_NAME' | 'VCENTER_DATACENTER' | 'VCENTER_FOLDER' | 'VCENTER_ESX_HOST' | 'VCENTER_CUSTOM_ATTRIBUTE' | 'VCLOUD_NAME' | 'VCLOUD_DATACENTER' | 'VCLOUD_APPLICATION' | 'DIRECTORY_NAME' | 'DIRECTORY_FOLDER',
       "operator": 'EQUALS' | 'NOT_EQUALS' | 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'ANY_VALUE' | 'IN_RANGE' | 'NOT_IN_RANGE',
       "secondaryOperator": 'EQUALS' | 'NOT_EQUALS' | 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'ANY_VALUE' | 'IN_RANGE' | 'NOT_IN_RANGE',
       "secondaryValue": String,
       "value": String,
     }
    }

Elements
Name | Type | Required | Default Value | Description
--- | --- | --- | --- | ---
key | 'GENERAL_HOST_NAME' | 'GENERAL_DISPLAY_NAME' | 'GENERAL_GROUP_NAME' | 'GENERAL_OS' | 'GENERAL_IP' | 'GENERAL_POLICY' | 'GENERAL_AGENT_ACTIVATED' | 'GENERAL_DOCKER_RUNNING' | 'AWS_TAG' | 'AWS_SECURITY_GROUP' | 'AWS_SECURITY_GROUP_ID' | 'AWS_AMI_ID' | 'AWS_ACCOUNT_ID' | 'AWS_ACCOUNT_ALIAS' | 'AWS_REGION_ID' | 'AWS_REGION_NAME' | 'AWS_VPC_ID' | 'AWS_SUBNET_ID' | 'AZURE_SUBSCRIPTION_NAME' | 'AZURE_RESOURCE_GROUP' | 'VCENTER_NAME' | 'VCENTER_DATACENTER' | 'VCENTER_FOLDER' | 'VCENTER_ESX_HOST' | 'VCENTER_CUSTOM_ATTRIBUTE' | 'VCLOUD_NAME' | 'VCLOUD_DATACENTER' | 'VCLOUD_APPLICATION' | 'DIRECTORY_NAME' | 'DIRECTORY_FOLDER' | Yes | `` | Gets the key that specifies the type of Query.
operator | 'EQUALS' | 'NOT_EQUALS' | 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'ANY_VALUE' | 'IN_RANGE' | 'NOT_IN_RANGE' | Yes | `` | Gets the operator of the Query.
secondaryOperator | 'EQUALS' | 'NOT_EQUALS' | 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'ANY_VALUE' | 'IN_RANGE' | 'NOT_IN_RANGE' | No | `` | Gets the secondary operator of the Query.
secondaryValue | String | No | `` | Gets the secondary value of the Query.
value | String | Yes | `` | Gets the value of the Query.

Copyright © 2017 Trend Micro Inc. All Rights Reserved.