Creates a policy. Returns a google.rpc.Status
A documented Google Organization Policy operation that changes something in your account. Describe the outcome you want in plain words — HumDay writes the program, proves it, and runs it.
What this operation does
Creates a policy. Returns a google.rpc.Status with google.rpc.Code.NOTFOUND if the constraint does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADYEXISTS if the…
- POSTChanges data · projects
orgpolicy.googleapis.com/v2/{parent}/policies
How HumDay uses it
- You describe the outcome. Not this operation by name — what you want to happen. HumDay works out which operations it needs.
- The contract names it. Before anything is built, you see exactly which Google Organization Policy operations the program may use, and this is one of them.
- You approve access. Because this one changes data, it cannot run until you have explicitly granted it.
Other Google Organization Policy operations
- Creates a custom constraintPOST · changes data
- Deletes a policy. Returns a google.rpc.StatusDELETE · changes data
- Updates a policy. Returns a google.rpc.StatusPATCH · changes data
- Gets a policy on a resourceGET · reads data
- Gets the effective policy on a resourceGET · reads data
- Retrieves all of the policies that exist on a particular resourceGET · reads data
- Lists constraints that could be applied on the specified resourceGET · reads data
- Retrieves all of the custom constraintsGET · reads data
Questions
- Can HumDay creates a policy. returns a google.rpc.status in Google Organization Policy?
- Yes. This operation is published in Google Organization Policy's own API description, so HumDay can use it without a hand-built connector — once you have approved it for your automation.
- Will this change my Google Organization Policy data?
- Yes — this is a POST operation, so it changes something in Google Organization Policy. HumDay holds anything that writes behind an approval you grant explicitly, and the contract you approve says what it may touch.
- Do I need to write code?
- No. You describe the outcome you want in plain words. HumDay agrees a contract with you, writes the program, and shows you a proof run before anything touches your Google Organization Policy account.
Where this came from
Read from a published API description for Google Organization Policy at orgpolicy.googleapis.com/$discovery/rest?version=v2. The description above is the provider’s own wording, not ours. Last published 2023-04-21.