with Scalr and Allocadence?
The Scalr API enables programmatic interaction with Scalr's infrastructure management and automation capabilities. On Pipedream, you can harness this API to create diverse workflows that automate cloud resource provisioning, management, and monitoring. These workflows can trigger on various events and integrate with other services to streamline your DevOps processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
scalr: {
type: "app",
app: "scalr",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://apidirectories.scalr.io/api/iacp/v3/users`,
headers: {
Authorization: `Bearer ${this.scalr.$auth.api_token}`,
"Prefer": `profile=preview`,
"Accept": `application/vnd.api+json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
allocadence: {
type: "app",
app: "allocadence",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.allocadence.com/rest/items`,
auth: {
username: `${this.allocadence.$auth.api_key}`,
password: `${this.allocadence.$auth.api_secret}`,
},
})
},
})