projects

Retrieves multiple automation sessions in a single batch request. Sessions are returned in the same order as the names in the request. If any of the requested sessions does not exist, the whole request fails with NOT_FOUND and no sessions are returned. When calling this method over HTTP/REST with a large number of names, the request URL may exceed the maximum URL length (about 16 KB) and be rejected. In that case, send a POST request to the same URL with the X-HTTP-Method-Override: GET header and pass the request parameters in a JSON (application/json) or form-encoded (application/x-www-form-urlencoded) body. See https://cloud.google.com/apis/docs/http#long_request_urls.

get/v1alpha/{+parent}/sessions:batchGet

Request

  • Base URL: https://devicerun.googleapis.com
  • URL: https://devicerun.googleapis.com/v1alpha/{+parent}/sessions:batchGet
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

Path parameters

parentstring required

Required. The parent resource shared by all sessions being retrieved. Format: projects/{project}/locations/{location}. The parent field in the BatchGetSessionsRequest message must match the parent of all Session resource names in names.

Query parameters

namesstring[]

Required. The names of the sessions to retrieve. A maximum of 500 sessions can be retrieved in a batch. Format: projects/{project}/locations/{location}/sessions/{session}.

Response

Successful response

Changes

No recorded changes to this operation across all 1 revision of this API.