Chef - fetching policy and group via API

Policy lock file is going to be associated with a specific policyfile revision in a policy_group. I don’t think there is anyway to get the specific policy_lock_file. The revision ID is dependent on the content so if you have the policyfile with exact same content then creating a new lockfile with chef install should give you a lockfile with same revision ID as that found in the policy_group.