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=organizations/*/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 a failure if the request is not found or is not in the pending state.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request method is a \u003ccode\u003ePOST\u003c/code\u003e to a specific URL that includes the request's unique identifier (\u003ccode\u003ename\u003c/code\u003e) as a path parameter using gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eTo make this API request, one must use the \u003ccode\u003eaccessapproval.requests.approve\u003c/code\u003e IAM permission and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a JSON object with an \u003ccode\u003eexpireTime\u003c/code\u003e field, which is a string representing the approval's expiration timestamp in RFC3339 UTC "Zulu" format.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns an \u003ccode\u003eApprovalRequest\u003c/code\u003e instance, while a failure will return \u003ccode\u003eNOT_FOUND\u003c/code\u003e if the request does not exist, or \u003ccode\u003eFAILED_PRECONDITION\u003c/code\u003e if the request is not pending.\u003c/p\u003e\n"]]],[],null,["# Method: organizations.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=organizations/*/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/)."]]