Stacks
The Stacks API lets you create and manage Pulumi stacks — isolated, independently configurable instances of a Pulumi program. The endpoints cover stack lifecycle (create, list, get, transfer, delete), stack configuration, stack tags, and stack update history.
See Stacks for conceptual documentation.
List Member Stack Permissions
/api/console/orgs/{orgName}/members/{userLogin}/stacks/{projectName}/{stackName}Lists all permissions granted to a specific organization member for a given stack. The response provides a comprehensive view of the user’s access, including permissions inherited from the organization’s default role, permissions granted through team memberships, and permissions explicitly assigned to the user. Returns 404 if the user does not exist.
Request Parameters
orgNamestring path requiredThe organization nameuserLoginstring path requiredThe user loginprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
- The user information
- ↳
namestring requiredThe user’s display name. - ↳
githubLoginstring requiredThe user’s login name. - ↳
avatarUrlstring requiredThe URL of the user’s avatar image. - ↳
emailstring optionalIMPORTANT: The email address of the user is only included on a few admin-only APIs. For nearly all APIs that return a UserInfo object, this will not be provided. considered sensitive information. organizationRoleenum requiredThe user’s role within the organizationValues:none,member,admin,potential-member,stack-collaborator,billing-managerorganizationDefaultenum requiredThe organization’s default stack permission levelValues:0,101,102,103,104- The list of team-based permissions for this stack
- The team that has been granted access to the stack.
- ↳
permissionenum requiredThe permission level the team has on the stack (e.g., read, write, admin).Values:0,101,102,103,104 explicitPermissionenum requiredThe explicitly assigned permission for this user on this stackValues:0,101,102,103,104
Get Stack Overview
/api/console/stacks/{orgName}/{projectName}/{stackName}/overviewReturns aggregated stack overview data optimized for display in the Pulumi Cloud web console. The response combines information from multiple sources including the stack’s current state, recent activity, resource counts, and configuration into a single response to minimize round trips.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
tagsmap[string]string requiredThe tags associated with this stack.- The list of stacks referenced by this stack.
- ↳
organizationstring requiredThe organization that owns the referenced stack. - ↳
routingProjectstring requiredThe project used for routing to the referenced stack. - ↳
namestring requiredThe name of the referenced stack. - ↳
versioninteger requiredThe version of the stack when it was referenced. - The resources belonging to this stack.
- The list of resources in the stack
- ↳
regionstring requiredThe cloud region where the resources are deployed - ↳
versioninteger requiredThe update version number
Update Team Stack Permissions
/api/console/stacks/{orgName}/{projectName}/{stackName}/teams/{teamName}Modifies the permissions that a specific team has for the referenced stack. This allows setting the team’s permission level (read, write, admin) for a single stack without affecting the team’s permissions on other stacks. Returns 400 if the permission level is invalid or the team does not have the required base permissions. Returns 403 if the caller lacks permission to update the team. Returns 404 if the team does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameteamNamestring path requiredThe team name
Request Body
permissionsenum optionalPermissions the permissions that team membership grants to the stack. Will overwrite any existing permissions the team grants to the stack. A nil value will remove the stack from the team.Values:0,101,102,103,104
Responses
Update Summary
/api/console/stacks/{orgName}/{projectName}/{stackName}/updates/{updateID}/summaryReturns a human-readable summary of a specific update, identified by its update ID. The summary is formatted in the same manner as generated by the CLI on ‘pulumi up’, including a tree view of resource changes, create/update/delete counts, and the overall result. This endpoint is optimized for display in the Pulumi Cloud web console. Returns 404 if the update does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Responses
summarystring requiredHuman-readable text summarizing the update results (resource counts, changes, etc.).
Update Summary Handler Latest
/api/console/stacks/{orgName}/{projectName}/{stackName}/updates/latest/summaryReturns a human-readable summary of the most recent update to the stack, without requiring a specific update ID. The summary is formatted identically to the UpdateSummary endpoint, including a tree view of resource changes. This is a convenience endpoint that automatically resolves the latest update version. Returns 404 if the stack has no updates.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
summarystring requiredHuman-readable text summarizing the update results (resource counts, changes, etc.).
Get Stack
/api/stacks/{orgName}/{projectName}/{stackName}Retrieves detailed information about a specific stack, including its organization, project, and stack name, the current version number, all associated tags, any active update operations (with the operation kind, author, and start time), and the active update UUID. This is the primary endpoint for inspecting the current state and metadata of a stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
idstring requiredThe logical identifier of the stack.orgNamestring requiredThe organization nameprojectNamestring requiredThe project namestackNamestring requiredThe stack name- CurrentOperation provides information about a stack operation in-progress, as applicable.
- ↳
kindenum requiredThe type of operation in progress (e.g. ‘update’, ‘preview’, ‘destroy’, ‘refresh’).Values:update,preview,refresh,rename,destroy,import,Pupdate,Prefresh,Pdestroy,Pimport,Prename - ↳
authorstring requiredThe login of the user who initiated this operation. - ↳
startedinteger requiredUnix epoch timestamp (seconds) when the operation started. activeUpdatestring requiredThe active updatetagsmap[string]string optionalMap of tags- Optional cloud-persisted stack configuration. If set, then the stack’s configuration is loaded from the cloud and not a file on disk.
- ↳
environmentstring requiredReference to ESC environment to use as stack configuration. - ↳
secretsProviderstring optionalThe stack’s secrets provider. - ↳
encryptedKeystring optionalThe KMS-encrypted ciphertext for the data key used for secrets encryption. Only used for cloud-based secrets providers. - ↳
encryptionSaltstring optionalThe stack’s base64-encoded encryption salt. Only used for passphrase-based secrets providers. versioninteger requiredThe version number
Delete Stack
/api/stacks/{orgName}/{projectName}/{stackName}Removes a stack from Pulumi Cloud. By default, the stack must have no resources remaining; attempting to delete a stack that still manages resources will fail. Use the ‘force’ query parameter set to true to override this check and force deletion even when resources remain. The deletion is a soft-delete that hides the stack from normal queries. Returns 204 with no content on success.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameforceboolean query optionalWhen true, forces deletion even if the stack still has resources
Responses
Get Stack Activity
/api/stacks/{orgName}/{projectName}/{stackName}/activityReturns the activity history for a stack, including updates, configuration changes, and other operations. Supports pagination via page and pageSize parameters (page 0 returns all results). Returns 400 if the page parameter is invalid.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack namepageinteger 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 activity records for the stack
- The update
- The deployment data
itemsPerPageinteger requiredThe number of items per pagetotalinteger requiredThe total number of activity records
Get Stacks Annotation
/api/stacks/{orgName}/{projectName}/{stackName}/annotations/{kind}Retrieves an annotation for a stack, identified by the annotation kind. Annotations are structured metadata that can be attached to stacks for purposes such as compliance tracking, custom metadata, or integration data. The optional ‘source’ and ‘version’ query parameters allow filtering by annotation source and specific version. Returns 404 if the annotation does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack namekindstring path requiredThe annotation kindsourcestring query optionalThe annotation sourceversioninteger query optionalThe annotation version number, used for filtering by a specific version
Responses
Upsert Stacks Annotations
/api/stacks/{orgName}/{projectName}/{stackName}/annotations/{kind}Creates or updates an annotation for a stack, identified by the annotation kind. Annotations are structured metadata that can be attached to stacks. The ‘version’ query parameter supports optimistic concurrency control: if provided, the update only succeeds if the current annotation version matches. Returns 409 if the annotation has changed since it was read (version conflict).
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack namekindstring path requiredThe annotation kindsourcestring query optionalThe annotation sourceversioninteger query optionalThe expected annotation version for optimistic concurrency control
Request Body
Responses
Batch Decrypt Value
/api/stacks/{orgName}/{projectName}/{stackName}/batch-decryptDecrypts a set of secret values in a single request using the stack’s encryption key. The request body contains an array of base64-encoded ciphertexts. The response maps each ciphertext to its decrypted plaintext value. This is a more efficient alternative to calling the single-value decrypt endpoint multiple times. Returns 400 if the request body is invalid or if message authentication fails. Returns 413 if the request body exceeds the maximum allowed content size.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
ciphertextsarray[array] requiredList of ciphertexts
Responses
Batch Encrypt Value
/api/stacks/{orgName}/{projectName}/{stackName}/batch-encryptEncrypts a set of plaintext values in a single request using the stack’s encryption key. This is a more efficient alternative to calling the single-value encrypt endpoint multiple times. The response contains a map of the original plaintext values to their corresponding base64-encoded ciphertexts. Returns 413 if the request body exceeds the maximum allowed content size.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
plaintextsarray[array] requiredThe values to encrypt.
Responses
ciphertextsarray[array] requiredThe encrypted values, in order of the plaintexts from the request.
List Stack Permissions
/api/stacks/{orgName}/{projectName}/{stackName}/collaboratorsLists all collaborators for a stack, including their permission levels. This includes collaborators who have been invited but have not yet accepted their invitations. The response includes each collaborator’s username and their permission level for the stack. This endpoint is deprecated.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
- Other users explicitly added as collaborators on this stack. (Those inheriting permissions from the org aren’t included.)
- The user who has been granted access to the stack.
- ↳
permissionenum requiredThe permission level the user has on the stack (e.g., read, write, admin).Values:0,101,102,103,104 stackCreatorUserNamestring optionalStackCreatorUserName is the user name of the stack creator. If stack creator’s permissions have been removed then this will be null and will be omitted from the json response.
Delete Stack Permission
/api/stacks/{orgName}/{projectName}/{stackName}/collaborators/{userName}Removes a specific user’s direct permission to access a stack. This only removes permissions explicitly granted to the user; permissions inherited from team membership or organization-level defaults are not affected. Returns 404 if the user does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameuserNamestring path requiredThe user name
Responses
Decrypt Value
/api/stacks/{orgName}/{projectName}/{stackName}/decryptDecrypts a single secret value using the stack’s encryption key. The request body contains the base64-encoded ciphertext. The response contains the decrypted plaintext value. For decrypting multiple values in a single request, use the BatchDecryptValue endpoint instead. Returns 413 if the request body exceeds the maximum allowed content size.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
ciphertextarray[string] requiredThe value to decrypt.
Responses
Log Only Batch Decrypt Value
/api/stacks/{orgName}/{projectName}/{stackName}/decrypt/log-batch-decryptionRecords an audit log entry for a batch decryption event performed by a third-party secrets provider. When stacks use external secrets providers (such as AWS KMS, Azure Key Vault, or HashiCorp Vault), decryption happens client-side; this endpoint allows the CLI to report that decryption occurred for audit tracking purposes.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
secretNamestring optionalThe secret namecommandNamestring optionalThe command name
Responses
Log Only Decrypt Value
/api/stacks/{orgName}/{projectName}/{stackName}/decrypt/log-decryptionRecords an audit log entry for a single-value decryption event performed by a third-party secrets provider. When stacks use external secrets providers (such as AWS KMS, Azure Key Vault, or HashiCorp Vault), decryption happens client-side; this endpoint allows the CLI to report that decryption occurred for audit tracking.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
secretNamestring optionalThe secret namecommandNamestring optionalThe command name
Responses
Create Update For Destroy
/api/stacks/{orgName}/{projectName}/{stackName}/destroyCreates a new destroy update for the given stack. A destroy update tears down all resources managed by the stack. This only creates the update record; the update must subsequently be started via the StartUpdateForDestroy endpoint. Enforces stack update concurrency checks to prevent conflicting simultaneous operations.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
namestring requiredProperties from the Project file. Subset of pack.Package.runtimestring requiredThe runtimemainstring requiredThe main entry pointdescriptionstring requiredThe description- The options
- ↳
localPolicyPackPathsarray[string] requiredFile system paths to local policy packs to apply during this update. - ↳
colorstring requiredTerminal color mode for output rendering (e.g. ‘always’, ’never’, ‘auto’). - ↳
dryRunboolean requiredIf true, perform a preview without actually applying changes. - ↳
parallelinteger requiredMaximum number of resource operations to perform in parallel. 0 or -1 for unlimited. - ↳
showConfigboolean requiredIf true, include configuration values in the update output. - ↳
showReplacementStepsboolean requiredIf true, include detailed replacement steps in the update output. - ↳
showNamesboolean requiredIf true, include unchanged resources in the update output. - ↳
summaryboolean requiredIf true, only show a summary of changes rather than full details. - ↳
debugboolean requiredIf true, enable verbose debug logging during the update. - Configuration values.
- The metadata
- ↳
messagestring requiredMessage is an optional message associated with the update. - ↳
environmentmap[string]string requiredEnvironment contains optional data from the deploying environment. e.g. the current source code control commit information.
Responses
updateIDstring requiredUpdateID is the opaque identifier of the requested update. This value is needed to begin an update, as well as poll for its progress.- RequiredPolicies is a list of required Policy Packs to run during the update.
- ↳
namestring requiredThe name (unique and URL-safe) of the required Policy Pack. - ↳
versioninteger requiredThe version of the required Policy Pack. - ↳
versionTagstring requiredThe version tag of the required Policy Pack. - ↳
displayNamestring requiredThe pretty name of the required Policy Pack. - ↳
packLocationstring optionalWhere the Policy Pack can be downloaded from. - ↳
configmap[string]object optionalThe configuration that is to be passed to the Policy Pack. This is map a of policies mapped to their configuration. Each individual configuration must comply with the JSON schema for each Policy within the Policy Pack. - ↳
environmentsarray[string] optionalReferences to ESC environments whose resolved values the CLI should inject into the policy pack process. - Messages is a list of messages that should be displayed to the user.
- ↳
severityenum optionalSeverity is the severity of the message.Values:warning,error,info - ↳
messagestring requiredMessage is the message to display to the user. - The ai settings
- ↳
copilotIsEnabledboolean requiredWhether the Pulumi Copilot AI assistant is enabled for this stack.
Get Update Status For Destroy
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}Returns the current status and results of a destroy 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.
Start Update For Destroy
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}Starts execution of a previously created destroy update. The update must have been created via CreateUpdateForDestroy first. Returns a lease token and version number for tracking the update. Returns 404 if the update does not exist, or 409 if another update is already in progress on the stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
tagsmap[string]string optionalTags contains an updated set of Tags for the stack. If non-nil, will replace the current set of tags associated with the stack.journalVersioninteger optionalJournalVersion indicates the maximum journal version the client supports. If 0, journaling is not supported.
Responses
versioninteger requiredVersion is the version of the program once the update is complete. (Will be the current, unchanged value for previews.)tokenstring optionalToken is the lease token (if any) to be used to authorize operations on this update.tokenExpirationinteger optionalTokenExpiration is a UNIX timestamp by which the token will expire.journalVersioninteger optionalJournalVersion indicates the maximum version of journal entries that should be sent to the server. Is expected to be less or equal than the JournalVersion we sent in the update request. If 0, journaling is disabled.
Cancel Update
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/cancelRequests cancellation of a service-managed update that is currently in progress. The update must have been started (returns 409 if it has not). Returns 404 if the specified update does not exist. The cancellation is processed asynchronously and the update will transition to a cancelled state.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Responses
Patch Update Checkpoint
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/checkpointUploads a new checkpoint (deployment state snapshot) for a service-managed update that is currently in progress. The checkpoint contains the complete current state of all resources. The request must contain a valid checkpoint object. Returns 403 for preview operations since previews do not modify actual state. Returns 409 if the update has not started, has been cancelled, timed out, or already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
isInvalidboolean requiredWhether invalidversioninteger requiredThe version numberfeaturesarray[string] optionalThe featuresdeploymentobject optionalThe deployment data
Responses
Patch Update Checkpoint Delta
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/checkpointdeltaUploads a checkpoint delta for a service-managed update that is currently in progress. Rather than uploading the complete checkpoint state, this endpoint accepts an incremental delta that is applied to the existing checkpoint, reducing the payload size. The delta is persisted in the format as provided. Supports checksum validation for data integrity. Returns 403 for preview operations since previews do not modify actual state. Returns 409 if the update has not started, has been cancelled, timed out, or already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
versioninteger requiredProtocol version.checkpointHashstring requiredSHA256 hash of the result of aplying the DeploymentDelta to the previously saved deployment.sequenceNumberinteger requiredIdempotency key incremented by the client on every PATCH call within the same update.deploymentDeltaobject optionalTextual diff that recovers the desired deployment JSON when applied to the previously saved deployment JSON.
Responses
Patch Update Verbatim Checkpoint
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/checkpointverbatimUploads a checkpoint for a service-managed update as a verbatim byte array, bypassing JSON marshalling. Unlike PatchUpdateCheckpoint which accepts a structured deployment object and re-serializes it (which may compact data), this endpoint preserves the exact bytes provided by the client and uploads them directly to blob storage. This maintains byte-level fidelity of the checkpoint data. Returns 403 for preview operations. Returns 409 if the update has not started, has been cancelled, timed out, or already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
versioninteger requiredThe version numberuntypedDeploymentobject optionalThe untyped deploymentsequenceNumberinteger requiredIdempotency key incremented by the client on every PATCH call within the same update.
Responses
Complete Update
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/completeMarks a service-managed update as complete. The request body must include the final status of the update. Returns 400 if the status is unrecognized. Returns 409 if the update has not started, has been cancelled, has already timed out, or has already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
statusenum requiredThe current statusValues:not started,requested,running,failed,succeeded,cancelled
Responses
Record Engine Event
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/eventsRecords a single engine event sent from the Pulumi CLI during a stack update. Engine events represent individual resource operations or diagnostic messages. For better performance, consider using RecordEngineEventBatch to send multiple events in a single request. Returns 400 if no event data is provided, or 404 if the update does not exist. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
sequenceinteger requiredSequence is a unique, and monotonically increasing number for each engine event sent to the Pulumi Service. Since events may be sent concurrently, and/or delayed via network routing, the sequence number is to ensure events can be placed into a total ordering.
- No two events can have the same sequence number.
- Events with a lower sequence number must have been emitted before those with a higher sequence number.
timestampinteger requiredTimestamp is a Unix timestamp (seconds) of when the event was emitted.- The cancel event
- The stdout event
- ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - The diagnostic event
- ↳
urnstring optionalThe Pulumi URN - ↳
prefixstring optionalThe prefix - ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - ↳
severitystring requiredSeverity is one of “info”, “info#err”, “warning”, or “error”. - ↳
streamIDinteger optionalThe stream identifier - ↳
ephemeralboolean optionalWhether ephemeral is enabled - The prelude event
- ↳
configmap[string]string requiredConfig contains the keys and values for the update. Encrypted configuration values may be blinded. - The summary event
- ↳
maybeCorruptboolean requiredMaybeCorrupt is set if one or more of the resources is in an invalid state. - ↳
durationSecondsinteger requiredDuration is the number of seconds the update was executing. - ↳
resourceChangesmap[string]integer requiredResourceChanges contains the count for resource change by type. - ↳
PolicyPacksmap[string]string requiredPolicy Packs run during the update, as a map from policy pack name to version. For newer clients, the value is the version tag prefixed withv; for older clients it is the raw version. - ↳
isPreviewboolean requiredIsPreview indicates whether this is a preview or an update. - The resource pre event
- The metadata
- ↳
planningboolean optionalWhether planning is enabled - The res outputs event
- The metadata
- ↳
planningboolean optionalWhether planning is enabled - The res op failed event
- The metadata
- ↳
statusinteger requiredThe current status - ↳
stepsinteger requiredThe steps - The policy event
- ↳
resourceUrnstring optionalThe resource urn - ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - ↳
policyNamestring requiredThe policy name - ↳
policyPackNamestring requiredThe policy pack name - ↳
policyPackVersionstring requiredThe policy pack version - ↳
policyPackVersionTagstring requiredThe policy pack version tag - ↳
enforcementLevelstring requiredEnforcementLevel is one of “warning”, “mandatory”, “remediate”, or “none”. - ↳
severitystring optionalSeverity is one of “low”, “medium”, “high”, or “critical”. An empty string is omitted and represents an unspecified severity. - The policy remediation event
- ↳
resourceUrnstring optionalThe resource urn - ↳
colorstring requiredThe output color - ↳
policyNamestring requiredThe policy name - ↳
policyPackNamestring requiredThe policy pack name - ↳
policyPackVersionstring requiredThe policy pack version - ↳
policyPackVersionTagstring requiredThe policy pack version tag - ↳
beforemap[string]object optionalMap of before - ↳
aftermap[string]object optionalMap of after - The policy load event
- The policy analyze summary event
- ↳
resourceUrnstring requiredThe URN of the resource being analyzed. - ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of resource policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of resource policies that failed (i.e. produced violations). - The policy remediate summary event
- ↳
resourceUrnstring requiredThe URN of the resource being remediated. - ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of resource policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of resource policies that failed (i.e. produced violations). - The policy analyze stack summary event
- ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of stack policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of stack policies that failed (i.e. produced violations). - The start debugging event
- ↳
configmap[string]object optionalThe configuration - The progress event
- ↳
typeenum requiredThe type of process (e.g. plugin download, plugin install).Values:plugin-download,plugin-install - ↳
idstring requiredA unique identifier for the process. - ↳
messagestring requiredA message accompanying the process. - ↳
receivedinteger requiredThe number of items completed so far (e.g. bytes received, items installed, etc.) - ↳
totalinteger requiredThe total number of items that must be completed. - ↳
doneboolean requiredTrue if and only if the process has completed. - The error event
- ↳
errorstring requiredError is the error message.
Responses
Record Engine Event Batch
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/events/batchRecords a batch of engine events sent from the Pulumi CLI during a stack update. Engine events represent individual resource operations (create, update, delete, etc.) and diagnostic messages. Batching events reduces the number of API calls during an update. Returns 400 if no events are provided in the batch, or 404 if the update does not exist. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
- List of events
- ↳
sequenceinteger requiredSequence is a unique, and monotonically increasing number for each engine event sent to the Pulumi Service. Since events may be sent concurrently, and/or delayed via network routing, the sequence number is to ensure events can be placed into a total ordering.
- No two events can have the same sequence number.
- Events with a lower sequence number must have been emitted before those with a higher sequence number.
- ↳
timestampinteger requiredTimestamp is a Unix timestamp (seconds) of when the event was emitted. - The cancel event
- The stdout event
- The diagnostic event
- The prelude event
- The summary event
- The resource pre event
- The res outputs event
- The res op failed event
- The policy event
- The policy remediation event
- The policy load event
- The policy analyze summary event
- The policy remediate summary event
- The policy analyze stack summary event
- The start debugging event
- The progress event
- The error event
Responses
Create Journal Entries
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/journalentriesCreates new journal entries for the specified update. Journal entries record the progression of resource operations during an update, tracking state transitions for each resource. The include_non_activated query parameter controls whether non-activated events are included. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update IDinclude_non_activatedboolean query optionalWhen true, includes events that have not yet been activated; when false or omitted, only activated events are returned
Request Body
- List of entries
- ↳
versioninteger requiredVersion of the journal entry format. - ↳
kindenum requiredKind of journal entry.Values:0,1,2,3,4,5,6,7 - ↳
sequenceIDinteger requiredSequence ID of the operation. - ↳
operationIDinteger requiredID of the operation this journal entry is associated with. - ↳
removeOldinteger requiredID for the delete Operation that this journal entry is associated with. - ↳
removeNewinteger requiredID for the delete Operation that this journal entry is associated with. - ↳
pendingReplacementOldinteger optionalPendingReplacementOld is the index of the resource that’s to be marked as pending replacement - ↳
pendingReplacementNewinteger optionalPendingReplacementNew is the operation ID of the new resource to be marked as pending replacement - ↳
deleteOldinteger optionalDeleteOld is the index of the resource that’s to be marked as deleted. - ↳
deleteNewinteger optionalDeleteNew is the operation ID of the new resource to be marked as deleted. - The resource state associated with this journal entry.
- The operation associated with this journal entry, if any.
- ↳
isRefreshboolean optionalIf true, this journal entry is part of a refresh operation. - The secrets manager associated with this journal entry, if any.
- NewSnapshot is the new snapshot that this journal entry is associated with.
Responses
Append Update Log Entry
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/logAppends a log entry to the specified update’s log stream. Log entries are used to record diagnostic messages, status information, and other output generated during a stack update operation. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
kindstring requiredThe kindfieldsmap[string]object requiredThe fields
Responses
Renew Update Lease
/api/stacks/{orgName}/{projectName}/{stackName}/destroy/{updateID}/renew_leaseRenews the lease for a service-managed update that is currently in progress. Leases prevent concurrent operations on the same stack and must be periodically renewed to indicate the update is still active. The renewal duration must be between 0 and 300 seconds. Returns 409 if the update is not currently in progress.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
tokenstring requiredThe current, valid lease token. DEPRECATED as of Pulumi API version 5+. Pulumi API will expect the update token in the Authorization header instead of this property. This property will be removed when the minimum supported API version on the service is raised to 5.durationinteger requiredThe duration for which to renew the lease in seconds (maximum 300).
Responses
tokenstring requiredThe renewed token.tokenExpirationinteger optionalTokenExpiration is a UNIX timestamp by which the token will expire.
List Downstream Stack References
/api/stacks/{orgName}/{projectName}/{stackName}/downstreamreferencesReturns all stacks that reference the specified stack as a dependency in their Pulumi programs (via StackReference). This is useful for understanding the impact of changes to a stack, as downstream stacks may consume outputs from this stack. The response includes each referencing stack’s organization, project, name, and version.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
- The list of downstream stack references
- ↳
organizationstring requiredThe organization that owns the referenced stack. - ↳
routingProjectstring requiredThe project used for routing to the referenced stack. - ↳
namestring requiredThe name of the referenced stack. - ↳
versioninteger requiredThe version of the stack when it was referenced.
Encrypt Value
/api/stacks/{orgName}/{projectName}/{stackName}/encryptEncrypts a single plaintext value using the stack’s encryption key. The request body contains the plaintext value to encrypt. The response contains the base64-encoded ciphertext. For encrypting multiple values in a single request, use the BatchEncryptValue endpoint instead. Returns 413 if the request body exceeds the maximum allowed content size.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
plaintextarray[string] requiredThe value to encrypt.
Responses
Export Stack
/api/stacks/{orgName}/{projectName}/{stackName}/exportExports the current, complete state of the stack as an untyped deployment object. The response includes the deployment version, manifest (containing timestamps and plugin information), secrets providers configuration, and the full array of resources with their URNs, types, inputs, outputs, and dependency information. This endpoint is commonly used for stack state backup, migration between backends, or programmatic inspection of resource states.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
versioninteger optionalThe schema version of the encoded deployment.featuresarray[string] optionalAn optional list of features used by this deployment. The CLI will error when reading a deployment that uses a feature that is not supported by that version of the CLI. Only honored whenversionis 4 or greater.deploymentobject optionalThe opaque Pulumi deployment payload. Treated as a raw JSON value so the contents are preserved verbatim across client and server versions.
Export Stack At Version
/api/stacks/{orgName}/{projectName}/{stackName}/export/{version}Exports the complete stack state at a specific historical update version, rather than the current version. This allows retrieving the deployment snapshot as it existed after a particular update completed. The response format is identical to the ExportStack endpoint. Returns 400 if the version parameter is invalid, or 404 if the specified version does not exist for this stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameversioninteger path requiredThe stack update version number
Responses
versioninteger optionalThe schema version of the encoded deployment.featuresarray[string] optionalAn optional list of features used by this deployment. The CLI will error when reading a deployment that uses a feature that is not supported by that version of the CLI. Only honored whenversionis 4 or greater.deploymentobject optionalThe opaque Pulumi deployment payload. Treated as a raw JSON value so the contents are preserved verbatim across client and server versions.
Import Stack
/api/stacks/{orgName}/{projectName}/{stackName}/importImports a deployment state snapshot into the specified stack, replacing the current state. The request body must contain a complete untyped deployment object with the same format returned by the ExportStack endpoint. This is commonly used for state migration between backends, state repair, or restoring from backup. Returns 400 if the deployment contains encrypted secrets from a different stack. Returns 409 if another update is currently in progress on the stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
versioninteger optionalThe schema version of the encoded deployment.featuresarray[string] optionalAn optional list of features used by this deployment. The CLI will error when reading a deployment that uses a feature that is not supported by that version of the CLI. Only honored whenversionis 4 or greater.deploymentobject optionalThe opaque Pulumi deployment payload. Treated as a raw JSON value so the contents are preserved verbatim across client and server versions.
Responses
Get Stack Metadata
/api/stacks/{orgName}/{projectName}/{stackName}/metadataReturns metadata about a stack including the requesting user’s permission level and the stack’s notification settings (such as whether to notify on update success or failure). This endpoint provides access control and configuration metadata without returning the full stack details.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
orgNamestring requiredThe organization that owns the stack.projectNamestring requiredThe project that contains the stack.stackNamestring requiredThe stack name within the project.- The user with ownership of this stack
- ↳
namestring requiredThe user’s display name. - ↳
githubLoginstring requiredThe user’s login name. - ↳
avatarUrlstring requiredThe URL of the user’s avatar image. - ↳
emailstring optionalIMPORTANT: The email address of the user is only included on a few admin-only APIs. For nearly all APIs that return a UserInfo object, this will not be provided. considered sensitive information. - The notification settings for this stack.
- ↳
notifyUpdateFailureboolean requiredWhether to send a notification when a stack update fails. - ↳
notifyUpdateSuccessboolean requiredWhether to send a notification when a stack update succeeds.
Update Stack Notification Settings
/api/stacks/{orgName}/{projectName}/{stackName}/notifications/settingsUpdates the notification settings for a stack, controlling whether notifications are sent on update success or failure. The request body specifies the notification preferences. Returns the updated stack metadata including the new notification settings.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
notifyUpdateFailureboolean requiredWhether to send notifications on update failure.notifyUpdateSuccessboolean requiredWhether to send notifications on update success.
Responses
orgNamestring requiredThe organization that owns the stack.projectNamestring requiredThe project that contains the stack.stackNamestring requiredThe stack name within the project.- The user with ownership of this stack
- ↳
namestring requiredThe user’s display name. - ↳
githubLoginstring requiredThe user’s login name. - ↳
avatarUrlstring requiredThe URL of the user’s avatar image. - ↳
emailstring optionalIMPORTANT: The email address of the user is only included on a few admin-only APIs. For nearly all APIs that return a UserInfo object, this will not be provided. considered sensitive information. - The notification settings for this stack.
- ↳
notifyUpdateFailureboolean requiredWhether to send a notification when a stack update fails. - ↳
notifyUpdateSuccessboolean requiredWhether to send a notification when a stack update succeeds.
Reassign Stack Ownership
/api/stacks/{orgName}/{projectName}/{stackName}/ownershipChanges the ownership of the specified stack to the provided user. Returns the identity of the previous owner.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
namestring requiredThe user’s display name.githubLoginstring requiredThe user’s login name.avatarUrlstring requiredThe URL of the user’s avatar image.emailstring optionalIMPORTANT: The email address of the user is only included on a few admin-only APIs. For nearly all APIs that return a UserInfo object, this will not be provided. considered sensitive information.
Responses
namestring requiredThe user’s display name.githubLoginstring requiredThe user’s login name.avatarUrlstring requiredThe URL of the user’s avatar image.emailstring optionalIMPORTANT: The email address of the user is only included on a few admin-only APIs. For nearly all APIs that return a UserInfo object, this will not be provided. considered sensitive information.
Create Update For Preview
/api/stacks/{orgName}/{projectName}/{stackName}/previewCreates a new preview update for the given stack. A preview shows what changes would be made without actually applying them, similar to a dry run. This only creates the update record; the update must subsequently be started via the StartUpdateForPreview endpoint. Enforces stack update concurrency checks.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
namestring requiredProperties from the Project file. Subset of pack.Package.runtimestring requiredThe runtimemainstring requiredThe main entry pointdescriptionstring requiredThe description- The options
- ↳
localPolicyPackPathsarray[string] requiredFile system paths to local policy packs to apply during this update. - ↳
colorstring requiredTerminal color mode for output rendering (e.g. ‘always’, ’never’, ‘auto’). - ↳
dryRunboolean requiredIf true, perform a preview without actually applying changes. - ↳
parallelinteger requiredMaximum number of resource operations to perform in parallel. 0 or -1 for unlimited. - ↳
showConfigboolean requiredIf true, include configuration values in the update output. - ↳
showReplacementStepsboolean requiredIf true, include detailed replacement steps in the update output. - ↳
showNamesboolean requiredIf true, include unchanged resources in the update output. - ↳
summaryboolean requiredIf true, only show a summary of changes rather than full details. - ↳
debugboolean requiredIf true, enable verbose debug logging during the update. - Configuration values.
- The metadata
- ↳
messagestring requiredMessage is an optional message associated with the update. - ↳
environmentmap[string]string requiredEnvironment contains optional data from the deploying environment. e.g. the current source code control commit information.
Responses
updateIDstring requiredUpdateID is the opaque identifier of the requested update. This value is needed to begin an update, as well as poll for its progress.- RequiredPolicies is a list of required Policy Packs to run during the update.
- ↳
namestring requiredThe name (unique and URL-safe) of the required Policy Pack. - ↳
versioninteger requiredThe version of the required Policy Pack. - ↳
versionTagstring requiredThe version tag of the required Policy Pack. - ↳
displayNamestring requiredThe pretty name of the required Policy Pack. - ↳
packLocationstring optionalWhere the Policy Pack can be downloaded from. - ↳
configmap[string]object optionalThe configuration that is to be passed to the Policy Pack. This is map a of policies mapped to their configuration. Each individual configuration must comply with the JSON schema for each Policy within the Policy Pack. - ↳
environmentsarray[string] optionalReferences to ESC environments whose resolved values the CLI should inject into the policy pack process. - Messages is a list of messages that should be displayed to the user.
- ↳
severityenum optionalSeverity is the severity of the message.Values:warning,error,info - ↳
messagestring requiredMessage is the message to display to the user. - The ai settings
- ↳
copilotIsEnabledboolean requiredWhether the Pulumi Copilot AI assistant is enabled for this stack.
Get Update Status For Preview
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{updateID}Returns the current status and results of a preview 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.
Start Update For Preview
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{updateID}Starts execution of a previously created preview update. The update must have been created via CreateUpdateForPreview first. Returns a lease token and version number for tracking the update. Returns 404 if the update does not exist, or 409 if another update is already in progress on the stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
tagsmap[string]string optionalTags contains an updated set of Tags for the stack. If non-nil, will replace the current set of tags associated with the stack.journalVersioninteger optionalJournalVersion indicates the maximum journal version the client supports. If 0, journaling is not supported.
Responses
versioninteger requiredVersion is the version of the program once the update is complete. (Will be the current, unchanged value for previews.)tokenstring optionalToken is the lease token (if any) to be used to authorize operations on this update.tokenExpirationinteger optionalTokenExpiration is a UNIX timestamp by which the token will expire.journalVersioninteger optionalJournalVersion indicates the maximum version of journal entries that should be sent to the server. Is expected to be less or equal than the JournalVersion we sent in the update request. If 0, journaling is disabled.
Cancel Update
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{updateID}/cancelRequests cancellation of a service-managed update that is currently in progress. The update must have been started (returns 409 if it has not). Returns 404 if the specified update does not exist. The cancellation is processed asynchronously and the update will transition to a cancelled state.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Responses
Complete Update
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{updateID}/completeMarks a service-managed update as complete. The request body must include the final status of the update. Returns 400 if the status is unrecognized. Returns 409 if the update has not started, has been cancelled, has already timed out, or has already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
statusenum requiredThe current statusValues:not started,requested,running,failed,succeeded,cancelled
Responses
Get Engine Events
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{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.
Record Engine Event
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{updateID}/eventsRecords a single engine event sent from the Pulumi CLI during a stack update. Engine events represent individual resource operations or diagnostic messages. For better performance, consider using RecordEngineEventBatch to send multiple events in a single request. Returns 400 if no event data is provided, or 404 if the update does not exist. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
sequenceinteger requiredSequence is a unique, and monotonically increasing number for each engine event sent to the Pulumi Service. Since events may be sent concurrently, and/or delayed via network routing, the sequence number is to ensure events can be placed into a total ordering.
- No two events can have the same sequence number.
- Events with a lower sequence number must have been emitted before those with a higher sequence number.
timestampinteger requiredTimestamp is a Unix timestamp (seconds) of when the event was emitted.- The cancel event
- The stdout event
- ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - The diagnostic event
- ↳
urnstring optionalThe Pulumi URN - ↳
prefixstring optionalThe prefix - ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - ↳
severitystring requiredSeverity is one of “info”, “info#err”, “warning”, or “error”. - ↳
streamIDinteger optionalThe stream identifier - ↳
ephemeralboolean optionalWhether ephemeral is enabled - The prelude event
- ↳
configmap[string]string requiredConfig contains the keys and values for the update. Encrypted configuration values may be blinded. - The summary event
- ↳
maybeCorruptboolean requiredMaybeCorrupt is set if one or more of the resources is in an invalid state. - ↳
durationSecondsinteger requiredDuration is the number of seconds the update was executing. - ↳
resourceChangesmap[string]integer requiredResourceChanges contains the count for resource change by type. - ↳
PolicyPacksmap[string]string requiredPolicy Packs run during the update, as a map from policy pack name to version. For newer clients, the value is the version tag prefixed withv; for older clients it is the raw version. - ↳
isPreviewboolean requiredIsPreview indicates whether this is a preview or an update. - The resource pre event
- The metadata
- ↳
planningboolean optionalWhether planning is enabled - The res outputs event
- The metadata
- ↳
planningboolean optionalWhether planning is enabled - The res op failed event
- The metadata
- ↳
statusinteger requiredThe current status - ↳
stepsinteger requiredThe steps - The policy event
- ↳
resourceUrnstring optionalThe resource urn - ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - ↳
policyNamestring requiredThe policy name - ↳
policyPackNamestring requiredThe policy pack name - ↳
policyPackVersionstring requiredThe policy pack version - ↳
policyPackVersionTagstring requiredThe policy pack version tag - ↳
enforcementLevelstring requiredEnforcementLevel is one of “warning”, “mandatory”, “remediate”, or “none”. - ↳
severitystring optionalSeverity is one of “low”, “medium”, “high”, or “critical”. An empty string is omitted and represents an unspecified severity. - The policy remediation event
- ↳
resourceUrnstring optionalThe resource urn - ↳
colorstring requiredThe output color - ↳
policyNamestring requiredThe policy name - ↳
policyPackNamestring requiredThe policy pack name - ↳
policyPackVersionstring requiredThe policy pack version - ↳
policyPackVersionTagstring requiredThe policy pack version tag - ↳
beforemap[string]object optionalMap of before - ↳
aftermap[string]object optionalMap of after - The policy load event
- The policy analyze summary event
- ↳
resourceUrnstring requiredThe URN of the resource being analyzed. - ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of resource policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of resource policies that failed (i.e. produced violations). - The policy remediate summary event
- ↳
resourceUrnstring requiredThe URN of the resource being remediated. - ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of resource policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of resource policies that failed (i.e. produced violations). - The policy analyze stack summary event
- ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of stack policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of stack policies that failed (i.e. produced violations). - The start debugging event
- ↳
configmap[string]object optionalThe configuration - The progress event
- ↳
typeenum requiredThe type of process (e.g. plugin download, plugin install).Values:plugin-download,plugin-install - ↳
idstring requiredA unique identifier for the process. - ↳
messagestring requiredA message accompanying the process. - ↳
receivedinteger requiredThe number of items completed so far (e.g. bytes received, items installed, etc.) - ↳
totalinteger requiredThe total number of items that must be completed. - ↳
doneboolean requiredTrue if and only if the process has completed. - The error event
- ↳
errorstring requiredError is the error message.
Responses
Record Engine Event Batch
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{updateID}/events/batchRecords a batch of engine events sent from the Pulumi CLI during a stack update. Engine events represent individual resource operations (create, update, delete, etc.) and diagnostic messages. Batching events reduces the number of API calls during an update. Returns 400 if no events are provided in the batch, or 404 if the update does not exist. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
- List of events
- ↳
sequenceinteger requiredSequence is a unique, and monotonically increasing number for each engine event sent to the Pulumi Service. Since events may be sent concurrently, and/or delayed via network routing, the sequence number is to ensure events can be placed into a total ordering.
- No two events can have the same sequence number.
- Events with a lower sequence number must have been emitted before those with a higher sequence number.
- ↳
timestampinteger requiredTimestamp is a Unix timestamp (seconds) of when the event was emitted. - The cancel event
- The stdout event
- The diagnostic event
- The prelude event
- The summary event
- The resource pre event
- The res outputs event
- The res op failed event
- The policy event
- The policy remediation event
- The policy load event
- The policy analyze summary event
- The policy remediate summary event
- The policy analyze stack summary event
- The start debugging event
- The progress event
- The error event
Responses
Create Journal Entries
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{updateID}/journalentriesCreates new journal entries for the specified update. Journal entries record the progression of resource operations during an update, tracking state transitions for each resource. The include_non_activated query parameter controls whether non-activated events are included. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update IDinclude_non_activatedboolean query optionalWhen true, includes events that have not yet been activated; when false or omitted, only activated events are returned
Request Body
- List of entries
- ↳
versioninteger requiredVersion of the journal entry format. - ↳
kindenum requiredKind of journal entry.Values:0,1,2,3,4,5,6,7 - ↳
sequenceIDinteger requiredSequence ID of the operation. - ↳
operationIDinteger requiredID of the operation this journal entry is associated with. - ↳
removeOldinteger requiredID for the delete Operation that this journal entry is associated with. - ↳
removeNewinteger requiredID for the delete Operation that this journal entry is associated with. - ↳
pendingReplacementOldinteger optionalPendingReplacementOld is the index of the resource that’s to be marked as pending replacement - ↳
pendingReplacementNewinteger optionalPendingReplacementNew is the operation ID of the new resource to be marked as pending replacement - ↳
deleteOldinteger optionalDeleteOld is the index of the resource that’s to be marked as deleted. - ↳
deleteNewinteger optionalDeleteNew is the operation ID of the new resource to be marked as deleted. - The resource state associated with this journal entry.
- The operation associated with this journal entry, if any.
- ↳
isRefreshboolean optionalIf true, this journal entry is part of a refresh operation. - The secrets manager associated with this journal entry, if any.
- NewSnapshot is the new snapshot that this journal entry is associated with.
Responses
Append Update Log Entry
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{updateID}/logAppends a log entry to the specified update’s log stream. Log entries are used to record diagnostic messages, status information, and other output generated during a stack update operation. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
kindstring requiredThe kindfieldsmap[string]object requiredThe fields
Responses
Renew Update Lease
/api/stacks/{orgName}/{projectName}/{stackName}/preview/{updateID}/renew_leaseRenews the lease for a service-managed update that is currently in progress. Leases prevent concurrent operations on the same stack and must be periodically renewed to indicate the update is still active. The renewal duration must be between 0 and 300 seconds. Returns 409 if the update is not currently in progress.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
tokenstring requiredThe current, valid lease token. DEPRECATED as of Pulumi API version 5+. Pulumi API will expect the update token in the Authorization header instead of this property. This property will be removed when the minimum supported API version on the service is raised to 5.durationinteger requiredThe duration for which to renew the lease in seconds (maximum 300).
Responses
tokenstring requiredThe renewed token.tokenExpirationinteger optionalTokenExpiration is a UNIX timestamp by which the token will expire.
Get Stack Preview
/api/stacks/{orgName}/{projectName}/{stackName}/previews/{updateID}Returns details of a specific preview operation identified by its update ID. The response includes the preview’s kind, start and end times, result status, resource changes summary, configuration, and environment details. Returns 404 if the specified update does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Responses
- The underlying update information from the Pulumi CLI.
- ↳
kindenum requiredInformation known before an update is started.Values:update,preview,refresh,rename,destroy,import,Pupdate,Prefresh,Pdestroy,Pimport,Prename - ↳
startTimeinteger requiredUnix epoch timestamp (seconds) when the update started. - ↳
messagestring requiredUser-provided message describing the purpose of the update. - ↳
environmentmap[string]string requiredEnvironment variables that were set during the update, keyed by variable name. - Stack configuration values used during the update, keyed by config key.
- ↳
resultenum requiredInformation obtained from an update completing.Values:not-started,in-progress,succeeded,failed - ↳
endTimeinteger requiredUnix epoch timestamp (seconds) when the update completed. - ↳
versioninteger requiredThe stack version after this update completed. - ↳
deploymentobject optionalRaw deployment state snapshot, if requested. - ↳
resourceChangesmap[string]integer optionalCount of resource changes by operation type (e.g. ‘create’: 5, ‘update’: 2, ‘delete’: 1). - ↳
resourceCountinteger optionalTotal number of resources managed by the stack after this update. 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.
- ↳
slugstring optional/ - ↳
shastring optionalThe commit SHA hash - ↳
urlstring optionalThe URL to the commit on GitHub - ↳
messagestring optionalThe commit message - The author of the commit
- The committer of the commit
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.
- ↳
namestring requiredThe user’s display name. - ↳
githubLoginstring requiredThe user’s login name. - ↳
avatarUrlstring requiredThe URL of the user’s avatar image. - ↳
emailstring optionalIMPORTANT: The email address of the user is only included on a few admin-only APIs. For nearly all APIs that return a UserInfo object, this will not be provided. considered sensitive information. - The Policy Packs that were required for this update.
- ↳
namestring requiredThe name - ↳
displayNamestring requiredThe display name - ↳
versioninteger requiredThe version number - ↳
versionTagstring requiredThe version tag - ↳
configmap[string]object optionalThe configuration that is to be passed to the Policy Pack. This map ties Policies with their configuration. - ↳
environmentsarray[string] optionalReferences to ESC environments to use for this policy pack. requestedByTokenstring optionalThe access token used to request the update, if applicable.
Get Stack Preview Summary
/api/stacks/{orgName}/{projectName}/{stackName}/previews/{updateID}/summaryReturns a concise summary of a specific preview operation, including the update kind, result status, start and end times, and resource change counts. This is a lighter-weight alternative to GetStackPreview when full update details are not needed. Returns 404 if the specified update does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Responses
resultenum requiredThe result of the update.Values:not-started,in-progress,succeeded,failedstartTimeinteger requiredThe start time of the update as a Unix timestamp.endTimeinteger requiredThe end time of the update as a Unix timestamp.resourceCountinteger requiredResourceCount is the current resource count for the update. Note that it doesn’t reflect the Stack’s current resource count, only that particular update. (So the UpdateSummary for the same Stack will be different.)
Create Update For Refresh
/api/stacks/{orgName}/{projectName}/{stackName}/refreshCreates a new refresh update for the given stack. A refresh synchronizes the stack’s state with the actual state of the cloud resources, detecting any drift. This only creates the update record; the update must subsequently be started via the StartUpdateForRefresh endpoint. Enforces stack update concurrency checks.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
namestring requiredProperties from the Project file. Subset of pack.Package.runtimestring requiredThe runtimemainstring requiredThe main entry pointdescriptionstring requiredThe description- The options
- ↳
localPolicyPackPathsarray[string] requiredFile system paths to local policy packs to apply during this update. - ↳
colorstring requiredTerminal color mode for output rendering (e.g. ‘always’, ’never’, ‘auto’). - ↳
dryRunboolean requiredIf true, perform a preview without actually applying changes. - ↳
parallelinteger requiredMaximum number of resource operations to perform in parallel. 0 or -1 for unlimited. - ↳
showConfigboolean requiredIf true, include configuration values in the update output. - ↳
showReplacementStepsboolean requiredIf true, include detailed replacement steps in the update output. - ↳
showNamesboolean requiredIf true, include unchanged resources in the update output. - ↳
summaryboolean requiredIf true, only show a summary of changes rather than full details. - ↳
debugboolean requiredIf true, enable verbose debug logging during the update. - Configuration values.
- The metadata
- ↳
messagestring requiredMessage is an optional message associated with the update. - ↳
environmentmap[string]string requiredEnvironment contains optional data from the deploying environment. e.g. the current source code control commit information.
Responses
updateIDstring requiredUpdateID is the opaque identifier of the requested update. This value is needed to begin an update, as well as poll for its progress.- RequiredPolicies is a list of required Policy Packs to run during the update.
- ↳
namestring requiredThe name (unique and URL-safe) of the required Policy Pack. - ↳
versioninteger requiredThe version of the required Policy Pack. - ↳
versionTagstring requiredThe version tag of the required Policy Pack. - ↳
displayNamestring requiredThe pretty name of the required Policy Pack. - ↳
packLocationstring optionalWhere the Policy Pack can be downloaded from. - ↳
configmap[string]object optionalThe configuration that is to be passed to the Policy Pack. This is map a of policies mapped to their configuration. Each individual configuration must comply with the JSON schema for each Policy within the Policy Pack. - ↳
environmentsarray[string] optionalReferences to ESC environments whose resolved values the CLI should inject into the policy pack process. - Messages is a list of messages that should be displayed to the user.
- ↳
severityenum optionalSeverity is the severity of the message.Values:warning,error,info - ↳
messagestring requiredMessage is the message to display to the user. - The ai settings
- ↳
copilotIsEnabledboolean requiredWhether the Pulumi Copilot AI assistant is enabled for this stack.
Get Update Status For Refresh
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}Returns the current status and results of a refresh 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.
Start Update For Refresh
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}Starts execution of a previously created refresh update. The update must have been created via CreateUpdateForRefresh first. Returns a lease token and version number for tracking the update. Returns 404 if the update does not exist, or 409 if another update is already in progress on the stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
tagsmap[string]string optionalTags contains an updated set of Tags for the stack. If non-nil, will replace the current set of tags associated with the stack.journalVersioninteger optionalJournalVersion indicates the maximum journal version the client supports. If 0, journaling is not supported.
Responses
versioninteger requiredVersion is the version of the program once the update is complete. (Will be the current, unchanged value for previews.)tokenstring optionalToken is the lease token (if any) to be used to authorize operations on this update.tokenExpirationinteger optionalTokenExpiration is a UNIX timestamp by which the token will expire.journalVersioninteger optionalJournalVersion indicates the maximum version of journal entries that should be sent to the server. Is expected to be less or equal than the JournalVersion we sent in the update request. If 0, journaling is disabled.
Cancel Update
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/cancelRequests cancellation of a service-managed update that is currently in progress. The update must have been started (returns 409 if it has not). Returns 404 if the specified update does not exist. The cancellation is processed asynchronously and the update will transition to a cancelled state.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Responses
Patch Update Checkpoint
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/checkpointUploads a new checkpoint (deployment state snapshot) for a service-managed update that is currently in progress. The checkpoint contains the complete current state of all resources. The request must contain a valid checkpoint object. Returns 403 for preview operations since previews do not modify actual state. Returns 409 if the update has not started, has been cancelled, timed out, or already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
isInvalidboolean requiredWhether invalidversioninteger requiredThe version numberfeaturesarray[string] optionalThe featuresdeploymentobject optionalThe deployment data
Responses
Patch Update Checkpoint Delta
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/checkpointdeltaUploads a checkpoint delta for a service-managed update that is currently in progress. Rather than uploading the complete checkpoint state, this endpoint accepts an incremental delta that is applied to the existing checkpoint, reducing the payload size. The delta is persisted in the format as provided. Supports checksum validation for data integrity. Returns 403 for preview operations since previews do not modify actual state. Returns 409 if the update has not started, has been cancelled, timed out, or already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
versioninteger requiredProtocol version.checkpointHashstring requiredSHA256 hash of the result of aplying the DeploymentDelta to the previously saved deployment.sequenceNumberinteger requiredIdempotency key incremented by the client on every PATCH call within the same update.deploymentDeltaobject optionalTextual diff that recovers the desired deployment JSON when applied to the previously saved deployment JSON.
Responses
Patch Update Verbatim Checkpoint
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/checkpointverbatimUploads a checkpoint for a service-managed update as a verbatim byte array, bypassing JSON marshalling. Unlike PatchUpdateCheckpoint which accepts a structured deployment object and re-serializes it (which may compact data), this endpoint preserves the exact bytes provided by the client and uploads them directly to blob storage. This maintains byte-level fidelity of the checkpoint data. Returns 403 for preview operations. Returns 409 if the update has not started, has been cancelled, timed out, or already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
versioninteger requiredThe version numberuntypedDeploymentobject optionalThe untyped deploymentsequenceNumberinteger requiredIdempotency key incremented by the client on every PATCH call within the same update.
Responses
Complete Update
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/completeMarks a service-managed update as complete. The request body must include the final status of the update. Returns 400 if the status is unrecognized. Returns 409 if the update has not started, has been cancelled, has already timed out, or has already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
statusenum requiredThe current statusValues:not started,requested,running,failed,succeeded,cancelled
Responses
Get Engine Events
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{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.
Record Engine Event
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/eventsRecords a single engine event sent from the Pulumi CLI during a stack update. Engine events represent individual resource operations or diagnostic messages. For better performance, consider using RecordEngineEventBatch to send multiple events in a single request. Returns 400 if no event data is provided, or 404 if the update does not exist. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
sequenceinteger requiredSequence is a unique, and monotonically increasing number for each engine event sent to the Pulumi Service. Since events may be sent concurrently, and/or delayed via network routing, the sequence number is to ensure events can be placed into a total ordering.
- No two events can have the same sequence number.
- Events with a lower sequence number must have been emitted before those with a higher sequence number.
timestampinteger requiredTimestamp is a Unix timestamp (seconds) of when the event was emitted.- The cancel event
- The stdout event
- ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - The diagnostic event
- ↳
urnstring optionalThe Pulumi URN - ↳
prefixstring optionalThe prefix - ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - ↳
severitystring requiredSeverity is one of “info”, “info#err”, “warning”, or “error”. - ↳
streamIDinteger optionalThe stream identifier - ↳
ephemeralboolean optionalWhether ephemeral is enabled - The prelude event
- ↳
configmap[string]string requiredConfig contains the keys and values for the update. Encrypted configuration values may be blinded. - The summary event
- ↳
maybeCorruptboolean requiredMaybeCorrupt is set if one or more of the resources is in an invalid state. - ↳
durationSecondsinteger requiredDuration is the number of seconds the update was executing. - ↳
resourceChangesmap[string]integer requiredResourceChanges contains the count for resource change by type. - ↳
PolicyPacksmap[string]string requiredPolicy Packs run during the update, as a map from policy pack name to version. For newer clients, the value is the version tag prefixed withv; for older clients it is the raw version. - ↳
isPreviewboolean requiredIsPreview indicates whether this is a preview or an update. - The resource pre event
- The metadata
- ↳
planningboolean optionalWhether planning is enabled - The res outputs event
- The metadata
- ↳
planningboolean optionalWhether planning is enabled - The res op failed event
- The metadata
- ↳
statusinteger requiredThe current status - ↳
stepsinteger requiredThe steps - The policy event
- ↳
resourceUrnstring optionalThe resource urn - ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - ↳
policyNamestring requiredThe policy name - ↳
policyPackNamestring requiredThe policy pack name - ↳
policyPackVersionstring requiredThe policy pack version - ↳
policyPackVersionTagstring requiredThe policy pack version tag - ↳
enforcementLevelstring requiredEnforcementLevel is one of “warning”, “mandatory”, “remediate”, or “none”. - ↳
severitystring optionalSeverity is one of “low”, “medium”, “high”, or “critical”. An empty string is omitted and represents an unspecified severity. - The policy remediation event
- ↳
resourceUrnstring optionalThe resource urn - ↳
colorstring requiredThe output color - ↳
policyNamestring requiredThe policy name - ↳
policyPackNamestring requiredThe policy pack name - ↳
policyPackVersionstring requiredThe policy pack version - ↳
policyPackVersionTagstring requiredThe policy pack version tag - ↳
beforemap[string]object optionalMap of before - ↳
aftermap[string]object optionalMap of after - The policy load event
- The policy analyze summary event
- ↳
resourceUrnstring requiredThe URN of the resource being analyzed. - ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of resource policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of resource policies that failed (i.e. produced violations). - The policy remediate summary event
- ↳
resourceUrnstring requiredThe URN of the resource being remediated. - ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of resource policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of resource policies that failed (i.e. produced violations). - The policy analyze stack summary event
- ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of stack policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of stack policies that failed (i.e. produced violations). - The start debugging event
- ↳
configmap[string]object optionalThe configuration - The progress event
- ↳
typeenum requiredThe type of process (e.g. plugin download, plugin install).Values:plugin-download,plugin-install - ↳
idstring requiredA unique identifier for the process. - ↳
messagestring requiredA message accompanying the process. - ↳
receivedinteger requiredThe number of items completed so far (e.g. bytes received, items installed, etc.) - ↳
totalinteger requiredThe total number of items that must be completed. - ↳
doneboolean requiredTrue if and only if the process has completed. - The error event
- ↳
errorstring requiredError is the error message.
Responses
Record Engine Event Batch
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/events/batchRecords a batch of engine events sent from the Pulumi CLI during a stack update. Engine events represent individual resource operations (create, update, delete, etc.) and diagnostic messages. Batching events reduces the number of API calls during an update. Returns 400 if no events are provided in the batch, or 404 if the update does not exist. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
- List of events
- ↳
sequenceinteger requiredSequence is a unique, and monotonically increasing number for each engine event sent to the Pulumi Service. Since events may be sent concurrently, and/or delayed via network routing, the sequence number is to ensure events can be placed into a total ordering.
- No two events can have the same sequence number.
- Events with a lower sequence number must have been emitted before those with a higher sequence number.
- ↳
timestampinteger requiredTimestamp is a Unix timestamp (seconds) of when the event was emitted. - The cancel event
- The stdout event
- The diagnostic event
- The prelude event
- The summary event
- The resource pre event
- The res outputs event
- The res op failed event
- The policy event
- The policy remediation event
- The policy load event
- The policy analyze summary event
- The policy remediate summary event
- The policy analyze stack summary event
- The start debugging event
- The progress event
- The error event
Responses
Create Journal Entries
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/journalentriesCreates new journal entries for the specified update. Journal entries record the progression of resource operations during an update, tracking state transitions for each resource. The include_non_activated query parameter controls whether non-activated events are included. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update IDinclude_non_activatedboolean query optionalWhen true, includes events that have not yet been activated; when false or omitted, only activated events are returned
Request Body
- List of entries
- ↳
versioninteger requiredVersion of the journal entry format. - ↳
kindenum requiredKind of journal entry.Values:0,1,2,3,4,5,6,7 - ↳
sequenceIDinteger requiredSequence ID of the operation. - ↳
operationIDinteger requiredID of the operation this journal entry is associated with. - ↳
removeOldinteger requiredID for the delete Operation that this journal entry is associated with. - ↳
removeNewinteger requiredID for the delete Operation that this journal entry is associated with. - ↳
pendingReplacementOldinteger optionalPendingReplacementOld is the index of the resource that’s to be marked as pending replacement - ↳
pendingReplacementNewinteger optionalPendingReplacementNew is the operation ID of the new resource to be marked as pending replacement - ↳
deleteOldinteger optionalDeleteOld is the index of the resource that’s to be marked as deleted. - ↳
deleteNewinteger optionalDeleteNew is the operation ID of the new resource to be marked as deleted. - The resource state associated with this journal entry.
- The operation associated with this journal entry, if any.
- ↳
isRefreshboolean optionalIf true, this journal entry is part of a refresh operation. - The secrets manager associated with this journal entry, if any.
- NewSnapshot is the new snapshot that this journal entry is associated with.
Responses
Append Update Log Entry
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/logAppends a log entry to the specified update’s log stream. Log entries are used to record diagnostic messages, status information, and other output generated during a stack update operation. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
kindstring requiredThe kindfieldsmap[string]object requiredThe fields
Responses
Renew Update Lease
/api/stacks/{orgName}/{projectName}/{stackName}/refresh/{updateID}/renew_leaseRenews the lease for a service-managed update that is currently in progress. Leases prevent concurrent operations on the same stack and must be periodically renewed to indicate the update is still active. The renewal duration must be between 0 and 300 seconds. Returns 409 if the update is not currently in progress.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
tokenstring requiredThe current, valid lease token. DEPRECATED as of Pulumi API version 5+. Pulumi API will expect the update token in the Authorization header instead of this property. This property will be removed when the minimum supported API version on the service is raised to 5.durationinteger requiredThe duration for which to renew the lease in seconds (maximum 300).
Responses
tokenstring requiredThe renewed token.tokenExpirationinteger optionalTokenExpiration is a UNIX timestamp by which the token will expire.
Rename Stack
/api/stacks/{orgName}/{projectName}/{stackName}/renameChanges an existing stack’s name to a new value. The request body must include the desired new name. The rename may also change the project name. Returns 400 if the request body does not specify a rename. Returns 409 if another update is currently in progress on the stack, since renaming requires exclusive access.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
newNamestring requiredThe new namenewProjectstring requiredThe new project
Responses
Get Stack Resources
/api/stacks/{orgName}/{projectName}/{stackName}/resources/{version}Retrieves all resources as they existed at a specific historical stack update version. Each resource includes its type, URN, provider, inputs, outputs, parent, and dependencies. Returns 404 if the specified version does not exist for this stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameversioninteger path requiredThe stack update version number
Responses
- The list of resources in the stack
- The underlying resource with its properties, URN, type, and provider state.
regionstring requiredThe cloud region where the resources are deployedversioninteger requiredThe update version number
Get Stack Resource
/api/stacks/{orgName}/{projectName}/{stackName}/resources/{version}/{urn}Returns detailed information about a specific resource identified by its URN at a specific historical update version. The response includes the resource type, provider, inputs, outputs, and dependency information as they existed at that version. Returns 404 if the resource or version does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameversioninteger path requiredThe stack update version numberurnstring path requiredThe resource URN
Responses
- The resource information
- The underlying resource with its properties, URN, type, and provider state.
regionstring requiredThe cloud region where the resource is deployedversioninteger requiredThe update version number
Get Stack Resource Count
/api/stacks/{orgName}/{projectName}/{stackName}/resources/countReturns the total number of resources currently managed by the stack, based on the most recent update. The response includes the resource count and the stack version number. This is a lightweight endpoint for checking stack size without retrieving full resource details.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
resourceCountinteger requiredThe number of resources in the stackversioninteger requiredThe update version number
Get Latest Stack Resources
/api/stacks/{orgName}/{projectName}/{stackName}/resources/latestRetrieves all resources currently managed by the stack from the most recent update. Each resource in the response includes its type, URN, provider, inputs, outputs, parent, and dependencies. This is equivalent to calling GetStackResources with the latest version number.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
- The list of resources in the stack
- The underlying resource with its properties, URN, type, and provider state.
regionstring requiredThe cloud region where the resources are deployedversioninteger requiredThe update version number
Get Latest Stack Resource
/api/stacks/{orgName}/{projectName}/{stackName}/resources/latest/{urn}Returns detailed information about a specific resource identified by its URN from the most recent stack update. The response includes the resource type, provider, inputs, outputs, and dependency information. Returns 404 if no resource with the given URN exists in the latest state.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameurnstring path requiredThe resource URN
Responses
- The resource information
- The underlying resource with its properties, URN, type, and provider state.
regionstring requiredThe cloud region where the resource is deployedversioninteger requiredThe update version number
List Stack Teams
/api/stacks/{orgName}/{projectName}/{stackName}/teamsLists all teams within the organization that have been granted access to the specified stack. The response includes each team’s name and the permission level granted to it for this stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
projectNamestring requiredThe project name for the stack- The list of teams with access to the stack
- ↳
namestring requiredThe unique name of the team. - ↳
displayNamestring requiredThe display name of the team. - ↳
descriptionstring requiredA description of the team. - ↳
permissionenum requiredThe permission level this team has on the stack.Values:0,101,102,103,104 - ↳
isMemberboolean requiredIsMember is true if the requesting user is a member of the team.
Transfer Stack
/api/stacks/{orgName}/{projectName}/{stackName}/transferTransfers a stack from one organization to another. The request body must specify the destination organization name via the ’toOrg’ field. The requesting user must be a member of both the source and destination organizations to prevent accidental disclosure of organization existence. The stack must not have any active updates in progress (returns 409 if an update is running). Returns 204 with no content on success.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
projectNamestring optionalThe project name of the stack to transfer. If unset, the project from the URL route parameters is used.stackNamestring optionalThe name of the stack to transfer. If unset, the stack from the URL route parameters is used.fromOrgstring optionalThe source organization to transfer the stack from. If unset, the organization from the URL route parameters is used.toOrgstring requiredThe organization to transfer the stack to.
Responses
Create Update For Update
/api/stacks/{orgName}/{projectName}/{stackName}/updateCreates a new standard update (pulumi up) for the given stack. A standard update deploys changes to the stack’s infrastructure by creating, updating, or deleting resources as needed. This only creates the update record; the update must subsequently be started via the StartUpdateForUpdate endpoint. Enforces stack update concurrency checks to prevent conflicting simultaneous operations.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
namestring requiredProperties from the Project file. Subset of pack.Package.runtimestring requiredThe runtimemainstring requiredThe main entry pointdescriptionstring requiredThe description- The options
- ↳
localPolicyPackPathsarray[string] requiredFile system paths to local policy packs to apply during this update. - ↳
colorstring requiredTerminal color mode for output rendering (e.g. ‘always’, ’never’, ‘auto’). - ↳
dryRunboolean requiredIf true, perform a preview without actually applying changes. - ↳
parallelinteger requiredMaximum number of resource operations to perform in parallel. 0 or -1 for unlimited. - ↳
showConfigboolean requiredIf true, include configuration values in the update output. - ↳
showReplacementStepsboolean requiredIf true, include detailed replacement steps in the update output. - ↳
showNamesboolean requiredIf true, include unchanged resources in the update output. - ↳
summaryboolean requiredIf true, only show a summary of changes rather than full details. - ↳
debugboolean requiredIf true, enable verbose debug logging during the update. - Configuration values.
- The metadata
- ↳
messagestring requiredMessage is an optional message associated with the update. - ↳
environmentmap[string]string requiredEnvironment contains optional data from the deploying environment. e.g. the current source code control commit information.
Responses
updateIDstring requiredUpdateID is the opaque identifier of the requested update. This value is needed to begin an update, as well as poll for its progress.- RequiredPolicies is a list of required Policy Packs to run during the update.
- ↳
namestring requiredThe name (unique and URL-safe) of the required Policy Pack. - ↳
versioninteger requiredThe version of the required Policy Pack. - ↳
versionTagstring requiredThe version tag of the required Policy Pack. - ↳
displayNamestring requiredThe pretty name of the required Policy Pack. - ↳
packLocationstring optionalWhere the Policy Pack can be downloaded from. - ↳
configmap[string]object optionalThe configuration that is to be passed to the Policy Pack. This is map a of policies mapped to their configuration. Each individual configuration must comply with the JSON schema for each Policy within the Policy Pack. - ↳
environmentsarray[string] optionalReferences to ESC environments whose resolved values the CLI should inject into the policy pack process. - Messages is a list of messages that should be displayed to the user.
- ↳
severityenum optionalSeverity is the severity of the message.Values:warning,error,info - ↳
messagestring requiredMessage is the message to display to the user. - The ai settings
- ↳
copilotIsEnabledboolean requiredWhether the Pulumi Copilot AI assistant is enabled for this stack.
Start Update For Update
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}Starts execution of a previously created standard (pulumi up) update. The update must have been created via CreateUpdateForUpdate first. Returns a lease token and version number for tracking the update. Returns 404 if the update does not exist, or 409 if another update is already in progress on the stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
tagsmap[string]string optionalTags contains an updated set of Tags for the stack. If non-nil, will replace the current set of tags associated with the stack.journalVersioninteger optionalJournalVersion indicates the maximum journal version the client supports. If 0, journaling is not supported.
Responses
versioninteger requiredVersion is the version of the program once the update is complete. (Will be the current, unchanged value for previews.)tokenstring optionalToken is the lease token (if any) to be used to authorize operations on this update.tokenExpirationinteger optionalTokenExpiration is a UNIX timestamp by which the token will expire.journalVersioninteger optionalJournalVersion indicates the maximum version of journal entries that should be sent to the server. Is expected to be less or equal than the JournalVersion we sent in the update request. If 0, journaling is disabled.
Cancel Update
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/cancelRequests cancellation of a service-managed update that is currently in progress. The update must have been started (returns 409 if it has not). Returns 404 if the specified update does not exist. The cancellation is processed asynchronously and the update will transition to a cancelled state.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Responses
Patch Update Checkpoint
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/checkpointUploads a new checkpoint (deployment state snapshot) for a service-managed update that is currently in progress. The checkpoint contains the complete current state of all resources. The request must contain a valid checkpoint object. Returns 403 for preview operations since previews do not modify actual state. Returns 409 if the update has not started, has been cancelled, timed out, or already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
isInvalidboolean requiredWhether invalidversioninteger requiredThe version numberfeaturesarray[string] optionalThe featuresdeploymentobject optionalThe deployment data
Responses
Patch Update Checkpoint Delta
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/checkpointdeltaUploads a checkpoint delta for a service-managed update that is currently in progress. Rather than uploading the complete checkpoint state, this endpoint accepts an incremental delta that is applied to the existing checkpoint, reducing the payload size. The delta is persisted in the format as provided. Supports checksum validation for data integrity. Returns 403 for preview operations since previews do not modify actual state. Returns 409 if the update has not started, has been cancelled, timed out, or already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
versioninteger requiredProtocol version.checkpointHashstring requiredSHA256 hash of the result of aplying the DeploymentDelta to the previously saved deployment.sequenceNumberinteger requiredIdempotency key incremented by the client on every PATCH call within the same update.deploymentDeltaobject optionalTextual diff that recovers the desired deployment JSON when applied to the previously saved deployment JSON.
Responses
Patch Update Verbatim Checkpoint
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/checkpointverbatimUploads a checkpoint for a service-managed update as a verbatim byte array, bypassing JSON marshalling. Unlike PatchUpdateCheckpoint which accepts a structured deployment object and re-serializes it (which may compact data), this endpoint preserves the exact bytes provided by the client and uploads them directly to blob storage. This maintains byte-level fidelity of the checkpoint data. Returns 403 for preview operations. Returns 409 if the update has not started, has been cancelled, timed out, or already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
versioninteger requiredThe version numberuntypedDeploymentobject optionalThe untyped deploymentsequenceNumberinteger requiredIdempotency key incremented by the client on every PATCH call within the same update.
Responses
Complete Update
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/completeMarks a service-managed update as complete. The request body must include the final status of the update. Returns 400 if the status is unrecognized. Returns 409 if the update has not started, has been cancelled, has already timed out, or has already completed. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
statusenum requiredThe current statusValues:not started,requested,running,failed,succeeded,cancelled
Responses
Get Engine Events
/api/stacks/{orgName}/{projectName}/{stackName}/update/{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.
Record Engine Event
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/eventsRecords a single engine event sent from the Pulumi CLI during a stack update. Engine events represent individual resource operations or diagnostic messages. For better performance, consider using RecordEngineEventBatch to send multiple events in a single request. Returns 400 if no event data is provided, or 404 if the update does not exist. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
sequenceinteger requiredSequence is a unique, and monotonically increasing number for each engine event sent to the Pulumi Service. Since events may be sent concurrently, and/or delayed via network routing, the sequence number is to ensure events can be placed into a total ordering.
- No two events can have the same sequence number.
- Events with a lower sequence number must have been emitted before those with a higher sequence number.
timestampinteger requiredTimestamp is a Unix timestamp (seconds) of when the event was emitted.- The cancel event
- The stdout event
- ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - The diagnostic event
- ↳
urnstring optionalThe Pulumi URN - ↳
prefixstring optionalThe prefix - ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - ↳
severitystring requiredSeverity is one of “info”, “info#err”, “warning”, or “error”. - ↳
streamIDinteger optionalThe stream identifier - ↳
ephemeralboolean optionalWhether ephemeral is enabled - The prelude event
- ↳
configmap[string]string requiredConfig contains the keys and values for the update. Encrypted configuration values may be blinded. - The summary event
- ↳
maybeCorruptboolean requiredMaybeCorrupt is set if one or more of the resources is in an invalid state. - ↳
durationSecondsinteger requiredDuration is the number of seconds the update was executing. - ↳
resourceChangesmap[string]integer requiredResourceChanges contains the count for resource change by type. - ↳
PolicyPacksmap[string]string requiredPolicy Packs run during the update, as a map from policy pack name to version. For newer clients, the value is the version tag prefixed withv; for older clients it is the raw version. - ↳
isPreviewboolean requiredIsPreview indicates whether this is a preview or an update. - The resource pre event
- The metadata
- ↳
planningboolean optionalWhether planning is enabled - The res outputs event
- The metadata
- ↳
planningboolean optionalWhether planning is enabled - The res op failed event
- The metadata
- ↳
statusinteger requiredThe current status - ↳
stepsinteger requiredThe steps - The policy event
- ↳
resourceUrnstring optionalThe resource urn - ↳
messagestring requiredThe message content - ↳
colorstring requiredThe output color - ↳
policyNamestring requiredThe policy name - ↳
policyPackNamestring requiredThe policy pack name - ↳
policyPackVersionstring requiredThe policy pack version - ↳
policyPackVersionTagstring requiredThe policy pack version tag - ↳
enforcementLevelstring requiredEnforcementLevel is one of “warning”, “mandatory”, “remediate”, or “none”. - ↳
severitystring optionalSeverity is one of “low”, “medium”, “high”, or “critical”. An empty string is omitted and represents an unspecified severity. - The policy remediation event
- ↳
resourceUrnstring optionalThe resource urn - ↳
colorstring requiredThe output color - ↳
policyNamestring requiredThe policy name - ↳
policyPackNamestring requiredThe policy pack name - ↳
policyPackVersionstring requiredThe policy pack version - ↳
policyPackVersionTagstring requiredThe policy pack version tag - ↳
beforemap[string]object optionalMap of before - ↳
aftermap[string]object optionalMap of after - The policy load event
- The policy analyze summary event
- ↳
resourceUrnstring requiredThe URN of the resource being analyzed. - ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of resource policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of resource policies that failed (i.e. produced violations). - The policy remediate summary event
- ↳
resourceUrnstring requiredThe URN of the resource being remediated. - ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of resource policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of resource policies that failed (i.e. produced violations). - The policy analyze stack summary event
- ↳
policyPackNamestring requiredThe name of the policy pack. - ↳
policyPackVersionstring requiredThe version of the policy pack. - ↳
policyPackVersionTagstring requiredThe version tag of the policy pack. - ↳
passedarray[string] optionalThe names of stack policies that passed (i.e. did not produce any violations). - ↳
failedarray[string] optionalThe names of stack policies that failed (i.e. produced violations). - The start debugging event
- ↳
configmap[string]object optionalThe configuration - The progress event
- ↳
typeenum requiredThe type of process (e.g. plugin download, plugin install).Values:plugin-download,plugin-install - ↳
idstring requiredA unique identifier for the process. - ↳
messagestring requiredA message accompanying the process. - ↳
receivedinteger requiredThe number of items completed so far (e.g. bytes received, items installed, etc.) - ↳
totalinteger requiredThe total number of items that must be completed. - ↳
doneboolean requiredTrue if and only if the process has completed. - The error event
- ↳
errorstring requiredError is the error message.
Responses
Record Engine Event Batch
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/events/batchRecords a batch of engine events sent from the Pulumi CLI during a stack update. Engine events represent individual resource operations (create, update, delete, etc.) and diagnostic messages. Batching events reduces the number of API calls during an update. Returns 400 if no events are provided in the batch, or 404 if the update does not exist. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
- List of events
- ↳
sequenceinteger requiredSequence is a unique, and monotonically increasing number for each engine event sent to the Pulumi Service. Since events may be sent concurrently, and/or delayed via network routing, the sequence number is to ensure events can be placed into a total ordering.
- No two events can have the same sequence number.
- Events with a lower sequence number must have been emitted before those with a higher sequence number.
- ↳
timestampinteger requiredTimestamp is a Unix timestamp (seconds) of when the event was emitted. - The cancel event
- The stdout event
- The diagnostic event
- The prelude event
- The summary event
- The resource pre event
- The res outputs event
- The res op failed event
- The policy event
- The policy remediation event
- The policy load event
- The policy analyze summary event
- The policy remediate summary event
- The policy analyze stack summary event
- The start debugging event
- The progress event
- The error event
Responses
Create Journal Entries
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/journalentriesCreates new journal entries for the specified update. Journal entries record the progression of resource operations during an update, tracking state transitions for each resource. The include_non_activated query parameter controls whether non-activated events are included. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update IDinclude_non_activatedboolean query optionalWhen true, includes events that have not yet been activated; when false or omitted, only activated events are returned
Request Body
- List of entries
- ↳
versioninteger requiredVersion of the journal entry format. - ↳
kindenum requiredKind of journal entry.Values:0,1,2,3,4,5,6,7 - ↳
sequenceIDinteger requiredSequence ID of the operation. - ↳
operationIDinteger requiredID of the operation this journal entry is associated with. - ↳
removeOldinteger requiredID for the delete Operation that this journal entry is associated with. - ↳
removeNewinteger requiredID for the delete Operation that this journal entry is associated with. - ↳
pendingReplacementOldinteger optionalPendingReplacementOld is the index of the resource that’s to be marked as pending replacement - ↳
pendingReplacementNewinteger optionalPendingReplacementNew is the operation ID of the new resource to be marked as pending replacement - ↳
deleteOldinteger optionalDeleteOld is the index of the resource that’s to be marked as deleted. - ↳
deleteNewinteger optionalDeleteNew is the operation ID of the new resource to be marked as deleted. - The resource state associated with this journal entry.
- The operation associated with this journal entry, if any.
- ↳
isRefreshboolean optionalIf true, this journal entry is part of a refresh operation. - The secrets manager associated with this journal entry, if any.
- NewSnapshot is the new snapshot that this journal entry is associated with.
Responses
Append Update Log Entry
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/logAppends a log entry to the specified update’s log stream. Log entries are used to record diagnostic messages, status information, and other output generated during a stack update operation. Requires update token authentication.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
kindstring requiredThe kindfieldsmap[string]object requiredThe fields
Responses
Renew Update Lease
/api/stacks/{orgName}/{projectName}/{stackName}/update/{updateID}/renew_leaseRenews the lease for a service-managed update that is currently in progress. Leases prevent concurrent operations on the same stack and must be periodically renewed to indicate the update is still active. The renewal duration must be between 0 and 300 seconds. Returns 409 if the update is not currently in progress.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameupdateIDstring path requiredThe update ID
Request Body
tokenstring requiredThe current, valid lease token. DEPRECATED as of Pulumi API version 5+. Pulumi API will expect the update token in the Authorization header instead of this property. This property will be removed when the minimum supported API version on the service is raised to 5.durationinteger requiredThe duration for which to renew the lease in seconds (maximum 300).
Responses
tokenstring requiredThe renewed token.tokenExpirationinteger optionalTokenExpiration is a UNIX timestamp by which the token will expire.
Get Stack Update
/api/stacks/{orgName}/{projectName}/{stackName}/updates/{version}Returns detailed information about a specific stack update identified by its version number. The response includes the update kind (update, preview, refresh, destroy, import), start and end times, result status (succeeded, failed, etc.), resource changes summary (creates, updates, deletes, same), configuration, and environment details. Returns 404 if the specified version does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameversioninteger path requiredThe stack update version number
Responses
- The underlying update information from the Pulumi CLI.
- ↳
kindenum requiredInformation known before an update is started.Values:update,preview,refresh,rename,destroy,import,Pupdate,Prefresh,Pdestroy,Pimport,Prename - ↳
startTimeinteger requiredUnix epoch timestamp (seconds) when the update started. - ↳
messagestring requiredUser-provided message describing the purpose of the update. - ↳
environmentmap[string]string requiredEnvironment variables that were set during the update, keyed by variable name. - Stack configuration values used during the update, keyed by config key.
- ↳
resultenum requiredInformation obtained from an update completing.Values:not-started,in-progress,succeeded,failed - ↳
endTimeinteger requiredUnix epoch timestamp (seconds) when the update completed. - ↳
versioninteger requiredThe stack version after this update completed. - ↳
deploymentobject optionalRaw deployment state snapshot, if requested. - ↳
resourceChangesmap[string]integer optionalCount of resource changes by operation type (e.g. ‘create’: 5, ‘update’: 2, ‘delete’: 1). - ↳
resourceCountinteger optionalTotal number of resources managed by the stack after this update. 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.
- ↳
slugstring optional/ - ↳
shastring optionalThe commit SHA hash - ↳
urlstring optionalThe URL to the commit on GitHub - ↳
messagestring optionalThe commit message - The author of the commit
- The committer of the commit
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.
- ↳
namestring requiredThe user’s display name. - ↳
githubLoginstring requiredThe user’s login name. - ↳
avatarUrlstring requiredThe URL of the user’s avatar image. - ↳
emailstring optionalIMPORTANT: The email address of the user is only included on a few admin-only APIs. For nearly all APIs that return a UserInfo object, this will not be provided. considered sensitive information. - The Policy Packs that were required for this update.
- ↳
namestring requiredThe name - ↳
displayNamestring requiredThe display name - ↳
versioninteger requiredThe version number - ↳
versionTagstring requiredThe version tag - ↳
configmap[string]object optionalThe configuration that is to be passed to the Policy Pack. This map ties Policies with their configuration. - ↳
environmentsarray[string] optionalReferences to ESC environments to use for this policy pack. requestedByTokenstring optionalThe access token used to request the update, if applicable.
Get Stack Previews
/api/stacks/{orgName}/{projectName}/{stackName}/updates/{version}/previewsReturns all preview operations associated with a specific stack update version. Multiple previews may be associated with a single update version when a stack is previewed multiple times before an update is applied. Supports pagination via page and pageSize parameters and chronological sorting via the asc parameter.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameversioninteger path requiredThe stack update version numberascboolean 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
Get Stack Update Summary
/api/stacks/{orgName}/{projectName}/{stackName}/updates/{version}/summaryReturns a concise summary of a specific stack update by version number, including the update kind, result status, start and end times, and resource change counts. This is a lighter-weight alternative to GetStackUpdate when full update details are not needed. Returns 404 if the specified version does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameversioninteger path requiredThe stack update version number
Responses
resultenum requiredThe result of the update.Values:not-started,in-progress,succeeded,failedstartTimeinteger requiredThe start time of the update as a Unix timestamp.endTimeinteger requiredThe end time of the update as a Unix timestamp.resourceCountinteger requiredResourceCount is the current resource count for the update. Note that it doesn’t reflect the Stack’s current resource count, only that particular update. (So the UpdateSummary for the same Stack will be different.)
Get Update Timeline
/api/stacks/{orgName}/{projectName}/{stackName}/updates/{version}/timelineReturns the timeline of all relevant events culminating with a specific stack update version. The timeline includes workflow events such as deployment triggers, previews, and the update operation itself, providing a complete view of the sequence of actions. Returns 404 if the specified update version does not exist.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameversioninteger path requiredThe stack update version number
Responses
- Update is the information about the completed update for the stack.
- 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. CollatedUpdateEvents is the set of update events that are “relevant” to the update. It will contain the sequences of previews that were performed in the same “group”, e.g. a GitHub PR, that lead to the final update.
If the sequence of previews happened spanned when the stack was updated, e.g. the first preview was at version N - 1 and the last preview was at version N + 1, then the update to stack version N will be included.
Will be empty if the update couldn’t be associated with a particular sequence of previews.
- 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. - CollatedPullRequest is the source pull request that was merged, which triggered the stack’s update.
- ↳
titlestring requiredThe title of the pull request - ↳
numberinteger requiredThe pull request number - ↳
repoSlugstring requiredThe repository slug in owner/repo format - ↳
createdAtinteger requiredUnix epoch timestamp (seconds) of when the PR was created. - ↳
closedAtinteger optionalUnix epoch timestamp (seconds) of when the PR was closed. Null if the PR is still open. - ↳
wasMergedboolean requiredWhether the PR was merged - ↳
sourceRefstring requiredThe source branch reference - ↳
targetRefstring requiredThe target branch reference - ↳
mergeCommitSHAstring optionalThe SHA of the merge commit, if the PR was merged - Previews contains all previews for the given stack update that weren’t part of the collated set. For example, from other GitHub pull requests that haven’t been merged, previews ran on developer machines, etc.
- 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.
Get Latest Stack Update
/api/stacks/{orgName}/{projectName}/{stackName}/updates/latestReturns information about the most recent update to the stack, including the update kind (update, preview, refresh, destroy, import), start and end times, result status, resource changes summary, configuration, and environment details. Returns 404 if the stack has never been updated.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
- The underlying update information from the Pulumi CLI.
- ↳
kindenum requiredInformation known before an update is started.Values:update,preview,refresh,rename,destroy,import,Pupdate,Prefresh,Pdestroy,Pimport,Prename - ↳
startTimeinteger requiredUnix epoch timestamp (seconds) when the update started. - ↳
messagestring requiredUser-provided message describing the purpose of the update. - ↳
environmentmap[string]string requiredEnvironment variables that were set during the update, keyed by variable name. - Stack configuration values used during the update, keyed by config key.
- ↳
resultenum requiredInformation obtained from an update completing.Values:not-started,in-progress,succeeded,failed - ↳
endTimeinteger requiredUnix epoch timestamp (seconds) when the update completed. - ↳
versioninteger requiredThe stack version after this update completed. - ↳
deploymentobject optionalRaw deployment state snapshot, if requested. - ↳
resourceChangesmap[string]integer optionalCount of resource changes by operation type (e.g. ‘create’: 5, ‘update’: 2, ‘delete’: 1). - ↳
resourceCountinteger optionalTotal number of resources managed by the stack after this update. 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.
- ↳
slugstring optional/ - ↳
shastring optionalThe commit SHA hash - ↳
urlstring optionalThe URL to the commit on GitHub - ↳
messagestring optionalThe commit message - The author of the commit
- The committer of the commit
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.
- ↳
namestring requiredThe user’s display name. - ↳
githubLoginstring requiredThe user’s login name. - ↳
avatarUrlstring requiredThe URL of the user’s avatar image. - ↳
emailstring optionalIMPORTANT: The email address of the user is only included on a few admin-only APIs. For nearly all APIs that return a UserInfo object, this will not be provided. considered sensitive information. - The Policy Packs that were required for this update.
- ↳
namestring requiredThe name - ↳
displayNamestring requiredThe display name - ↳
versioninteger requiredThe version number - ↳
versionTagstring requiredThe version tag - ↳
configmap[string]object optionalThe configuration that is to be passed to the Policy Pack. This map ties Policies with their configuration. - ↳
environmentsarray[string] optionalReferences to ESC environments to use for this policy pack. requestedByTokenstring optionalThe access token used to request the update, if applicable.
Get Latest Update Timeline
/api/stacks/{orgName}/{projectName}/{stackName}/updates/latest/timelineReturns the timeline of all relevant events culminating with the most recent stack update. The timeline includes workflow events such as deployment triggers, previews, and the final update operation, providing a complete view of the sequence of actions that led to the current stack state. Returns 404 if no update exists.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
- Update is the information about the completed update for the stack.
- 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. CollatedUpdateEvents is the set of update events that are “relevant” to the update. It will contain the sequences of previews that were performed in the same “group”, e.g. a GitHub PR, that lead to the final update.
If the sequence of previews happened spanned when the stack was updated, e.g. the first preview was at version N - 1 and the last preview was at version N + 1, then the update to stack version N will be included.
Will be empty if the update couldn’t be associated with a particular sequence of previews.
- 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. - CollatedPullRequest is the source pull request that was merged, which triggered the stack’s update.
- ↳
titlestring requiredThe title of the pull request - ↳
numberinteger requiredThe pull request number - ↳
repoSlugstring requiredThe repository slug in owner/repo format - ↳
createdAtinteger requiredUnix epoch timestamp (seconds) of when the PR was created. - ↳
closedAtinteger optionalUnix epoch timestamp (seconds) of when the PR was closed. Null if the PR is still open. - ↳
wasMergedboolean requiredWhether the PR was merged - ↳
sourceRefstring requiredThe source branch reference - ↳
targetRefstring requiredThe target branch reference - ↳
mergeCommitSHAstring optionalThe SHA of the merge commit, if the PR was merged - Previews contains all previews for the given stack update that weren’t part of the collated set. For example, from other GitHub pull requests that haven’t been merged, previews ran on developer machines, etc.
- 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.
Get Stack Starter Workflow
/api/stacks/{orgName}/{projectName}/{stackName}/workflowGenerates a customized CI/CD workflow template for the specified stack. The request body must specify the target CI system (e.g. GitHub Actions, GitLab CI). The generated template is tailored to the stack’s runtime and configuration. Returns 400 if the CI system is not specified or the stack does not have a runtime tag. Returns 404 if no matching workflow template is found.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
ciSystemstring requiredThe CI system to generate the workflow forworkingDirectorystring requiredThe working directory for the workflowenablePathFiltersboolean requiredWhether to enable path filters in the workflow
Responses
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.