{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-cluster-collect-pub-post-req-schema.json",
  "title": "clusterCollectPubPostReq",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-clustermanager-api-openapi.yml#/components/schemas/clusterCollectPubPostReq",
  "type": "object",
  "properties": {
    "CollectJobId": {
      "type": "string",
      "title": "MANDATORY: Unique Id of collection job to be published"
    },
    "Protocol": {
      "$ref": "#/$defs/clusterPublishType",
      "title": "MANDATORY: Publish protocol (SSH)"
    },
    "SSH_Configuration": {
      "$ref": "#/$defs/clusterSSH_Config",
      "title": "MANDATORY: SSH Configuration"
    }
  },
  "$defs": {
    "clusterPublishType": {
      "type": "string",
      "enum": [
        "SSH"
      ],
      "default": "SSH"
    },
    "clusterSSH_Config": {
      "type": "object",
      "properties": {
        "Username": {
          "type": "string",
          "title": "MANDATORY"
        },
        "Password": {
          "type": "string",
          "title": "MANDATORY"
        },
        "Destination": {
          "type": "string",
          "title": "MANDATORY"
        },
        "Dest_path": {
          "type": "string",
          "title": "MANDATORY - Path on destination host"
        },
        "Port": {
          "type": "integer",
          "format": "int32",
          "title": "MANDATORY - SCP Port on destination host"
        }
      },
      "title": "Configuration for SCP"
    }
  }
}