As part of creating or modifying a discovery pattern, you can use the Find Matching URL operation to find the best match for the main URL and create a variable to hold it.

Before you begin

Role required: none

  • Make sure that you know the main URL of the application.

  • Navigate to the relevant pattern step:

    1. On the pattern form, select the relevant identification section for Discovery.

      Alternatively, select the relevant identification or connection section for Service Mapping.

    2. Select the relevant pattern step or click Add a step button to add a step.

Basic knowledge of programming is desirable.

Role required: pd_admin

About this task

Some application CIs have configuration files containing lists of possible URLs. You can search such lists to find the match for the URL that allows connecting to a configuration item (CI).

Procedure

  1. Select Find matching URL from the Operation list.
  2. Fill in the fields, as appropriate.
    Field Description
    Values Specify the table and records containing potential URLs. You can use values from variables, including temporary tabular variables: from a specific field or a specific column in a table sequentially, starting from the first row. For more information, see Enter values and variables in patterns.
    URL Specify the URL for which you are seeking the best match.
    Target Variable Specify the variable name to contain the best match.
  3. If in Debug mode, test the step by clicking Test and checking that the operation brings the result you expected.

Example

Example

To filter the table on Jboss and to create a variable to hold the best match for the Jboss entry point URL, define the Find Matching URL operation as follows:


Defining conditions

What to do next

cmdb-key-value
Discovery also collects cloud tags that are specific to each virtual machine (VM) and saves them to the Key Value [cmdb_key_value] table.