import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pulumi: {
type: "app",
app: "pulumi",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.pulumi.com/api/orgs/${this.pulumi.$auth.organization}/members`,
headers: {
"authorization": `token ${this.pulumi.$auth.api_token}`,
"content-type": `application/json`,
"accept": `application/json`,
},
})
},
})
Pulumi Cloud uses API keys for authentication. When you connect your Pulumi Cloud account, Pipedream securely stores the keys so you can easily authenticate to Pulumi Cloud APIs in both code and no-code steps.