ArmCdnModelFactory.GeoFilter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Rules defining user's geo access within a CDN endpoint.
public static Azure.ResourceManager.Cdn.Models.GeoFilter GeoFilter(string relativePath = default, Azure.ResourceManager.Cdn.Models.GeoFilterAction action = Azure.ResourceManager.Cdn.Models.GeoFilterAction.Block, System.Collections.Generic.IEnumerable<string> countryCodes = default);
static member GeoFilter : string * Azure.ResourceManager.Cdn.Models.GeoFilterAction * seq<string> -> Azure.ResourceManager.Cdn.Models.GeoFilter
Public Shared Function GeoFilter (Optional relativePath As String = Nothing, Optional action As GeoFilterAction = Azure.ResourceManager.Cdn.Models.GeoFilterAction.Block, Optional countryCodes As IEnumerable(Of String) = Nothing) As GeoFilter
Parameters
- relativePath
- String
Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).
- action
- GeoFilterAction
Action of the geo filter, i.e. allow or block access.
- countryCodes
- IEnumerable<String>
Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US.
Returns
A new GeoFilter instance for mocking.