Method: organizations.environments.getDatalocation

Get Google Cloud Storage (GCS) signed url for specific organization and environment. Collection agent uses this signed url to upload data to GCS bucket.

HTTP request

GET https://apigee.googleapis.com/v1/{name=organizations/*/environments/*/datalocation}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The parent organization and environment names. Must be of the form organizations/{org}/environments/{env}/datalocation.

Query parameters

Parameters
repo

string

Required. Repository name

dataset

string

Required. Dataset could be one of api, mint, trace and event

contentType

string

Optional. Content-Type for uploaded file.

relativeFilePath

string

Required. Relative path to the GCS bucket

Request body

The request body must be empty.

Response body

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

JSON representation
{
  "url": string
}
Fields
url

string

Output only. GCS signed url. Signed URLs provide a way to give time-limited read or write access to anyone in possession of the URL, regardless of whether they have a Google account.

Authorization Scopes

Requires the following OAuth scope:

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