Stack Tags
Add Stack Tag
/api/stacks/{orgName}/{projectName}/{stackName}/tagsCreates a new tag on the specified stack. Tags are key-value metadata pairs that can be used for organization, filtering, and storing additional information about stacks. The request body must include both a tag name and value. Returns 400 if the tag name is invalid or the tag already exists. Built-in tags (such as those automatically set by the Pulumi CLI) follow specific naming conventions.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
nameenum requiredThe tag key, which must conform to the stack tag naming rules.Values:pulumi:project,pulumi:runtime,pulumi:description,pulumi:template,vcs:owner,vcs:repo,vcs:kind,vcs:rootvaluestring requiredThe tag value associated with this key.
Responses
Update Stack Tags
/api/stacks/{orgName}/{projectName}/{stackName}/tagsReplaces all tags on the specified stack with the tags provided in the request body. This is a wholesale replacement operation: any existing tags not included in the request will be removed. The request body is a JSON map of tag name-value pairs. Returns 400 if the operation would change the project name tag or if any tags are invalid.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack name
Request Body
Responses
Update Stack Tag
/api/stacks/{orgName}/{projectName}/{stackName}/tags/{tagName}Updates the value of an existing tag on the specified stack. The tag is identified by its name in the URL path. Built-in tags (those automatically managed by the Pulumi CLI, such as project name tags) cannot be updated and will return a 400 error. Returns 404 if the specified tag does not exist on the stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nametagNamestring path requiredThe tag name
Request Body
nameenum requiredThe tag key, which must conform to the stack tag naming rules.Values:pulumi:project,pulumi:runtime,pulumi:description,pulumi:template,vcs:owner,vcs:repo,vcs:kind,vcs:rootvaluestring requiredThe tag value associated with this key.
Responses
Delete Stack Tag
/api/stacks/{orgName}/{projectName}/{stackName}/tags/{tagName}Removes a specific tag from the stack, identified by the tag name in the URL path. Built-in tags (those automatically managed by the Pulumi CLI) cannot be deleted and will return a 400 error. Returns 404 if the specified tag does not exist on the stack. Returns 204 with no content on success.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nametagNamestring path requiredThe tag 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.