You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Country filter type (country_is, country_is_not, any)
[optional]
country_is
List[str]
Allowed countries
[optional]
country_is_not
List[str]
Excluded countries
[optional]
method
str
Method filter type (method_is, method_is_not, any)
[optional]
method_is
List[str]
Allowed HTTP methods
[optional]
method_is_not
List[str]
Excluded HTTP methods
[optional]
ip
str
IP filter type (ip_is, ip_is_not, any)
[optional]
ip_is
List[str]
Allowed IP addresses
[optional]
ip_is_not
List[str]
Excluded IP addresses
[optional]
custom_response_body
str
Custom response body content
custom_response_status_code
int
HTTP status code for custom response
[optional] [default to 200]
status_code
int
Legacy field for status code (deprecated)
[optional]
body
str
Legacy field for response body (deprecated)
[optional]
Example
fromquantcdn.models.v2_rule_custom_response_requestimportV2RuleCustomResponseRequest# TODO update the JSON string belowjson="{}"# create an instance of V2RuleCustomResponseRequest from a JSON stringv2_rule_custom_response_request_instance=V2RuleCustomResponseRequest.from_json(json)
# print the JSON string representation of the objectprint(V2RuleCustomResponseRequest.to_json())
# convert the object into a dictv2_rule_custom_response_request_dict=v2_rule_custom_response_request_instance.to_dict()
# create an instance of V2RuleCustomResponseRequest from a dictv2_rule_custom_response_request_from_dict=V2RuleCustomResponseRequest.from_dict(v2_rule_custom_response_request_dict)