import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
octopus_deploy: {
type: "app",
app: "octopus_deploy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.octopus_deploy.$auth.domain}.octopus.app/api/users`,
headers: {
"X-Octopus-ApiKey": `${this.octopus_deploy.$auth.api_key}`,
},
})
},
})
Octopus Deploy uses API keys for authentication. When you connect your Octopus Deploy account, Pipedream securely stores the keys so you can easily authenticate to Octopus Deploy APIs in both code and no-code steps.
To retrieve your API Keys,
Your domain is 1234
if your Octopus Deploy instance URL is https://1234.octopus.app/app#/Spaces-1