- [HTTP request](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchGet#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchGet#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchGet#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchGet#body.request_body)
- [Response body](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchGet#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchGet#body.BatchGetServicesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchGet#body.aspect)
- [Try it!](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchGet#try-it)

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](https://google.aip.dev/127) 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](https://cloud.google.com/iam/docs/) 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 (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services#Service`) } ] } ``` |

| Fields ||
|---|---|
| `services[]` | ``object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services#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](https://docs.cloud.google.com/docs/authentication#authorization-gcp).