@click.command()
@click.argument('identifier')
@environment.pass_env
def cli(env, identifier):

    mgr = SoftLayer.LoadBalancerManager(env.client)
    _, service_id = loadbal.parse_id(identifier)

    if not (env.skip_confirmations or
            formatting.confirm("This action will toggle the status on the "
                               "service. Continue?")):
        raise exceptions.CLIAbort('Aborted.')

    mgr.toggle_service_status(service_id)
    env.fout('Load balancer service %s status updated!' % identifier)
Toggle the status of an existing load balancer service.
dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/CLI/loadbal/service_toggle.py/cli