sparse-intern-71089
05/03/2019, 10:20 PMwhite-balloon-205
quick-action-34599
05/03/2019, 10:23 PMwhite-balloon-205
quick-action-34599
05/03/2019, 10:23 PMcloud.API
quick-action-34599
05/03/2019, 10:23 PMwhite-balloon-205
white-balloon-205
api.publish()
for the API to get created.
The response from that is https://pulumi.io/reference/pkg/nodejs/@pulumi/cloud/index.html#HttpDeployment which has a url
property you should be able to `GET`/`POST`.quick-action-34599
05/03/2019, 10:28 PMquick-action-34599
05/03/2019, 10:28 PMquick-action-34599
05/03/2019, 10:28 PMwhite-balloon-205
apply
. This will frequently lead to misleading previews.quick-action-34599
05/03/2019, 10:29 PMwhite-balloon-205
white-balloon-205
let api = new API();
let url = api.publish().url;
let gcloudfunction = new Function("f", async () => {
console.log(url.get());
});
quick-action-34599
05/03/2019, 10:31 PMquick-action-34599
05/03/2019, 10:31 PMwhite-balloon-205
quick-action-34599
05/03/2019, 10:34 PMquick-action-34599
05/06/2019, 2:08 PMurl.get()
again and it’s working. Thanks!