1.5. Path Templates

Path templates are used by management extensions to define dynamic content when registering resources. These path template variables are used during an export-resource operation to filter these managed resources. By specifying the filter attribute of an export-resource operation, managed resources can be explicitly included or excluded during export.
The filter attribute has the following value syntax:

Example 1.1. Filter Syntax

[path-var]:(!)?[name],...[name];...[path-var]:(!)?[name],...[name]

where path-var is the path template variable name, name is the name of a managed-resource, and the '!' char, which is optional, is to exclude that resource rather than include it. Below are some examples that use the path template variable 'foo':

Example 1.2. Include managed resource 'bar'

foo:bar

Example 1.3. Include managed resource 'bar' and 'foo-bar'

foo:bar,foo-bar

Example 1.4. Exclude managed resource 'bar'

foo:!bar

Example 1.5. Exclude managed resource 'bar' and 'foo-bar'

foo:!bar,foo-bar

Example 1.6. Multiple path template variables (foo and baz) separated by the ';' char

foo:bar,foo-bar;baz:blah

Note

For more information on the usage of path templates specific to a management extension, see the management extensions section below.