GeoFilter Class

Rules defining user's geo access within a CDN endpoint.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.cdn._serialization.Model
GeoFilter

Constructor

GeoFilter(*, relative_path: str, action: str | _models.GeoFilterActions, country_codes: List[str], **kwargs: Any)

Keyword-Only Parameters

Name Description
relative_path
str

Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.). Required.

action

Action of the geo filter, i.e. allow or block access. Required. Known values are: "Block" and "Allow".

country_codes

Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US. Required.

Variables

Name Description
relative_path
str

Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.). Required.

action

Action of the geo filter, i.e. allow or block access. Required. Known values are: "Block" and "Allow".

country_codes

Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US. Required.