Genehmigt eine Anfrage und gibt die aktualisierte ApprovalRequest zurück.
Gibt NOT_FOUND zurück, wenn die Anforderung nicht existiert. Gibt FAILED_PRECONDITION zurück, wenn die Anfrage vorhanden ist, sich aber nicht im Status „ausstehend“ befindet.
HTTP-Anfrage
POST https://accessapproval.googleapis.com/v1/{name=projects/*/approvalRequests/*}:approve
Ein Zeitstempel im Format RFC3339 UTC "Zulu" mit einer Auflösung im Nanosekundenbereich und bis zu neun Nachkommastellen. Beispiele: "2014-10-02T15:01:23Z" und "2014-10-02T15:01:23.045123456Z".
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von ApprovalRequest.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-05-16 (UTC)."],[[["\u003cp\u003eThis API endpoint approves an existing approval request, updating its status and returning the modified request, or errors if it does not exist or is not pending.\u003c/p\u003e\n"],["\u003cp\u003eThe request is made using a \u003ccode\u003ePOST\u003c/code\u003e HTTP method to a specific URL with a dynamic \u003ccode\u003ename\u003c/code\u003e path parameter, representing the ID of the approval request to be updated, which requires \u003ccode\u003eaccessapproval.requests.approve\u003c/code\u003e IAM permission on the target resource.\u003c/p\u003e\n"],["\u003cp\u003eThe request body includes a \u003ccode\u003eexpireTime\u003c/code\u003e field, using RFC3339 UTC "Zulu" timestamp format, specifying when the approval should expire, if successful.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns an instance of \u003ccode\u003eApprovalRequest\u003c/code\u003e, while a \u003ccode\u003eNOT_FOUND\u003c/code\u003e or \u003ccode\u003eFAILED_PRECONDITION\u003c/code\u003e error can be returned if an issue occurs.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: projects.approvalRequests.approve\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nApproves a request and returns the updated ApprovalRequest.\n\nReturns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.\n\n### HTTP request\n\n`POST https://accessapproval.googleapis.com/v1/{name=projects/*/approvalRequests/*}:approve`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [ApprovalRequest](/assured-workloads/access-approval/docs/reference/rest/v1/folders.approvalRequests#ApprovalRequest).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]