C

Cloud Profiler API v2

REST discovered

Details
URL
https://cloudprofiler.googleapis.com/
Docs
https://docs.cloud.google.com/profiler/docs/reference/v2/rest
Authentication
Google Cloud API key api_key discovered Get key ↗
?key=<credential>

In Google Cloud Console Credentials, create an API key for your Google Cloud project. Restrict it to the Cloud Profiler API as needed. The Cloud Profiler discovery document says the key query parameter is accepted and is required unless you provide an OAuth 2.0 token.

Google Cloud OAuth 2.0 access token oauth2 discovered Set up OAuth ↗
Authorization: Bearer <credential>

Create OAuth 2.0 client credentials in Google Cloud Console Credentials, then obtain an access token using Google's OAuth 2.0 flow, or use Google application default credentials / a service account flow supported by Google client libraries. The Cloud Profiler API reference documents authorization scopes on methods, and the discovery document says access_token / oauth_token are accepted unless an API key is used.