mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3789: UI - specify type when making API calls.
This commit is contained in:
parent
e12e0f793b
commit
11dce48855
|
|
@ -179,6 +179,7 @@
|
|||
|
||||
$.ajax({
|
||||
url: createURL('addCiscoVnmcResource'),
|
||||
type: "POST",
|
||||
data: data,
|
||||
success: function (json) {
|
||||
var item = json.addCiscoVnmcResource.CiscoVnmcResource;
|
||||
|
|
|
|||
|
|
@ -1280,7 +1280,7 @@
|
|||
$.ajax({
|
||||
url: createURL('updateUser'),
|
||||
data: data,
|
||||
async: true,
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
args.response.success({
|
||||
data: json.updateuserresponse.user
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@
|
|||
$.ajax({
|
||||
url: createURL("ldapConfig" + array.join("")),
|
||||
dataType: "json",
|
||||
async: true,
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var items = json.ldapconfigresponse.ldapconfig;
|
||||
args.response.success({
|
||||
|
|
|
|||
|
|
@ -4088,6 +4088,7 @@
|
|||
account: args.context.ipAddresses[0].account
|
||||
}),
|
||||
dataType: 'json',
|
||||
type: "POST",
|
||||
success: function(data) {
|
||||
args.response.success({
|
||||
_custom: {
|
||||
|
|
|
|||
|
|
@ -6061,6 +6061,7 @@
|
|||
$.ajax({
|
||||
url: createURL('addVmwareDc'),
|
||||
data: data,
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
//var item = json.addvmwaredcresponse.vmwaredc;
|
||||
args.response.success();
|
||||
|
|
@ -11199,7 +11200,7 @@
|
|||
$.ajax({
|
||||
url: createURL("addCluster" + array1.join("")),
|
||||
dataType: "json",
|
||||
async: true,
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var item = json.addclusterresponse.cluster[0];
|
||||
clusterId = json.addclusterresponse.cluster[0].id;
|
||||
|
|
@ -14198,6 +14199,7 @@
|
|||
$.ajax({
|
||||
url: createURL('addUcsManager'),
|
||||
data: data,
|
||||
type: "POST",
|
||||
success: function(json) { //e.g. json == { "addUcsManagerResponse" : { "ucsmanager" : {"id":"11","name":"ucsmanager","url":"10.223.184.2","zoneid":"2"} } }
|
||||
var item = json.addUcsManagerResponse.ucsmanager;
|
||||
args.response.success({
|
||||
|
|
@ -15479,6 +15481,7 @@
|
|||
username: args.data.username,
|
||||
password: args.data.password
|
||||
},
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var jid = json.addexternaldhcpresponse.jobid;
|
||||
args.response.success({
|
||||
|
|
@ -15514,6 +15517,7 @@
|
|||
username: args.data.username,
|
||||
password: args.data.password
|
||||
},
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var jid = json.addexternaldhcpresponse.jobid;
|
||||
args.response.success({
|
||||
|
|
@ -15561,6 +15565,7 @@
|
|||
password: args.data.password,
|
||||
tftpdir: args.data.tftpdir
|
||||
},
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var jid = json.addexternalpxeresponse.jobid;
|
||||
args.response.success({
|
||||
|
|
@ -15597,6 +15602,7 @@
|
|||
password: args.data.password,
|
||||
tftpdir: args.data.tftpdir
|
||||
},
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var jid = json.addexternalpxeresponse.jobid;
|
||||
args.response.success({
|
||||
|
|
@ -15705,6 +15711,7 @@
|
|||
$.ajax({
|
||||
url: createURL(apiCmd + array1.join("")),
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var jid = json[apiCmdRes].jobid;
|
||||
args.response.success({
|
||||
|
|
@ -15850,6 +15857,7 @@
|
|||
$.ajax({
|
||||
url: createURL(apiCmd + array1.join("")),
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var jid = json[apiCmdRes].jobid;
|
||||
args.response.success({
|
||||
|
|
@ -15882,6 +15890,7 @@
|
|||
$.ajax({
|
||||
url: createURL(apiCmd + array1.join("")),
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var jid = json[apiCmdRes].jobid;
|
||||
args.response.success({
|
||||
|
|
|
|||
|
|
@ -3271,6 +3271,7 @@
|
|||
|
||||
$.ajax({
|
||||
url: createURL("addNetscalerLoadBalancer" + array1.join("")),
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var addNetscalerLoadBalancerIntervalID = setInterval(function() {
|
||||
|
|
@ -3808,6 +3809,7 @@
|
|||
$.ajax({
|
||||
url: createURL('addVmwareDc'),
|
||||
data: vmwareData,
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
var item = json.addvmwaredcresponse.vmwaredc;
|
||||
if (item.id != null) {
|
||||
|
|
@ -3846,7 +3848,7 @@
|
|||
$.ajax({
|
||||
url: createURL("addCluster" + array1.join("")),
|
||||
dataType: "json",
|
||||
async: true,
|
||||
type: "POST",
|
||||
success: function(json) {
|
||||
stepFns.addHost({
|
||||
data: $.extend(args.data, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue