# controlm/automation-api-community-solutions architecture

> Architecture diagram of the GitHub repository controlm/automation-api-community-solutions, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/controlm/automation-api-community-solutions
- Repository: https://github.com/controlm/automation-api-community-solutions

## Overview

This is a community collection of Control-M Automation API examples and integrations, not one deployable application. Users start with a task-specific script or IDE command and get an operational action, report, or external-system integration. The samples cover workload operations, preflight checks, job-as-code and CI/CD, infrastructure/cloud, and alert-to-ITSM workflows. The graph keeps these independent examples as separate branches; source evidence is partial, so it avoids inferring links between unrelated samples or unsampled implementations.

Main entry points: [`1-general-examples/send-alerts-to-snow/src/ctm_to_snow_incident.py`](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/send-alerts-to-snow/src/ctm_to_snow_incident.py) (ServiceNow incident flow), [`helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert.py`](https://github.com/controlm/automation-api-community-solutions/blob/master/helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert.py) (Helix alert handler), [`6-ide-integrations/integration-via-marketplace/vscode/src/extension.ts`](https://github.com/controlm/automation-api-community-solutions/blob/master/6-ide-integrations/integration-via-marketplace/vscode/src/extension.ts) (VS Code extension), [`1-general-examples/workload-preflight-check/src/agent_config_baseline.py`](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/workload-preflight-check/src/agent_config_baseline.py) (Workload preflight)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operations["Workload Operations"]
  node_hostgroup["Hostgroup status<br/>[hostgroup_list.py]"]
  node_duplicate["Duplicate job cleanup"]
  node_profiles["Profile conversion<br/>[lcps_to_ccps.py]"]
  node_profile_search["Profile search"]
  node_preflight["Workload preflight"]
  node_ctm_engineer["Control-M API client<br/>[ctm_engineer.py]"]
end

subgraph group_itsm["Alerts and ITSM"]
  node_snow_flow["ServiceNow incident flow"]
  node_snow_report["Job report enrichment<br/>[ctm_job_report.py]"]
  node_snow_client["Control-M REST client<br/>[ctm_client.py]"]
  node_servicenow{{"ServiceNow"}}
  node_helix_alert["Helix alert handler<br/>[extalert.py]"]
  node_helix_helpers["Alert helpers"]
  node_remedy{{"Remedy ITSM"}}
end

subgraph group_devtools["Job-as-Code Tools"]
  node_vscode["VS Code extension<br/>[extension.ts]"]
  node_cli_command["CLI command runner<br/>[CliCommand.ts]"]
  node_cli_utils["CLI utilities<br/>[CliUtils.ts]"]
  node_settings["Deploy settings<br/>[SettingsUtils.ts]"]
  node_devops["CI/CD examples"]
  node_jobs_as_code["Jinja job rendering<br/>[render.py]"]
end

subgraph group_platform["Infrastructure and Cloud"]
  node_lambda["Lambda event handler<br/>[ctmEventHandler.py]"]
  node_kubernetes["Kubernetes job examples<br/>[runJob.py]"]
  node_ec2["EC2 agent cleanup<br/>[ctmAgentCleanup.py]"]
  node_aws_ml["SageMaker workflows<br/>[train.py]"]
  node_aws_services{{"AWS services"}}
end

subgraph group_integrations["API Integrations"]
  node_python_aapi["Python API examples"]
  node_apigee["Apigee gateway examples"]
  node_mft["Managed file transfer"]
end

node_operator(("Automation user"))

node_operator -->|"runs"| node_hostgroup
node_operator -->|"runs"| node_duplicate
node_operator -->|"converts"| node_profiles
node_operator -->|"searches"| node_profile_search
node_operator -->|"checks"| node_preflight
node_preflight -->|"uses client"| node_ctm_engineer
node_operator -->|"sends alert"| node_snow_flow
node_snow_flow -->|"gets report"| node_snow_report
node_snow_report -->|"calls"| node_snow_client
node_snow_flow -->|"creates incident"| node_servicenow
node_operator -->|"handles alert"| node_helix_alert
node_helix_alert -->|"uses helpers"| node_helix_helpers
node_helix_alert -->|"creates ticket"| node_remedy
node_operator -->|"invokes commands"| node_vscode
node_vscode -->|"dispatches"| node_cli_command
node_cli_command -->|"runs CLI"| node_cli_utils
node_vscode -->|"prompts descriptor"| node_settings
node_operator -->|"uses examples"| node_devops
node_operator -->|"renders jobs"| node_jobs_as_code
node_operator -->|"invokes sample"| node_lambda
node_operator -->|"runs sample"| node_kubernetes
node_operator -->|"runs cleanup"| node_ec2
node_operator -->|"runs workflow"| node_aws_ml
node_operator -->|"uses examples"| node_python_aapi
node_operator -->|"uses examples"| node_apigee
node_operator -->|"tests connection"| node_mft

click node_hostgroup "https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/control-m-hostgroup-status/hostgroup_list.py"
click node_duplicate "https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/hold-or-delete-duplicated-jobs/scripts/hold-or-delete-duplicated-jobs.py"
click node_profiles "https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/how-to-convert-local-connection-profiles-to-centralized/scripts/lcps_to_ccps.py"
click node_profile_search "https://github.com/controlm/automation-api-community-solutions/tree/master/1-general-examples/search_connections_profiles_for_attribute/scripts"
click node_preflight "https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/workload-preflight-check/src/agent_config_baseline.py"
click node_ctm_engineer "https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/workload-preflight-check/src/ctm_engineer.py"
click node_snow_flow "https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/send-alerts-to-snow/src/ctm_to_snow_incident.py"
click node_snow_report "https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/send-alerts-to-snow/src/ctm_job_report.py"
click node_snow_client "https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/send-alerts-to-snow/src/ctm_client.py"
click node_helix_alert "https://github.com/controlm/automation-api-community-solutions/blob/master/helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert.py"
click node_helix_helpers "https://github.com/controlm/automation-api-community-solutions/blob/master/helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert_functions.py"
click node_vscode "https://github.com/controlm/automation-api-community-solutions/blob/master/6-ide-integrations/integration-via-marketplace/vscode/src/extension.ts"
click node_cli_command "https://github.com/controlm/automation-api-community-solutions/blob/master/6-ide-integrations/integration-via-marketplace/vscode/src/commands/CliCommand.ts"
click node_cli_utils "https://github.com/controlm/automation-api-community-solutions/blob/master/6-ide-integrations/integration-via-marketplace/vscode/src/utils/CliUtils.ts"
click node_settings "https://github.com/controlm/automation-api-community-solutions/blob/master/6-ide-integrations/integration-via-marketplace/vscode/src/utils/SettingsUtils.ts"
click node_devops "https://github.com/controlm/automation-api-community-solutions/tree/master/2-cicd-tooling-integration"
click node_jobs_as_code "https://github.com/controlm/automation-api-community-solutions/blob/master/8-jobs-as-code/kitchensink-with-jinja2/render.py"
click node_lambda "https://github.com/controlm/automation-api-community-solutions/blob/master/3-infrastructure-as-code-examples/aws-lambda-invoke-controlm-services/ctmEventHandler.py"
click node_kubernetes "https://github.com/controlm/automation-api-community-solutions/blob/master/3-infrastructure-as-code-examples/kubernetes-agent-application-pods/KubernetesMachine/runJob.py"
click node_ec2 "https://github.com/controlm/automation-api-community-solutions/blob/master/3-infrastructure-as-code-examples/manage-workload-on-ec2/ctmAgentCleanup.py"
click node_aws_ml "https://github.com/controlm/automation-api-community-solutions/blob/master/9-aws-integrations/ctm-and-amazon-sagemaker/train.py"
click node_python_aapi "https://github.com/controlm/automation-api-community-solutions/tree/master/3-infrastructure-as-code-examples/using-python-to-interact-with-control-m"
click node_apigee "https://github.com/controlm/automation-api-community-solutions/tree/master/7-api-gateway-integrations"
click node_mft "https://github.com/controlm/automation-api-community-solutions/blob/master/10-data-transfers/managed-file-transfer-enterprise/site-connection-test/src/werkstatt.build.package.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_hostgroup,node_duplicate,node_profiles,node_profile_search,node_preflight,node_ctm_engineer,node_operator toneBlue
class node_snow_flow,node_snow_report,node_snow_client,node_servicenow,node_helix_alert,node_helix_helpers,node_remedy toneAmber
class node_vscode,node_cli_command,node_cli_utils,node_settings,node_devops,node_jobs_as_code toneMint
class node_lambda,node_kubernetes,node_ec2,node_aws_ml,node_aws_services toneRose
class node_python_aapi,node_apigee,node_mft toneIndigo
```

## Components

### Workload Operations

- [Hostgroup status](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/control-m-hostgroup-status/hostgroup_list.py): `1-general-examples/control-m-hostgroup-status/hostgroup_list.py`
- [Duplicate job cleanup](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/hold-or-delete-duplicated-jobs/scripts/hold-or-delete-duplicated-jobs.py): `1-general-examples/hold-or-delete-duplicated-jobs/scripts/hold-or-delete-duplicated-jobs.py`
- [Profile conversion](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/how-to-convert-local-connection-profiles-to-centralized/scripts/lcps_to_ccps.py): `1-general-examples/how-to-convert-local-connection-profiles-to-centralized/scripts/lcps_to_ccps.py`
- [Profile search](https://github.com/controlm/automation-api-community-solutions/tree/master/1-general-examples/search_connections_profiles_for_attribute/scripts): `1-general-examples/search_connections_profiles_for_attribute/scripts`
- [Workload preflight](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/workload-preflight-check/src/agent_config_baseline.py): `1-general-examples/workload-preflight-check/src/agent_config_baseline.py`
- [Control-M API client](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/workload-preflight-check/src/ctm_engineer.py): `1-general-examples/workload-preflight-check/src/ctm_engineer.py`

### Alerts and ITSM

- [ServiceNow incident flow](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/send-alerts-to-snow/src/ctm_to_snow_incident.py): `1-general-examples/send-alerts-to-snow/src/ctm_to_snow_incident.py`
- [Job report enrichment](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/send-alerts-to-snow/src/ctm_job_report.py): `1-general-examples/send-alerts-to-snow/src/ctm_job_report.py`
- [Control-M REST client](https://github.com/controlm/automation-api-community-solutions/blob/master/1-general-examples/send-alerts-to-snow/src/ctm_client.py): `1-general-examples/send-alerts-to-snow/src/ctm_client.py`
- **ServiceNow**
- [Helix alert handler](https://github.com/controlm/automation-api-community-solutions/blob/master/helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert.py): `helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert.py`
- [Alert helpers](https://github.com/controlm/automation-api-community-solutions/blob/master/helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert_functions.py): `helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert_functions.py`
- **Remedy ITSM**

### Job-as-Code Tools

- [VS Code extension](https://github.com/controlm/automation-api-community-solutions/blob/master/6-ide-integrations/integration-via-marketplace/vscode/src/extension.ts): `6-ide-integrations/integration-via-marketplace/vscode/src/extension.ts`
- [CLI command runner](https://github.com/controlm/automation-api-community-solutions/blob/master/6-ide-integrations/integration-via-marketplace/vscode/src/commands/CliCommand.ts): `6-ide-integrations/integration-via-marketplace/vscode/src/commands/CliCommand.ts`
- [CLI utilities](https://github.com/controlm/automation-api-community-solutions/blob/master/6-ide-integrations/integration-via-marketplace/vscode/src/utils/CliUtils.ts): `6-ide-integrations/integration-via-marketplace/vscode/src/utils/CliUtils.ts`
- [Deploy settings](https://github.com/controlm/automation-api-community-solutions/blob/master/6-ide-integrations/integration-via-marketplace/vscode/src/utils/SettingsUtils.ts): `6-ide-integrations/integration-via-marketplace/vscode/src/utils/SettingsUtils.ts`
- [CI/CD examples](https://github.com/controlm/automation-api-community-solutions/tree/master/2-cicd-tooling-integration): `2-cicd-tooling-integration`
- [Jinja job rendering](https://github.com/controlm/automation-api-community-solutions/blob/master/8-jobs-as-code/kitchensink-with-jinja2/render.py): `8-jobs-as-code/kitchensink-with-jinja2/render.py`

### Infrastructure and Cloud

- [Lambda event handler](https://github.com/controlm/automation-api-community-solutions/blob/master/3-infrastructure-as-code-examples/aws-lambda-invoke-controlm-services/ctmEventHandler.py): `3-infrastructure-as-code-examples/aws-lambda-invoke-controlm-services/ctmEventHandler.py`
- [Kubernetes job examples](https://github.com/controlm/automation-api-community-solutions/blob/master/3-infrastructure-as-code-examples/kubernetes-agent-application-pods/KubernetesMachine/runJob.py): `3-infrastructure-as-code-examples/kubernetes-agent-application-pods/KubernetesMachine/runJob.py`
- [EC2 agent cleanup](https://github.com/controlm/automation-api-community-solutions/blob/master/3-infrastructure-as-code-examples/manage-workload-on-ec2/ctmAgentCleanup.py): `3-infrastructure-as-code-examples/manage-workload-on-ec2/ctmAgentCleanup.py`
- [SageMaker workflows](https://github.com/controlm/automation-api-community-solutions/blob/master/9-aws-integrations/ctm-and-amazon-sagemaker/train.py): `9-aws-integrations/ctm-and-amazon-sagemaker/train.py`
- **AWS services**

### API Integrations

- [Python API examples](https://github.com/controlm/automation-api-community-solutions/tree/master/3-infrastructure-as-code-examples/using-python-to-interact-with-control-m): `3-infrastructure-as-code-examples/using-python-to-interact-with-control-m`
- [Apigee gateway examples](https://github.com/controlm/automation-api-community-solutions/tree/master/7-api-gateway-integrations): `7-api-gateway-integrations`
- [Managed file transfer](https://github.com/controlm/automation-api-community-solutions/blob/master/10-data-transfers/managed-file-transfer-enterprise/site-connection-test/src/werkstatt.build.package.py): `10-data-transfers/managed-file-transfer-enterprise/site-connection-test/src/werkstatt.build.package.py`

### Other components

- **Automation user**

## Connections

- Automation user → Hostgroup status: runs
- Automation user → Duplicate job cleanup: runs
- Automation user → Profile conversion: converts
- Automation user → Profile search: searches
- Automation user → Workload preflight: checks
- Workload preflight → Control-M API client: uses client (evidence: `1-general-examples/workload-preflight-check/src/agent_config_baseline.py`)
- Automation user → ServiceNow incident flow: sends alert
- ServiceNow incident flow → Job report enrichment: gets report (evidence: `1-general-examples/send-alerts-to-snow/src/ctm_job_report.py`)
- Job report enrichment → Control-M REST client: calls (evidence: `1-general-examples/send-alerts-to-snow/src/ctm_job_report.py`)
- ServiceNow incident flow → ServiceNow: creates incident (evidence: `1-general-examples/send-alerts-to-snow/src/ctm_to_snow_incident.py`)
- Automation user → Helix alert handler: handles alert
- Helix alert handler → Alert helpers: uses helpers (evidence: `helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert.py`)
- Helix alert handler → Remedy ITSM: creates ticket (evidence: `helix-control-m/2-external-monitoring-tools-examples/alerts-to-helix-itsm/extalert.py`)
- Automation user → VS Code extension: invokes commands
- VS Code extension → CLI command runner: dispatches (evidence: `6-ide-integrations/integration-via-marketplace/vscode/src/extension.ts`)
- CLI command runner → CLI utilities: runs CLI (evidence: `6-ide-integrations/integration-via-marketplace/vscode/src/commands/CliCommand.ts`)
- VS Code extension → Deploy settings: prompts descriptor (evidence: `6-ide-integrations/integration-via-marketplace/vscode/src/extension.ts`)
- Automation user → CI/CD examples: uses examples
- Automation user → Jinja job rendering: renders jobs
- Automation user → Lambda event handler: invokes sample
- Automation user → Kubernetes job examples: runs sample
- Automation user → EC2 agent cleanup: runs cleanup
- Automation user → SageMaker workflows: runs workflow
- Automation user → Python API examples: uses examples
- Automation user → Apigee gateway examples: uses examples
- Automation user → Managed file transfer: tests connection
