> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Projects

Search for projects that the caller has both `resourcemanager.projects.get` permission on, and also satisfy the specified query. This method returns projects in an unspecified order. This method is eventually consistent with project mutations; this means that a newly created project may not appear in the results or recent updates to an existing project may not be reflected in the results. To retrieve the latest state of a project, use the GetProject method.

<Note>
  External Documentation

  To learn more, visit the [GCP documentation](https://docs.cloud.google.com/resource-manager/reference/rest/v3/projects/search).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Query            | A query string to search for available projects.<br /><br />This parameter supports searching:<br />- `display name`<br />- `parent organization/folder`<br />- `project ID`<br />- `state`<br />- `labels`<br />- `*` (wildcard)<br /><br />Examples:<br />- `name:my-project*` - name starts with "my-project".<br />- `labels.env:production` - has label "env" with value "production".<br />- `state:ACTIVE` - active projects only. |
  | Return All Pages | Automatically fetch all resources, page by page.                                                                                                                                                                                                                                                                                                                                                                                          |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                   |
  | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Page Size | Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. |
</div>

## Example Output

```json theme={"dark"}
{
	"results": [
		{
			"createTime": "2021-12-24T05:33:39",
			"displayName": "<string>",
			"etag": "<string>",
			"name": "<string>",
			"parent": "<string>",
			"projectId": "<string>",
			"state": "<string>"
		}
	]
}
```

## Workflow Library Example

[Search Projects with Gcp and Send Results Via Email](https://library.blinkops.com/workflows/search-projects-with-gcp-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/search-projects-with-gcp-and-send-results-via-email/canvas" />
</div>
