# Method: projects.locations.connections.search

- [HTTP request](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#body.request_body)
- [Response body](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#body.SearchConnectionsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#body.aspect)
- [SearchConnectionInstance](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#SearchConnectionInstance)
  - [JSON representation](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#SearchConnectionInstance.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#try-it)

Returns Top matching Connections for a given query.

### HTTP request

`GET https://connectors.googleapis.com/v1/{name=projects/*/locations/*/connections}:search`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. Parent resource of the Connection, of the form: `projects/*/locations/*/connections` |

### Query parameters

| Parameters ||
|---|---|
| `query` | `string` Required. The query against which the search needs to be done. |
| `pageSize` | `integer` Optional. The number of top matching connectors to return |
| `pageToken` | `string` Optional. pageToken |

### Request body

The request body must be empty.

### Response body

Response message for Connectors.SearchConnections.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "connections": [ { object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#SearchConnectionInstance`) } ], "unreachable": [ string ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `connections[]` | ``object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections/search#SearchConnectionInstance`)`` A list of connectors. |
| `unreachable[]` | `string` Locations that could not be reached. |
| `nextPageToken` | `string` Optional. pageToken |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

## SearchConnectionInstance

SearchConnectionInstance represents an instance of connector with specific fields

| JSON representation |
|---|
| ``` { "connection": { object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections#Connection`) }, "entitySchema": { object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/RuntimeEntitySchema`) }, "actionSchema": { object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/RuntimeActionSchema`) } } ``` |

| Fields ||
|---|---|
| `connection` | ``object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections#Connection`)`` Output only. Connection details |
| `entitySchema` | ``object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/RuntimeEntitySchema`)`` Output only. Schema of a runtime entity. |
| `actionSchema` | ``object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/RuntimeActionSchema`)`` Output only. Schema of a runtime action. |