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
group_datasharing_del.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录