import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
imperva_waf: {
type: "app",
app: "imperva_waf",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.imperva.com/identity-management/v3/idm-users`,
headers: {
"x-api-id": `${this.imperva_waf.$auth.api_id}`,
"x-api-key": `${this.imperva_waf.$auth.api_key}`,
},
})
},
})
Imperva WAF uses API keys for authentication. When you connect your Imperva WAF account, Pipedream securely stores the keys so you can easily authenticate to Imperva WAF APIs in both code and no-code steps.