F5 Distributed Cloud Services API for ves.io.schema.service_policy
Download OpenAPI specification:Download
A service_policy object consists of an unordered list of predicates and a list of service policy rules. The predicates are evaluated against a set of input fields that are extracted from or derived from an L7 request API. Any predicates that are not specified in a policy are implicitly considered to be true. The rules in the policy are also evaluated against the input fields. They are treated as an ordered or unordered list depending on the value of the rule combining algorithm. A request API is considered to match a policy if all predicates in the policy evaluate to true and the request API matches one of the rules in the policy.
If the configured rule combining algorithm is FIRST_MATCH, the rules in the policy are evaluated sequentially till a matching rule is identified. If the rule combining algorithm is ALLOW_OVERRIDES all rules with an ALLOW action are evaluated prior to rules with a DENY action. If it is DENY_OVERRIDES, all rules with a DENY action are evaluated prior to rules with a ALLOW action.
A service policy is part of an ordered list of policies in one or more service policy sets. If a request API matches a policy, the resulting action for the policy is the action configured in the matching rule. If a request API does not match a given policy, the next policy in the service policy set is evaluated.
Create Service Policy
Create service_policy creates a new object in the storage backend for metadata.namespace.
path Parameters
metadata.namespace required | string namespace x-example: "staging" This defines the workspace within which each the configuration object is to be created. Must be a DNS_LABEL format. For a namespace object itself, namespace value will be "" |
Request Body schema: application/jsonrequired
object (ObjectCreateMetaType) ObjectCreateMetaType is metadata that can be specified in Create request of an object. | |
object (Create service policy) Create service_policy creates a new object in the storage backend for metadata.namespace. |
Responses
Request samples
- Payload
{- "metadata": {
- "annotations": { },
- "description": "string",
- "disable": true,
- "labels": { },
- "name": "string",
- "namespace": "string"
}, - "spec": {
- "allow_all_requests": { },
- "allow_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "any_server": { },
- "deny_all_requests": { },
- "deny_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "rule_list": {
- "rules": [
- {
- "metadata": {
- "description": "string",
- "name": "string"
}, - "spec": {
- "action": "DENY",
- "any_asn": { },
- "any_client": { },
- "any_ip": { },
- "api_group_matcher": {
- "invert_matcher": true,
- "match": [
- "string"
]
}, - "arg_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_matcher": {
- "asn_sets": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "body_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "bot_action": {
- "bot_skip_processing": { },
- "none": { }
}, - "client_name": "string",
- "client_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "client_selector": {
- "expressions": [
- "string"
]
}, - "cookie_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "domain_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "expiration_timestamp": "2019-08-24T14:15:22Z",
- "headers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "http_method": {
- "invert_matcher": true,
- "methods": [
- "ANY"
]
}, - "ip_matcher": {
- "invert_matcher": true,
- "prefix_sets": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "ip_prefix_list": {
- "invert_match": true,
- "ip_prefixes": [
- "string"
]
}, - "ip_threat_category_list": {
- "ip_threat_categories": [
- "SPAM_SOURCES"
]
}, - "ja4_tls_fingerprint": {
- "exact_values": [
- "string"
]
}, - "jwt_claims": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "label_matcher": {
- "keys": [
- "string"
]
}, - "mum_action": {
- "default": { },
- "skip_processing": { }
}, - "path": {
- "exact_values": [
- "string"
], - "invert_matcher": true,
- "prefix_values": [
- "string"
], - "regex_values": [
- "string"
], - "suffix_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "port_matcher": {
- "invert_matcher": true,
- "ports": [
- "string"
]
}, - "query_params": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "key": "string"
}
], - "request_constraints": {
- "max_cookie_count_exceeds": 0,
- "max_cookie_count_none": { },
- "max_cookie_key_size_exceeds": 0,
- "max_cookie_key_size_none": { },
- "max_cookie_value_size_exceeds": 0,
- "max_cookie_value_size_none": { },
- "max_header_count_exceeds": 0,
- "max_header_count_none": { },
- "max_header_key_size_exceeds": 0,
- "max_header_key_size_none": { },
- "max_header_value_size_exceeds": 0,
- "max_header_value_size_none": { },
- "max_parameter_count_exceeds": 0,
- "max_parameter_count_none": { },
- "max_parameter_name_size_exceeds": 0,
- "max_parameter_name_size_none": { },
- "max_parameter_value_size_exceeds": 0,
- "max_parameter_value_size_none": { },
- "max_query_size_exceeds": 0,
- "max_query_size_none": { },
- "max_request_line_size_exceeds": 0,
- "max_request_line_size_none": { },
- "max_request_size_exceeds": 0,
- "max_request_size_none": { },
- "max_url_size_exceeds": 0,
- "max_url_size_none": { }
}, - "segment_policy": {
- "dst_any": { },
- "dst_segments": {
- "segments": [
- {
- "name": null,
- "namespace": null,
- "tenant": null
}
]
}, - "intra_segment": { },
- "src_any": { },
- "src_segments": {
- "segments": [
- {
- "name": null,
- "namespace": null,
- "tenant": null
}
]
}
}, - "tls_fingerprint_matcher": {
- "classes": [
- "TLS_FINGERPRINT_NONE"
], - "exact_values": [
- "string"
], - "excluded_values": [
- "string"
]
}, - "user_identity_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "waf_action": {
- "app_firewall_detection_control": {
- "exclude_attack_type_contexts": [
- {
- "context": null,
- "context_name": null,
- "exclude_attack_type": null
}
], - "exclude_bot_name_contexts": [
- {
- "bot_name": null
}
], - "exclude_signature_contexts": [
- {
- "context": null,
- "context_name": null,
- "signature_id": null
}
], - "exclude_violation_contexts": [
- {
- "context": null,
- "context_name": null,
- "exclude_violation": null
}
]
}, - "none": { },
- "waf_skip_processing": { }
}
}
}
]
}, - "server_name": "string",
- "server_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "server_selector": {
- "expressions": [
- "string"
]
}
}
}
Response samples
- 200
- 401
- 403
- 404
- 409
- 429
- 500
- 503
- 504
{- "metadata": {
- "annotations": { },
- "description": "string",
- "disable": true,
- "labels": { },
- "name": "string",
- "namespace": "string"
}, - "spec": {
- "allow_all_requests": { },
- "allow_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "any_server": { },
- "deny_all_requests": { },
- "deny_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "legacy_rule_list": {
- "rules": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "rule_list": {
- "rules": [
- {
- "metadata": {
- "description": "string",
- "name": "string"
}, - "spec": {
- "action": "DENY",
- "any_asn": { },
- "any_client": { },
- "any_ip": { },
- "api_group_matcher": {
- "invert_matcher": true,
- "match": [
- "string"
]
}, - "arg_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_matcher": {
- "asn_sets": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "body_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "bot_action": {
- "bot_skip_processing": { },
- "none": { }
}, - "client_name": "string",
- "client_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "client_selector": {
- "expressions": [
- "string"
]
}, - "cookie_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "domain_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "expiration_timestamp": "2019-08-24T14:15:22Z",
- "headers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "http_method": {
- "invert_matcher": true,
- "methods": [
- "ANY"
]
}, - "ip_matcher": {
- "invert_matcher": true,
- "prefix_sets": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "ip_prefix_list": {
- "invert_match": true,
- "ip_prefixes": [
- "string"
]
}, - "ip_threat_category_list": {
- "ip_threat_categories": [
- "SPAM_SOURCES"
]
}, - "ja4_tls_fingerprint": {
- "exact_values": [
- "string"
]
}, - "jwt_claims": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "label_matcher": {
- "keys": [
- "string"
]
}, - "mum_action": {
- "default": { },
- "skip_processing": { }
}, - "path": {
- "exact_values": [
- "string"
], - "invert_matcher": true,
- "prefix_values": [
- "string"
], - "regex_values": [
- "string"
], - "suffix_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "port_matcher": {
- "invert_matcher": true,
- "ports": [
- "string"
]
}, - "query_params": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "key": "string"
}
], - "request_constraints": {
- "max_cookie_count_exceeds": 0,
- "max_cookie_count_none": { },
- "max_cookie_key_size_exceeds": 0,
- "max_cookie_key_size_none": { },
- "max_cookie_value_size_exceeds": 0,
- "max_cookie_value_size_none": { },
- "max_header_count_exceeds": 0,
- "max_header_count_none": { },
- "max_header_key_size_exceeds": 0,
- "max_header_key_size_none": { },
- "max_header_value_size_exceeds": 0,
- "max_header_value_size_none": { },
- "max_parameter_count_exceeds": 0,
- "max_parameter_count_none": { },
- "max_parameter_name_size_exceeds": 0,
- "max_parameter_name_size_none": { },
- "max_parameter_value_size_exceeds": 0,
- "max_parameter_value_size_none": { },
- "max_query_size_exceeds": 0,
- "max_query_size_none": { },
- "max_request_line_size_exceeds": 0,
- "max_request_line_size_none": { },
- "max_request_size_exceeds": 0,
- "max_request_size_none": { },
- "max_url_size_exceeds": 0,
- "max_url_size_none": { }
}, - "segment_policy": {
- "dst_any": { },
- "dst_segments": {
- "segments": [
- {
- "name": null,
- "namespace": null,
- "tenant": null
}
]
}, - "intra_segment": { },
- "src_any": { },
- "src_segments": {
- "segments": [
- {
- "name": null,
- "namespace": null,
- "tenant": null
}
]
}
}, - "tls_fingerprint_matcher": {
- "classes": [
- "TLS_FINGERPRINT_NONE"
], - "exact_values": [
- "string"
], - "excluded_values": [
- "string"
]
}, - "user_identity_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "waf_action": {
- "app_firewall_detection_control": {
- "exclude_attack_type_contexts": [
- {
- "context": null,
- "context_name": null,
- "exclude_attack_type": null
}
], - "exclude_bot_name_contexts": [
- {
- "bot_name": null
}
], - "exclude_signature_contexts": [
- {
- "context": null,
- "context_name": null,
- "signature_id": null
}
], - "exclude_violation_contexts": [
- {
- "context": null,
- "context_name": null,
- "exclude_violation": null
}
]
}, - "none": { },
- "waf_skip_processing": { }
}
}
}
]
}, - "server_name": "string",
- "server_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "server_selector": {
- "expressions": [
- "string"
]
}
}, - "system_metadata": {
- "creation_timestamp": "2019-08-24T14:15:22Z",
- "creator_class": "string",
- "creator_id": "string",
- "deletion_timestamp": "2019-08-24T14:15:22Z",
- "finalizers": [
- "string"
], - "initializers": {
- "pending": [
- {
- "name": "string"
}
], - "result": {
- "code": 0,
- "reason": "string",
- "status": "string"
}
}, - "labels": { },
- "modification_timestamp": "2019-08-24T14:15:22Z",
- "object_index": 0,
- "owner_view": {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "uid": "string"
}, - "tenant": "string",
- "uid": "string"
}
}
Replace Service Policy
Replace service_policy replaces an existing object in the storage backend for metadata.namespace.
path Parameters
metadata.namespace required | string namespace x-example: "staging" This defines the workspace within which each the configuration object is to be created. Must be a DNS_LABEL format. For a namespace object itself, namespace value will be "" |
metadata.name required | string name x-example: "acmecorp-web" The configuration object to be replaced will be looked up by name |
Request Body schema: application/jsonrequired
object (ObjectReplaceMetaType) ObjectReplaceMetaType is metadata that can be specified in Replace request of an object. | |
object (Replace service policy) Replace service_policy replaces an existing object in the storage backend for metadata.namespace. |
Responses
Request samples
- Payload
{- "metadata": {
- "annotations": { },
- "description": "string",
- "disable": true,
- "labels": { },
- "name": "string",
- "namespace": "string"
}, - "spec": {
- "allow_all_requests": { },
- "allow_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "any_server": { },
- "deny_all_requests": { },
- "deny_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "legacy_rule_list": {
- "rules": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "rule_list": {
- "rules": [
- {
- "metadata": {
- "description": "string",
- "name": "string"
}, - "spec": {
- "action": "DENY",
- "any_asn": { },
- "any_client": { },
- "any_ip": { },
- "api_group_matcher": {
- "invert_matcher": true,
- "match": [
- "string"
]
}, - "arg_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_matcher": {
- "asn_sets": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "body_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "bot_action": {
- "bot_skip_processing": { },
- "none": { }
}, - "client_name": "string",
- "client_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "client_selector": {
- "expressions": [
- "string"
]
}, - "cookie_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "domain_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "expiration_timestamp": "2019-08-24T14:15:22Z",
- "headers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "http_method": {
- "invert_matcher": true,
- "methods": [
- "ANY"
]
}, - "ip_matcher": {
- "invert_matcher": true,
- "prefix_sets": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "ip_prefix_list": {
- "invert_match": true,
- "ip_prefixes": [
- "string"
]
}, - "ip_threat_category_list": {
- "ip_threat_categories": [
- "SPAM_SOURCES"
]
}, - "ja4_tls_fingerprint": {
- "exact_values": [
- "string"
]
}, - "jwt_claims": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "label_matcher": {
- "keys": [
- "string"
]
}, - "mum_action": {
- "default": { },
- "skip_processing": { }
}, - "path": {
- "exact_values": [
- "string"
], - "invert_matcher": true,
- "prefix_values": [
- "string"
], - "regex_values": [
- "string"
], - "suffix_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "port_matcher": {
- "invert_matcher": true,
- "ports": [
- "string"
]
}, - "query_params": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "key": "string"
}
], - "request_constraints": {
- "max_cookie_count_exceeds": 0,
- "max_cookie_count_none": { },
- "max_cookie_key_size_exceeds": 0,
- "max_cookie_key_size_none": { },
- "max_cookie_value_size_exceeds": 0,
- "max_cookie_value_size_none": { },
- "max_header_count_exceeds": 0,
- "max_header_count_none": { },
- "max_header_key_size_exceeds": 0,
- "max_header_key_size_none": { },
- "max_header_value_size_exceeds": 0,
- "max_header_value_size_none": { },
- "max_parameter_count_exceeds": 0,
- "max_parameter_count_none": { },
- "max_parameter_name_size_exceeds": 0,
- "max_parameter_name_size_none": { },
- "max_parameter_value_size_exceeds": 0,
- "max_parameter_value_size_none": { },
- "max_query_size_exceeds": 0,
- "max_query_size_none": { },
- "max_request_line_size_exceeds": 0,
- "max_request_line_size_none": { },
- "max_request_size_exceeds": 0,
- "max_request_size_none": { },
- "max_url_size_exceeds": 0,
- "max_url_size_none": { }
}, - "segment_policy": {
- "dst_any": { },
- "dst_segments": {
- "segments": [
- {
- "name": null,
- "namespace": null,
- "tenant": null
}
]
}, - "intra_segment": { },
- "src_any": { },
- "src_segments": {
- "segments": [
- {
- "name": null,
- "namespace": null,
- "tenant": null
}
]
}
}, - "tls_fingerprint_matcher": {
- "classes": [
- "TLS_FINGERPRINT_NONE"
], - "exact_values": [
- "string"
], - "excluded_values": [
- "string"
]
}, - "user_identity_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "waf_action": {
- "app_firewall_detection_control": {
- "exclude_attack_type_contexts": [
- {
- "context": null,
- "context_name": null,
- "exclude_attack_type": null
}
], - "exclude_bot_name_contexts": [
- {
- "bot_name": null
}
], - "exclude_signature_contexts": [
- {
- "context": null,
- "context_name": null,
- "signature_id": null
}
], - "exclude_violation_contexts": [
- {
- "context": null,
- "context_name": null,
- "exclude_violation": null
}
]
}, - "none": { },
- "waf_skip_processing": { }
}
}
}
]
}, - "server_name": "string",
- "server_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "server_selector": {
- "expressions": [
- "string"
]
}
}
}
Response samples
- 200
- 401
- 403
- 404
- 409
- 429
- 500
- 503
- 504
{ }
Service Policy Hits
Get the counter for Service Policy hits for a given namespace.
path Parameters
namespace required | string Namespace x-example: "ns1" Namespace is used to scope Service policy hits for the given namespace. |
Request Body schema: application/jsonrequired
end_time | string (End time) end time of metric collection from which data will be considered. Format: unix_timestamp|rfc 3339 Optional: If not specified, then the end_time will be evaluated to start_time+10m
If start_time is not specified, then the end_time will be evaluated to Example: Validation Rules: ves.io.schema.rules.string.query_time: true |
group_by | Array of strings (Group by) Items Enum: "NAMESPACE" "POLICY" "POLICY_RULE" "ACTION" "SITE" "VIRTUAL_HOST" "POLICY_SET" Aggregate data by one of more labels specified in Optional: If not specified, then the rule hits are aggregated/grouped by |
Array of objects (Label Filter) List of label filter expressions of the form "label" Optional: If not specified, then the metrics will be filtered only based on the | |
namespace | string (Namespace) Namespace is used to scope Service policy hits for the given namespace. Example: |
start_time | string (Start time) start time of metric collection from which data will be considered. Format: unix_timestamp|rfc 3339 Optional: If not specified, then the start_time will be evaluated to end_time-10m
If end_time is not specified, then the start_time will be evaluated to Example: Validation Rules: ves.io.schema.rules.string.query_time: true |
step | string (Step) step is the resolution width, which determines the number of the data points [x-axis (time)] to be returned in the response. The timestamps in the response will be t1=start_time, t2=t1+step, ... tn=tn-1+step, where tn <= end_time. Format: [0-9][smhd], where s - seconds, m - minutes, h - hours, d - days Optional: If not specified, then step size is evaluated to <end_time - start_time> Example: Validation Rules: ves.io.schema.rules.string.query_step: true |
Responses
Request samples
- Payload
{- "end_time": "string",
- "group_by": [
- "NAMESPACE"
], - "label_filter": [
- {
- "label": "NAMESPACE",
- "op": "EQ",
- "value": "string"
}
], - "namespace": "string",
- "start_time": "string",
- "step": "string"
}
Response samples
- 200
- 401
- 403
- 404
- 409
- 429
- 500
- 503
- 504
{- "data": [
- {
- "id": {
- "action": "string",
- "namespace": "string",
- "policy": "string",
- "policy_rule": "string",
- "policy_set": "string",
- "site": "string",
- "virtual_host": "string"
}, - "metric": [
- {
- "timestamp": 0.1,
- "trend_value": {
- "description": "string",
- "previous_value": "string",
- "sentiment": "TREND_SENTIMENT_NONE",
- "value": "string"
}, - "value": "string"
}
]
}
], - "step": "string"
}
Service Policy Latency
Get the average latency for Service policy evaluation.
path Parameters
namespace required | string Namespace x-example: "ns1" Namespace is used to scope Service policy hits for the given namespace. |
Request Body schema: application/jsonrequired
end_time | string (End time) end time of metric collection from which data will be considered. Format: unix_timestamp|rfc 3339 Optional: If not specified, then the end_time will be evaluated to start_time+10m
If start_time is not specified, then the end_time will be evaluated to Example: Validation Rules: ves.io.schema.rules.string.query_time: true |
group_by | Array of strings (Group by) Items Enum: "NAMESPACE" "POLICY" "POLICY_RULE" "ACTION" "SITE" "VIRTUAL_HOST" "POLICY_SET" Aggregate data by one of more labels specified in Optional: If not specified, then the rule hits are aggregated/grouped by |
Array of objects (Label Filter) List of label filter expressions of the form "label" Optional: If not specified, then the metrics will be filtered only based on the | |
namespace | string (Namespace) Namespace is used to scope Service policy hits for the given namespace. Example: |
start_time | string (Start time) start time of metric collection from which data will be considered. Format: unix_timestamp|rfc 3339 Optional: If not specified, then the start_time will be evaluated to end_time-10m
If end_time is not specified, then the start_time will be evaluated to Example: Validation Rules: ves.io.schema.rules.string.query_time: true |
step | string (Step) step is the resolution width, which determines the number of the data points [x-axis (time)] to be returned in the response. The timestamps in the response will be t1=start_time, t2=t1+step, ... tn=tn-1+step, where tn <= end_time. Format: [0-9][smhd], where s - seconds, m - minutes, h - hours, d - days Optional: If not specified, then step size is evaluated to <end_time - start_time> Example: Validation Rules: ves.io.schema.rules.string.query_step: true |
Responses
Request samples
- Payload
{- "end_time": "string",
- "group_by": [
- "NAMESPACE"
], - "label_filter": [
- {
- "label": "NAMESPACE",
- "op": "EQ",
- "value": "string"
}
], - "namespace": "string",
- "start_time": "string",
- "step": "string"
}
Response samples
- 200
- 401
- 403
- 404
- 409
- 429
- 500
- 503
- 504
{- "data": [
- {
- "id": {
- "action": "string",
- "namespace": "string",
- "policy": "string",
- "policy_rule": "string",
- "policy_set": "string",
- "site": "string",
- "virtual_host": "string"
}, - "metric": [
- {
- "timestamp": 0.1,
- "trend_value": {
- "description": "string",
- "previous_value": "string",
- "sentiment": "TREND_SENTIMENT_NONE",
- "value": "string"
}, - "value": "string"
}
]
}
], - "step": "string"
}
List Service Policy
List the set of service_policy in a namespace
path Parameters
namespace required | string namespace x-example: "ns1" Namespace to scope the listing of service_policy |
query Parameters
label_filter | string x-example: "env in (staging, testing), tier in (web, db)" A LabelSelectorType expression that every item in list response will satisfy |
report_fields | Array of strings x-example: "" Extra fields to return along with summary fields |
report_status_fields | Array of strings x-example: "" Extra status fields to return along with summary fields |
Responses
Response samples
- 200
- 401
- 403
- 404
- 409
- 429
- 500
- 503
- 504
{- "errors": [
- {
- "code": "EOK",
- "error_obj": {
- "type_url": "string",
- "value": "string"
}, - "message": "string"
}
], - "items": [
- {
- "annotations": { },
- "description": "string",
- "disabled": true,
- "get_spec": {
- "allow_all_requests": { },
- "allow_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "any_server": { },
- "deny_all_requests": { },
- "deny_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "legacy_rule_list": {
- "rules": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "rule_list": {
- "rules": [
- {
- "metadata": {
- "description": "string",
- "name": "string"
}, - "spec": {
- "action": "DENY",
- "any_asn": { },
- "any_client": { },
- "any_ip": { },
- "api_group_matcher": {
- "invert_matcher": true,
- "match": [
- null
]
}, - "arg_matchers": [
- {
- "check_not_present": null,
- "check_present": null,
- "invert_matcher": null,
- "item": null,
- "name": null
}
], - "asn_list": {
- "as_numbers": [
- null
]
}, - "asn_matcher": {
- "asn_sets": [
- null
]
}, - "body_matcher": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "bot_action": {
- "bot_skip_processing": { },
- "none": { }
}, - "client_name": "string",
- "client_name_matcher": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "client_selector": {
- "expressions": [
- null
]
}, - "cookie_matchers": [
- {
- "check_not_present": null,
- "check_present": null,
- "invert_matcher": null,
- "item": null,
- "name": null
}
], - "domain_matcher": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "expiration_timestamp": "2019-08-24T14:15:22Z",
- "headers": [
- {
- "check_not_present": null,
- "check_present": null,
- "invert_matcher": null,
- "item": null,
- "name": null
}
], - "http_method": {
- "invert_matcher": true,
- "methods": [
- null
]
}, - "ip_matcher": {
- "invert_matcher": true,
- "prefix_sets": [
- null
]
}, - "ip_prefix_list": {
- "invert_match": true,
- "ip_prefixes": [
- null
]
}, - "ip_threat_category_list": {
- "ip_threat_categories": [
- null
]
}, - "ja4_tls_fingerprint": {
- "exact_values": [
- null
]
}, - "jwt_claims": [
- {
- "check_not_present": null,
- "check_present": null,
- "invert_matcher": null,
- "item": null,
- "name": null
}
], - "label_matcher": {
- "keys": [
- null
]
}, - "mum_action": {
- "default": { },
- "skip_processing": { }
}, - "path": {
- "exact_values": [
- null
], - "invert_matcher": true,
- "prefix_values": [
- null
], - "regex_values": [
- null
], - "suffix_values": [
- null
], - "transformers": [
- null
]
}, - "port_matcher": {
- "invert_matcher": true,
- "ports": [
- null
]
}, - "query_params": [
- {
- "check_not_present": null,
- "check_present": null,
- "invert_matcher": null,
- "item": null,
- "key": null
}
], - "request_constraints": {
- "max_cookie_count_exceeds": 0,
- "max_cookie_count_none": { },
- "max_cookie_key_size_exceeds": 0,
- "max_cookie_key_size_none": { },
- "max_cookie_value_size_exceeds": 0,
- "max_cookie_value_size_none": { },
- "max_header_count_exceeds": 0,
- "max_header_count_none": { },
- "max_header_key_size_exceeds": 0,
- "max_header_key_size_none": { },
- "max_header_value_size_exceeds": 0,
- "max_header_value_size_none": { },
- "max_parameter_count_exceeds": 0,
- "max_parameter_count_none": { },
- "max_parameter_name_size_exceeds": 0,
- "max_parameter_name_size_none": { },
- "max_parameter_value_size_exceeds": 0,
- "max_parameter_value_size_none": { },
- "max_query_size_exceeds": 0,
- "max_query_size_none": { },
- "max_request_line_size_exceeds": 0,
- "max_request_line_size_none": { },
- "max_request_size_exceeds": 0,
- "max_request_size_none": { },
- "max_url_size_exceeds": 0,
- "max_url_size_none": { }
}, - "segment_policy": {
- "dst_any": { },
- "dst_segments": {
- "segments": [ ]
}, - "intra_segment": { },
- "src_any": { },
- "src_segments": {
- "segments": [ ]
}
}, - "tls_fingerprint_matcher": {
- "classes": [
- null
], - "exact_values": [
- null
], - "excluded_values": [
- null
]
}, - "user_identity_matcher": {
- "exact_values": [
- null
], - "regex_values": [
- null
]
}, - "waf_action": {
- "app_firewall_detection_control": {
- "exclude_attack_type_contexts": [ ],
- "exclude_bot_name_contexts": [ ],
- "exclude_signature_contexts": [ ],
- "exclude_violation_contexts": [ ]
}, - "none": { },
- "waf_skip_processing": { }
}
}
}
]
}, - "server_name": "string",
- "server_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "server_selector": {
- "expressions": [
- "string"
]
}
}, - "labels": { },
- "metadata": {
- "annotations": { },
- "description": "string",
- "disable": true,
- "labels": { },
- "name": "string",
- "namespace": "string"
}, - "name": "string",
- "namespace": "string",
- "owner_view": {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "uid": "string"
}, - "status_set": [
- {
- "conditions": [
- {
- "hostname": "string",
- "last_update_time": "2019-08-24T14:15:22Z",
- "reason": "string",
- "service_name": "string",
- "status": "string",
- "type": "string"
}
], - "metadata": {
- "creation_timestamp": "2019-08-24T14:15:22Z",
- "creator_class": "string",
- "creator_id": "string",
- "publish": "STATUS_DO_NOT_PUBLISH",
- "status_id": "string",
- "uid": "string",
- "vtrp_id": "string",
- "vtrp_stale": true
}, - "object_refs": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}
], - "system_metadata": {
- "creation_timestamp": "2019-08-24T14:15:22Z",
- "creator_class": "string",
- "creator_id": "string",
- "deletion_timestamp": "2019-08-24T14:15:22Z",
- "finalizers": [
- "string"
], - "initializers": {
- "pending": [
- {
- "name": "string"
}
], - "result": {
- "code": 0,
- "reason": "string",
- "status": "string"
}
}, - "labels": { },
- "modification_timestamp": "2019-08-24T14:15:22Z",
- "object_index": 0,
- "owner_view": {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "uid": "string"
}, - "tenant": "string",
- "uid": "string"
}, - "tenant": "string",
- "uid": "string"
}
]
}
Get Service Policy
Get service_policy reads a given object from storage backend for metadata.namespace.
path Parameters
namespace required | string namespace x-example: "ns1" The namespace in which the configuration object is present |
name required | string name x-example: "name" The name of the configuration object to be fetched |
query Parameters
response_format | string Default: "GET_RSP_FORMAT_DEFAULT" Enum: "GET_RSP_FORMAT_DEFAULT" "GET_RSP_FORMAT_FOR_CREATE" "GET_RSP_FORMAT_FOR_REPLACE" "GET_RSP_FORMAT_STATUS" "GET_RSP_FORMAT_READ" "GET_RSP_FORMAT_REFERRING_OBJECTS" "GET_RSP_FORMAT_BROKEN_REFERENCES" The format in which the configuration object is to be fetched. This could be for example - in GetSpec form for the contents of object - in CreateRequest form to create a new similar object - to ReplaceRequest form to replace changeable values Default format of returned resource Response should be in CreateRequest format Response should be in ReplaceRequest format Response should be in StatusObject(s) format Response should be in format of GetSpecType Response should have other objects referring to this object Response should have deleted and disabled objects referrred by this object |
Responses
Response samples
- 200
- 401
- 403
- 404
- 409
- 429
- 500
- 503
- 504
{- "create_form": {
- "metadata": {
- "annotations": { },
- "description": "string",
- "disable": true,
- "labels": { },
- "name": "string",
- "namespace": "string"
}, - "spec": {
- "allow_all_requests": { },
- "allow_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "any_server": { },
- "deny_all_requests": { },
- "deny_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "rule_list": {
- "rules": [
- {
- "metadata": {
- "description": "string",
- "name": "string"
}, - "spec": {
- "action": "DENY",
- "any_asn": { },
- "any_client": { },
- "any_ip": { },
- "api_group_matcher": {
- "invert_matcher": true,
- "match": [
- "string"
]
}, - "arg_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "name": "string"
}
], - "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_matcher": {
- "asn_sets": [
- {
- "kind": null,
- "name": null,
- "namespace": null,
- "tenant": null,
- "uid": null
}
]
}, - "body_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "bot_action": {
- "bot_skip_processing": { },
- "none": { }
}, - "client_name": "string",
- "client_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "client_selector": {
- "expressions": [
- "string"
]
}, - "cookie_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "name": "string"
}
], - "domain_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "expiration_timestamp": "2019-08-24T14:15:22Z",
- "headers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "name": "string"
}
], - "http_method": {
- "invert_matcher": true,
- "methods": [
- "ANY"
]
}, - "ip_matcher": {
- "invert_matcher": true,
- "prefix_sets": [
- {
- "kind": null,
- "name": null,
- "namespace": null,
- "tenant": null,
- "uid": null
}
]
}, - "ip_prefix_list": {
- "invert_match": true,
- "ip_prefixes": [
- "string"
]
}, - "ip_threat_category_list": {
- "ip_threat_categories": [
- "SPAM_SOURCES"
]
}, - "ja4_tls_fingerprint": {
- "exact_values": [
- "string"
]
}, - "jwt_claims": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "name": "string"
}
], - "label_matcher": {
- "keys": [
- "string"
]
}, - "mum_action": {
- "default": { },
- "skip_processing": { }
}, - "path": {
- "exact_values": [
- "string"
], - "invert_matcher": true,
- "prefix_values": [
- "string"
], - "regex_values": [
- "string"
], - "suffix_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "port_matcher": {
- "invert_matcher": true,
- "ports": [
- "string"
]
}, - "query_params": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "key": "string"
}
], - "request_constraints": {
- "max_cookie_count_exceeds": 0,
- "max_cookie_count_none": { },
- "max_cookie_key_size_exceeds": 0,
- "max_cookie_key_size_none": { },
- "max_cookie_value_size_exceeds": 0,
- "max_cookie_value_size_none": { },
- "max_header_count_exceeds": 0,
- "max_header_count_none": { },
- "max_header_key_size_exceeds": 0,
- "max_header_key_size_none": { },
- "max_header_value_size_exceeds": 0,
- "max_header_value_size_none": { },
- "max_parameter_count_exceeds": 0,
- "max_parameter_count_none": { },
- "max_parameter_name_size_exceeds": 0,
- "max_parameter_name_size_none": { },
- "max_parameter_value_size_exceeds": 0,
- "max_parameter_value_size_none": { },
- "max_query_size_exceeds": 0,
- "max_query_size_none": { },
- "max_request_line_size_exceeds": 0,
- "max_request_line_size_none": { },
- "max_request_size_exceeds": 0,
- "max_request_size_none": { },
- "max_url_size_exceeds": 0,
- "max_url_size_none": { }
}, - "segment_policy": {
- "dst_any": { },
- "dst_segments": {
- "segments": [
- null
]
}, - "intra_segment": { },
- "src_any": { },
- "src_segments": {
- "segments": [
- null
]
}
}, - "tls_fingerprint_matcher": {
- "classes": [
- "TLS_FINGERPRINT_NONE"
], - "exact_values": [
- "string"
], - "excluded_values": [
- "string"
]
}, - "user_identity_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "waf_action": {
- "app_firewall_detection_control": {
- "exclude_attack_type_contexts": [
- null
], - "exclude_bot_name_contexts": [
- null
], - "exclude_signature_contexts": [
- null
], - "exclude_violation_contexts": [
- null
]
}, - "none": { },
- "waf_skip_processing": { }
}
}
}
]
}, - "server_name": "string",
- "server_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "server_selector": {
- "expressions": [
- "string"
]
}
}
}, - "deleted_referred_objects": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
], - "disabled_referred_objects": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
], - "metadata": {
- "annotations": { },
- "description": "string",
- "disable": true,
- "labels": { },
- "name": "string",
- "namespace": "string"
}, - "referring_objects": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
], - "replace_form": {
- "metadata": {
- "annotations": { },
- "description": "string",
- "disable": true,
- "labels": { },
- "name": "string",
- "namespace": "string"
}, - "spec": {
- "allow_all_requests": { },
- "allow_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "any_server": { },
- "deny_all_requests": { },
- "deny_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "legacy_rule_list": {
- "rules": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "rule_list": {
- "rules": [
- {
- "metadata": {
- "description": "string",
- "name": "string"
}, - "spec": {
- "action": "DENY",
- "any_asn": { },
- "any_client": { },
- "any_ip": { },
- "api_group_matcher": {
- "invert_matcher": true,
- "match": [
- "string"
]
}, - "arg_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "name": "string"
}
], - "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_matcher": {
- "asn_sets": [
- {
- "kind": null,
- "name": null,
- "namespace": null,
- "tenant": null,
- "uid": null
}
]
}, - "body_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "bot_action": {
- "bot_skip_processing": { },
- "none": { }
}, - "client_name": "string",
- "client_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "client_selector": {
- "expressions": [
- "string"
]
}, - "cookie_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "name": "string"
}
], - "domain_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "expiration_timestamp": "2019-08-24T14:15:22Z",
- "headers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "name": "string"
}
], - "http_method": {
- "invert_matcher": true,
- "methods": [
- "ANY"
]
}, - "ip_matcher": {
- "invert_matcher": true,
- "prefix_sets": [
- {
- "kind": null,
- "name": null,
- "namespace": null,
- "tenant": null,
- "uid": null
}
]
}, - "ip_prefix_list": {
- "invert_match": true,
- "ip_prefixes": [
- "string"
]
}, - "ip_threat_category_list": {
- "ip_threat_categories": [
- "SPAM_SOURCES"
]
}, - "ja4_tls_fingerprint": {
- "exact_values": [
- "string"
]
}, - "jwt_claims": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "name": "string"
}
], - "label_matcher": {
- "keys": [
- "string"
]
}, - "mum_action": {
- "default": { },
- "skip_processing": { }
}, - "path": {
- "exact_values": [
- "string"
], - "invert_matcher": true,
- "prefix_values": [
- "string"
], - "regex_values": [
- "string"
], - "suffix_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "port_matcher": {
- "invert_matcher": true,
- "ports": [
- "string"
]
}, - "query_params": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [ ],
- "regex_values": [ ],
- "transformers": [ ]
}, - "key": "string"
}
], - "request_constraints": {
- "max_cookie_count_exceeds": 0,
- "max_cookie_count_none": { },
- "max_cookie_key_size_exceeds": 0,
- "max_cookie_key_size_none": { },
- "max_cookie_value_size_exceeds": 0,
- "max_cookie_value_size_none": { },
- "max_header_count_exceeds": 0,
- "max_header_count_none": { },
- "max_header_key_size_exceeds": 0,
- "max_header_key_size_none": { },
- "max_header_value_size_exceeds": 0,
- "max_header_value_size_none": { },
- "max_parameter_count_exceeds": 0,
- "max_parameter_count_none": { },
- "max_parameter_name_size_exceeds": 0,
- "max_parameter_name_size_none": { },
- "max_parameter_value_size_exceeds": 0,
- "max_parameter_value_size_none": { },
- "max_query_size_exceeds": 0,
- "max_query_size_none": { },
- "max_request_line_size_exceeds": 0,
- "max_request_line_size_none": { },
- "max_request_size_exceeds": 0,
- "max_request_size_none": { },
- "max_url_size_exceeds": 0,
- "max_url_size_none": { }
}, - "segment_policy": {
- "dst_any": { },
- "dst_segments": {
- "segments": [
- null
]
}, - "intra_segment": { },
- "src_any": { },
- "src_segments": {
- "segments": [
- null
]
}
}, - "tls_fingerprint_matcher": {
- "classes": [
- "TLS_FINGERPRINT_NONE"
], - "exact_values": [
- "string"
], - "excluded_values": [
- "string"
]
}, - "user_identity_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "waf_action": {
- "app_firewall_detection_control": {
- "exclude_attack_type_contexts": [
- null
], - "exclude_bot_name_contexts": [
- null
], - "exclude_signature_contexts": [
- null
], - "exclude_violation_contexts": [
- null
]
}, - "none": { },
- "waf_skip_processing": { }
}
}
}
]
}, - "server_name": "string",
- "server_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "server_selector": {
- "expressions": [
- "string"
]
}
}
}, - "spec": {
- "allow_all_requests": { },
- "allow_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "any_server": { },
- "deny_all_requests": { },
- "deny_list": {
- "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "country_list": [
- "COUNTRY_NONE"
], - "default_action_allow": { },
- "default_action_deny": { },
- "default_action_next_policy": { },
- "ip_prefix_set": [
- {
- "name": "string",
- "namespace": "string",
- "tenant": "string"
}
], - "prefix_list": {
- "prefixes": [
- "string"
]
}, - "tls_fingerprint_classes": [
- "TLS_FINGERPRINT_NONE"
], - "tls_fingerprint_values": [
- "string"
]
}, - "legacy_rule_list": {
- "rules": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "rule_list": {
- "rules": [
- {
- "metadata": {
- "description": "string",
- "name": "string"
}, - "spec": {
- "action": "DENY",
- "any_asn": { },
- "any_client": { },
- "any_ip": { },
- "api_group_matcher": {
- "invert_matcher": true,
- "match": [
- "string"
]
}, - "arg_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "asn_list": {
- "as_numbers": [
- 0
]
}, - "asn_matcher": {
- "asn_sets": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "body_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "bot_action": {
- "bot_skip_processing": { },
- "none": { }
}, - "client_name": "string",
- "client_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "client_selector": {
- "expressions": [
- "string"
]
}, - "cookie_matchers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "domain_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "expiration_timestamp": "2019-08-24T14:15:22Z",
- "headers": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "http_method": {
- "invert_matcher": true,
- "methods": [
- "ANY"
]
}, - "ip_matcher": {
- "invert_matcher": true,
- "prefix_sets": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}, - "ip_prefix_list": {
- "invert_match": true,
- "ip_prefixes": [
- "string"
]
}, - "ip_threat_category_list": {
- "ip_threat_categories": [
- "SPAM_SOURCES"
]
}, - "ja4_tls_fingerprint": {
- "exact_values": [
- "string"
]
}, - "jwt_claims": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "name": "string"
}
], - "label_matcher": {
- "keys": [
- "string"
]
}, - "mum_action": {
- "default": { },
- "skip_processing": { }
}, - "path": {
- "exact_values": [
- "string"
], - "invert_matcher": true,
- "prefix_values": [
- "string"
], - "regex_values": [
- "string"
], - "suffix_values": [
- "string"
], - "transformers": [
- "LOWER_CASE"
]
}, - "port_matcher": {
- "invert_matcher": true,
- "ports": [
- "string"
]
}, - "query_params": [
- {
- "check_not_present": { },
- "check_present": { },
- "invert_matcher": true,
- "item": {
- "exact_values": [
- null
], - "regex_values": [
- null
], - "transformers": [
- null
]
}, - "key": "string"
}
], - "request_constraints": {
- "max_cookie_count_exceeds": 0,
- "max_cookie_count_none": { },
- "max_cookie_key_size_exceeds": 0,
- "max_cookie_key_size_none": { },
- "max_cookie_value_size_exceeds": 0,
- "max_cookie_value_size_none": { },
- "max_header_count_exceeds": 0,
- "max_header_count_none": { },
- "max_header_key_size_exceeds": 0,
- "max_header_key_size_none": { },
- "max_header_value_size_exceeds": 0,
- "max_header_value_size_none": { },
- "max_parameter_count_exceeds": 0,
- "max_parameter_count_none": { },
- "max_parameter_name_size_exceeds": 0,
- "max_parameter_name_size_none": { },
- "max_parameter_value_size_exceeds": 0,
- "max_parameter_value_size_none": { },
- "max_query_size_exceeds": 0,
- "max_query_size_none": { },
- "max_request_line_size_exceeds": 0,
- "max_request_line_size_none": { },
- "max_request_size_exceeds": 0,
- "max_request_size_none": { },
- "max_url_size_exceeds": 0,
- "max_url_size_none": { }
}, - "segment_policy": {
- "dst_any": { },
- "dst_segments": {
- "segments": [
- {
- "name": null,
- "namespace": null,
- "tenant": null
}
]
}, - "intra_segment": { },
- "src_any": { },
- "src_segments": {
- "segments": [
- {
- "name": null,
- "namespace": null,
- "tenant": null
}
]
}
}, - "tls_fingerprint_matcher": {
- "classes": [
- "TLS_FINGERPRINT_NONE"
], - "exact_values": [
- "string"
], - "excluded_values": [
- "string"
]
}, - "user_identity_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "waf_action": {
- "app_firewall_detection_control": {
- "exclude_attack_type_contexts": [
- {
- "context": null,
- "context_name": null,
- "exclude_attack_type": null
}
], - "exclude_bot_name_contexts": [
- {
- "bot_name": null
}
], - "exclude_signature_contexts": [
- {
- "context": null,
- "context_name": null,
- "signature_id": null
}
], - "exclude_violation_contexts": [
- {
- "context": null,
- "context_name": null,
- "exclude_violation": null
}
]
}, - "none": { },
- "waf_skip_processing": { }
}
}
}
]
}, - "server_name": "string",
- "server_name_matcher": {
- "exact_values": [
- "string"
], - "regex_values": [
- "string"
]
}, - "server_selector": {
- "expressions": [
- "string"
]
}
}, - "status": [
- {
- "conditions": [
- {
- "hostname": "string",
- "last_update_time": "2019-08-24T14:15:22Z",
- "reason": "string",
- "service_name": "string",
- "status": "string",
- "type": "string"
}
], - "metadata": {
- "creation_timestamp": "2019-08-24T14:15:22Z",
- "creator_class": "string",
- "creator_id": "string",
- "publish": "STATUS_DO_NOT_PUBLISH",
- "status_id": "string",
- "uid": "string",
- "vtrp_id": "string",
- "vtrp_stale": true
}, - "object_refs": [
- {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "tenant": "string",
- "uid": "string"
}
]
}
], - "system_metadata": {
- "creation_timestamp": "2019-08-24T14:15:22Z",
- "creator_class": "string",
- "creator_id": "string",
- "deletion_timestamp": "2019-08-24T14:15:22Z",
- "finalizers": [
- "string"
], - "initializers": {
- "pending": [
- {
- "name": "string"
}
], - "result": {
- "code": 0,
- "reason": "string",
- "status": "string"
}
}, - "labels": { },
- "modification_timestamp": "2019-08-24T14:15:22Z",
- "object_index": 0,
- "owner_view": {
- "kind": "string",
- "name": "string",
- "namespace": "string",
- "uid": "string"
}, - "tenant": "string",
- "uid": "string"
}
}
Delete Service Policy
Delete the specified service_policy
path Parameters
namespace required | string namespace x-example: "ns1" Namespace in which the configuration object is present |
name required | string name x-example: "name" Name of the configuration object |
Request Body schema: application/jsonrequired
fail_if_referred | boolean <boolean> (fail_if_referred) Fail the delete operation if this object is being referred by other objects |
name | string (name) Name of the configuration object Example: |
namespace | string (namespace) Namespace in which the configuration object is present Example: |
Responses
Request samples
- Payload
{- "fail_if_referred": true,
- "name": "string",
- "namespace": "string"
}
Response samples
- 200
- 401
- 403
- 404
- 409
- 429
- 500
- 503
- 504
null