import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ionos_hosting_services: {
type: "app",
app: "ionos_hosting_services",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hosting.ionos.com/dns/v1/zones`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.ionos_hosting_services.$auth.public_prefix}.${this.ionos_hosting_services.$auth.secret}`,
"cookie": `0b04270753322c986927738ac2b6c0d8=f0bdc4e5976f6d806c765101692526bc; DPX=v1:SBQ1uQuBY/:PKIEBpGz:68843834:de`,
},
})
},
})
IONOS Hosting Services uses API keys for authentication. When you connect your IONOS Hosting Services account, Pipedream securely stores the keys so you can easily authenticate to IONOS Hosting Services APIs in both code and no-code steps.