VCL | how to get the current service with vcl snippets in pass/miss?

I would like to get info about the current deliver service name with VCL code.
What is the VCL code to handle it in vcl_pass / vcl_miss?
Thanks.

Hi @tchelet, unfortunately the service name is not exposed in VCL. Do you want to use the same VCL for multiple services? The only way I can think of other than simply writing the service name into your VCL source code, would be to create an edge dictionary on each of your services and add an item to it with the name of the service. You could then use the same code in multiple services and it would consult, in each case, the dictionary attached to that service. For details see: