- [HTTP request](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations/lookupRuntimeProjectAttachment#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations/lookupRuntimeProjectAttachment#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations/lookupRuntimeProjectAttachment#body.request_body)
- [Response body](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations/lookupRuntimeProjectAttachment#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations/lookupRuntimeProjectAttachment#body.LookupRuntimeProjectAttachmentResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations/lookupRuntimeProjectAttachment#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations/lookupRuntimeProjectAttachment#body.aspect_1)

Look up a runtime project attachment. This API can be called in the context of any project.

### HTTP request

`GET https://apihub.googleapis.com/v1/{name=projects/*/locations/*}:lookupRuntimeProjectAttachment`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all regions. Expected format: `projects/{project}/locations/{location}`. |

### Request body

The request body must be empty.

### Response body

The `https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.runtimeProjectAttachments/list#google.cloud.apihub.v1.RuntimeProjectAttachmentService.ListRuntimeProjectAttachments` method's response.

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

| JSON representation |
|---|
| ``` { "runtimeProjectAttachment": { object (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.runtimeProjectAttachments#RuntimeProjectAttachment`) } } ``` |

| Fields ||
|---|---|
| `runtimeProjectAttachment` | ``object (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.runtimeProjectAttachments#RuntimeProjectAttachment`)`` Runtime project attachment for a project if exists, empty otherwise. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `apihub.runTimeProjectAttachments.list`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).