Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Import environment
HARNESS_IMPORT_ENVIRONMENTImport and create a Harness environment from a YAML file in a Git repository. Supply the repository, branch, and file path, with the target organization/project scope and Git connector when applicable. Returns the imported environment identifier and governance evaluation details.
Import infrastructure
HARNESS_IMPORT_INFRASTRUCTUREImport and create a Harness infrastructure definition from a YAML file in a Git repository. Supply the target environment, repository, branch, and file path, plus organization, project, and Git connector when applicable. Returns the imported infrastructure identifier and available governance evaluation results.
Import Pipeline
HARNESS_IMPORT_PIPELINEImport and create a Harness pipeline from a YAML file in a Git repository into a specified organization and project. Optionally supply a pipeline name, description, YAML version, or force-import setting. Returns the imported pipeline identifier and governance and public-access results.
Import Service
HARNESS_IMPORT_SERVICEImport a Harness service YAML from a Git repository in the connected account. Specify the repository, branch, and file path, with optional organization, project, service identifier, connector, and import flags. Returns the imported service identifier and governance evaluation results when available.
Import Template
HARNESS_IMPORT_TEMPLATEImport a Harness template from Git at the connected account scope. Provide the template identifier and optional Git source, force-import, and template metadata settings. Returns the imported identifier and version.
Retry Pipeline
HARNESS_RETRY_PIPELINERetry a previously executed Harness pipeline from selected stages in an organization and project. Provide the previous execution ID and stage identifiers; optionally retry only failed stages in a parallel group. Returns the created execution ID and initial details without waiting for completion.
Retry Pipeline With Expressions
HARNESS_RETRY_PIPELINE_WITH_EXPRESSIONSRetry a previous Harness pipeline execution from selected stages with optional runtime input YAML and expression values. Supports failed parallel-group stage selection, execution notes and asynchronous plan creation. Returns the new execution ID and initial details without waiting for completion.
Rollback Service
HARNESS_ROLLBACK_SERVICETrigger a Harness service rollback using its instance key and infrastructure mapping identifier. Optionally specify organization and project scope. Returns whether rollback was triggered, a result message, and the rollback plan execution ID when available; inspect rollbackTriggered for the outcome.
Rollback Service to Environment
HARNESS_ROLLBACK_SERVICE_TO_ENVIRONMENTTrigger a Harness service rollback in a specific environment, optionally selecting infrastructure, artifact, and chart version. Returns whether the rollback was triggered and its pipeline execution ID when available; triggering does not mean the rollback has completed.
Rollback Targets Batch
HARNESS_ROLLBACK_TARGETS_BATCHTrigger rollback for multiple service and environment targets in the connected Harness account, using the latest pipeline execution group per target. Returns individual target outcomes and triggered/failed totals. A target failure does not fail the entire batch; inspect rollbackTriggered and message for each result.
Upsert Environment
HARNESS_UPSERT_ENVIRONMENTCreate or update a Harness environment by identifier at account, organization, or project scope. Supply its Production or PreProduction type and optional name, description, tags, color, or YAML definition. Returns the saved environment with validity and governance results when available.
Upsert Environment Service Override
HARNESS_UPSERT_ENVIRONMENT_SERVICE_OVERRIDECreate or update a service override for a Harness environment in the connected account. Supply organization, project, environment and service identifiers and the override YAML as applicable. Returns the stored override and governance evaluation results when available.
Upsert Service
HARNESS_UPSERT_SERVICECreate or update a Harness service by identifier at account, organization, or project scope. Supply the service identifier and scope in the fields or service YAML, with optional name, description, tags, and If-Match entity tag.