# Deep Security Manager REST API

## Name: Condition

A condition that must be true for an event-based task to start.

JSON Example:
    {"Condition":
     {
       "field": 'hostname' | 'vcenter' | 'cloudProvider' | 'securityGroup' | 'imageId' | 'esx' | 'folder' | 'platform' | 'applianceProtectionAvailable' | 'applianceProtectionActivated' | 'lastUsedIP' | 'tag' | 'nsxSecurityGroup',
       "key": String,
       "value": String,
     }
    }

Elements
Name | Type | Required | Default Value | Description
--- | --- | --- | --- | ---
field | 'hostname' | 'vcenter' | 'cloudProvider' | 'securityGroup' | 'imageId' | 'esx' | 'folder' | 'platform' | 'applianceProtectionAvailable' | 'applianceProtectionActivated' | 'lastUsedIP' | 'tag' | 'nsxSecurityGroup' | Yes | `` | Get the event field to match against when evaluating this condition.
key | String | No | `` | Get the key to match when evaluating this condition if the condition is matching against a key/value field.
value | String | Yes | `` | Get the value to match when evaluating this condition.

Copyright © 2017 Trend Micro Inc. All Rights Reserved.