GetIamPolicyRequest
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Anfragenachricht für die Methode GetIamPolicy
.
JSON-Darstellung |
{
"resource": string,
"options": {
object (GetPolicyOptions )
}
} |
Felder |
resource |
string
ERFORDERLICH: Die Ressource, für die die Richtlinie angefragt wird. Den passenden Wert für dieses Feld finden Sie unter Ressourcennamen.
|
options |
object (GetPolicyOptions )
OPTIONAL: Ein Objekt des Typs GetPolicyOptions zum Festlegen von Optionen für GetIamPolicy .
|
GetPolicyOptions
Umfasst die für GetIamPolicy bereitgestellten Einstellungen.
JSON-Darstellung |
{
"requestedPolicyVersion": integer
} |
Felder |
requestedPolicyVersion |
integer
Optional. Die maximale Richtlinienversion, die zum Formatieren der Richtlinie verwendet wird. Gültige Werte sind 0, 1 und 3. Anfragen mit einem ungültigen Wert werden abgelehnt. Anfragen für Richtlinien mit bedingten Bindungen müssen Version 3 angeben. Richtlinien ohne bedingte Rollenbindungen können einen beliebigen gültigen Wert angeben oder das Feld ohne Festlegung lassen. Die Richtlinie in der Antwort verwendet möglicherweise die von Ihnen angegebene Richtlinienversion oder eine niedrigere Richtlinienversion. Wenn Sie beispielsweise Version 3 angeben, die Richtlinie jedoch keine bedingten Rollenbindungen hat, verwendet die Antwort Version 1. Welche Ressourcen Bedingungen in ihren IAM-Richtlinien unterstützen, erfahren Sie in der IAM-Dokumentation.
|
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: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eGetIamPolicy\u003c/code\u003e request retrieves the IAM policy for a specified Google Earth Engine resource.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the \u003ccode\u003eresource\u003c/code\u003e for which the policy is being requested.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, \u003ccode\u003eGetPolicyOptions\u003c/code\u003e can be included to specify the desired policy version (0, 1, or 3).\u003c/p\u003e\n"],["\u003cp\u003ePolicies with conditional role bindings must use version 3, while others may use any valid version or leave it unset.\u003c/p\u003e\n"],["\u003cp\u003eThe response might contain a lower policy version than requested if the resource doesn't support the specified version.\u003c/p\u003e\n"]]],[],null,["# GetIamPolicyRequest\n\nRequest message for `GetIamPolicy` method.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"resource\": string, \"options\": { object (/earth-engine/reference/rest/Shared.Types/GetIamPolicyRequest#GetPolicyOptions) } } ``` |\n\n| Fields ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `resource` | `string` REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |\n| `options` | `object (`[GetPolicyOptions](/earth-engine/reference/rest/Shared.Types/GetIamPolicyRequest#GetPolicyOptions)`)` OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. |\n\nGetPolicyOptions\n----------------\n\nEncapsulates settings provided to GetIamPolicy.\n\n| JSON representation |\n|-----------------------------------------------|\n| ``` { \"requestedPolicyVersion\": integer } ``` |\n\n| Fields ||\n|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestedPolicyVersion` | `integer` Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |"]]