# Method: iamPolicies.queryAuditableServices

- [HTTP request](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#body.HTTP_TEMPLATE)
- [Request body](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#body.QueryAuditableServicesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#body.aspect)
- [AuditableService](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#AuditableService)
  - [JSON representation](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#AuditableService.SCHEMA_REPRESENTATION)
- [Examples](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#examples)
- [Try it!](https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#try-it)

Returns a list of services that allow you to opt into audit logs that are not generated by default.

To learn more about audit logs, see the [Logging documentation](https://cloud.google.com/logging/docs/audit).

### HTTP request

`POST https://iam.googleapis.com/v1/iamPolicies:queryAuditableServices`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "fullResourceName": string } ``` |

| Fields ||
|---|---|
| `fullResourceName` | `string` Required. The full resource name to query from the list of auditable services. The name follows the Google Cloud Platform resource format. For example, a Cloud Platform project with id `my-project` will be named `//cloudresourcemanager.googleapis.com/projects/my-project`. |

### Response body

A response containing a list of auditable services for a resource.

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

| JSON representation |
|---|
| ``` { "services": [ { object (`https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#AuditableService`) } ] } ``` |

| Fields ||
|---|---|
| `services[]` | ``object (`https://docs.cloud.google.com/iam/docs/reference/rest/v1/iamPolicies/queryAuditableServices#AuditableService`)`` The auditable services for a resource. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/iam`
- `
  https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

## AuditableService

Contains information about an auditable service.

| JSON representation |
|---|
| ``` { "name": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Public name of the service. For example, the service name for IAM is 'iam.googleapis.com'. |