Method: projects.approvalRequests.approve

Approves a request and returns the updated ApprovalRequest.

Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.

HTTP request

POST https://accessapproval.googleapis.com/v1beta1/{name=projects/*/approvalRequests/*}:approve

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Name of the approval request to approve.

Authorization requires the following Google IAM permission on the specified resource name:

  • accessapproval.requests.approve

Request body

The request body contains data with the following structure:

JSON representation
{
  "expireTime": string
}
Fields
expireTime

string (Timestamp format)

The expiration time of this approval.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

Response body

If successful, the response body contains an instance of ApprovalRequest.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Hai trovato utile questa pagina? Facci sapere cosa ne pensi:

Invia feedback per...

Access Approval