Method: policies.set
Legt die Zugriffskontrollrichtlinie für die angegebene Ressource fest. Ersetzt eventuell vorhandene Richtlinien.
HTTP-Anfrage
POST https://sasportal.googleapis.com/v1alpha1/policies:set
Die URL verwendet die Syntax der gRPC-Transcodierung.
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
JSON-Darstellung |
{
"resource": string,
"policy": {
object (Policy )
},
"disableNotification": boolean
} |
Felder |
resource |
string
Erforderlich. Die Ressource, für die die Richtlinie angegeben wird. Diese Richtlinie ersetzt alle vorhandenen Richtlinien.
|
policy |
object (Policy )
Erforderlich. Die Richtlinie, die auf resource angewendet werden soll.
|
disableNotification |
boolean
Optional. Legen Sie das Feld auf true fest, um die Onboarding-Benachrichtigung zu deaktivieren.
|
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)."],[[["Sets the access control policy on a specified resource, replacing any existing policy."],["The request body requires the resource, the policy to be applied, and optionally allows disabling onboarding notifications."],["A successful response returns the applied policy."],["Utilizes the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization."]]],["The core function is to set an access control policy on a resource via a `POST` HTTP request to `https://sasportal.googleapis.com/v1alpha1/policies:set`. The request body, in JSON format, requires a `resource` string and a `policy` object. Optionally, `disableNotification` can be set to `true`. A successful request returns a `Policy` instance. This process requires the `https://www.googleapis.com/auth/sasportal` OAuth scope. Existing policies are replaced.\n"]]