{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-connector2-schema.json",
  "title": "Connector2",
  "description": "This is the view of Connector entity as defined in Harness.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-connectors-api-openapi.yml#/components/schemas/Connector2",
  "type": "object",
  "properties": {
    "connector": {
      "$ref": "#/$defs/ConnectorInfo"
    }
  },
  "$defs": {
    "ConnectorConfig": {
      "required": [
        "connectorType"
      ],
      "type": "object",
      "properties": {
        "connectorType": {
          "type": "string"
        }
      },
      "description": "This is the view of the ConnectorConfig entity defined in Harness"
    },
    "ConnectorInfo": {
      "required": [
        "identifier",
        "name",
        "spec",
        "type"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the Connector."
        },
        "identifier": {
          "type": "string",
          "description": "Identifier of the Connector."
        },
        "description": {
          "type": "string",
          "description": "Description of the entity"
        },
        "accountIdentifier": {
          "type": "string",
          "description": "Account Identifier for the Entity."
        },
        "orgIdentifier": {
          "type": "string",
          "description": "Organization Identifier for the Entity."
        },
        "projectIdentifier": {
          "type": "string",
          "description": "Project Identifier for the Entity."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "description": "Tags"
          },
          "description": "Tags"
        },
        "type": {
          "type": "string",
          "description": "Type of the Connector.",
          "enum": [
            "K8sCluster",
            "Git",
            "Splunk",
            "AppDynamics",
            "Prometheus",
            "Dynatrace",
            "Vault",
            "AzureKeyVault",
            "DockerRegistry",
            "Local",
            "AwsKms",
            "GcpKms",
            "AwsSecretManager",
            "Gcp",
            "Aws",
            "Azure",
            "Artifactory",
            "Jira",
            "Jsm",
            "Nexus",
            "Github",
            "Gitlab",
            "Bitbucket",
            "Codecommit",
            "CEAws",
            "CEAzure",
            "GcpCloudCost",
            "CEK8sCluster",
            "HttpHelmRepo",
            "NewRelic",
            "Datadog",
            "SumoLogic",
            "PagerDuty",
            "CustomHealth",
            "ServiceNow",
            "ErrorTracking",
            "Pdc",
            "AzureRepo",
            "Jenkins",
            "OciHelmRepo",
            "CustomSecretManager",
            "ElasticSearch",
            "GcpSecretManager",
            "AzureArtifacts",
            "Tas",
            "Spot",
            "Bamboo",
            "TerraformCloud",
            "SignalFX",
            "Harness",
            "Rancher",
            "JDBC",
            "Zoom",
            "MsTeams",
            "Confluence",
            "Slack",
            "Salesforce",
            "LangSmith",
            "MLFlow",
            "OpsGenie",
            "GithubMcp",
            "Mcp",
            "OpenAI",
            "Cursor",
            "Devin",
            "GithubCopilot",
            "Anthropic",
            "GoogleChat",
            "XMatters",
            "CustomHttp"
          ]
        },
        "spec": {
          "$ref": "#/$defs/ConnectorConfig"
        }
      },
      "description": "This has the Connector details defined in Harness"
    }
  }
}