Gibt die Berechtigungen des Aufrufers für die angegebene Ressource zurück. Ist die Ressource nicht vorhanden, wird ein leerer Berechtigungssatz zurückgegeben, kein NOT_FOUND-Fehler.
Hinweis: Dieser Vorgang wurde speziell für die Entwicklung von UIs und Befehlszeilentools konzipiert, die mit Berechtigungen arbeiten, nicht für Autorisierungsprüfungen. Der Vorgang kann Fehler ohne Warnung ignorieren (fail-open).
HTTP-Anfrage
POST https://clouddeploy.googleapis.com/v1/{resource=projects/*/locations/*/targets/*}:testIamPermissions
ERFORDERLICH: Die Ressource, für die das Richtliniendetail angefragt wird. Den passenden Wert für dieses Feld finden Sie unter Ressourcennamen.
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
JSON-Darstellung
{"permissions": [string]}
Felder
permissions[]
string
Die Berechtigungen, die für die resource geprüft werden sollen. Berechtigungen mit Platzhaltern (z. B. * oder storage.*) sind nicht zulässig. Weitere Informationen finden Sie in der IAM-Übersicht.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von TestIamPermissionsResponse.
[[["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-06-28 (UTC)."],[[["This endpoint (`testIamPermissions`) is used to determine the permissions a caller has on a specified resource, returning an empty set if the resource does not exist."],["The HTTP request for this operation is a `POST` method to a specified URL that uses gRPC Transcoding syntax and the required resource path parameter."],["The request body must be in JSON format and includes an array of strings, which represents the specific permissions to check for on the target resource."],["The authorization for this API call requires the OAuth scope `https://www.googleapis.com/auth/cloud-platform`."],["This operation is intended for building permission-aware UIs and tools, and not for authorization checks, so may fail open."]]],[]]