with Acronis Cyber Protect Cloud and Grafana?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
acronis_cyber_protect_cloud: {
type: "app",
app: "acronis_cyber_protect_cloud",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.acronis_cyber_protect_cloud.$auth.data_center_url}/api/2/clients/${this.acronis_cyber_protect_cloud.$auth.client_id}`,
headers: {
Authorization: `Bearer ${this.acronis_cyber_protect_cloud.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
grafana: {
type: "app",
app: "grafana",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.grafana.$auth.domain}/api/org/`,
headers: {
Authorization: `Bearer ${this.grafana.$auth.service_account_token}`,
"accept": `application/json`,
},
})
},
})