GET /httppolicyset

GET /httppolicyset

/httppolicyset

Request
URI
GET
https://{api_host}/api/httppolicyset
COPY
Query Parameters
string
name
Optional

object name

string
refers_to
Optional

Filter to request all objects that refers to another Avi resource. Its syntax is refers_to= : . Eg. get all virtual services referring to pool p1 will be refers_to=pool:pool_p1_uuid

string
referred_by
Optional

Filter to request all objects that are referred by another Avi resource. Its syntax is referred_by= : . Eg. get all pools referred_by virtual service vs1 - referred_by=virtualservice:vs_vs1_uuid

string
fields
Optional

List of fields to be returned for the resource. Some fields like name, URL, uuid etc. are always returned.

boolean
include_name
Optional

All the Avi REST reference URIs have a name suffix as URI#name. It is useful to get the referenced resource name without performing get on that object.

boolean
skip_default
Optional

Default values are not set.

string
join_subresources
Optional

It automatically returns additional dependent resources like runtime. Eg. join_subresources=runtime.

Header Parameters
string
X-Avi-Tenant
Optional

Avi Tenant Header

string
X-Avi-Tenant-UUID
Optional

Avi Tenant Header UUID

string
X-Avi-Version
Required

The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.

string
X-CSRFToken
Optional

Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.


Responses
200

OK

