Now I wanted to add subsequent path rules dynamically using gcloud during a deployment. So have I am unable to find a gcloud command qcloud command which can be used to add subsequent path rules.
Just want to check if anyone have thoughts around this. thank you.
Thanks for the response. I have gone thru the command which you have given. This opens a editor to add the rules. My scenario will run in a release pipeline and I can not take an approach of interactive editor.
One option I am thinking is edit the yaml content in command line and import it. But want to check if there is any better way.
Thanks for clarifying the requirement, Pradeep! I agree that the interactive approach offered by gcloud compute url-maps edit won’t be useful for automated/programmatic updates. I wonder whether you could use a client library (examples: https://cloud.google.com/compute/docs/reference/rest/v1/urlMaps/update#examples)
Thanks for providing the details. I am trying with client library and it looks like we can achieve this with some tweaking. But I am keep getting the error in update action.
“Required field ‘resource.fingerprint’ not specified”. Details: “[{‘message’: “Required field ‘resource.fingerprint’ not specified”, ‘domain’: ‘global’, ‘reason’: ‘required’}]”>
My JSON request is having fingerprint in it. please see the below screen print.