# Cloud Profiler API

Manages continuous profiling information.

- [REST Resource: v2.projects.profiles](https://docs.cloud.google.com/profiler/docs/reference/v2/rest#v2.projects.profiles)

## Service: cloudprofiler.googleapis.com

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

- <https://cloudprofiler.googleapis.com/$discovery/rest?version=v2>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://cloudprofiler.googleapis.com`

## REST Resource: [v2.projects.profiles](https://docs.cloud.google.com/profiler/docs/reference/v2/rest/v2/projects.profiles)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/profiler/docs/reference/v2/rest/v2/projects.profiles/create` | `POST /v2/{parent=projects/*}/profiles` CreateProfile creates a new profile resource in the online mode. |
| `https://docs.cloud.google.com/profiler/docs/reference/v2/rest/v2/projects.profiles/createOffline` | `POST /v2/{parent=projects/*}/profiles:createOffline` CreateOfflineProfile creates a new profile resource in the offline mode. |
| `https://docs.cloud.google.com/profiler/docs/reference/v2/rest/v2/projects.profiles/list` | `GET /v2/{parent=projects/*}/profiles` Lists profiles which have been collected so far and for which the caller has permission to view. |
| `https://docs.cloud.google.com/profiler/docs/reference/v2/rest/v2/projects.profiles/patch` | `PATCH /v2/{profile.name=projects/*/profiles/*}` UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. |