SoftLayer 负载平衡器命令行 API 禁用/启用服务

SoftLayer Load Balancer Command Line API Disable / Enable Service

我正尝试 disable/enable 在 Python

上使用 SoftLayer 命令行 API 的服务

命令

slcli lb service-edit local:690561 --enabled

给出以下错误。

SoftLayerAPIError(SOAP-ENV:Server): Internal Error

slcli lb service-toggle local:690561

按预期工作。

我需要一种方法来打开和关闭服务(而不是切换)。

似乎没有足够的服务编辑文档可用。

您的错误是标识符,对于这种情况,您的标识符必须是这样的:

LoadBlancerId:ServiceID

所以试试这个:

slcli lb service-edit 1111:222 --enabled

Note: replace the IDS

要查看负载均衡器中的服务 ID,您可以 运行:

slcli lib detail local:1111

Note:replace 1111 with the id of the load balancer