> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# parseYaml

> @Since 11.2.0.0 Parses YAML using YAML Path expressions (via the yaml path library). If no matches are returned, or the matched element is empty, FDP

@Since 11.2.0.0

Parses YAML using YAML Path expressions (via the yaml-path library).

If no matches are returned, or the matched element is empty, `FDP_Value` will contain an empty string.

YAML Path expressions use dotted property paths (for example `metadata.name` or `store.bicycle.color`). An optional `$.` prefix is accepted for familiarity with JSONPath. Multi-document YAML is supported; use filters such as `(kind == Service).metadata.name` to select a document.

# Inputs

<table><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>YAML Source</td><td>`FDP_SOURCE`</td><td>Yes</td><td>YAML Source to parse. For example, a Kubernetes manifest or variable containing YAML content. Multi-document YAML is supported (use filters such as `(kind == Service).metadata.name`). @Since 11.2.0.0</td></tr><tr><td>YAML Path Expression</td><td>`FDP_XPATH`</td><td>Yes</td><td>The YAML Path expression to use to find a value in the YAML Source (e.g. `metadata.name` or `(kind == Deployment).metadata.name`). @Since 11.2.0.0</td></tr><tr><td>Require non-blank Output</td><td>`FDP_FAIL_BLANK_OUTPUT`</td><td>No</td><td>If checked, the output must be non-blank at the end of execution or the execution will fail. @Since 11.2.0.0</td></tr></tbody></table>

# Outputs

<table><tbody><tr><th>**Output Name**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>`FDP_Value`</td><td>No</td><td>The value returned from the YAML Path expression is returned to the workflow in this variable. @Since 11.2.0.0</td></tr></tbody></table>

# Artifacts

This operation doesn’t consume or produce any artifacts.

# Endpoint Selection

This operation will select all available endpoints associated to the Target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.

# Special Considerations

* If multiple elements match the criteria, they will be returned in a set-style string (the result of Java `Set.toString()`).

* Invalid YAML fails the step with a clear error.

* Blank YAML Source or blank YAML Path Expression fails validation.
