# Connector Metadata Get

## Overview

Returns connector metadata information using which OpsHub will register this connector in OpsHub. The features and fields provided here are what users will see on OpsHub UI when configuring integration with this connector.

## API URI

This is the URI, OpsHub will execute to call this API:

```bash
GET: /connector-metadata
```

## Response Payload

```json
{ 

  "enableFeatures": [ 

    "CURRENT_STATE_SYNC_FLAG", 

    "REMOTE_ID_LINK", 

    "TARGET_LOOKUP", 

    "CRITERIA",

    "MAPPED_DATA_RETRIEVAL",
    
    "SUPPRESS_END_SYSTEM_NOTIFICATION"

  ],

  "additionalMetadata":

      {

        "userSearchOnUserNameSupported": "<Does the connector support searching for users by username>",

        "userSearchOnEmailSupported": "<Does the connector support searching for users by email>"

      }

    ,


  "fields": [

    {

      "internalName": "<user input field internal name>",

      "displayName": "<user input field display name>",

      "tooltip": "<tool tip>",

      "required": true,

      "fieldType": "ENUM",

      "lookup": {

        "staticValues": [

          {

            "internalName": "<internal name or id of lookup value>",

            "displayName": "<display name>"

          }

        ],

        "dynamicLookupKey": null

      },

      "defaultValue": null,

      "validation": null,

      "fieldOrder": 1,

      "parent": null,

      "screens": [

        "SYSTEM_CONFIG",

        "INTEGRATION_SOURCE_CONFIG",

        "INTEGRATION_TARGET_CONFIG"

      ]

    }

  ]

}
```

## Response Parameters

| Parent Parameter   | Name                          | Required    | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------ | ----------------------------- | ----------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                    | enableFeatures                | True        | ENUM            | <p>List of features to be enabled in OIM:<br><br><strong>CURRENT\_STATE\_SYNC\_FLAG</strong>: A flag to enable integration sync only latest entity state. Applies only for entity types with <code>"pollerType": "ENTITY\_WISE\_HISTORY"</code>. Refer to <a href="../../../integrate/configure-integrations/integration-configuration#sync-only-current-state">Sync only current state</a> for details.<br><strong>REMOTE\_ID\_LINK</strong>: Stores id and link of an entity of other system. To form the link using a URL other than connector's server URL, enter in "Base URL for Remote Link" field. See <a href="../../../integrate/configure-integrations/integration-configuration#tracking-id-and-link-of-entities-across-systems">Remote Id and Link</a>.<br><strong>TARGET\_LOOKUP</strong>: Search entity in target system before sync. See <a href="../../../integrate/configure-integrations/integration-configuration#search-in-target-before-sync">Target Lookup</a>.<br><strong>CRITERIA</strong>: Sync only subset of entities meeting criteria/condition. See <a href="../../../integrate/configure-integrations/integration-configuration#criteria-configuration">Criteria Configuration</a>.<br><strong>MAPPED\_DATA\_RETRIEVAL</strong>: Enables "fetch mapped data only" feature if end system supports fetching specific fields.<br><strong>SUPPRESS\_END\_SYSTEM\_NOTIFICATION</strong>: Enables "suppressing end system notification" feature on create or update events for the target system, if end system supports it.User can select True or False according to requirement for suppressing end system notification. See <a href="../../../integrate/configure-integrations/integration-configuration#suppress-end-system-notification">Suppress End System Notification</a>.</p> |
| additionalMetadata |                               | False       |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|                    | userSearchOnUserNameSupported | False       | boolean         | <p>Does the connector support user search based on userName?<br>Default is false. If connector allows search by username, provide as true.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|                    | userSearchOnEmailSupported    | False       | boolean         | <p>Does the connector support user search based on email?<br>Default is false. If connector allows search by email, provide as true.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| fields             |                               | True        |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|                    | internalName                  | True        | string          | Internal name of the user input. Must be unique. E.g., `authType`, `userName`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|                    | displayName                   | True        | string          | Display name shown in OpsHub UI. E.g., `Authentication Type`, `User Name`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                    | tooltip                       | False       | string          | Help text for the field. E.g., “Provide a URL to connect to end system. Format: <https://host/> Example: <https://www.example.com/”>.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|                    | required                      | True        | boolean         | Is the user input mandatory? `true` / `false`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|                    | fieldType                     | True        | ENUM            | <p>Input types:<br>- TEXT\_BOX<br>- TEXT\_AREA<br>- DROP\_DOWN<br>- PASSWORD<br>- RADIO\_BUTTON<br>- CHECKBOX<br>- URL<br>- EMAIL<br>- NUMERIC<br>- MULTI\_SELECT\_DROP\_DOWN\_WITH\_CHECKBOX<br>- JSON<br>- XML</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Fields.lookup      |                               | False       |                 | For any DROP\_DOWN type inputs. The user needs to provide lookup values to show the options in drop down                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|                    | staticValues                  | Conditional | List of Objects | Static values for dropdown. E.g., “1=Basic,2=Token Based”. Order determines UI display order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|                    | staticValues.internalName     |             | string          | Internal id of lookup. E.g., 1, 2, 3.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|                    | staticValues.displayName      |             | string          | Display name in dropdown. E.g., Basic, Token Based.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|                    | dynamicLookupKey              | Conditional | ENUM            | <p>Dynamic lookup options:<br>- ALL\_SYSTEM: List of all the systems that exists in OIM<br>- ALM\_SYSTEM: List of all the ALM systems created by user in OIM. This will not fetch any SCM system<br>- TIME\_ZONE: Pre-defined list of available time zones<br>- ENTITY\_FIELDS: Dynamically displays the list of available fields of an entity from end system API. This type of dynamic lookup is used when list of available fields for an entity is to be displayed.<br>- DATABASE\_TYPE: List of all database types supported in Database System.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Fields. validation |                               | False       |                 | Validation to be applied on any textual field                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|                    | name                          | False       | string          | Name of validation. E.g., “System Version Validation”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|                    | regex                         | False       | string          | Regex to validate field value. E.g., `[1-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                    | failureMessage                | False       | string          | Message shown if validation fails. E.g., “Please provide valid version in form of x.y.z”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| fields             |                               |             |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| fields             | fieldOrder                    | True        | number          | UI order of field.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| parent             |                               | False       |                 | <p>It’s to support hierarchy of the fields.<br>E.g., ‘authType’ can be parent of ‘userName’, ‘password’ and ‘token’</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
|                    | internalName                  | False       | string          | <p>Internal name of the parent field.<br>E.g., <code>'issueType'</code> is a built-in field. There is no need to provide metadata configuration for <code>'issueType'</code> field in JSON.<br>E.g., For username or password field, <code>auth\_type</code> can be the internalName for parent field.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                    | fieldValues                   | False       | string          | <p>Internal value of the parent field. Current field will only be loaded if parent field’s value matches the given value.<br>E.g., If <code>authType</code> has values “1=Basic,2=Token Based”, provide <code>1</code> to select Basic as parent field value.<br><br>Some fields can be loaded only if a particular parent field value is selected.<br>E.g., If <code>authType</code> is parent of <code>userName</code>, <code>password</code>, and <code>token</code> fields:<br>- <code>password</code> will only be loaded if <code>authType</code> value is <code>Basic</code>.<br>- <code>token</code> will only be loaded if <code>authType</code> value is <code>Token Based</code>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|                    | fieldRegex                    | False       | string          | Regex controlling visibility of current field based on parent field value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| fields             |                               |             |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|                    | screens                       | True        | ENUM            | <p>List of screens where this field should be visible:<br>- SYSTEM\_CONFIG: System configuration screen<br>- INTEGRATION\_SOURCE\_CONFIG: Advanced integration config when connector is source<br>- INTEGRATION\_TARGET\_CONFIG: Advanced integration config when connector is target</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

