schemas_get_resource_policy function

Retrieves the resource-based policy attached to a given registry