with Turtlink and Docker Engine?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
turtlink: {
type: "app",
app: "turtlink",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://turtlink.com/api/integration/auth/test`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.turtlink.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
docker_engine: {
type: "app",
app: "docker_engine",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.docker_engine.$auth.url}/v1.45/containers/json`,
headers: {
"X-Registry-Auth": `${this.docker_engine.$auth.registry_authorization}`,
},
})
},
})