Method: services.batchGet

Returns the service configurations and enabled states for a given list of services.

HTTP request

GET https://serviceusage.googleapis.com/v1/{parent=*/*}/services:batchGet

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Parent to retrieve services from. If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The services.batchGet method currently only supports projects.

Authorization requires the following IAM permission on the specified resource parent:

  • serviceusage.services.get

Query parameters

Parameters
names[]

string

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

Request body

The request body must be empty.

Response body

Response message for the services.batchGet method.

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

JSON representation
{
  "services": [
    {
      object (Service)
    }
  ]
}
Fields
services[]

object (Service)

The requested Service states.

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.