开启版本管理。使站点支持多个配置版本与多个部署环境,可以更灵活地管理站点的流量与配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| SiteId | long | 是 | 站点 ID,可通过调用 ListSites 接口获取。 | 11223*** |
返回参数
示例
正常返回示例
JSON格式
{
"RequestId": "C370DAF1-C838-4288-A1A0-9A87633D2***"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 400 | QuotaCheckFailed.VersionManagement | The current plan's quota of version management is insufficient. Please try to upgrade the plan. | 当前套餐的版本管理配额不足,请尝试升级套餐版本。 |
| 400 | Site.ServiceBusy | This website is being configured. Try again later. | 该站点正在配置中,请稍后再试。 |
| 400 | InternalException | 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. | 当前进行版本管理操作时,存在与其互斥的功能或环境设置,请先调整相关配置后再尝试。 |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | 您的套餐实例因欠费当前处于非上线状态,请先完成续费操作以继续使用。 |
访问错误中心查看更多错误码。
