Method: policies.get
Ruft die Zugriffssteuerungsrichtlinie für eine Ressource ab. Gibt eine leere Richtlinie zurück, wenn die Ressource vorhanden und keine Richtlinie festgelegt ist.
HTTP-Anfrage
POST https://sasportal.googleapis.com/v1alpha1/policies:get
Die URL verwendet die Syntax der gRPC-Transcodierung.
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
JSON-Darstellung |
{
"resource": string
} |
Felder |
resource |
string
Erforderlich. Die Ressource, für die die Richtlinie angefordert wird.
|
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Policy
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/sasportal
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2022-11-02 (UTC).
[null,null,["Zuletzt aktualisiert: 2022-11-02 (UTC)."],[[["Retrieves the access control policy for a given resource, returning an empty policy if none is set."],["Utilizes a POST request to the `https://sasportal.googleapis.com/v1alpha1/policies:get` endpoint with a JSON request body specifying the resource."],["The response body will contain the policy details within a `Policy` object if successful."],["Requires the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization."]]],["The core content describes how to retrieve an access control policy for a resource. A `POST` request is sent to `https://sasportal.googleapis.com/v1alpha1/policies:get`. The request body requires a JSON object with a \"resource\" string field, specifying the target resource. A successful response returns a `Policy` object. The process requires the OAuth scope `https://www.googleapis.com/auth/sasportal` for authorization. An empty policy will be returned if no policy is set.\n"]]