I have an export-policy with policy.id as 8179334014 and would like to retrieve all the rules information under this export-policy and I can do this if I run below command
response = requests.get('https://cluster-lif/api/protocols/nfs/export-policies/{8179334014}/rules', auth = ('xxxx', 'xxxx'), headers = {'accept' : 'application/hal+json' }, verify = False)
However if I want to pass variable instead of value "8179334014" say like below.
policy_id = 8179334014
response = requests.get('https://cluster-lif/api/protocols/nfs/export-policies/{policy_id}/rules', auth = ('xxxx', 'xxxx'), headers = {'accept' : 'application/hal+json' }, verify = False)
It doesnt work as its treating policy_id as value, looking for help to find a solution for this.