var xhr = new XMLHttpRequest();
xhr.open("GET", "https://192.168.110.106/api/2.0/vdn/scopes/", false);
xhr.setRequestHeader("Authorization", "Basic " "YWRtaW46Vk13YXJlMSE=");
// Add your code below!
var status = console.log(xhr.status);
var statustext = console.log(xhr.statusText);
Welcome to NSX Automation