Stack Updates
Get Engine Events
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/eventsReturns the engine events for the specified update. Engine events represent individual resource operations and diagnostic messages produced during the update. Supports pagination via continuation tokens and filtering by engine event type codes or resource URN. The include_non_activated parameter controls whether events not yet marked as activated are included.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update IDcontinuationTokenstring query optionalContinuation token for paginated resultsinclude_non_activatedboolean query optionalWhen true, includes events that have not yet been activated; when false or omitted, only activated events are returnedtypearray query optionalFilter results to only include events matching these engine event type codesurnstring query optionalFilter results to only include events for the specified resource URN
Responses
- Events are returned sorted by their internal sequence number (not exposed to the API). So the last Event in the slice is the most recent event which was stored in the database. (Should sort identical to timestamp, but may not if we support parallel writes.)
- ↳
timestampinteger requiredTimestamp of the event (seconds). - ↳
typestring requiredType describes which payload object is associated with the event, such that in JavaScriptevent[event.type]is never undefined/null. - Present when
typeiscancelEvent. - Present when
typeisstdoutEvent. - Present when
typeisdiagnosticEvent. - Present when
typeispreludeEvent. - Present when
typeissummaryEvent. - Present when
typeisresourcePreEvent. - Present when
typeisresOutputsEvent. - Present when
typeisresOpFailedEvent. - Present when
typeispolicyEvent. - Present when
typeispolicyRemediationEvent. - Present when
typeispolicyLoadEvent. - Present when
typeispolicyAnalyzeSummaryEvent. - Present when
typeispolicyRemediateSummaryEvent. - Present when
typeispolicyAnalyzeStackSummaryEvent. - Present when
typeisstartDebuggingEvent. - Present when
typeisprogressEvent. - Present when
typeiserrorEvent. continuationTokenstring requiredContinuationToken is an opaque value the client can send to fetch more recent events if the update is still in progress. Will be nil once all events have been returned and the update is complete.
Get Update Status For Update
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}Returns the current status and results of a standard (pulumi up) update, including whether it is still in progress, succeeded, or failed. Supports pagination of results via the continuationToken query parameter.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update IDcontinuationTokenstring query optionalContinuation token for paginated results
Responses
statusenum requiredThe current statusValues:not started,requested,running,failed,succeeded,cancelled- List of events
- ↳
indexstring requiredThe index - ↳
kindenum requiredThe kindValues:stdout,stderr - ↳
fieldsmap[string]object requiredThe fields continuationTokenstring optionalContinuationToken is an opaque value used to indiciate the end of the returned update results. Pass it in the next request to obtain subsequent update events.
The same continuation token may be returned if no new update events are available, but the update is still in-progress.
A value of nil means that no new updates will be available. Everything has been returned to the client and the update has completed.
Get Stack Updates
/api/stacks/{orgName}/{projectName}/{stackName}/updatesReturns the update history for a stack. Each update includes its kind (update, preview, refresh, destroy, import), start and end times, result status, resource changes summary, and resource count. Supports pagination via ‘page’ and ‘pageSize’ query parameters (page 0 returns all results, pageSize=1 with page=1 returns only the most recent update). The ‘output-type’ parameter controls the response format: when unset, returns a legacy format; when set, returns a paginated response.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameoutput-typestring query optionalControls the response format; when unset returns the legacy format, otherwise returns the paginated formatpageinteger query optionalPage number for paginated results (0-indexed, where 0 returns all results)pageSizeinteger query optionalNumber of results per page (must be >= 1 when page > 0)
Responses
Get Latest Stack Previews
/api/stacks/{orgName}/{projectName}/{stackName}/updates/latest/previewsReturns all preview operations associated with the latest stack update version. Previews are dry-run operations that show what changes would be made. Supports pagination via page and pageSize parameters (page 0 returns all results). The asc parameter controls sort order (ascending or descending by chronological order).
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameascboolean query optionalWhen true, sorts results in ascending chronological order; when false or omitted, sorts in descending orderpageinteger query optionalPage number for paginated results (0-indexed, where 0 returns all results)pageSizeinteger query optionalNumber of results per page (must be >= 1 when page > 0)
Responses
- The list of stack updates
- The underlying update information from the Pulumi CLI.
- ↳
updateIDstring requiredUpdateID is the underlying Update’s ID on the PPC. If the update’s metadata indicates the update environment was from a GitHub based repo we try to lookup the commit that was HEAD at the time of the update.
May not be set depending on which API is used to obtain the UpdateInfo object.
- ↳
versioninteger requiredVersion of the stack that this UpdateInfo describe. - ↳
latestVersioninteger requiredLatestVersion of the stack in general. i.e. the latest when Version == LatestVersion. - The user who requested the update.
- The Policy Packs that were required for this update.
- ↳
requestedByTokenstring optionalThe access token used to request the update, if applicable. itemsPerPageinteger requiredThe number of items per pagetotalinteger requiredThe total number of updates
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.