REST Resource: properties.dataStreams.measurementProtocolSecrets

  • A MeasurementProtocolSecret is a secret value used for sending hits to Measurement Protocol.

  • The JSON representation of a MeasurementProtocolSecret includes name, displayName, and secretValue.

  • name and secretValue are output only fields, while displayName is a required input field.

  • Methods available for MeasurementProtocolSecret include create, delete, get, list, and patch.

Resource: MeasurementProtocolSecret

A secret value used for sending hits to Measurement Protocol.

JSON representation
{
  "name": string,
  "displayName": string,
  "secretValue": string
}
Fields
name

string

Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}

displayName

string

Required. Human-readable display name for this secret.

secretValue

string

Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.

Methods

create

Creates a measurement protocol secret.

delete

Deletes target MeasurementProtocolSecret.

get

Lookup for a single MeasurementProtocolSecret.

list

Returns child MeasurementProtocolSecrets under the specified parent Property.

patch

Updates a measurement protocol secret.