Method: projects.locations.inputs.preview

Preview the streaming content of the specified input.

HTTP request

POST https://livestream.googleapis.com/v1/{name=projects/*/locations/*/inputs/*}:preview

The URL usesgRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the input resource, in the form of:projects/{project}/locations/{location}/inputs/{inputId}.

Request body

The request body must be empty.

Response body

Response message for "LivestreamService.PreviewInput"

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

JSON representation
{"uri":string,"bearerToken":string}
Fields
uri

string

URI to display the preview content.

bearerToken

string

A bearer token used to authenticate connections that display the preview content. The token expires after one hour. For HTTP connections, this token should be included as a bearer token inside the Authorization header.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see theAuthentication Overview.

IAM Permissions

Requires the followingIAM permission on thename resource:

  • livestream.inputs.preview

For more information, see theIAM documentation.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-10 UTC.