Records a Policy Author's approval for a policy that is waiting to be activated or disabled.
When this approval reaches the required number of Policy Author approvals, the server re-verifies every collected signature against the current TransactionPolicyAuthorTrustBundle before completing the transition: a policy waiting for activation becomes active, and a policy waiting to be disabled becomes disabled.
Returns the following error codes:
- NOT_FOUND: The TransactionPolicy does not exist.
- FAILED_PRECONDITION: The policy is not waiting for approval.
- ALREADY_EXISTS: The Policy Author has already approved this transition.
- INVALID_ARGUMENT: The authorization in authorizationInfo cannot be verified.
- PERMISSION_DENIED: The caller is not an authorized Policy Author.
HTTP request
POST https://mpc.googleapis.com/v1beta/{name=projects/*/locations/*/instances/*/transactionPolicies/*}:approve
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. The name of the TransactionPolicy to approve. Format: projects/{project}/locations/{location}/instances/{instance}/transactionPolicies/{transactionPolicy} It takes the form |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"authorizationInfo": {
object ( |
| Fields | |
|---|---|
authorizationInfo |
Required. The Policy Author's authorization over a TransactionPolicySigningPayload with:
|
Response body
If successful, the response body contains an instance of TransactionPolicy.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.