Opsgenie is a modern incident management platform for operating always-on services, empowering Dev and Ops teams to plan for service disruptions and stay in control during incidents.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
opsgenie: {
type: "app",
app: "opsgenie",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.opsgenie.$auth.instance_region}.opsgenie.com/v2/account`,
headers: {
"Authorization": `GenieKey ${this.opsgenie.$auth.api_key}`,
},
})
},
})
Opsgenie uses API keys for authentication. When you connect your Opsgenie account, Pipedream securely stores the keys so you can easily authenticate to Opsgenie APIs in both code and no-code steps.
You can get your API Key under Settings > App Settings > API key management.
Your instance is api
or api.eu
depending on region selected for OpsGenie during account creation.