import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
elastic_security: {
type: "app",
app: "elastic_security",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.elastic_security.$auth.api_url}/api/cases/_find`,
headers: {
"authorization": `ApiKey ${this.elastic_security.$auth.api_key}`,
},
})
},
})
Elastic Security uses API keys for authentication. When you connect your Elastic Security account, Pipedream securely stores the keys so you can easily authenticate to Elastic Security APIs in both code and no-code steps.