Enables version management. This allows a site to support multiple configuration versions and multiple deployment environments, providing more flexible management of site traffic and configuration.
Operation description
Prerequisites for enabling site version management:
The site plan must include the version management quota item
version_management_available, and its value must betrue.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The site ID. You can call the ListSites operation to obtain the site ID. |
11223*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
C370DAF1-C838-4288-A1A0-9A87633D2*** |
Examples
Success response
JSON format
{
"RequestId": "C370DAF1-C838-4288-A1A0-9A87633D2***"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | QuotaCheckFailed.VersionManagement | The current plan's quota of version management is insufficient. Please try to upgrade the plan. | The version management quota of the current package is insufficient. Please try to upgrade the package version. |
| 400 | Site.ServiceBusy | This website is being configured. Try again later. | This website is being configured. Try again later. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | IllegalOperation.VersionManagement | The version management operation failed because incompatible features or environment settings are configured. Adjust your configurations and try again. | The version management operation failed because incompatible features or environment settings are configured. Adjust your configurations and try again. |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | Your plan is unavailable due to an overdue payment. Complete the payment first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.