Gibt die Berechtigungen des Aufrufers für die angegebene Ressource zurück.
Jetzt testen
Anfrage
HTTP-Anfrage
POST https://www.googleapis.com/deploymentmanager/v2beta/projects/project/global/deployments/resource/testIamPermissions
Parameter
Parametername
Wert
Beschreibung
Pfadparameter
project
string
Projekt-ID für diese Anfrage
resource
string
Name oder ID der Ressource für diese Anfrage.
Autorisierung
Diese Anfrage erfordert eine Autorisierung für mindestens einen der folgenden Zugriffsbereiche:
Umfang
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/ndev.cloudman
Anfragetext
Geben Sie im Anfragetext Daten mit der folgenden Struktur ein:
{
"permissions": [
string
]
}
Name der Eigenschaft
Wert
Beschreibung
Hinweise
permissions[]
list
Die Reihe an Berechtigungen, die für diese Ressource überprüft werden soll. Berechtigungen mit Platzhaltern (wie '*' oder 'storage.*') sind nicht erlaubt.
Antwort
Bei Erfolg gibt diese Methode einen Antworttext mit der folgenden Struktur zurück:
{
"permissions": [
string
]
}
Name der Eigenschaft
Wert
Beschreibung
Hinweise
permissions[]
list
Ein Teil der `TestPermissionsRequest.permissions`, die dem Aufrufer erlaubt sind.
[[["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: 2025-03-04 (UTC)."],[[["This API call determines the permissions a caller has on a specified resource."],["It requires authorization through one of the scopes: `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/ndev.cloudman`."],["The request is made using a `POST` request to the specified URL and must contain a body specifying the permissions to check."],["The response provides a list of the permissions that the caller is allowed, from the set of permissions that were requested to be checked."],["The only parameters required are the `project` and the `resource` id/name."]]],[]]