AI-generated Key Takeaways
-
The
gauges:batchGetmethod is used to retrieve metadata about multiple gauges. -
The HTTP request uses a GET method to
https://floodforecasting.googleapis.com/v1/gauges:batchGet. -
The request requires a
names[]query parameter with a list of gauge names, limited to 100,000 entries. -
The request body must be empty.
-
The response body contains a JSON object with a
gaugesfield, which is an array of Gauge objects.
Get metadata about multiple gauges.
HTTP request
GET https://floodforecasting.googleapis.com/v1/gauges:batchGet
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
names[] |
Required. The gauge names to retrieve. Name format: gauges/{gaugeId}. The supported list size is limited to 100,000. If a list larger than 100,000 is provided it fails with an INVALID_REQUEST error. |
Request body
The request body must be empty.
Response body
The response of gauges.batchGet.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"gauges": [
{
object ( |
| Fields | |
|---|---|
gauges[] |
The requested gauges. |