group_datasharing_del.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:cbapi-examples 作者: cbcommunity 项目源码 文件源码
def build_cli_parser():
    parser = optparse.OptionParser(usage="%prog [options]", description="Delete a specific datasharing configuration for a sensor group")

    # for each supported output type, add an option
    #
    parser.add_option("-c", "--cburl", action="store", default=None, dest="server_url",
                      help="CB server's URL.  e.g., http://127.0.0.1 ")
    parser.add_option("-a", "--apitoken", action="store", default=None, dest="token",
                      help="API Token for Carbon Black server")
    parser.add_option("-n", "--no-ssl-verify", action="store_false", default=True, dest="ssl_verify",
                      help="Do not verify server SSL certificate.")
    parser.add_option("-i", "--group_id", action="store", default=True, dest= "group_id",
                      help = "id of sensor group whose datasharing configs to enumerate")
    parser.add_option("-d", "--config_id", action = "store", default=True, dest="config_id",
                      help = "id of specific configuration to delete")

    return parser
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号