bit9_platform_server_config.py 文件源码

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

项目:cbapi-examples 作者: cbcommunity 项目源码 文件源码
def build_cli_parser():
    parser = optparse.OptionParser(usage="%prog [options]", description="Get and set Bit9 Platform Server Configuration")

    # for each supported output type, add an option
    #
    parser.add_option("-c", "--cburl", action="store", default=None, dest="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("-u", "--server-url", action="store", default=None, dest="server_url",
                      help="Specify the URL of the configured Bit9 Platform Server")
    parser.add_option("-s", "--ssl-cert-verify", action="store", default=None, dest="ssl_cert_verify",
                      help="Specify if the SSL certificate of the Bit9 Platform Server should be verified; should be 'True' or 'False'")
    parser.add_option("-w", "--watchlist-enable", action="store", default=None, dest="watchlist_enable",
                      help="Enable export of CB Watchlists to Bit9 Platform Server; should be 'True' or 'False'")
    parser.add_option("-t", "--authtoken", action="store", default=None, dest="auth_token",
                      help="Bit9 Platform Server Auth Token used by CB server to send watchlist hits")
    return parser
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号