Harness · Schema

HostActivityResourceCollection

DevOpsGitOpsInternal Developer PortalLifecycleSoftware DeliveryCI/CDContinuous DeliveryContinuous Integration
View JSON Schema on GitHub

JSON Schema

harness-host-activity-resource-collection-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-host-activity-resource-collection-schema.json",
  "title": "HostActivityResourceCollection",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-ansible-api-openapi.yml#/components/schemas/HostActivityResourceCollection",
  "type": "array",
  "items": {
    "$ref": "#/$defs/HarnessIacmHostactivity"
  },
  "$defs": {
    "AnsibleActivityMetadata": {
      "type": "object",
      "properties": {
        "activity_status": {
          "type": "string",
          "description": "The status of this activity"
        },
        "git_branch": {
          "type": "string",
          "description": "Git branch associated with this execution"
        },
        "git_commit_message": {
          "type": "string",
          "description": "Git commit message associated with this execution"
        },
        "git_commit_sha": {
          "type": "string",
          "description": "Git commit SHA associated with this execution"
        },
        "git_repo": {
          "type": "string",
          "description": "Git repo associated with this execution"
        },
        "metrics": {
          "$ref": "#/$defs/AnsibleMetrics"
        },
        "pipeline": {
          "type": "string",
          "description": "The unique identifier of any associated pipeline"
        },
        "pipeline_execution_id": {
          "type": "string",
          "description": "The unique identifier for any associated pipeline execution"
        },
        "pipeline_execution_number": {
          "type": "string",
          "description": "The unique number for any associated pipeline execution"
        },
        "pipeline_name": {
          "type": "string",
          "description": "The name of any associated pipeline"
        },
        "pipeline_stage_id": {
          "type": "string",
          "description": "The unique identifier for the associated pipeline stage"
        },
        "plugin_version": {
          "type": "string",
          "description": "The version of the Ansible plugin that produced this activity"
        },
        "results_uuid": {
          "type": "string",
          "description": "The ID of any associated results"
        },
        "trigger": {
          "type": "object",
          "description": "Trigger info for any associated pipeline execution",
          "additionalProperties": true
        }
      }
    },
    "AnsibleMetrics": {
      "type": "object",
      "properties": {
        "circuit_breaker_triggered": {
          "type": "boolean",
          "description": "Whether circuit breaker was triggered"
        },
        "duration_ms": {
          "type": "integer",
          "description": "Duration of ansible run in milliseconds",
          "format": "int64"
        },
        "host_changed": {
          "type": "integer",
          "description": "Number of hosts with changed status",
          "format": "int64"
        },
        "host_failed": {
          "type": "integer",
          "description": "Number of hosts with failed status",
          "format": "int64"
        },
        "host_ok": {
          "type": "integer",
          "description": "Number of hosts with ok status",
          "format": "int64"
        },
        "host_skipped": {
          "type": "integer",
          "description": "Number of hosts with skipped status",
          "format": "int64"
        },
        "host_unreachable": {
          "type": "integer",
          "description": "Number of hosts with unreachable status",
          "format": "int64"
        },
        "output_size_bytes": {
          "type": "integer",
          "description": "Size of structured ansible output in bytes",
          "format": "int64"
        },
        "payload_size_bytes": {
          "type": "integer",
          "description": "Size of payload sent to server in bytes",
          "format": "int64"
        },
        "total_hosts": {
          "type": "integer",
          "description": "Total number of hosts in the ansible run",
          "format": "int64"
        },
        "total_tasks": {
          "type": "integer",
          "description": "Total number of tasks across all hosts",
          "format": "int64"
        }
      },
      "description": "Observability metrics for ansible playbook runs"
    },
    "HarnessIacmHostactivity": {
      "type": "object",
      "properties": {
        "account": {
          "type": "string",
          "description": "Account is the internal customer account ID.",
          "minLength": 1,
          "maxLength": 128
        },
        "created": {
          "type": "integer",
          "description": "Timestamp when the resource was created",
          "format": "int64"
        },
        "data": {
          "type": "string",
          "description": "Host-specific execution data (stats and task results)"
        },
        "event_type": {
          "type": "string",
          "description": "The type of event that occurred",
          "enum": [
            "activity-execution",
            "activity-dry-run-execution"
          ]
        },
        "id": {
          "type": "string",
          "description": "The unique identifier for this activity"
        },
        "inventories": {
          "type": "string",
          "description": "Inventories associated with this event"
        },
        "metadata": {
          "$ref": "#/$defs/AnsibleActivityMetadata"
        },
        "org": {
          "type": "string",
          "description": "Org is the organisation identifier.",
          "minLength": 1,
          "maxLength": 128
        },
        "playbooks": {
          "type": "string",
          "description": "Playbooks associated with this event"
        },
        "project": {
          "type": "string",
          "description": "Project is the project identifier.",
          "minLength": 1,
          "maxLength": 128
        },
        "status": {
          "type": "string",
          "description": "Host-specific status for this activity"
        }
      },
      "required": [
        "account",
        "org",
        "project",
        "inventories",
        "playbooks",
        "id",
        "metadata",
        "created",
        "event_type"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/harness-host-activity-resource-collection"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.