Entry links let you connect and trace relationships between data assets in
Knowledge Catalog. An entry link is instantiated from an entry link type,
which defines its directionality, allowed entry types, required aspects, and
authorization rules. In this document, you create, update, view, look up, list,
and delete entry links between catalog entries.

To define new link types or review available relationship schemas, see
[Create and manage entry link types](https://docs.cloud.google.com/knowledge-catalog/docs/manage-entry-link-types.md.txt).

For more information about entry link concepts, see
[About entry link types and entry links](https://docs.cloud.google.com/knowledge-catalog/docs/entries-relationship.md.txt).

## Before you begin

Before you create and manage custom entry links, do the following:

1. Make sure you have the required roles on the target entry group or project. For details, see the [Required roles](https://docs.cloud.google.com/knowledge-catalog/docs/manage-entry-links.md.txt#required-roles) section of this document.
2. Set up REST authentication. For details, see the [Set up REST authentication](https://docs.cloud.google.com/knowledge-catalog/docs/manage-entry-links.md.txt#rest-auth) section of this document.

### Required roles


To get the permissions that
you need to create and manage entry links,

ask your administrator to grant you the
following IAM roles on the target entry group or project:

- Create, update, and delete entry links: [Dataplex Entry and EntryLink Owner](https://docs.cloud.google.com/iam/docs/roles-permissions/dataplex.md.txt#dataplex.entryOwner) (`roles/dataplex.entryOwner`)
- Create links targeting glossary terms (`synonym` or `definition` links): [Dataplex Catalog Editor](https://docs.cloud.google.com/iam/docs/roles-permissions/dataplex.md.txt#dataplex.catalogEditor) (`roles/dataplex.catalogEditor`)
- Use a custom entry link type defined in another project: [Dataplex Entry Link Type User](https://docs.cloud.google.com/iam/docs/roles-permissions/dataplex.md.txt#dataplex.entryLinkTypeUser) (`roles/dataplex.entryLinkTypeUser`)
- Look up, view, and list entry links: [Dataplex Catalog Viewer](https://docs.cloud.google.com/iam/docs/roles-permissions/dataplex.md.txt#dataplex.catalogViewer) (`roles/dataplex.catalogViewer`)


For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).


These predefined roles contain

the permissions required to create and manage entry links. To see the exact permissions that are
required, expand the **Required permissions** section:


#### Required permissions

The following permissions are required to create and manage entry links:

- Create an entry link with Knowledge Catalog authorization (custom type):
  - `dataplex.entryLinks.create` on the parent entry group
  - `dataplex.entryLinkTypes.use` on the custom entry link type
  - `dataplex.entries.link` on the referenced entries or their parent entry groups
- Create an entry link (system type):
  - `dataplex.entryLinks.create` on the parent entry group
  - `dataplex.entryGroups.use*EntryLink` on the parent entry group
  - `dataplex.glossaryTerms.use` on the target glossary term (for `synonym` or `definition` target)
  - `dataplex.entries.link` on the source entry or its entry group (for `schema-join` or `definition` source)
- Update an existing entry link:
  - `dataplex.entryLinks.update` on the parent entry group
  - `dataplex.entryLinkTypes.use` on the custom entry link type (for custom types)
  - `dataplex.entryGroups.use*EntryLink` on the parent entry group (for system types)
  - `dataplex.entryGroups.useSchemaJoinAspect` on the parent entry group (for `schema-join` only)
  - `dataplex.entryLinks.create` on the parent entry group (if `allowMissing=true`)
- View an entry link: `dataplex.entryLinks.get` on the parent entry group
- List entry links: `dataplex.entryLinks.list` on the parent entry group
- Look up entry links:
  - `dataplex.entries.get` (or a source read permission such as `bigquery.tables.get` or `dataplex.glossaryTerms.get`) on the queried entry
  - source read permission (for example, `bigquery.tables.get`) on the opposite linked entry (if `disableAuthorizedRetrieval` is `false`; otherwise unauthorized entry details are redacted to `*`)
- Delete an entry link: `dataplex.entryLinks.delete` on the parent entry group


You might also be able to get
these permissions
with [custom roles](https://docs.cloud.google.com/iam/docs/creating-custom-roles.md.txt) or
other [predefined roles](https://docs.cloud.google.com/iam/docs/roles-overview.md.txt#predefined).

### Set up REST authentication

To simplify calling the Knowledge Catalog REST API, define an alias for
`curl` that includes your authorization token and sets the request header to
JSON:

```bash
alias gcurl='curl -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Content-Type: application/json"'
```

## Create an entry link

You can create asymmetric (directional) or symmetric (non-directional) entry
links to establish relationships between entries.

If you only need to define semantic associations or attach business terms to
assets, you can manage them directly within your business glossary. For more
information, see
[Manage a business glossary](https://docs.cloud.google.com/knowledge-catalog/docs/manage-glossaries.md.txt).

### Create an asymmetric (directional) entry link

Use asymmetric (directional) entry links when relationships have distinct
source and target roles, such as an asset depending on an upstream dataset, or
a physical table defined by a business glossary term.

When you create a directional entry link, the parent entry group where the link
resource is created must strictly match the entry group of the `SOURCE` entry
reference.

The following example creates a directional entry link connecting a source entry
in a parent entry group (`ENTRY_GROUP_ID_SOURCE`) to a target entry (`TARGET`).
Because the relationship is directional, the entry link is created inside the
entry group of the source entry.

```bash
gcurl -X POST "https://dataplex.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID_SOURCE/entryLinks?entryLinkId=ENTRY_LINK_ID" \
-d '{
  "entryLinkType": "projects/LINK_TYPE_PROJECT_ID/locations/LINK_TYPE_LOCATION_ID/entryLinkTypes/ENTRY_LINK_TYPE_ID",
  "entryReferences": [
    {
      "name": "projects/PROJECT_ID_SOURCE/locations/LOCATION_ID_SOURCE/entryGroups/ENTRY_GROUP_ID_SOURCE/entries/ENTRY_ID_SOURCE",
      "path": "SOURCE_SCHEMA_PATH",
      "type": "SOURCE"
    },
    {
      "name": "projects/PROJECT_ID_TARGET/locations/LOCATION_ID_TARGET/entryGroups/ENTRY_GROUP_ID_TARGET/entries/ENTRY_ID_TARGET",
      "type": "TARGET"
    }
  ]
}'
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the project ID where the entry link is created. This must match the source entry's project.
- <var translate="no">LOCATION_ID</var>: the location ID where the entry link is created. This must match the source entry's location.
- <var translate="no">ENTRY_GROUP_ID_SOURCE</var>: the entry group ID of the source entry (for example, `@bigquery`).
- <var translate="no">ENTRY_LINK_ID</var>: a unique identifier for the entry link. It must be 1 to 63 characters and contain lowercase letters, numbers, and hyphens. It must start with a letter and end with an alphanumeric character.
- <var translate="no">LINK_TYPE_PROJECT_ID</var>: the project ID where the entry link type resides. For system types, specify `dataplex-types`.
- <var translate="no">LINK_TYPE_LOCATION_ID</var>: the location ID where the entry link type resides. For system types, specify `global`.
- <var translate="no">ENTRY_LINK_TYPE_ID</var>: the identifier of the entry link type template. For example, specify `definition` for the **Defined by** system entry link type.
- <var translate="no">PROJECT_ID_SOURCE</var>: the project ID containing the source entry.
- <var translate="no">LOCATION_ID_SOURCE</var>: the location ID containing the source entry.
- <var translate="no">ENTRY_ID_SOURCE</var>: the entry ID of the source metadata entry.
- <var translate="no">SOURCE_SCHEMA_PATH</var>: optional. The column or schema field path within the source entry (for example, `Schema.user_id`). If linking the entire entry, omit this field.
- <var translate="no">PROJECT_ID_TARGET</var>: the project ID containing the target entry.
- <var translate="no">LOCATION_ID_TARGET</var>: the location ID containing the target entry. It can be the same region or `global`.
- <var translate="no">ENTRY_GROUP_ID_TARGET</var>: the entry group ID containing the target entry (for example, `@dataplex`).
- <var translate="no">ENTRY_ID_TARGET</var>: the entry ID of the target metadata entry.

**Configuration notes**

- **Entry-level links.** To link the entire source entry rather than a
  specific column or sub-field, omit `path` or specify `path: ""`.

- **Path restriction on target.** Control plane targets (such as business
  glossary terms) don't support schema paths. Omit `path` on the target entry
  reference.

- **Placement validation.** The URL path for creating the entry link must
  target the entry group of the `SOURCE` entry (`ENTRY_GROUP_ID_SOURCE`).
  Creating the directional link in `ENTRY_GROUP_ID_TARGET` or any other
  entry group fails with an HTTP 400 Bad Request status code
  (`ENTRY_LINK_NOT_ALLOWED_IN_ENTRY_GROUP_ERROR`).

### Create a symmetric (non-directional) entry link

Use symmetric (non-directional) entry links for relationships where both entries
share the same role, such as synonyms, related business terms, or peer datasets.

When you create a non-directional entry link, set `type` to `"UNSPECIFIED"` on
both entry references. You can create the entry link resource in the parent
entry group of either referenced entry.

The following example creates a non-directional entry link connecting two
entries (`ENTRY_ID_1` and `ENTRY_ID_2`). In this example, the link is created
inside the entry group of the first entry (`ENTRY_GROUP_ID_1`).

```bash
gcurl -X POST "https://dataplex.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID_1/entryLinks?entryLinkId=ENTRY_LINK_ID" \
-d '{
  "entryLinkType": "projects/LINK_TYPE_PROJECT_ID/locations/LINK_TYPE_LOCATION_ID/entryLinkTypes/ENTRY_LINK_TYPE_ID",
  "entryReferences": [
    {
      "name": "projects/PROJECT_ID_1/locations/LOCATION_ID_1/entryGroups/ENTRY_GROUP_ID_1/entries/ENTRY_ID_1",
      "type": "UNSPECIFIED"
    },
    {
      "name": "projects/PROJECT_ID_2/locations/LOCATION_ID_2/entryGroups/ENTRY_GROUP_ID_2/entries/ENTRY_ID_2",
      "type": "UNSPECIFIED"
    }
  ]
}'
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the project ID where the entry link is created (must match the project of either `ENTRY_GROUP_ID_1` or `ENTRY_GROUP_ID_2`).
- <var translate="no">LOCATION_ID</var>: the location ID where the entry link is created (must match the location of the selected parent entry group).
- <var translate="no">ENTRY_GROUP_ID_1</var>: the entry group ID of the first referenced entry (for example, `@dataplex` for glossary terms or `@bigquery` for tables).
- <var translate="no">ENTRY_LINK_ID</var>: a unique identifier for the entry link (1 to 63 characters; lowercase letters, numbers, and hyphens; must start with a letter and end with an alphanumeric character).
- <var translate="no">LINK_TYPE_PROJECT_ID</var>: the project ID where the entry link type resides (specify `dataplex-types` for system types).
- <var translate="no">LINK_TYPE_LOCATION_ID</var>: the location ID where the entry link type resides (specify `global` for system types).
- <var translate="no">ENTRY_LINK_TYPE_ID</var>: the identifier of the entry link type template (for example, `synonym` or `related` for system types).
- <var translate="no">PROJECT_ID_1</var>: the project ID containing the first entry.
- <var translate="no">LOCATION_ID_1</var>: the location ID containing the first entry.
- <var translate="no">ENTRY_ID_1</var>: the entry ID of the first metadata entry.
- <var translate="no">PROJECT_ID_2</var>: the project ID containing the second entry.
- <var translate="no">LOCATION_ID_2</var>: the location ID containing the second entry (can be in the same region or `global`).
- <var translate="no">ENTRY_GROUP_ID_2</var>: the entry group ID containing the second entry.
- <var translate="no">ENTRY_ID_2</var>: the entry ID of the second metadata entry.

**Configuration notes**

- **System link types**

  - For business glossary synonyms, set `ENTRY_LINK_TYPE_ID` to `synonym`.

  - For general associations between two entries or terms, set
    `ENTRY_LINK_TYPE_ID` to `related`.

- **Parent entry group placement.** For non-directional links, you can create
  the link in either `ENTRY_GROUP_ID_1` or `ENTRY_GROUP_ID_2`.

- **Path restrictions.** Control plane resources (such as glossary terms)
  don't support schema paths. Omit `path` when linking glossary terms.

### Create an entry link with required aspects

When an entry link type specifies `requiredAspects`, you must include the
required aspect payload in the `aspects` map when creating the entry link.

The aspect map key must use the format
`PROJECT_ID.LOCATION_ID.ASPECT_TYPE_ID`.

The following example creates a system `schema-join` entry link between two
BigQuery tables. The `schema-join` link type requires the
`dataplex-types.global.schema-join` aspect to define join keys between the tables:

```bash
gcurl -X POST "https://dataplex.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/@bigquery/entryLinks?entryLinkId=ENTRY_LINK_ID" \
-d '{
  "entryLinkType": "projects/dataplex-types/locations/global/entryLinkTypes/schema-join",
  "entryReferences": [
    {
      "name": "projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/@bigquery/entries/bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_1",
      "type": "UNSPECIFIED"
    },
    {
      "name": "projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/@bigquery/entries/bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_2",
      "type": "UNSPECIFIED"
    }
  ],
  "aspects": {
    "dataplex-types.global.schema-join": {
      "aspectType": "projects/dataplex-types/locations/global/aspectTypes/schema-join",
      "data": {
        "joins": [
          {
            "source": {
              "name": "TABLE_1",
              "fields": ["JOIN_COLUMN_1"]
            },
            "target": {
              "name": "TABLE_2",
              "fields": ["JOIN_COLUMN_2"]
            },
            "type": "JOIN",
            "inferenceSource": "USER"
          }
        ],
        "userManaged": true
      }
    }
  }
}'
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the project ID containing the BigQuery tables and parent `@bigquery` entry group.
- <var translate="no">LOCATION_ID</var>: the regional location of the BigQuery tables (for example, `us-central1`).
- <var translate="no">ENTRY_LINK_ID</var>: a unique identifier for the `schema-join` entry link (1 to 63 characters; lowercase letters, numbers, and hyphens; must start with a letter and end with an alphanumeric character).
- <var translate="no">DATASET_ID</var>: the BigQuery dataset ID.
- <var translate="no">TABLE_1</var>: the name of the first BigQuery table being joined.
- <var translate="no">TABLE_2</var>: the name of the second BigQuery table being joined.
- <var translate="no">JOIN_COLUMN_1</var>: the join column name in the first table (for example, `customer_id`).
- <var translate="no">JOIN_COLUMN_2</var>: the join column name in the second table (for example, `cust_id`).

**Configuration notes**

- **Aspect type.** Set `aspectType` to
  `projects/dataplex-types/locations/global/aspectTypes/schema-join`.

- **Aspect data**

  - Set `type` to `JOIN`.
  - Set `inferenceSource` to `USER` to indicate a user-defined join rather than an `AGENT`-inferred join.
  - Set `userManaged` to `true`.
- **Aspect limit.** You can attach at most one aspect to an entry link.
  Optional aspects aren't supported. You can attach an aspect only if
  explicitly declared in the governing link type's `requiredAspects`.

## Update an entry link

To update the aspects attached to an existing entry link (or create the
entry link if `allowMissing=true` is specified), send a `PATCH` request to the
entry link resource.

Because `entryLinkType` and `entryReferences` are required fields on the
`EntryLink` resource message, you must include them in the request body
matching the existing entry link.

The following example updates the aspect attached to an existing entry link:

```bash
gcurl -X PATCH "https://dataplex.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID/entryLinks/ENTRY_LINK_ID?aspectKeys=ASPECT_KEY" \
-d '{
  "name": "projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID/entryLinks/ENTRY_LINK_ID",
  "entryLinkType": "projects/LINK_TYPE_PROJECT_ID/locations/LINK_TYPE_LOCATION_ID/entryLinkTypes/ENTRY_LINK_TYPE_ID",
  "entryReferences": [
    {
      "name": "projects/PROJECT_ID_1/locations/LOCATION_ID_1/entryGroups/ENTRY_GROUP_ID_1/entries/ENTRY_ID_1",
      "type": "REFERENCE_TYPE_1"
    },
    {
      "name": "projects/PROJECT_ID_2/locations/LOCATION_ID_2/entryGroups/ENTRY_GROUP_ID_2/entries/ENTRY_ID_2",
      "type": "REFERENCE_TYPE_2"
    }
  ],
  "aspects": {
    "ASPECT_KEY": {
      "aspectType": "projects/ASPECT_PROJECT_ID/locations/ASPECT_LOCATION_ID/aspectTypes/ASPECT_TYPE_ID",
      "data": {
        "FIELD_NAME": "FIELD_VALUE"
      }
    }
  }
}'
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the project ID where the entry link resides.
- <var translate="no">LOCATION_ID</var>: the location ID of the entry group (for example, `us-central1` or `global`).
- <var translate="no">ENTRY_GROUP_ID</var>: the parent entry group ID containing the entry link.
- <var translate="no">ENTRY_LINK_ID</var>: the unique identifier of the entry link to update.
- <var translate="no">ASPECT_KEY</var>: the map key of the aspect to modify, formatted as `ASPECT_PROJECT_ID.ASPECT_LOCATION_ID.ASPECT_TYPE_ID` (for example, `dataplex-types.global.schema-join`).
- <var translate="no">LINK_TYPE_PROJECT_ID</var>: the project ID where the governing entry link type resides (specify `dataplex-types` for system types).
- <var translate="no">LINK_TYPE_LOCATION_ID</var>: the location ID where the governing entry link type resides (specify `global` for system types).
- <var translate="no">ENTRY_LINK_TYPE_ID</var>: the identifier of the entry link type template.
- <var translate="no">PROJECT_ID_1</var>: the project ID containing the first referenced entry.
- <var translate="no">LOCATION_ID_1</var>: the location ID containing the first referenced entry.
- <var translate="no">ENTRY_GROUP_ID_1</var>: the entry group ID containing the first referenced entry.
- <var translate="no">ENTRY_ID_1</var>: the entry ID of the first referenced entry.
- <var translate="no">REFERENCE_TYPE_1</var>: the reference role of the first entry (`SOURCE` or `UNSPECIFIED`).
- <var translate="no">PROJECT_ID_2</var>: the project ID containing the second referenced entry.
- <var translate="no">LOCATION_ID_2</var>: the location ID containing the second referenced entry.
- <var translate="no">ENTRY_GROUP_ID_2</var>: the entry group ID containing the second referenced entry.
- <var translate="no">ENTRY_ID_2</var>: the entry ID of the second referenced entry.
- <var translate="no">REFERENCE_TYPE_2</var>: the reference role of the second referenced entry (`TARGET` or `UNSPECIFIED`).
- <var translate="no">ASPECT_PROJECT_ID</var>: the project ID where the aspect type resides.
- <var translate="no">ASPECT_LOCATION_ID</var>: the location ID where the aspect type resides.
- <var translate="no">ASPECT_TYPE_ID</var>: the ID of the aspect type.
- <var translate="no">FIELD_NAME</var> and <var translate="no">FIELD_VALUE</var>: the updated aspect field payload.

**Query parameters**

You can append the following optional query parameters to the request URL:

- `aspectKeys`: The map key of the aspect to modify, formatted as
  `PROJECT_ID_OR_NUMBER.LOCATION_ID.ASPECT_TYPE_ID`.
  An entry link currently supports at most one attached aspect. If `aspectKeys`
  is omitted, the service updates the aspect included in the request payload.

- `allowMissing`: A boolean flag. When set to `true`, the service creates the
  entry link if it doesn't already exist. Defaults to `false`.

**Configuration notes**

- **Field immutability.** Both `entryReferences` and `entryLinkType` are
  immutable after resource creation. Attempting to change them on an existing
  link returns an HTTP 400 Bad Request status code (`INVALID_ARGUMENT`).

- **Aspect support.** You can only update or attach aspects that are explicitly
  declared in the governing link type `requiredAspects` configuration.

## View an entry link

Retrieve the configuration and metadata of a specific entry link.

```bash
gcurl -X GET "https://dataplex.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID/entryLinks/ENTRY_LINK_ID"
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the project ID containing the entry link.
- <var translate="no">LOCATION_ID</var>: the location ID of the parent entry group (for example, `us-central1` or `global`).
- <var translate="no">ENTRY_GROUP_ID</var>: the entry group ID containing the entry link (for example, `@bigquery` or `@dataplex` for a system entry group).
- <var translate="no">ENTRY_LINK_ID</var>: the unique identifier of the entry link to retrieve.

The response returns the complete `EntryLink` resource message, including its
resource name, the governing `entryLinkType`, the referenced entries
(`entryReferences` with `name`, `path`, and `type`), attached aspects, and
timestamps indicating when the entry link was created and last updated.

## Look up entry links referencing an entry

You can find all entry links that reference a specific metadata entry across
entry groups and projects.

> [!NOTE]
> **Note:** To look up entry links, you must enable the Dataplex API on the caller's attribution project.

Send a `GET` request to the `:lookupEntryLinks` custom method:

```bash
gcurl -X GET "https://dataplex.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID:lookupEntryLinks?entry=projects/PROJECT_ID_ENTRY/locations/LOCATION_ID_ENTRY/entryGroups/ENTRY_GROUP_ID/entries/ENTRY_ID&entryMode=ENTRY_MODE&entryLinkTypes=projects/LINK_TYPE_PROJECT_ID/locations/LINK_TYPE_LOCATION_ID/entryLinkTypes/ENTRY_LINK_TYPE_ID&pageSize=10"
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the Google Cloud project ID to which the lookup request is attributed.
- <var translate="no">LOCATION_ID</var>: the location ID for request attribution (for example, `us-central1` or `global`).
- <var translate="no">PROJECT_ID_ENTRY</var>: the project ID or project number containing the referenced entry.
- <var translate="no">LOCATION_ID_ENTRY</var>: the location ID containing the referenced entry.
- <var translate="no">ENTRY_GROUP_ID</var>: the parent entry group ID of the referenced entry (for example, `@bigquery` or `@dataplex`).
- <var translate="no">ENTRY_ID</var>: the entry ID of the metadata entry to search for.
- <var translate="no">ENTRY_MODE</var>: the role filter for the referenced entry (for example, `SOURCE`, `TARGET`, or `ENTRY_MODE_UNSPECIFIED`).
- <var translate="no">LINK_TYPE_PROJECT_ID</var>: the project ID where the entry link type resides (specify `dataplex-types` for system types).
- <var translate="no">LINK_TYPE_LOCATION_ID</var>: the location ID where the entry link type resides (specify `global` for system types).
- <var translate="no">ENTRY_LINK_TYPE_ID</var>: the identifier of the entry link type template (for example, `definition`).

**Query parameters**

- `entry` (Required): The relative resource name of the referenced entry
  (`projects/PROJECT_ID_OR_NUMBER/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID/entries/ENTRY_ID`).
  Entry links that reference this entry are returned.

- `entryMode` (Optional): Filters entry links by how the specified entry is
  referenced:

  - `ENTRY_MODE_UNSPECIFIED` (default): Returns directional links (`SOURCE` or
    `TARGET`) and non-directional links (`UNSPECIFIED`) referencing the
    entry.

  - `SOURCE`: Returns only directional entry links where the specified entry
    is the `SOURCE`.

  - `TARGET`: Returns only directional entry links where the specified entry
    is the `TARGET`.

- `entryLinkTypes` (Optional): Filters results by entry link type resource
  names. You can specify up to 10 entry link types by repeating the parameter
  in the query string (for example,
  `?entryLinkTypes=type1&entryLinkTypes=type2`). If omitted, links of all types
  are returned.

- `pageSize` (Optional): The maximum number of entry links to return per
  page. Defaults to 10. The maximum supported value is 10 (values greater
  than 10 are capped at 10).

- `pageToken` (Optional): A page token received from a previous
  `LookupEntryLinks` response (`nextPageToken`) to fetch the next page. When
  paginating, all other request parameters must match the original request.

**Redaction and authorization behavior**

When returning entry links, `LookupEntryLinks` checks whether the caller has
source-system read permissions on the opposite linked entry (unless
bypassed by `disableAuthorizedRetrieval: true` on the entry link type
configuration, such as on target glossary terms in definition links).

If the caller lacks `read` permissions on the opposite linked entry:

- `entryReferences[].name` for the unauthorized entry is masked to the
  literal string `*`.

- `entryReferences[].path` (if non-empty) is masked to `*`.

- All attached aspects on the entry link have their data cleared and are
  returned in `aspects` with empty content.

## List entry links in an entry group

To list entry links within a specific entry group with support for filtering
and pagination up to 1,000 links per page, send a `GET` request to the
`entryLinks` collection:

```bash
gcurl -X GET "https://dataplex.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID/entryLinks?pageSize=100&filter=entry_link_type%3D%22projects/LINK_TYPE_PROJECT_NUMBER/locations/LINK_TYPE_LOCATION_ID/entryLinkTypes/ENTRY_LINK_TYPE_ID%22"
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the project ID containing the parent entry group.
- <var translate="no">LOCATION_ID</var>: the location ID of the parent entry group (for example, `us-central1` or `global`).
- <var translate="no">ENTRY_GROUP_ID</var>: the entry group ID whose entry links you want to list (for example, `@bigquery` or `@dataplex` for system entry groups).
- <var translate="no">LINK_TYPE_PROJECT_NUMBER</var>: the project number of the project where the entry link type resides (filter expressions require project numbers instead of project IDs; use `655216118709` for system entry link types).
- <var translate="no">LINK_TYPE_LOCATION_ID</var>: the location ID where the entry link type resides (specify `global` for system link types).
- <var translate="no">ENTRY_LINK_TYPE_ID</var>: the identifier of the entry link type template.

**Query parameters**

- `pageSize` (Optional): The maximum number of entry links to return per
  page. If unspecified, at most 10 entry links are returned. The maximum
  supported value is 1,000 (values greater than 1,000 are capped at 1,000).

- `pageToken` (Optional): A page token received from a previous
  `ListEntryLinks` call (`nextPageToken`) to fetch the next page of results.

- `filter` (Optional): A case-sensitive filter expression using AIP-160
  filtering syntax. Filter expressions support project numbers only, not
  project IDs. You can filter by the following parameters:

  - `entry_link_type`: matches entry links of a specific entry link type.

  - `entry_references.name`: matches entry links that reference a specific
    entry resource name.

**Example filter expressions**

- Filter by entry link type:

      entry_link_type="projects/PROJECT_NUMBER/locations/LOCATION_ID/entryLinkTypes/ENTRY_LINK_TYPE_ID"

- Filter by referenced entry name:

      entry_references.name="projects/PROJECT_NUMBER/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID/entries/ENTRY_ID"

- Combined filter using `AND`:

      entry_link_type="projects/655216118709/locations/global/entryLinkTypes/definition" AND entry_references.name="projects/PROJECT_NUMBER/locations/us-central1/entryGroups/@bigquery/entries/ENTRY_ID"

## Delete an entry link

To delete an entry link, send a `DELETE` request to the entry link resource:

```bash
gcurl -X DELETE "https://dataplex.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID/entryLinks/ENTRY_LINK_ID"
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the project ID containing the parent entry group.
- <var translate="no">LOCATION_ID</var>: the location ID of the parent entry group (for example, `us-central1` or `global`).
- <var translate="no">ENTRY_GROUP_ID</var>: the entry group ID containing the entry link (for example, `@bigquery`, `@dataplex`, or a custom entry group ID).
- <var translate="no">ENTRY_LINK_ID</var>: the unique identifier of the entry link that you want to delete.

**Deletion behavior**

- Upon successful deletion, `DeleteEntryLink` returns the deleted `EntryLink`
  resource payload.

- Deleting an entry link removes the relationship edge from the context graph
  without modifying or deleting either referenced `Entry` resource or the
  governing `EntryLinkType` template.

## What's next

- See [About entry link types and entry links](https://docs.cloud.google.com/knowledge-catalog/docs/entries-relationship.md.txt).
- See [Create and manage entry link types](https://docs.cloud.google.com/knowledge-catalog/docs/manage-entry-link-types.md.txt).
- See [Manage synonyms and related terms](https://docs.cloud.google.com/knowledge-catalog/docs/manage-glossaries.md.txt#links-terms).
- See [Import entry links from a Google Sheet](https://docs.cloud.google.com/knowledge-catalog/docs/import-entrylinks-sheets.md.txt).
- See [Export entry links to a Google Sheet](https://docs.cloud.google.com/knowledge-catalog/docs/export-entrylinks-sheets.md.txt).