Stack Config
Get Stack Config
/api/stacks/{orgName}/{projectName}/{stackName}/configRetrieves the service-managed configuration for a stack. The response includes the ESC environment reference, secrets provider type, encrypted key, and encryption salt. If stack configuration is returned by the API, it is used in place of the local stack config file (e.g. Pulumi.[stack].yaml). Returns 404 if no service-managed configuration exists for the stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Responses
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.
Update Stack Config
/api/stacks/{orgName}/{projectName}/{stackName}/configUpdates the service-managed configuration for a stack. The request body may include the ESC environment reference, secrets provider type, encrypted key, and encryption salt. If stack configuration is returned by the API, it is used in place of the local stack config file (e.g. Pulumi.[stack].yaml). Returns the updated configuration object. Returns 400 if the environment reference is invalid or not found.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
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.
Responses
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.
Delete Stack Config
/api/stacks/{orgName}/{projectName}/{stackName}/configRemoves the service-managed configuration for a stack, including the secrets provider settings, encrypted key, encryption salt, and ESC environment reference. If stack configuration is returned by the API, it is used in place of the local stack config file (e.g. Pulumi.[stack].yaml). Deleting the config causes the CLI to fall back to the local config file. Returns 204 with no content on success.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
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.