Creates a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. Once the binding is created, the policy is applied to the target.
HTTP request
POST https://iam.googleapis.com/v3/{parent=organizations/*/locations/*}/policyBindings
Required. The parent resource where this policy binding will be created. The binding parent is the closest Resource Manager resource (project, folder or organization) to the binding target.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-21 UTC."],[[["\u003cp\u003eThis endpoint creates a policy binding, which applies a policy to a specified target resource within Google Cloud.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is required to specify the parent resource (project, folder, or organization) where the policy binding will be created.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epolicyBindingId\u003c/code\u003e query parameter is mandatory and sets the unique identifier for the policy binding, following a specific pattern.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a \u003ccode\u003ePolicyBinding\u003c/code\u003e instance, while the successful response returns an \u003ccode\u003eOperation\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]