SDK reference · Python SDK
prov.identify.policy_bundle
prov.identify.policy_bundle in Python SDK.
Signature
prov.identify.policy_bundle() -> AnyParameters
No parameters.
Request fields
If-None-Matchstringheader- The ETag of the bundle you hold.
Provenance-Originstringheader- The sites this middleware serves, comma-separated origins (at most 10 are read). The middleware sends it once it has served a request. Only the scheme, host and port are kept.
listsenumqueryomitleaves out the vendored crawler and cloud ranges, so the rules run without addresses to match. The middleware takesfull. One offull,omit.
Returns
Any The policy bundle.
HTTP operation
GET /v1/identify/policy_bundle: Get the policy bundle
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/policy_bundle?lists=omit`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/identify/policy_bundle?lists=omit", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()