Promotion variables
Use promotion variables to account for environment-specific differences, such as third-party integrations or URLs. You can specify configuration resource property values for either the source or target environment. The source environment property values will be substituted for the target environment property values by the promotion.
A promotion changes only the corresponding target environment property values with the promotion variables you set for the source environment. If you do not set any promotion variables, the configuration resource or resources that you specify for the source or target environment will be used as is, and cannot be changed during the promotion operation.
|
Not all properties for configuration resources can be used as promotion variables. Refer to Variable Resources for the listing of supported configuration resources and properties. |
To use promotion variables, you need to:
-
Specify the configuration resource to be promoted in a snapshot.
-
Define the variable or variables to be used for a source or target environment configuration resource property. Refer to Variable Definitions.
-
Declare the variables to be used by the promotion operation. Refer to Variable Declarations.
A few things to be aware of:
-
The variables are scoped only to the specified configuration resources, and are not applied to any dependent resources.
-
Variables are not versioned with a snapshot, so for each promotion operation, you need to ensure the variable settings for a configuration resource are correct.
-
Any configuration resources that you change directly without updating the variables will be overwritten by a subsequent promotion operation. This is because the promotion operation will use the existing variable set.
Promotion variables errors
In addition to the general error codes, promotion variable operations can return the following errors:
| HTTP status | Top‑level code | Detail code | When it happens and what the response contains |
|---|---|---|---|
400 |
|
|
Message: When and detailsWhen: The service could not read or write the promotion variable definition or declaration in its datastore Details: Describes the datastore failure with target |
400 |
|
|
Message: When and detailsWhen: A create, update, or delete promotion variable declaration request omits the Details: |
400 |
|
|
Message: When and detailsWhen: A Details: Describes the failing property with target |
400 |
|
|
Message: When and detailsWhen: A Details: |
400 |
|
None |
Message: When and detailsWhen: The service could not read or write the promotion variable declaration in its datastore Details: Describes the failing operation with target |
401 |
|
None |
Message: When and detailsWhen: The access token is missing, invalid, or expired Details: None. |
403 |
|
|
Message: When and detailsWhen: The actor lacks the Details: |
403 |
|
|
Message: When and detailsWhen: The environment referenced by the request is disabled, or the Configuration Management capability is not enabled for the environment Details: |
404 |
|
None |
Message: When and detailsWhen: The promotion variable definition name or the declaration resource ID in the request URL does not exist in the environment Details: |