sincecutoff.com
← all changes

Pulumi Automation API adds organization default commands (Go)

Introduced 2026-04-02 · score 0.91

HOW TO USE IT

When setting or retrieving the default organization for the current backend, call the Go Automation API workspace method `OrgSetDefault` or `OrgGetDefault`.

org, err := workspace.OrgGetDefault(ctx)
err := workspace.OrgSetDefault(ctx, "<org-name>")

WHY THIS HELPS

Set or retrieve the default organization through the Go Automation API.

REQUIREMENTS AND LIMITATIONS

  • Version: 3.229.0
  • OrgGetDefault(ctx context.Context) (required): Context is required; returns the default organization for the current backend and an error.
  • OrgSetDefault(ctx context.Context, orgName string) (required): Context and organization name are required; sets the default organization for the current backend.
  • Prerequisite: Use the Pulumi Go SDK Automation API. It drives the Pulumi CLI, which must be available at runtime; install it and add it to PATH, or install it programmatically.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card