https://pulumi.com logo
#automation-api
Title
# automation-api
c

colossal-plastic-46140

05/07/2021, 1:08 PM
In the Go API, is there a decent way to get a jsonfied response of a preview, ie the equivalent of pulumi preview --json?
l

lemon-agent-27707

05/07/2021, 1:59 PM
There is no exact equivalent but you can get JSON a stream of detailed JSON events from the pulumi engine by specifying the
EventStream
preview option: https://github.com/pulumi/pulumi/blob/c3dc2d54abf85da811de0fbaa5e98f22b0f054c8/sdk/go/auto/optpreview/optpreview.go#L91
👍 1