SDK reference · Python SDK
prov.identify.policy_templates
prov.identify.policy_templates in Python SDK.
Signature
prov.identify.policy_templates() -> AnyParameters
No parameters.
Returns
Any The templates.
HTTP operation
GET /v1/identify/policy_templates: List traffic policy templates
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/policy_templates`, {
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_templates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()