Method: iamPolicies.queryAuditableServices

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.

HTTP request

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

The URL uses gRPC Transcoding 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 (AuditableService)
    }
  ]
}
Fields
services[]

object (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.

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'.