<gh_stars>10-100
# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json


class Component:
    DESCRIPTION = "Perform actions relating to your SentinelOne agents. This will help manage your assets connected to your SentinelOne console. Documentation for these actions can be found at https://yoururl.sentinelone.net/api-doc/api-details?category=agent-actions"


class Input:
    ACTION = "action"
    FILTER = "filter"
    

class Output:
    AFFECTED = "affected"
    

class AgentsActionInput(insightconnect_plugin_runtime.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "action": {
      "type": "string",
      "title": "Agent Action",
      "description": "Agent action to run",
      "enum": [
        "abort-scan",
        "connect",
        "decommission",
        "disconnect",
        "fetch-logs",
        "initiate-scan",
        "restart-machine",
        "shutdown",
        "uninstall"
      ],
      "order": 2
    },
    "filter": {
      "type": "object",
      "title": "Filter JSON",
      "description": "Applied filter - only matched agents will be affected by the requested action. Leave empty to apply the action on all applicable agents. Note - decommission, disconnect, restart-machine, shutdown and uninstall actions require that one of the following filter arguments be supplied - ids, groupIds, or filterId",
      "default": "{}",
      "order": 1
    }
  },
  "required": [
    "action",
    "filter"
  ]
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


class AgentsActionOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "affected": {
      "type": "integer",
      "title": "Affected",
      "description": "Number of entities affected by the requested operation",
      "order": 1
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)

# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json


class Component:
    DESCRIPTION = "Perform actions relating to your SentinelOne agents. This will help manage your assets connected to your SentinelOne console. Documentation for these actions can be found at https://yoururl.sentinelone.net/api-doc/api-details?category=agent-actions"


class Input:
    ACTION = "action"
    FILTER = "filter"
    

class Output:
    AFFECTED = "affected"
    

class AgentsActionInput(insightconnect_plugin_runtime.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "action": {
      "type": "string",
      "title": "Agent Action",
      "description": "Agent action to run",
      "enum": [
        "abort-scan",
        "connect",
        "decommission",
        "disconnect",
        "fetch-logs",
        "initiate-scan",
        "restart-machine",
        "shutdown",
        "uninstall"
      ],
      "order": 2
    },
    "filter": {
      "type": "object",
      "title": "Filter JSON",
      "description": "Applied filter - only matched agents will be affected by the requested action. Leave empty to apply the action on all applicable agents. Note - decommission, disconnect, restart-machine, shutdown and uninstall actions require that one of the following filter arguments be supplied - ids, groupIds, or filterId",
      "default": "{}",
      "order": 1
    }
  },
  "required": [
    "action",
    "filter"
  ]
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


class AgentsActionOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "affected": {
      "type": "integer",
      "title": "Affected",
      "description": "Number of entities affected by the requested operation",
      "order": 1
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)
# GENERATED BY KOMAND SDK - DO NOT EDIT {   "type": "object",   "title": "Variables",   "properties": {     "action": {       "type": "string",       "title": "Agent Action",       "description": "Agent action to run",       "enum": [         "abort-scan",         "connect",         "decommission",         "disconnect",         "fetch-logs",         "initiate-scan",         "restart-machine",         "shutdown",         "uninstall"       ],       "order": 2     },     "filter": {       "type": "object",       "title": "Filter JSON",       "description": "Applied filter - only matched agents will be affected by the requested action. Leave empty to apply the action on all applicable agents. Note - decommission, disconnect, restart-machine, shutdown and uninstall actions require that one of the following filter arguments be supplied - ids, groupIds, or filterId",       "default": "{}",       "order": 1     }   },   "required": [     "action",     "filter"   ] } {   "type": "object",   "title": "Variables",   "properties": {     "affected": {       "type": "integer",       "title": "Affected",       "description": "Number of entities affected by the requested operation",       "order": 1     }   } }