Example:

```json
{

  "enableFeatures": [

    "CURRENT_STATE_SYNC_FLAG",

    "REMOTE_ID_LINK",

    "TARGET_LOOKUP",

    "CRITERIA",

    "MAPPED_DATA_RETRIEVAL",

    "SUPPRESS_END_SYSTEM_NOTIFICATION"

  ], 

  "fields": [ 

    { 

      "internalName": "authType", 

      "displayName": "Authentication Type", 

      "tooltip": "Authentication Type", 

      "required": true, 

      "fieldType": "DROP_DOWN", 

      "lookup": { 

        "staticValues": [ 

          { 

            "internalName": "1", 

            "displayName": "Basic Authentication" 

          } 

        ], 

        "dynamicLookupKey": null 

      }, 

      "defaultValue": null, 

      "validation": null, 

      "fieldOrder": 1, 

      "parent": null, 

      "screens": [ 

        "SYSTEM_CONFIG", 

        "INTEGRATION_SOURCE_CONFIG", 

        "INTEGRATION_TARGET_CONFIG" 

      ] 

    }, 

    { 

      "internalName": "userName", 

      "displayName": "Authentication User", 

      "tooltip": "Authentication User", 

      "required": true, 

      "fieldType": "TEXT_BOX", 

      "lookup": null, 

      "defaultValue": null, 

      "validation": null, 

      "fieldOrder": 2, 

      "parent": { 

        "internalName": "authType", 

        "fieldValues": [ 

          "1" 

        ], 

        "fieldRegex": null 

      }, 

      "screens": [ 

        "SYSTEM_CONFIG", 

        "INTEGRATION_SOURCE_CONFIG", 

        "INTEGRATION_TARGET_CONFIG" 

      ] 

    }, 

    { 

      "internalName": "password", 

      "displayName": "Authentication Password", 

      "tooltip": "Authentication Password", 

      "required": true, 

      "fieldType": "PASSWORD", 

      "lookup": null, 

      "defaultValue": null, 

      "validation": null, 

      "fieldOrder": 3, 

      "parent": { 

        "internalName": "authType", 

        "fieldValues": [ 

          "1" 

        ], 

        "fieldRegex": null 

      }, 

      "screens": [ 

        "SYSTEM_CONFIG", 

        "INTEGRATION_SOURCE_CONFIG", 

        "INTEGRATION_TARGET_CONFIG" 

      ] 

    } 

  ] 

} 
```
