- [HTTP request](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#body.aspect_1)
- [QuorumReply](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#QuorumReply)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#QuorumReply.SCHEMA_REPRESENTATION)
- [ChallengeReply](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#ChallengeReply)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#ChallengeReply.SCHEMA_REPRESENTATION)
- [RequiredActionQuorumReply](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#RequiredActionQuorumReply)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#RequiredActionQuorumReply.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#try-it)

**Full name**: projects.locations.singleTenantHsmInstances.proposals.approve

Approves a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#SingleTenantHsmInstanceProposal` for a given `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance`. The proposal must be in the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#State.ENUM_VALUES.PENDING` state.

### 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   
`POST https://cloudkms.googleapis.com/v1/{name=projects/*/locations/*/singleTenantHsmInstances/*/proposals/*}:approve`

<br />

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#SingleTenantHsmInstanceProposal.FIELDS.name` of the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#SingleTenantHsmInstanceProposal` to approve. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "quorumReply": { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#QuorumReply`) }, "requiredActionQuorumReply": { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#RequiredActionQuorumReply`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The approval payload. The type of approval payload must correspond to the type of approval_parameters in the proposal. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `quorumReply` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#QuorumReply`)`` Required. The reply to `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#QuorumParameters` for approving the proposal. |
| `requiredActionQuorumReply` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#RequiredActionQuorumReply`)`` Required. The reply to `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#RequiredActionQuorumParameters` for approving the proposal. |
| End of mutually exclusive fields. ||

### Response body

If successful, the response body is empty.

### 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).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `cloudkms.singleTenantHsmInstanceProposals.approve`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## QuorumReply

The reply to `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#QuorumParameters` for approving the proposal.

| JSON representation |
|---|
| ``` { "challengeReplies": [ { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#ChallengeReply`) } ] } ``` |

| Fields ||
|---|---|
| `challengeReplies[]` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#ChallengeReply`)`` Required. The challenge replies to approve the proposal. Challenge replies can be sent across multiple requests. The proposal will be approved when `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#QuorumParameters.FIELDS.required_approver_count` challenge replies are provided. |

## ChallengeReply

A reply to a challenge signed by a 2FA key.

| JSON representation |
|---|
| ``` { "signedChallenge": string, "publicKeyPem": string } ``` |

| Fields ||
|---|---|
| `signedChallenge` | `string (https://developers.google.com/discovery/v1/type-format format)` Required. The signed challenge associated with the 2FA key. The signature must be RSASSA-PKCS1 v1.5 with a SHA256 digest. A base64-encoded string. |
| `publicKeyPem` | `string` Required. The public key associated with the 2FA key. |

## RequiredActionQuorumReply

The reply to `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#RequiredActionQuorumParameters` for approving the proposal.

| JSON representation |
|---|
| ``` { "requiredChallengeReplies": [ { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#ChallengeReply`) } ], "quorumChallengeReplies": [ { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#ChallengeReply`) } ] } ``` |

| Fields ||
|---|---|
| `requiredChallengeReplies[]` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#ChallengeReply`)`` Required. All required challenges must be signed for the proposal to be approved. These can be sent across multiple requests. |
| `quorumChallengeReplies[]` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/approve#ChallengeReply`)`` Required. Quorum members' signed challenge replies. These can be provided across multiple requests. The proposal will be approved when `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#RequiredActionQuorumParameters.FIELDS.required_approver_count` quorumChallengeReplies are provided and when all requiredChallengeReplies are provided. |