{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mandiant/json-schema/mandiant-run-action-action-schema.json",
  "title": "run_action-action",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/mandiant-actions-api-openapi.yml#/components/schemas/run_action-action",
  "oneOf": [
    {
      "$ref": "#/$defs/generic_action"
    },
    {
      "$ref": "#/$defs/host_cli_with_user_profile"
    },
    {
      "$ref": "#/$defs/run_action-cloud_action"
    },
    {
      "$ref": "#/$defs/port_scan_action"
    }
  ],
  "$defs": {
    "generic_action": {
      "title": "Generic action",
      "type": "object",
      "properties": {
        "attack_node_id_1": {
          "type": "string",
          "description": "ID of the source Actor as a string"
        },
        "target_node_id_1": {
          "type": "string",
          "description": "ID of the destination Actor as a string"
        }
      }
    },
    "host_cli_with_user_profile": {
      "title": "Host CLI with User Profile",
      "type": "object",
      "properties": {
        "attack_node_id_1": {
          "type": "string",
          "description": "ID of the source Actor as a string"
        },
        "action_user_profile_id": {
          "type": "object",
          "description": "The key is the step that the Action User Profile will be attached to.  For single-Action runs, this is always \"1\".\n\nThe value is the ID of the User Profile that will be used.\n\nThis example shows a sample Action User Profile being used to run a single Action\n```json\n\"action_user_profile_id\": {\n  \"1\": 12\n}\n```\n"
        }
      }
    },
    "port_scan_action": {
      "title": "Port scan action",
      "type": "object",
      "required": [
        "attack_node_id_1",
        "target_node_id_1",
        "port_scan_sim_interface_1"
      ],
      "properties": {
        "attack_node_id_1": {
          "type": "string",
          "description": "ID of the source Actor as a string"
        },
        "target_node_id_1": {
          "type": "string",
          "description": "ID of the destination Actor as a string"
        },
        "port_scan_mgmt_interface_1": {
          "type": "string",
          "enum": [
            "on off"
          ],
          "description": "Use the management interface in the port scan. _Note: One port_scan_*_interface_1 has to be \"on\" for the scan to run._\n"
        },
        "port_scan_sim_interface_1": {
          "type": "string",
          "enum": [
            "on off"
          ],
          "description": "Use the test interface in the port scan. _Note: One port_scan_*_interface_1 has to be \"on\" for the scan to run._\n"
        },
        "port_scan_monitor_interface_1": {
          "type": "string",
          "enum": [
            "on off"
          ],
          "description": "Use the monitor interface in the port scan. _Note: One port_scan_*_interface_1 has to be \"on\" for the scan to run._\n"
        },
        "port_scan_both_directions_1": {
          "type": "string",
          "description": "Scan both directions between actors. _Note: will occur if value is present._\n"
        }
      }
    },
    "run_action-cloud_action": {
      "title": "Cloud action",
      "type": "object",
      "properties": {
        "attack_node_id_1": {
          "type": "string",
          "description": "ID of the source Actor as a string. There is no target actor for cloud actions"
        },
        "cloud_profile_ids": {
          "type": "object",
          "description": "A list of cloud profiles to use when running the action. \n\nThe key should be \"1\" and the value should be an array of numbers, representing a cloud profile by its ID. See the `/cloud_profiles` endpoint to get a list of valid ids. Use `null` to pass no cloud profile\n\nThis example passes cloud profile ID 1 to the first script, and \"No Profile\" for the second script:\n```json\n\"cloud_profile_ids\": [\n  [\n    [1, null]\n  ]\n]\n```\n"
        }
      }
    }
  }
}