post
https://Use API Lookup for a base URL/resourcePolicies
Create a resource policy. A resource policy packages resources that are to be made linkable to realms. A resource policy can be homed to a project or created outside of the context of a project. Once a resource home is created for the resource policy, all access to the resource policy would need to be in the context of the project scope.
For an unscoped resource policy, the creator is granted "manageResourcePolicy", "addGrant:manageResourcePolicy" access on the resource policy HRN. For a resource policy scoped to a project all members of the home project get the "projectEnabled" action "manageResourcePolicy" access on the resource policy.
Access Control:
- The calling principal must have "createResourcePolicy" action permission in the "authorization" service.
- The unscoped access to this api is granted via the default authorization policy.
- The scoped access to this api is granted via the default "projectEnabled" action for members of the project.
- This API works for tokens with or without a project scope.