{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/turbonomic/json-schema/turbonomic-action-api-input-dto-schema.json",
  "title": "ActionApiInputDTO",
  "description": "Model to describe a Filter for Actions",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/turbonomic-openapi.yml#/components/schemas/ActionApiInputDTO",
  "type": "object",
  "required": [
    "startTime"
  ],
  "properties": {
    "actionStateList": {
      "type": "array",
      "description": "List of States to filter.",
      "items": {
        "type": "string",
        "enum": [
          "ACCEPTED",
          "REJECTED",
          "PRE_IN_PROGRESS",
          "POST_IN_PROGRESS",
          "IN_PROGRESS",
          "SUCCEEDED",
          "FAILED",
          "DISABLED",
          "QUEUED",
          "CLEARED",
          "BLOCKED",
          "SCHEDULED",
          "ACCOUNTING",
          "SUCCEEDED_EXTERNALLY",
          "READY",
          "FAILING",
          "BEFORE_EXEC",
          "IN_PROGRESS_NON_CRITICAL"
        ]
      }
    },
    "actionModeList": {
      "type": "array",
      "description": "List of Modes to filter",
      "items": {
        "type": "string",
        "enum": [
          "DISABLED",
          "RECOMMEND",
          "EXTERNAL_APPROVAL",
          "MANUAL",
          "AUTOMATIC",
          "COLLECTION"
        ]
      }
    },
    "riskSeverityList": {
      "type": "array",
      "description": "List of Risk Severities to filter",
      "items": {
        "type": "string"
      }
    },
    "riskSubCategoryList": {
      "type": "array",
      "description": "List of Risk Severities to filter",
      "items": {
        "type": "string"
      }
    },
    "actionRelationTypeFilter": {
      "type": "array",
      "description": "Filters the main list of actions based on the types of relationships they have to other actions.",
      "items": {
        "type": "string",
        "enum": [
          "NONE",
          "BLOCKED_BY",
          "BLOCKING",
          "CAUSED_BY",
          "CAUSING"
        ]
      }
    },
    "environmentType": {
      "type": "string",
      "description": "Filter the actions by Environment Type",
      "enum": [
        "ONPREM",
        "CLOUD"
      ]
    },
    "costType": {
      "type": "string",
      "description": "Filter the actions by cost Type",
      "enum": [
        "SAVING",
        "INVESTMENT"
      ]
    },
    "descriptionQuery": {
      "$ref": "#/$defs/QueryInputApiDTO"
    },
    "riskQuery": {
      "$ref": "#/$defs/QueryInputApiDTO"
    },
    "executionCharacteristics": {
      "$ref": "#/$defs/ActionExecutionCharacteristicInputApiDTO"
    },
    "savingsAmountRange": {
      "$ref": "#/$defs/RangeInputApiDTO"
    },
    "effectiveCostSavingsAmountRange": {
      "$ref": "#/$defs/RangeInputApiDTO"
    },
    "hasSchedule": {
      "type": "boolean",
      "description": "If true, only actions that have an associated execution schedule will be returned."
    },
    "hasPrerequisites": {
      "type": "boolean",
      "description": "If true, only actions that have a prerequisite preventing execution of the action will be returned."
    },
    "startTime": {
      "type": "string",
      "description": "Start time of the period to filter, based on Actions Creation Time"
    },
    "endTime": {
      "type": "string",
      "description": "End time of the period to filter, based on Actions Creation Time"
    },
    "cleared": {
      "type": "boolean",
      "description": "Filter by Actions Executed"
    },
    "cumulative": {
      "type": "boolean",
      "description": "Show the action savings as cumulative values"
    },
    "hasReservedInstance": {
      "type": "boolean",
      "description": "Filter the actions by whether having related reserved instance"
    },
    "excludeNotifications": {
      "type": "boolean",
      "description": "Exclude the notifications from the result"
    },
    "limitEntities": {
      "type": "integer",
      "format": "int32",
      "description": "Limit number of entities in the result"
    },
    "detailLevel": {
      "type": "string",
      "description": "Detail level of the Action, 'standard' is the default value",
      "enum": [
        "STANDARD",
        "EXECUTION"
      ]
    },
    "vendorId": {
      "type": "string",
      "description": "Vendor Id indicating the related vendor to the entity in the actions"
    },
    "actionTypeList": {
      "type": "array",
      "description": "List of Types to filter",
      "items": {
        "type": "string",
        "enum": [
          "NONE",
          "START",
          "MOVE",
          "SCALE",
          "ALLOCATE",
          "SUSPEND",
          "TERMINATE",
          "SPAWN",
          "ADD_PROVIDER",
          "CHANGE",
          "REMOVE_PROVIDER",
          "PROVISION",
          "RECONFIGURE",
          "RESIZE",
          "RESIZE_CAPACITY",
          "WARN",
          "RECONFIGURE_THRESHOLD",
          "DELETE",
          "RIGHT_SIZE",
          "RESERVE_ON_PM",
          "RESERVE_ON_DS",
          "RESIZE_FOR_EFFICIENCY",
          "RESIZE_FOR_PERFORMANCE",
          "CROSS_TARGET_MOVE",
          "MOVE_TOGETHER",
          "ACTIVATE",
          "DEACTIVATE",
          "BUY_RI",
          "GRANT"
        ]
      }
    },
    "relatedEntityTypes": {
      "type": "array",
      "description": "Related Entity Types to include from the supply chain for this entity",
      "items": {
        "type": "string"
      }
    },
    "actionDecisionFilter": {
      "type": "string",
      "description": "Filter actions based on action decision",
      "enum": [
        "ALL",
        "TURBONOMIC",
        "EXTERNAL"
      ]
    },
    "targetEntityTypes": {
      "type": "array",
      "description": "Filter the actions where the target entity of the action matches the provided list of entity types",
      "items": {
        "type": "string"
      }
    },
    "relatedCloudServiceProviderIds": {
      "type": "array",
      "description": "Filter the actions by the related Cloud Service Providers.",
      "items": {
        "type": "string"
      }
    },
    "groupBy": {
      "type": "array",
      "description": "Fields used to Group the Stats",
      "items": {
        "type": "string"
      }
    },
    "effectiveCostFilter": {
      "$ref": "#/$defs/EffectiveCostFilterApiDTO"
    },
    "tagValueFilter": {
      "$ref": "#/$defs/StringListFilterApiDTO"
    },
    "virtualDiskDisplayName": {
      "$ref": "#/$defs/QueryInputApiDTO"
    },
    "clusterNameFilter": {
      "type": "array",
      "description": "Filter actions based on cluster names",
      "items": {
        "type": "string"
      }
    },
    "namespaceFilter": {
      "type": "array",
      "description": "Filter actions based on namespaces",
      "items": {
        "type": "string"
      }
    },
    "onlyOverProvisioned": {
      "type": "boolean",
      "description": "Show only over-provisioned workload actions"
    },
    "cloudServiceName": {
      "type": "string",
      "description": "Filter actions by cloud service name",
      "enum": [
        "AZURE_APP_SERVICE",
        "AMAZON_EC2_AUTO_SCALING",
        "AZURE_VIRTUAL_MACHINE_SCALE_SETS",
        "GCP_MANAGED_INSTANCE_GROUP"
      ]
    },
    "userNameFilter": {
      "type": "array",
      "description": "Filter actions by the user name of the executor. Supports partial matching.",
      "items": {
        "type": "string"
      }
    },
    "scheduleNameFilter": {
      "type": "array",
      "description": "Filter actions based on schedule names. Supports partial matching.",
      "items": {
        "type": "string"
      }
    },
    "impactedCommodityFilter": {
      "type": "array",
      "description": "Filter actions by commodity type. Only actions affecting the selected commodities are returned.",
      "items": {
        "type": "string",
        "enum": [
          "ACTION_PERMIT",
          "ACTIVE_SESSIONS",
          "APPLICATION",
          "BALLOONING",
          "BUFFER_COMMODITY",
          "CLUSTER",
          "COLLECTION_TIME",
          "COOLING",
          "CONNECTION",
          "COUPON",
          "CPU",
          "CPU_ALLOCATION",
          "CPU_PROVISIONED",
          "CPU_REQUEST_ALLOCATION",
          "CROSS_CLOUD_MOVE_SVC",
          "CROSS_CLUSTER_MOVE_SVC",
          "DATACENTER",
          "DATASTORE",
          "DB_CACHE_HIT_RATE",
          "DB_MEM",
          "DISK_ARRAY_ACCESS",
          "DRS_SEGMENTATION",
          "DSPM_ACCESS",
          "EXTENT",
          "FLOW",
          "FLOW_ALLOCATION",
          "HEAP",
          "HOST_LUN_ACCESS",
          "IMAGE_CPU",
          "IMAGE_MEM",
          "IMAGE_STORAGE",
          "INSTANCE_DISK_SIZE",
          "INSTANCE_DISK_TYPE",
          "IO_THROUGHPUT",
          "LICENSE_ACCESS",
          "MEM",
          "MEM_ALLOCATION",
          "MEM_REQUEST_ALLOCATION",
          "MEM_PROVISIONED",
          "NET_THROUGHPUT",
          "NETWORK",
          "NUM_DISK",
          "NUM_VOL",
          "NUMBER_CONSUMERS",
          "NUM_VCORE",
          "POOL_CPU",
          "POOL_MEM",
          "POOL_STORAGE",
          "PORT_CHANNEL",
          "POWER",
          "Q16_VCPU",
          "Q1_VCPU",
          "Q2_VCPU",
          "Q32_VCPU",
          "Q4_VCPU",
          "Q64_VCPU",
          "Q8_VCPU",
          "RESPONSE_TIME",
          "SAME_CLUSTER_MOVE_SVC",
          "SEGMENTATION",
          "SLA_COMMODITY",
          "SOFTWARE_LICENSE_COMMODITY",
          "SPACE",
          "STORAGE_ACCESS",
          "STORAGE_ALLOCATION",
          "STORAGE_AMOUNT",
          "STORAGE_CLUSTER",
          "STORAGE_LATENCY",
          "STORAGE_PROVISIONED",
          "SWAPPING",
          "THREADS",
          "TRANSACTION",
          "TRANSACTION_LOG",
          "VCPU",
          "VCPU_LIMIT_QUOTA",
          "VCPU_REQUEST",
          "VCPU_REQUEST_QUOTA",
          "VDC",
          "VMEM",
          "VMEM_LIMIT_QUOTA",
          "VMEM_REQUEST",
          "VMEM_REQUEST_QUOTA",
          "VMPM_ACCESS",
          "VSTORAGE",
          "ZONE",
          "LICENSE_COMMODITY",
          "Q3_VCPU",
          "NUMBER_CONSUMERS_PM",
          "Q6_VCPU",
          "Q7_VCPU",
          "QN_VCPU",
          "RIGHT_SIZE_SVC",
          "RIGHT_SIZE_DOWN",
          "MOVE",
          "Q5_VCPU",
          "STORAGE",
          "NUMBER_CONSUMERS_STORAGE",
          "ACCESS",
          "RIGHT_SIZE_UP",
          "VAPP_ACCESS",
          "HOT_STORAGE",
          "HA_COMMODITY",
          "NETWORK_POLICY",
          "SERVICE_LEVEL_CLUSTER",
          "PROCESSING_UNITS",
          "TENANCY_ACCESS",
          "TEMPLATE_ACCESS",
          "BURST_BALANCE",
          "DESIRED_COUPON",
          "NETWORK_INTERFACE_COUNT",
          "BICLIQUE",
          "TAINT",
          "LABEL",
          "PEER_TO_PEER_AFFINITY",
          "PEER_TO_PEER_ANTI_AFFINITY",
          "ENERGY",
          "CARBON",
          "VIRTUAL_PROCESSORS",
          "CPU_READY",
          "PROCESSING_UNITS_PROVISIONED",
          "HARDWARE_VERSION",
          "GPU_MEM_ALLOCATION",
          "GPU_MEM",
          "GPU_COUNT",
          "GPU_TENSOR_ENGINE",
          "GPU_FP64_ENGINE",
          "GPU_FP32_ENGINE",
          "GPU_FP16_ENGINE",
          "GPU_MEMORY_BANDWIDTH",
          "STORAGE_ACCESS_OVERALL_VM_MAX_READ",
          "STORAGE_ACCESS_OVERALL_VM_MAX_WRITE",
          "STORAGE_ACCESS_OVERALL_VM_MAX_READWRITE",
          "IO_THROUGHPUT_OVERALL_VM_MAX_READ",
          "IO_THROUGHPUT_OVERALL_VM_MAX_WRITE",
          "IO_THROUGHPUT_OVERALL_VM_MAX_READWRITE",
          "STORAGE_ACCESS_HD_BALANCED_READWRITE",
          "IO_THROUGHPUT_HD_BALANCED_READWRITE",
          "STORAGE_ACCESS_HD_THROUGHPUT_READWRITE",
          "IO_THROUGHPUT_HD_THROUGHPUT_READWRITE",
          "STORAGE_ACCESS_HD_EXTREME_READWRITE",
          "IO_THROUGHPUT_HD_EXTREME_READWRITE",
          "STORAGE_ACCESS_HD_BALANCED_HA_READWRITE",
          "IO_THROUGHPUT_HD_BALANCED_HA_READWRITE",
          "STORAGE_ACCESS_HD_ML_READWRITE",
          "IO_THROUGHPUT_HD_ML_READWRITE",
          "CORE_SPEED",
          "VGPU_MEM",
          "CONCURRENT_QUERIES",
          "LLM_CACHE",
          "VGPU_COMPUTE",
          "GPU",
          "GPU_REQUEST",
          "GPU_REQUEST_QUOTA",
          "QUEUING_TIME",
          "SERVICE_TIME",
          "RAID_HOSTS",
          "NUMBER_REPLICAS",
          "PROJECT_VCPU_LIMIT_QUOTA",
          "NUMA_CPU_CORE",
          "NUMA_SRIOV_VF",
          "SRIOV_VF",
          "HUGEPAGES",
          "UNKNOWN",
          "LOGICAL_BLOCK_SIZE_ACCESS",
          "POWER_CAPABILITY_ACCESS",
          "BURSTABLE_BASELINE"
        ]
      }
    },
    "limitActionTypesByTargetEntityType": {
      "type": "object",
      "description": "Restricts allowed action types per target entity type. If a target entity type appears as a key, only the listed action types are returned for actions targeting that entity type. Entity types absent from this map are unrestricted beyond what actionTypeList specifies. Note: entries in this map must be a subset of actionTypeList to have effect. ",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    }
  },
  "$defs": {
    "ActionExecutionCharacteristicInputApiDTO": {
      "type": "object",
      "required": [
        "disruptiveness",
        "reversibility"
      ],
      "properties": {
        "disruptiveness": {
          "type": "string",
          "description": "whether action is disruptive.",
          "enum": [
            "DISRUPTIVE",
            "NON_DISRUPTIVE"
          ]
        },
        "reversibility": {
          "type": "string",
          "description": "whether action is reversible.",
          "enum": [
            "REVERSIBLE",
            "IRREVERSIBLE"
          ]
        }
      },
      "description": "Model to describe action execution characteristics"
    },
    "EffectiveCostFilterApiDTO": {
      "type": "object",
      "properties": {
        "currentEffectiveCostRange": {
          "$ref": "#/$defs/RangeInputApiDTO"
        },
        "newEffectiveCostRange": {
          "$ref": "#/$defs/RangeInputApiDTO"
        }
      },
      "description": "Model to describe effective cost range for action filtering."
    },
    "QueryInputApiDTO": {
      "type": "object",
      "required": [
        "query",
        "type"
      ],
      "properties": {
        "query": {
          "type": "string",
          "description": "Query string. The format of this depends on the QueryType chosen. For example, for a REGEX QueryType, this should be a regular expression."
        },
        "type": {
          "type": "string",
          "description": "Query type",
          "enum": [
            "EXACT",
            "REGEX",
            "CONTAINS"
          ]
        },
        "caseSensitive": {
          "type": "boolean",
          "description": "If true, the query string will match case-sensitivity. This field is only used when QueryType is not REGEX."
        }
      },
      "description": "Model to describe an input query"
    },
    "RangeInputApiDTO": {
      "type": "object",
      "properties": {
        "minValue": {
          "type": "number",
          "format": "float",
          "description": "Minimum value of the input range"
        },
        "maxValue": {
          "type": "number",
          "format": "float",
          "description": "Maximum value of the input range"
        }
      },
      "description": "Model to describe an input range. Either minValue or maxValue needs to be defined."
    },
    "StringListFilterApiDTO": {
      "type": "object",
      "required": [
        "values"
      ],
      "properties": {
        "values": {
          "type": "array",
          "description": "String list for a comparison.",
          "items": {
            "type": "string"
          }
        },
        "operator": {
          "type": "string",
          "description": "Operator for a comparison.",
          "enum": [
            "EQ",
            "NEQ"
          ]
        },
        "caseSensitive": {
          "type": "boolean",
          "description": "If true, the query string will match case-sensitivity."
        }
      },
      "description": "Model to describe a filter by a string list and a operator."
    }
  }
}