Returns HTTPPolicySetApiResponse of type(s) application/json
{
    "count": 0,
    "results": [
        {
            "_last_modified": "string",
            "cloud_config_cksum": "string",
            "configpb_attributes": {
                "version": 0
            },
            "created_by": "string",
            "description": "string",
            "geo_db_ref": "string",
            "http_request_policy": {
                "rules": [
                    {
                        "all_headers": false,
                        "enable": false,
                        "hdr_action": [
                            {
                                "action": "string",
                                "cookie": {
                                    "name": "string",
                                    "value": "string"
                                },
                                "hdr": {
                                    "name": "string",
                                    "value": {
                                        "is_sensitive": false,
                                        "val": "string",
                                        "var": "string"
                                    }
                                },
                                "hdr_index": 0
                            }
                        ],
                        "index": 0,
                        "log": false,
                        "match": {
                            "bot_detection_result": {
                                "classifications": [
                                    {
                                        "type": "string",
                                        "user_defined_type": "string"
                                    }
                                ],
                                "match_operation": "string"
                            },
                            "client_ip": {
                                "addrs": [
                                    {
                                        "addr": "string",
                                        "type": "string"
                                    }
                                ],
                                "group_refs": [
                                    "string"
                                ],
                                "match_criteria": "string",
                                "prefixes": [
                                    {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    }
                                ],
                                "ranges": [
                                    {
                                        "begin": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "end": {
                                            "addr": "string",
                                            "type": "string"
                                        }
                                    }
                                ]
                            },
                            "cookie": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "name": "string",
                                "value": "string"
                            },
                            "geo_matches": [
                                {
                                    "attribute": "string",
                                    "match_operation": "string",
                                    "values": [
                                        "string"
                                    ]
                                }
                            ],
                            "hdrs": [
                                {
                                    "hdr": "string",
                                    "match_case": "string",
                                    "match_criteria": "string",
                                    "value": [
                                        "string"
                                    ]
                                }
                            ],
                            "host_hdr": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "value": [
                                    "string"
                                ]
                            },
                            "ip_reputation_type": {
                                "match_operation": "string",
                                "reputation_types": [
                                    "string"
                                ]
                            },
                            "method": {
                                "match_criteria": "string",
                                "methods": [
                                    "string"
                                ]
                            },
                            "path": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "match_decoded_string": false,
                                "match_str": [
                                    "string"
                                ],
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "protocol": {
                                "match_criteria": "string",
                                "protocols": "string"
                            },
                            "query": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "match_decoded_string": false,
                                "match_str": [
                                    "string"
                                ],
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "source_ip": {
                                "addrs": [
                                    {
                                        "addr": "string",
                                        "type": "string"
                                    }
                                ],
                                "group_refs": [
                                    "string"
                                ],
                                "match_criteria": "string",
                                "prefixes": [
                                    {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    }
                                ],
                                "ranges": [
                                    {
                                        "begin": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "end": {
                                            "addr": "string",
                                            "type": "string"
                                        }
                                    }
                                ]
                            },
                            "tls_fingerprint_match": {
                                "fingerprints": [
                                    "string"
                                ],
                                "match_operation": "string",
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "version": {
                                "match_criteria": "string",
                                "versions": [
                                    "string"
                                ]
                            },
                            "vs_port": {
                                "match_criteria": "string",
                                "ports": [
                                    0
                                ]
                            }
                        },
                        "name": "string",
                        "redirect_action": {
                            "add_string": "string",
                            "host": {
                                "tokens": [
                                    {
                                        "end_index": 0,
                                        "start_index": 0,
                                        "str_value": "string",
                                        "type": "string"
                                    }
                                ],
                                "type": "string"
                            },
                            "keep_query": false,
                            "path": {
                                "tokens": [
                                    {
                                        "end_index": 0,
                                        "start_index": 0,
                                        "str_value": "string",
                                        "type": "string"
                                    }
                                ],
                                "type": "string"
                            },
                            "port": 0,
                            "protocol": "string",
                            "status_code": "string"
                        },
                        "rewrite_url_action": {
                            "host_hdr": {
                                "tokens": [
                                    {
                                        "end_index": 0,
                                        "start_index": 0,
                                        "str_value": "string",
                                        "type": "string"
                                    }
                                ],
                                "type": "string"
                            },
                            "path": {
                                "tokens": [
                                    {
                                        "end_index": 0,
                                        "start_index": 0,
                                        "str_value": "string",
                                        "type": "string"
                                    }
                                ],
                                "type": "string"
                            },
                            "query": {
                                "add_string": "string",
                                "keep_query": false
                            }
                        },
                        "switching_action": {
                            "action": "string",
                            "file": {
                                "content_type": "string",
                                "file_content": "string",
                                "file_length": 0
                            },
                            "other_status_code": 0,
                            "pool_group_ref": "string",
                            "pool_ref": "string",
                            "server": {
                                "hostname": "string",
                                "ip": {
                                    "addr": "string",
                                    "type": "string"
                                },
                                "port": 0
                            },
                            "status_code": "string"
                        }
                    }
                ]
            },
            "http_response_policy": {
                "rules": [
                    {
                        "all_headers": false,
                        "enable": false,
                        "hdr_action": [
                            {
                                "action": "string",
                                "cookie": {
                                    "name": "string",
                                    "value": "string"
                                },
                                "hdr": {
                                    "name": "string",
                                    "value": {
                                        "is_sensitive": false,
                                        "val": "string",
                                        "var": "string"
                                    }
                                },
                                "hdr_index": 0
                            }
                        ],
                        "index": 0,
                        "loc_hdr_action": {
                            "host": {
                                "tokens": [
                                    {
                                        "end_index": 0,
                                        "start_index": 0,
                                        "str_value": "string",
                                        "type": "string"
                                    }
                                ],
                                "type": "string"
                            },
                            "keep_query": false,
                            "path": {
                                "tokens": [
                                    {
                                        "end_index": 0,
                                        "start_index": 0,
                                        "str_value": "string",
                                        "type": "string"
                                    }
                                ],
                                "type": "string"
                            },
                            "port": 0,
                            "protocol": "string"
                        },
                        "log": false,
                        "match": {
                            "client_ip": {
                                "addrs": [
                                    {
                                        "addr": "string",
                                        "type": "string"
                                    }
                                ],
                                "group_refs": [
                                    "string"
                                ],
                                "match_criteria": "string",
                                "prefixes": [
                                    {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    }
                                ],
                                "ranges": [
                                    {
                                        "begin": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "end": {
                                            "addr": "string",
                                            "type": "string"
                                        }
                                    }
                                ]
                            },
                            "cookie": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "name": "string",
                                "value": "string"
                            },
                            "hdrs": [
                                {
                                    "hdr": "string",
                                    "match_case": "string",
                                    "match_criteria": "string",
                                    "value": [
                                        "string"
                                    ]
                                }
                            ],
                            "host_hdr": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "value": [
                                    "string"
                                ]
                            },
                            "loc_hdr": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "value": [
                                    "string"
                                ]
                            },
                            "method": {
                                "match_criteria": "string",
                                "methods": [
                                    "string"
                                ]
                            },
                            "path": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "match_decoded_string": false,
                                "match_str": [
                                    "string"
                                ],
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "protocol": {
                                "match_criteria": "string",
                                "protocols": "string"
                            },
                            "query": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "match_decoded_string": false,
                                "match_str": [
                                    "string"
                                ],
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "rsp_hdrs": [
                                {
                                    "hdr": "string",
                                    "match_case": "string",
                                    "match_criteria": "string",
                                    "value": [
                                        "string"
                                    ]
                                }
                            ],
                            "source_ip": {
                                "addrs": [
                                    {
                                        "addr": "string",
                                        "type": "string"
                                    }
                                ],
                                "group_refs": [
                                    "string"
                                ],
                                "match_criteria": "string",
                                "prefixes": [
                                    {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    }
                                ],
                                "ranges": [
                                    {
                                        "begin": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "end": {
                                            "addr": "string",
                                            "type": "string"
                                        }
                                    }
                                ]
                            },
                            "status": {
                                "match_criteria": "string",
                                "ranges": [
                                    {
                                        "begin": 0,
                                        "end": 0
                                    }
                                ],
                                "status_codes": [
                                    0
                                ]
                            },
                            "version": {
                                "match_criteria": "string",
                                "versions": [
                                    "string"
                                ]
                            },
                            "vs_port": {
                                "match_criteria": "string",
                                "ports": [
                                    0
                                ]
                            }
                        },
                        "name": "string"
                    }
                ]
            },
            "http_security_policy": {
                "rules": [
                    {
                        "action": {
                            "action": "string",
                            "file": {
                                "content_type": "string",
                                "file_content": "string",
                                "file_length": 0
                            },
                            "https_port": 0,
                            "rate_profile": {
                                "action": {
                                    "file": {
                                        "content_type": "string",
                                        "file_content": "string",
                                        "file_length": 0
                                    },
                                    "redirect": {
                                        "add_string": "string",
                                        "host": {
                                            "tokens": [
                                                {
                                                    "end_index": 0,
                                                    "start_index": 0,
                                                    "str_value": "string",
                                                    "type": "string"
                                                }
                                            ],
                                            "type": "string"
                                        },
                                        "keep_query": false,
                                        "path": {
                                            "tokens": [
                                                {
                                                    "end_index": 0,
                                                    "start_index": 0,
                                                    "str_value": "string",
                                                    "type": "string"
                                                }
                                            ],
                                            "type": "string"
                                        },
                                        "port": 0,
                                        "protocol": "string",
                                        "status_code": "string"
                                    },
                                    "status_code": "string",
                                    "type": "string"
                                },
                                "per_client_ip": false,
                                "per_uri_path": false,
                                "rate_limiter": {
                                    "burst_sz": 0,
                                    "count": 0,
                                    "name": "string",
                                    "period": 0
                                }
                            },
                            "status_code": "string"
                        },
                        "enable": false,
                        "index": 0,
                        "log": false,
                        "match": {
                            "bot_detection_result": {
                                "classifications": [
                                    {
                                        "type": "string",
                                        "user_defined_type": "string"
                                    }
                                ],
                                "match_operation": "string"
                            },
                            "client_ip": {
                                "addrs": [
                                    {
                                        "addr": "string",
                                        "type": "string"
                                    }
                                ],
                                "group_refs": [
                                    "string"
                                ],
                                "match_criteria": "string",
                                "prefixes": [
                                    {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    }
                                ],
                                "ranges": [
                                    {
                                        "begin": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "end": {
                                            "addr": "string",
                                            "type": "string"
                                        }
                                    }
                                ]
                            },
                            "cookie": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "name": "string",
                                "value": "string"
                            },
                            "geo_matches": [
                                {
                                    "attribute": "string",
                                    "match_operation": "string",
                                    "values": [
                                        "string"
                                    ]
                                }
                            ],
                            "hdrs": [
                                {
                                    "hdr": "string",
                                    "match_case": "string",
                                    "match_criteria": "string",
                                    "value": [
                                        "string"
                                    ]
                                }
                            ],
                            "host_hdr": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "value": [
                                    "string"
                                ]
                            },
                            "ip_reputation_type": {
                                "match_operation": "string",
                                "reputation_types": [
                                    "string"
                                ]
                            },
                            "method": {
                                "match_criteria": "string",
                                "methods": [
                                    "string"
                                ]
                            },
                            "path": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "match_decoded_string": false,
                                "match_str": [
                                    "string"
                                ],
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "protocol": {
                                "match_criteria": "string",
                                "protocols": "string"
                            },
                            "query": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "match_decoded_string": false,
                                "match_str": [
                                    "string"
                                ],
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "source_ip": {
                                "addrs": [
                                    {
                                        "addr": "string",
                                        "type": "string"
                                    }
                                ],
                                "group_refs": [
                                    "string"
                                ],
                                "match_criteria": "string",
                                "prefixes": [
                                    {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    }
                                ],
                                "ranges": [
                                    {
                                        "begin": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "end": {
                                            "addr": "string",
                                            "type": "string"
                                        }
                                    }
                                ]
                            },
                            "tls_fingerprint_match": {
                                "fingerprints": [
                                    "string"
                                ],
                                "match_operation": "string",
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "version": {
                                "match_criteria": "string",
                                "versions": [
                                    "string"
                                ]
                            },
                            "vs_port": {
                                "match_criteria": "string",
                                "ports": [
                                    0
                                ]
                            }
                        },
                        "name": "string"
                    }
                ]
            },
            "ip_reputation_db_ref": "string",
            "is_internal_policy": false,
            "markers": [
                {
                    "key": "string",
                    "values": [
                        "string"
                    ]
                }
            ],
            "name": "string",
            "tenant_ref": "string",
            "url": "string",
            "uuid": "string"
        }
    ],
    "next": "string"
}
integer As int32 As int32
count
Required

count

array of object
results
Required

results

string
next
Optional

next


401

log in failed

Operation doesn't return any data structure

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/httppolicyset