UpdatePolicyGroup
Updates a Policy Group's configuration. This multi-purpose endpoint supports several operations in a single request via different body fields:
- newName: rename the policy group
- addStack / removeStack: add or remove stacks (with name and routingProject fields)
- addPolicyPack / removePolicyPack: add or remove policy packs (with name, version, versionTag, and optional config)
- addInsightsAccount / removeInsightsAccount: add or remove Insights accounts
Enforcement levels for policy packs are advisory, mandatory, or disabled.
An organization's default Policy Groups cannot be renamed: sending newName for the default stack Policy Group or the default accounts Policy Group returns a 400 error, and no other operation in the same request is applied.
A Policy Group's entity type (stacks or accounts) and enforcement mode (audit or preventative) are fixed when the group is created and cannot be changed here. To use a different entity type or mode, create a new Policy Group.
Request
- Base URL: https://api.pulumi.com (the document declares no server; this is the origin it was published from)
- URL: https://api.pulumi.com/api/orgs/{orgName}/policygroups/{policyGroup}
- Auth: none declared
Path parameters
The organization name
The policy group name
Request body
Response
No Content
Changes
No recorded changes to this operation across all 1 revision of this API.