SDK reference · Python SDK

prov.identify.policy_bundle

prov.identify.policy_bundle in Python SDK.

Signature

prov.identify.policy_bundle() -> Any

Parameters

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.
listsenumquery
omit leaves out the vendored crawler and cloud ranges, so the rules run without addresses to match. The middleware takes full. One of full, 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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.