- [HTTP request](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#body.request_body)
- [Response body](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#body.ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#body.aspect)
- [KeyAccessJustificationsEnrollmentConfig](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#try-it)

**Full name**: projects.showEffectiveKeyAccessJustificationsEnrollmentConfig

Returns the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig` of the resource closest to the given project in hierarchy.

### HTTP request

Choose an endpoint:
global europe-west6 us-east7 europe-west3 us-west8 europe-west9 me-central2 us-east1 us-west1 us-west3 us-central2 us-east4 us-west2 europe-west8 us-central1 us-west4 us-east5 us-south1 northamerica-northeast1 northamerica-northeast2 us in ca   
`GET https://cloudkms.googleapis.com/v1/{project=projects/*}:showEffectiveKeyAccessJustificationsEnrollmentConfig`

<br />

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

### Path parameters

| Parameters ||
|---|---|
| `project` | `string` Required. Specifies the number or id of the project to get the effective `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig` for. |

### Request body

The request body must be empty.

### Response body

Represents a response message for `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#google.cloud.kms.v1.KeyAccessJustificationsConfig.ShowEffectiveKeyAccessJustificationsEnrollmentConfig`

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

| JSON representation |
|---|
| ``` { "hardwareConfig": { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig`) }, "softwareConfig": { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig`) }, "externalConfig": { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig`) } } ``` |

| Fields ||
|---|---|
| `hardwareConfig` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig`)`` Contains the effective `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig` for hardware keys. |
| `softwareConfig` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig`)`` Contains the effective `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig` for software keys. |
| `externalConfig` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig`)`` Contains the effective `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects/showEffectiveKeyAccessJustificationsEnrollmentConfig#KeyAccessJustificationsEnrollmentConfig` for external keys. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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

## KeyAccessJustificationsEnrollmentConfig

Represents the configuration of a protection level for a project's Key Access Justifications enrollment.

| JSON representation |
|---|
| ``` { "auditLogging": boolean, "policyEnforcement": boolean } ``` |

| Fields ||
|---|---|
| `auditLogging` | `boolean` Indicates whether the project has Key Access Justifications logging enabled. |
| `policyEnforcement` | `boolean` Indicates whether the project is enrolled in Key Access Justifications policy enforcement. |