diff options
author | Xue Gao <xg353y@intl.att.com> | 2019-07-30 08:31:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-30 08:31:53 +0000 |
commit | fa6dd7312e06dd5a6e70d79c1a00438f3c80e7eb (patch) | |
tree | 5dc7bf53de88f5b032dbc0e719a48d57ef4f17c3 /src/main/docker/kibana/backup.py | |
parent | 4453cc6abdd95f5ee30c205731237dd7f2d6ae52 (diff) | |
parent | b1a5ff06d333c6bcca7c51bfbb0f79b98638e387 (diff) |
Merge "kibana authentication"
Diffstat (limited to 'src/main/docker/kibana/backup.py')
-rwxr-xr-x | src/main/docker/kibana/backup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/docker/kibana/backup.py b/src/main/docker/kibana/backup.py index a2dab222..b1e45181 100755 --- a/src/main/docker/kibana/backup.py +++ b/src/main/docker/kibana/backup.py @@ -48,7 +48,7 @@ def parse_args(args): ' matching a configuration item that should be written.' ' Files already in the folder that do not match are' ' left as-is.')) - parser.add_argument('-H', '--kibana-host', default='http://localhost:5601', + parser.add_argument('-H', '--kibana-host', default='https://localhost:5601', help='Kibana endpoint.') return parser.parse_args(args) @@ -68,7 +68,7 @@ def main(): # get list of the set of objects we update url = "%s/api/saved_objects/_find" % (args.kibana_host.rstrip("/"),) - saved_objects_req = requests.get(url, + saved_objects_req = requests.get(url, auth=('admin', 'admin'), verify=False, params={'per_page': PER_PAGE,'type':['config','search','dashboard','visualization','index-pattern']}) saved_objects = saved_objects_req.json()['saved_objects'] |