diff --git a/server/src/com/cloud/api/commands/AddConfigCmd.java b/server/src/com/cloud/api/commands/AddConfigCmd.java
index 9d5a7a80e5a..10bbcd00bb5 100644
--- a/server/src/com/cloud/api/commands/AddConfigCmd.java
+++ b/server/src/com/cloud/api/commands/AddConfigCmd.java
@@ -36,22 +36,23 @@ public class AddConfigCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="category", type=CommandType.STRING, required=true)
+ @Parameter(name="category", type=CommandType.STRING, required=true, description="component's category")
private String category;
- @Parameter(name="component", type=CommandType.STRING, required=true)
+ @Parameter(name="component", type=CommandType.STRING, required=true, description="the component of the configuration")
private String component;
- @Parameter(name="description", type=CommandType.STRING)
+ @Parameter(name="description", type=CommandType.STRING, description="the description of the configuration")
private String description;
+ //FIXME - add description
@Parameter(name="instance", type=CommandType.STRING, required=true)
private String instance;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="the name of the configuration")
private String name;
- @Parameter(name="value", type=CommandType.STRING)
+ @Parameter(name="value", type=CommandType.STRING, description="the value of the configuration")
private String value;
diff --git a/server/src/com/cloud/api/commands/AddHostCmd.java b/server/src/com/cloud/api/commands/AddHostCmd.java
index 5c198fb0637..6076d3d489a 100644
--- a/server/src/com/cloud/api/commands/AddHostCmd.java
+++ b/server/src/com/cloud/api/commands/AddHostCmd.java
@@ -53,25 +53,25 @@ public class AddHostCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="clusterid", type=CommandType.LONG)
+ @Parameter(name="clusterid", type=CommandType.LONG, description="the cluster ID for the host")
private Long clusterId;
- @Parameter(name="clustername", type=CommandType.STRING)
+ @Parameter(name="clustername", type=CommandType.STRING, description="the cluster name for the host")
private String clusterName;
- @Parameter(name="password", type=CommandType.STRING, required=true)
+ @Parameter(name="password", type=CommandType.STRING, required=true, description="the password for the host")
private String password;
- @Parameter(name="podid", type=CommandType.LONG)
+ @Parameter(name="podid", type=CommandType.LONG, description="the Pod ID for the host")
private Long podId;
- @Parameter(name="url", type=CommandType.STRING, required=true)
+ @Parameter(name="url", type=CommandType.STRING, required=true, description="the host URL")
private String url;
- @Parameter(name="username", type=CommandType.STRING, required=true)
+ @Parameter(name="username", type=CommandType.STRING, required=true, description="the username for the host")
private String username;
- @Parameter(name="zoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="zoneid", type=CommandType.LONG, required=true, description="the Zone ID for the host")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/AddHostOrStorageCmd.java b/server/src/com/cloud/api/commands/AddHostOrStorageCmd.java
deleted file mode 100644
index 5b5ba5a38b3..00000000000
--- a/server/src/com/cloud/api/commands/AddHostOrStorageCmd.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
- *
- * This software is licensed under the GNU General Public License v3 or later.
- *
- * It is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-
-package com.cloud.api.commands;
-
-import org.apache.log4j.Logger;
-
-import com.cloud.api.BaseCmd;
-import com.cloud.api.BaseCmd.Manager;
-import com.cloud.api.Implementation;
-import com.cloud.api.Parameter;
-
-@Implementation(method="discoverHosts", manager=Manager.AgentManager)
-public abstract class AddHostOrStorageCmd extends BaseCmd {
- public static final Logger s_logger = Logger.getLogger(AddHostOrStorageCmd.class.getName());
-
- /////////////////////////////////////////////////////
- //////////////// API parameters /////////////////////
- /////////////////////////////////////////////////////
-
- @Parameter(name="clusterid", type=CommandType.LONG)
- private Long clusterId;
-
- @Parameter(name="clustername", type=CommandType.STRING)
- private String clusterName;
-
- @Parameter(name="password", type=CommandType.STRING, required=true)
- private String password;
-
- @Parameter(name="podid", type=CommandType.LONG)
- private Long podId;
-
- @Parameter(name="url", type=CommandType.STRING, required=true)
- private String url;
-
- @Parameter(name="username", type=CommandType.STRING, required=true)
- private String username;
-
- @Parameter(name="zoneid", type=CommandType.LONG, required=true)
- private Long zoneId;
-
-
- /////////////////////////////////////////////////////
- /////////////////// Accessors ///////////////////////
- /////////////////////////////////////////////////////
-
- public Long getClusterId() {
- return clusterId;
- }
-
- public String getClusterName() {
- return clusterName;
- }
-
- public String getPassword() {
- return password;
- }
-
- public Long getPodId() {
- return podId;
- }
-
- public String getUrl() {
- return url;
- }
-
- public String getUsername() {
- return username;
- }
-
- public Long getZoneId() {
- return zoneId;
- }
-
-}
diff --git a/server/src/com/cloud/api/commands/AddSecondaryStorageCmd.java b/server/src/com/cloud/api/commands/AddSecondaryStorageCmd.java
index 3798252187c..bf6c7552ede 100644
--- a/server/src/com/cloud/api/commands/AddSecondaryStorageCmd.java
+++ b/server/src/com/cloud/api/commands/AddSecondaryStorageCmd.java
@@ -48,10 +48,10 @@ public class AddSecondaryStorageCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="url", type=CommandType.STRING, required=true)
+ @Parameter(name="url", type=CommandType.STRING, required=true, description="the URL for the secondary storage")
private String url;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="the Zone ID for the secondary storage")
private Long zoneId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/AssignPortForwardingServiceCmd.java b/server/src/com/cloud/api/commands/AssignPortForwardingServiceCmd.java
index e1f97f7784e..22fef170011 100644
--- a/server/src/com/cloud/api/commands/AssignPortForwardingServiceCmd.java
+++ b/server/src/com/cloud/api/commands/AssignPortForwardingServiceCmd.java
@@ -41,16 +41,16 @@ public class AssignPortForwardingServiceCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="the ID of the port forwarding service to assign to the virtual machine/public IP")
private Long id;
- @Parameter(name="ids", type=CommandType.LIST, collectionType=CommandType.LONG)
+ @Parameter(name="ids", type=CommandType.LIST, collectionType=CommandType.LONG, description="a comma delimited list of port forwarding service IDs to assign to the virtual machine/public IP")
private List ids;
- @Parameter(name="publicip", type=CommandType.STRING, required=true)
+ @Parameter(name="publicip", type=CommandType.STRING, required=true, description="the public IP address to associate to the port forwarding service")
private String publicIp;
- @Parameter(name="virtualmachineid", type=CommandType.LONG, required=true)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, required=true, description="the ID of the virtual machine to assign to the port forwarding service")
private Long virtualMachineId;
diff --git a/server/src/com/cloud/api/commands/AssignToLoadBalancerRuleCmd.java b/server/src/com/cloud/api/commands/AssignToLoadBalancerRuleCmd.java
index de80b9b38d7..4bace7e6c09 100644
--- a/server/src/com/cloud/api/commands/AssignToLoadBalancerRuleCmd.java
+++ b/server/src/com/cloud/api/commands/AssignToLoadBalancerRuleCmd.java
@@ -41,13 +41,13 @@ public class AssignToLoadBalancerRuleCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the load balancer rule")
private Long id;
- @Parameter(name="virtualmachineid", type=CommandType.LONG, required=false)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, required=false, description="the ID of the virtual machine that is being assigned to the load balancer rule")
private Long virtualMachineId;
- @Parameter(name="virtualmachineids", type=CommandType.LIST, collectionType=CommandType.LONG, required=false)
+ @Parameter(name="virtualmachineids", type=CommandType.LIST, collectionType=CommandType.LONG, required=false, description="the list of IDs of the virtual machine that are being assigned to the load balancer rule(i.e. virtualMachineIds=1,2,3)")
private List virtualMachineIds;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/AttachIsoCmd.java b/server/src/com/cloud/api/commands/AttachIsoCmd.java
index c57980ff620..2eb7799dab8 100644
--- a/server/src/com/cloud/api/commands/AttachIsoCmd.java
+++ b/server/src/com/cloud/api/commands/AttachIsoCmd.java
@@ -41,10 +41,10 @@ public class AttachIsoCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the ISO file")
private Long id;
- @Parameter(name="virtualmachineid", type=CommandType.LONG, required=true)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, required=true, description="the ID of the virtual machine")
private Long virtualMachineId;
diff --git a/server/src/com/cloud/api/commands/AttachVolumeCmd.java b/server/src/com/cloud/api/commands/AttachVolumeCmd.java
index 15170a77c49..a8dc872bf22 100644
--- a/server/src/com/cloud/api/commands/AttachVolumeCmd.java
+++ b/server/src/com/cloud/api/commands/AttachVolumeCmd.java
@@ -40,13 +40,23 @@ public class AttachVolumeCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="deviceid", type=CommandType.LONG)
+ @Parameter(name="deviceid", type=CommandType.LONG, description="the ID of the device to map the volume to within the guest OS. " +
+ "If no deviceId is passed in, the next available deviceId will be chosen. " +
+ "Possible values for a Linux OS are:" +
+ "* 1 - /dev/xvdb" +
+ "* 2 - /dev/xvdc" +
+ "* 4 - /dev/xvde" +
+ "* 5 - /dev/xvdf" +
+ "* 6 - /dev/xvdg" +
+ "* 7 - /dev/xvdh" +
+ "* 8 - /dev/xvdi" +
+ "* 9 - /dev/xvdj")
private Long deviceId;
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the disk volume")
private Long id;
- @Parameter(name="virtualmachineid", type=CommandType.LONG, required=true)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, required=true, description=" the ID of the virtual machine")
private Long virtualMachineId;
diff --git a/server/src/com/cloud/api/commands/AuthorizeNetworkGroupIngressCmd.java b/server/src/com/cloud/api/commands/AuthorizeNetworkGroupIngressCmd.java
index a1d30a7a673..35cb13d3243 100644
--- a/server/src/com/cloud/api/commands/AuthorizeNetworkGroupIngressCmd.java
+++ b/server/src/com/cloud/api/commands/AuthorizeNetworkGroupIngressCmd.java
@@ -50,33 +50,42 @@ public class AuthorizeNetworkGroupIngressCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="protocol", type=CommandType.STRING)
+ @Parameter(name="protocol", type=CommandType.STRING, description="TCP is default. UDP is the other supported protocol")
private String protocol;
+ //FIXME - add description
@Parameter(name="startport", type=CommandType.INTEGER)
private Integer startPort;
+ //FIXME - add description
@Parameter(name="endport", type=CommandType.INTEGER)
private Integer endPort;
+ //FIXME - add description
@Parameter(name="icmptype", type=CommandType.INTEGER)
private Integer icmpType;
+ //FIXME - add description
@Parameter(name="icmpcode", type=CommandType.INTEGER)
private Integer icmpCode;
+ //FIXME - add description
@Parameter(name="networkgroupname", type=CommandType.STRING, required=true)
private String networkGroupName;
+ //FIXME - add description
@Parameter(name="cidrlist", type=CommandType.LIST, collectionType=CommandType.STRING)
private List cidrList;
+ //FIXME - add description
@Parameter(name="usernetworkgrouplist", type=CommandType.MAP)
private Map userNetworkGroupList;
+ //FIXME - add description
@Parameter(name="account", type=CommandType.STRING)
private String accountName;
+ //FIXME - add description
@Parameter(name="domainid", type=CommandType.LONG)
private Long domainId;
diff --git a/server/src/com/cloud/api/commands/CancelMaintenanceCmd.java b/server/src/com/cloud/api/commands/CancelMaintenanceCmd.java
index 57b7369215f..d355efdb738 100644
--- a/server/src/com/cloud/api/commands/CancelMaintenanceCmd.java
+++ b/server/src/com/cloud/api/commands/CancelMaintenanceCmd.java
@@ -54,7 +54,7 @@ public class CancelMaintenanceCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the host ID")
private Long id;
diff --git a/server/src/com/cloud/api/commands/CancelPrimaryStorageMaintenanceCmd.java b/server/src/com/cloud/api/commands/CancelPrimaryStorageMaintenanceCmd.java
index 29c5fc9ac12..ce4e944ec3e 100644
--- a/server/src/com/cloud/api/commands/CancelPrimaryStorageMaintenanceCmd.java
+++ b/server/src/com/cloud/api/commands/CancelPrimaryStorageMaintenanceCmd.java
@@ -43,7 +43,7 @@ public class CancelPrimaryStorageMaintenanceCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the primary storage ID")
private Long id;
diff --git a/server/src/com/cloud/api/commands/CopyIsoCmd.java b/server/src/com/cloud/api/commands/CopyIsoCmd.java
index afc04740fb2..e2fefb9cb2a 100644
--- a/server/src/com/cloud/api/commands/CopyIsoCmd.java
+++ b/server/src/com/cloud/api/commands/CopyIsoCmd.java
@@ -45,13 +45,13 @@ public class CopyIsoCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="destzoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="destzoneid", type=CommandType.LONG, required=true, description="the ID of the destination zone to which the ISO file will be copied")
private Long destZoneId;
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the ISO file")
private Long id;
- @Parameter(name="sourcezoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="sourcezoneid", type=CommandType.LONG, required=true, description="the ID of the source zone from which the ISO file will be copied")
private Long sourceZoneId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/CopyTemplateCmd.java b/server/src/com/cloud/api/commands/CopyTemplateCmd.java
index 98cb9de2f93..c0ec81014a0 100644
--- a/server/src/com/cloud/api/commands/CopyTemplateCmd.java
+++ b/server/src/com/cloud/api/commands/CopyTemplateCmd.java
@@ -45,13 +45,13 @@ public class CopyTemplateCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="destzoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="destzoneid", type=CommandType.LONG, required=true, description="ID of the zone the template is being copied to.")
private Long destZoneId;
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="Template ID.")
private Long id;
- @Parameter(name="sourcezoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="sourcezoneid", type=CommandType.LONG, required=true, description="ID of the zone the template is currently hosted on.")
private Long sourceZoneId;
diff --git a/server/src/com/cloud/api/commands/CreateDiskOfferingCmd.java b/server/src/com/cloud/api/commands/CreateDiskOfferingCmd.java
index 94b10dab2b4..6a7602d45ea 100755
--- a/server/src/com/cloud/api/commands/CreateDiskOfferingCmd.java
+++ b/server/src/com/cloud/api/commands/CreateDiskOfferingCmd.java
@@ -38,19 +38,19 @@ public class CreateDiskOfferingCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="disksize", type=CommandType.LONG, required=true)
+ @Parameter(name="disksize", type=CommandType.LONG, required=true, description="disk size of the disk offering in GB")
private Long diskSize;
- @Parameter(name="displaytext", type=CommandType.STRING, required=true)
+ @Parameter(name="displaytext", type=CommandType.STRING, required=true, description="alternate display text of the disk offering")
private String displayText;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="domain ID where disk offering is going to be created")
private Long domainId;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="name of the disk offering")
private String offeringName;
- @Parameter(name="tags", type=CommandType.STRING)
+ @Parameter(name="tags", type=CommandType.STRING, description="tags for the disk offering")
private String tags;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/CreateLoadBalancerRuleCmd.java b/server/src/com/cloud/api/commands/CreateLoadBalancerRuleCmd.java
index f9569e008b4..737d482d69e 100644
--- a/server/src/com/cloud/api/commands/CreateLoadBalancerRuleCmd.java
+++ b/server/src/com/cloud/api/commands/CreateLoadBalancerRuleCmd.java
@@ -38,22 +38,22 @@ public class CreateLoadBalancerRuleCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="algorithm", type=CommandType.STRING, required=true)
+ @Parameter(name="algorithm", type=CommandType.STRING, required=true, description="load balancer algorithm (source, roundrobin, leastconn)")
private String algorithm;
- @Parameter(name="description", type=CommandType.STRING)
+ @Parameter(name="description", type=CommandType.STRING, description="the description of the load balancer rule")
private String description;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="name of the load balancer rule")
private String loadBalancerRuleName;
- @Parameter(name="privateport", type=CommandType.STRING, required=true)
+ @Parameter(name="privateport", type=CommandType.STRING, required=true, description="the private port of the private ip address/virtual machine where the network traffic will be load balanced to")
private String privatePort;
- @Parameter(name="publicip", type=CommandType.STRING, required=true)
+ @Parameter(name="publicip", type=CommandType.STRING, required=true, description="public ip address from where the network traffic will be load balanced from")
private String publicIp;
- @Parameter(name="publicport", type=CommandType.STRING, required=true)
+ @Parameter(name="publicport", type=CommandType.STRING, required=true, description="the public port from where the network traffic will be load balanced from")
private String publicPort;
diff --git a/server/src/com/cloud/api/commands/CreateNetworkGroupCmd.java b/server/src/com/cloud/api/commands/CreateNetworkGroupCmd.java
index 5a579f05fca..58698b3fea1 100644
--- a/server/src/com/cloud/api/commands/CreateNetworkGroupCmd.java
+++ b/server/src/com/cloud/api/commands/CreateNetworkGroupCmd.java
@@ -27,7 +27,7 @@ import com.cloud.api.Parameter;
import com.cloud.api.response.NetworkGroupResponse;
import com.cloud.network.security.NetworkGroupVO;
-@Implementation(method="createLoadBalancerRule", manager=Manager.NetworkGroupManager)
+@Implementation(method="createNetworkGroup", manager=Manager.NetworkGroupManager)
public class CreateNetworkGroupCmd extends BaseCmd {
public static final Logger s_logger = Logger.getLogger(CreateNetworkGroupCmd.class.getName());
@@ -37,16 +37,16 @@ public class CreateNetworkGroupCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="an optional account for the network group. Must be used with domainId.")
private String accountName;
- @Parameter(name="description", type=CommandType.STRING)
+ @Parameter(name="description", type=CommandType.STRING, description="the description of the network group")
private String description;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="an optional domainId for the network group. If the account parameter is used, domainId must also be used.")
private Long domainId;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="name of the network group")
private String networkGroupName;
diff --git a/server/src/com/cloud/api/commands/CreatePodCmd.java b/server/src/com/cloud/api/commands/CreatePodCmd.java
index 3317b82d1b9..5eaa1cf6e88 100644
--- a/server/src/com/cloud/api/commands/CreatePodCmd.java
+++ b/server/src/com/cloud/api/commands/CreatePodCmd.java
@@ -38,22 +38,22 @@ public class CreatePodCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="cidr", type=CommandType.STRING, required=true)
+ @Parameter(name="cidr", type=CommandType.STRING, required=true, description="the CIDR notation for the base IP address of the Pod")
private String cidr;
- @Parameter(name="endip", type=CommandType.STRING)
+ @Parameter(name="endip", type=CommandType.STRING, description="the ending IP address for the Pod")
private String endIp;
- @Parameter(name="gateway", type=CommandType.STRING, required=true)
+ @Parameter(name="gateway", type=CommandType.STRING, required=true, description="the gateway for the Pod")
private String gateway;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="the name of the Pod")
private String podName;
- @Parameter(name="startip", type=CommandType.STRING, required=true)
+ @Parameter(name="startip", type=CommandType.STRING, required=true, description="the starting IP address for the Pod")
private String startIp;
- @Parameter(name="zoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="zoneid", type=CommandType.LONG, required=true, description="the Zone ID in which the Pod will be created ")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/CreatePortForwardingServiceRuleCmd.java b/server/src/com/cloud/api/commands/CreatePortForwardingServiceRuleCmd.java
index 88014bab082..c4786710ae0 100644
--- a/server/src/com/cloud/api/commands/CreatePortForwardingServiceRuleCmd.java
+++ b/server/src/com/cloud/api/commands/CreatePortForwardingServiceRuleCmd.java
@@ -40,16 +40,16 @@ public class CreatePortForwardingServiceRuleCmd extends BaseAsyncCreateCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="portforwardingserviceid", type=CommandType.LONG, required=true)
+ @Parameter(name="portforwardingserviceid", type=CommandType.LONG, required=true, description="the ID of the port forwarding service the rule is being created for")
private Long portForwardingServiceId;
- @Parameter(name="privateport", type=CommandType.STRING, required=true)
+ @Parameter(name="privateport", type=CommandType.STRING, required=true, description="the port of the private ip address/virtual machine to forward traffic to")
private String privatePort;
- @Parameter(name="protocol", type=CommandType.STRING)
+ @Parameter(name="protocol", type=CommandType.STRING, description="TCP is default. UDP is the other supported protocol")
private String protocol;
- @Parameter(name="publicport", type=CommandType.STRING, required=true)
+ @Parameter(name="publicport", type=CommandType.STRING, required=true, description="the port of the public ip address to forward traffic from")
private String publicPort;
diff --git a/server/src/com/cloud/api/commands/CreateServiceOfferingCmd.java b/server/src/com/cloud/api/commands/CreateServiceOfferingCmd.java
index c176df8b63a..81f3e5329ef 100644
--- a/server/src/com/cloud/api/commands/CreateServiceOfferingCmd.java
+++ b/server/src/com/cloud/api/commands/CreateServiceOfferingCmd.java
@@ -36,31 +36,31 @@ public class CreateServiceOfferingCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="cpunumber", type=CommandType.LONG, required=true)
+ @Parameter(name="cpunumber", type=CommandType.LONG, required=true, description="the CPU number of the service offering")
private Long cpuNumber;
- @Parameter(name="cpuspeed", type=CommandType.LONG, required=true)
+ @Parameter(name="cpuspeed", type=CommandType.LONG, required=true, description="the CPU speed of the service offering in MHz.")
private Long cpuSpeed;
- @Parameter(name="displaytext", type=CommandType.STRING, required=true)
+ @Parameter(name="displaytext", type=CommandType.STRING, required=true, description="the display text of the service offering")
private String displayText;
- @Parameter(name="memory", type=CommandType.LONG, required=true)
+ @Parameter(name="memory", type=CommandType.LONG, required=true, description="the total memory of the service offering in MB")
private Long memory;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="the name of the service offering")
private String serviceOfferingName;
- @Parameter(name="offerha", type=CommandType.BOOLEAN)
+ @Parameter(name="offerha", type=CommandType.BOOLEAN, description="the HA for the service offering")
private Boolean offerHa;
- @Parameter(name="storagetype", type=CommandType.STRING)
+ @Parameter(name="storagetype", type=CommandType.STRING, description="the storage type of the service offering. Values are local and shared.")
private String storageType;
- @Parameter(name="tags", type=CommandType.STRING)
+ @Parameter(name="tags", type=CommandType.STRING, description="the tags for this service offering.")
private String tags;
- @Parameter(name="usevirtualnetwork", type=CommandType.BOOLEAN)
+ @Parameter(name="usevirtualnetwork", type=CommandType.BOOLEAN, description="if true, the VM created will use default virtual networking. If false, the VM created will use a direct attached networking model. The default value is true.")
private Boolean useVirtualNetwork;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/CreateSnapshotCmd.java b/server/src/com/cloud/api/commands/CreateSnapshotCmd.java
index 95a2f8c1ca1..256940e5463 100644
--- a/server/src/com/cloud/api/commands/CreateSnapshotCmd.java
+++ b/server/src/com/cloud/api/commands/CreateSnapshotCmd.java
@@ -41,13 +41,13 @@ public class CreateSnapshotCmd extends BaseAsyncCreateCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="The account of the snapshot. The account parameter must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="The domain ID of the snapshot. If used with the account parameter, specifies a domain for the account associated with the disk volume.")
private Long domainId;
- @Parameter(name="volumeid", type=CommandType.LONG, required=true)
+ @Parameter(name="volumeid", type=CommandType.LONG, required=true, description="The ID of the disk volume")
private Long volumeId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/CreateSnapshotPolicyCmd.java b/server/src/com/cloud/api/commands/CreateSnapshotPolicyCmd.java
index db37c5b2658..895d0bb03b4 100644
--- a/server/src/com/cloud/api/commands/CreateSnapshotPolicyCmd.java
+++ b/server/src/com/cloud/api/commands/CreateSnapshotPolicyCmd.java
@@ -37,25 +37,30 @@ public class CreateSnapshotPolicyCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="The account of the snapshot policy. The account parameter must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="The domain ID of the snapshot. If used with the account parameter, specifies a domain for the account associated with the snapshot policy.")
private Long domainId;
- @Parameter(name="intervaltype", type=CommandType.STRING, required=true)
+ @Parameter(name="intervaltype", type=CommandType.STRING, required=true, description="valid values are HOURLY, DAILY, WEEKLY, and MONTHLY")
private String intervalType;
- @Parameter(name="maxsnaps", type=CommandType.INTEGER, required=true)
+ @Parameter(name="maxsnaps", type=CommandType.INTEGER, required=true, description="maximum number of snapshots to retain")
private Integer maxSnaps;
- @Parameter(name="schedule", type=CommandType.STRING, required=true)
+ @Parameter(name="schedule", type=CommandType.STRING, required=true, description="time the snapshot is scheduled to be taken. " +
+ "Format is:" +
+ "* if HOURLY, MM" +
+ "* if DAILY, MM:HH" +
+ "* if WEEKLY, MM:HH:DD (1-7)" +
+ "* if MONTHLY, MM:HH:DD (1-28)")
private String schedule;
- @Parameter(name="timezone", type=CommandType.STRING, required=true)
+ @Parameter(name="timezone", type=CommandType.STRING, required=true, description="Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.")
private String timezone;
- @Parameter(name="volumeid", type=CommandType.LONG, required=true)
+ @Parameter(name="volumeid", type=CommandType.LONG, required=true, description="the ID of the disk volume")
private Long volumeId;
diff --git a/server/src/com/cloud/api/commands/CreateStoragePoolCmd.java b/server/src/com/cloud/api/commands/CreateStoragePoolCmd.java
index a780e6b002b..53102f8546b 100644
--- a/server/src/com/cloud/api/commands/CreateStoragePoolCmd.java
+++ b/server/src/com/cloud/api/commands/CreateStoragePoolCmd.java
@@ -42,25 +42,25 @@ public class CreateStoragePoolCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="clusterid", type=CommandType.LONG)
+ @Parameter(name="clusterid", type=CommandType.LONG, description="the cluster ID for the storage pool")
private Long clusterId;
- @Parameter(name="details", type=CommandType.MAP)
+ @Parameter(name="details", type=CommandType.MAP, description="the details for the storage pool")
private Map details;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="the name for the storage pool")
private String storagePoolName;
- @Parameter(name="podid", type=CommandType.LONG)
+ @Parameter(name="podid", type=CommandType.LONG, description="the Pod ID for the storage pool")
private Long podId;
- @Parameter(name="tags", type=CommandType.STRING)
+ @Parameter(name="tags", type=CommandType.STRING, description="the tags for the storage pool")
private String tags;
- @Parameter(name="url", type=CommandType.STRING, required=true)
+ @Parameter(name="url", type=CommandType.STRING, required=true, description="the URL of the storage pool")
private String url;
- @Parameter(name="zoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="zoneid", type=CommandType.LONG, required=true, description="the Zone ID for the storage pool")
private Long zoneId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/CreateTemplateCmd.java b/server/src/com/cloud/api/commands/CreateTemplateCmd.java
index faf4cf04a7c..c04459750d2 100644
--- a/server/src/com/cloud/api/commands/CreateTemplateCmd.java
+++ b/server/src/com/cloud/api/commands/CreateTemplateCmd.java
@@ -50,31 +50,31 @@ public class CreateTemplateCmd extends BaseAsyncCreateCmd {
@Parameter(name="bits", type=CommandType.INTEGER)
private Integer bits;
- @Parameter(name="displaytext", type=CommandType.STRING, required=true)
+ @Parameter(name="displaytext", type=CommandType.STRING, required=true, description="the display text of the template. This is usually used for display purposes.")
private String displayText;
- @Parameter(name="isfeatured", type=CommandType.BOOLEAN)
+ @Parameter(name="isfeatured", type=CommandType.BOOLEAN, description="true if this template is a featured template, false otherwise")
private Boolean featured;
- @Parameter(name="ispublic", type=CommandType.BOOLEAN)
+ @Parameter(name="ispublic", type=CommandType.BOOLEAN, description="true if this template is a public template, false otherwise")
private Boolean publicTemplate;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="the name of the template")
private String templateName;
- @Parameter(name="ostypeid", type=CommandType.LONG, required=true)
+ @Parameter(name="ostypeid", type=CommandType.LONG, required=true, description=" the ID of the OS Type that best represents the OS of this template.")
private Long osTypeId;
- @Parameter(name="passwordenabled", type=CommandType.BOOLEAN)
+ @Parameter(name="passwordenabled", type=CommandType.BOOLEAN, description="true if the template supports the password reset feature; default is false")
private Boolean passwordEnabled;
- @Parameter(name="requireshvm", type=CommandType.BOOLEAN)
+ @Parameter(name="requireshvm", type=CommandType.BOOLEAN, description="true if the template requres HVM, false otherwise")
private Boolean requiresHvm;
- @Parameter(name="snapshotid", type=CommandType.LONG)
+ @Parameter(name="snapshotid", type=CommandType.LONG, description="the ID of the snapshot the template is being created from")
private Long snapshotId;
- @Parameter(name="volumeid", type=CommandType.LONG)
+ @Parameter(name="volumeid", type=CommandType.LONG, description="the ID of the disk volume the template is being created from")
private Long volumeId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/CreateVMGroupCmd.java b/server/src/com/cloud/api/commands/CreateVMGroupCmd.java
index 37f7648c47f..d03b524b62d 100644
--- a/server/src/com/cloud/api/commands/CreateVMGroupCmd.java
+++ b/server/src/com/cloud/api/commands/CreateVMGroupCmd.java
@@ -38,13 +38,13 @@ public class CreateVMGroupCmd extends BaseCmd{
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="the name of the instance group")
private String groupName;
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="the account of the instance group. The account parameter must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID of account owning the instance group")
private Long domainId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/CreateVlanIpRangeCmd.java b/server/src/com/cloud/api/commands/CreateVlanIpRangeCmd.java
index e1f96e1c9c1..11e84dda13e 100644
--- a/server/src/com/cloud/api/commands/CreateVlanIpRangeCmd.java
+++ b/server/src/com/cloud/api/commands/CreateVlanIpRangeCmd.java
@@ -38,34 +38,34 @@ public class CreateVlanIpRangeCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="account who will own the VLAN. If VLAN is Zone wide, this parameter should be ommited")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="domain ID of the account owning a VLAN")
private Long domainId;
- @Parameter(name="endip", type=CommandType.STRING)
+ @Parameter(name="endip", type=CommandType.STRING, description="the ending IP address in the VLAN IP range")
private String endIp;
- @Parameter(name="forvirtualnetwork", type=CommandType.BOOLEAN)
+ @Parameter(name="forvirtualnetwork", type=CommandType.BOOLEAN, description="true if VLAN is of Virtual type, false if Direct")
private Boolean forVirtualNetwork;
- @Parameter(name="gateway", type=CommandType.STRING, required=true)
+ @Parameter(name="gateway", type=CommandType.STRING, required=true, description="the gateway of the VLAN IP range")
private String gateway;
- @Parameter(name="netmask", type=CommandType.STRING, required=true)
+ @Parameter(name="netmask", type=CommandType.STRING, required=true, description="the netmask of the VLAN IP range")
private String netmask;
- @Parameter(name="podid", type=CommandType.LONG)
+ @Parameter(name="podid", type=CommandType.LONG, description="optional parameter. Have to be specified for Direct Untagged vlan only.")
private Long podId;
- @Parameter(name="startip", type=CommandType.STRING, required=true)
+ @Parameter(name="startip", type=CommandType.STRING, required=true, description="the beginning IP address in the VLAN IP range")
private String startIp;
- @Parameter(name="vlan", type=CommandType.STRING)
+ @Parameter(name="vlan", type=CommandType.STRING, description="the ID or VID of the VLAN. Default is an \"untagged\" VLAN.")
private String vlan;
- @Parameter(name="zoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="zoneid", type=CommandType.LONG, required=true, description=" the Zone ID of the VLAN IP range")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/CreateVolumeCmd.java b/server/src/com/cloud/api/commands/CreateVolumeCmd.java
index 5f93550bbac..1f8d4c3bd79 100644
--- a/server/src/com/cloud/api/commands/CreateVolumeCmd.java
+++ b/server/src/com/cloud/api/commands/CreateVolumeCmd.java
@@ -42,25 +42,25 @@ public class CreateVolumeCmd extends BaseAsyncCreateCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="the account associated with the disk volume. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="diskofferingid", type=CommandType.LONG)
+ @Parameter(name="diskofferingid", type=CommandType.LONG, description="the ID of the disk offering. Either diskOfferingId or snapshotId must be passed in.")
private Long diskOfferingId;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID associated with the disk offering. If used with the account parameter returns the disk volume associated with the account for the specified domain.")
private Long domainId;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="the name of the disk volume")
private String volumeName;
- @Parameter(name="size", type=CommandType.LONG)
+ @Parameter(name="size", type=CommandType.LONG, description="Arbitrary volume size. Mutually exclusive with diskOfferingId")
private Long size;
- @Parameter(name="snapshotid", type=CommandType.LONG)
+ @Parameter(name="snapshotid", type=CommandType.LONG, description="the snapshot ID for the disk volume. Either diskOfferingId or snapshotId must be passed in.")
private Long snapshotId;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="the ID of the availability zone")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/CreateZoneCmd.java b/server/src/com/cloud/api/commands/CreateZoneCmd.java
index 64e559a53f3..37ce1dbecd5 100644
--- a/server/src/com/cloud/api/commands/CreateZoneCmd.java
+++ b/server/src/com/cloud/api/commands/CreateZoneCmd.java
@@ -37,25 +37,26 @@ public class CreateZoneCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="dns1", type=CommandType.STRING, required=true)
+ @Parameter(name="dns1", type=CommandType.STRING, required=true, description="the first DNS for the Zone")
private String dns1;
- @Parameter(name="dns2", type=CommandType.STRING)
+ @Parameter(name="dns2", type=CommandType.STRING, description="the second DNS for the Zone")
private String dns2;
- @Parameter(name="guestcidraddress", type=CommandType.STRING, required=true)
+ @Parameter(name="guestcidraddress", type=CommandType.STRING, required=true, description="the guest CIDR address for the Zone")
private String guestCidrAddress;
- @Parameter(name="internaldns1", type=CommandType.STRING, required=true)
+ @Parameter(name="internaldns1", type=CommandType.STRING, required=true, description="the first internal DNS for the Zone")
private String internalDns1;
- @Parameter(name="internaldns2", type=CommandType.STRING)
+ @Parameter(name="internaldns2", type=CommandType.STRING, description="the second internal DNS for the Zone")
private String internalDns2;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="the name of the Zone")
private String zoneName;
-
- @Parameter(name="vlan", type=CommandType.STRING)
+
+ //FIXME - this parameter is called "vnet" in updateZone. Have to figure out which one is right
+ @Parameter(name="vlan", type=CommandType.STRING, description="the VNET for the Zone")
private String vlan;
diff --git a/server/src/com/cloud/api/commands/DeleteDiskOfferingCmd.java b/server/src/com/cloud/api/commands/DeleteDiskOfferingCmd.java
index 3d6d14a484a..c7c5c8e7206 100644
--- a/server/src/com/cloud/api/commands/DeleteDiskOfferingCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteDiskOfferingCmd.java
@@ -35,7 +35,7 @@ public class DeleteDiskOfferingCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="ID of the disk offering")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeleteDomainCmd.java b/server/src/com/cloud/api/commands/DeleteDomainCmd.java
index 40bc5d3a3c4..fa39e2e4942 100644
--- a/server/src/com/cloud/api/commands/DeleteDomainCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteDomainCmd.java
@@ -21,9 +21,11 @@ import org.apache.log4j.Logger;
import com.cloud.api.ApiDBUtils;
import com.cloud.api.BaseAsyncCmd;
+import com.cloud.api.BaseCmd;
import com.cloud.api.Implementation;
import com.cloud.api.Parameter;
-import com.cloud.api.response.DeleteDomainResponse;
+import com.cloud.api.ServerApiException;
+import com.cloud.api.response.SuccessResponse;
import com.cloud.domain.DomainVO;
import com.cloud.event.EventTypes;
import com.cloud.user.Account;
@@ -86,11 +88,16 @@ public class DeleteDomainCmd extends BaseAsyncCmd {
}
@Override @SuppressWarnings("unchecked")
- public DeleteDomainResponse getResponse() {
- String deleteResult = (String)getResponseObject();
+ public SuccessResponse getResponse() {
+ Boolean responseObject = (Boolean)getResponseObject();
- DeleteDomainResponse response = new DeleteDomainResponse();
- response.setResult(deleteResult);
+ SuccessResponse response = new SuccessResponse();
+
+ if (responseObject != null) {
+ response.setSuccess(responseObject);
+ } else {
+ throw new ServerApiException(BaseCmd.INTERNAL_ERROR, "Failed to delete host");
+ }
response.setResponseName(getName());
return response;
diff --git a/server/src/com/cloud/api/commands/DeleteHostCmd.java b/server/src/com/cloud/api/commands/DeleteHostCmd.java
index 9cd6739d9ec..5f727bbb435 100644
--- a/server/src/com/cloud/api/commands/DeleteHostCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteHostCmd.java
@@ -38,7 +38,7 @@ public class DeleteHostCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the host ID")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeleteIsoCmd.java b/server/src/com/cloud/api/commands/DeleteIsoCmd.java
index b93662281cf..39efa1759b7 100644
--- a/server/src/com/cloud/api/commands/DeleteIsoCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteIsoCmd.java
@@ -40,10 +40,10 @@ public class DeleteIsoCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the ISO file")
private Long id;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="the ID of the zone of the ISO file. If not specified, the ISO will be deleted from all the zones")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/DeleteLoadBalancerRuleCmd.java b/server/src/com/cloud/api/commands/DeleteLoadBalancerRuleCmd.java
index 8ffd3033c1b..12430fca000 100644
--- a/server/src/com/cloud/api/commands/DeleteLoadBalancerRuleCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteLoadBalancerRuleCmd.java
@@ -37,7 +37,7 @@ public class DeleteLoadBalancerRuleCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the load balancer rule")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeleteNetworkGroupCmd.java b/server/src/com/cloud/api/commands/DeleteNetworkGroupCmd.java
index 4a2635b9a3d..a14e0fef420 100644
--- a/server/src/com/cloud/api/commands/DeleteNetworkGroupCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteNetworkGroupCmd.java
@@ -17,13 +17,13 @@ public class DeleteNetworkGroupCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="the account of the network group. Must be specified with domain ID")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID of account owning the network group")
private Long domainId;
- @Parameter(name="name", type=CommandType.STRING, required=true)
+ @Parameter(name="name", type=CommandType.STRING, required=true, description="the network group name")
private String networkGroupName;
diff --git a/server/src/com/cloud/api/commands/DeletePodCmd.java b/server/src/com/cloud/api/commands/DeletePodCmd.java
index e6ecc69cc57..ff854ca8242 100644
--- a/server/src/com/cloud/api/commands/DeletePodCmd.java
+++ b/server/src/com/cloud/api/commands/DeletePodCmd.java
@@ -37,7 +37,7 @@ public class DeletePodCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the Pod")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeletePoolCmd.java b/server/src/com/cloud/api/commands/DeletePoolCmd.java
index d8ffb206752..5d26634565b 100644
--- a/server/src/com/cloud/api/commands/DeletePoolCmd.java
+++ b/server/src/com/cloud/api/commands/DeletePoolCmd.java
@@ -18,7 +18,7 @@ public class DeletePoolCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="Storage pool id")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeletePortForwardingServiceCmd.java b/server/src/com/cloud/api/commands/DeletePortForwardingServiceCmd.java
index b2af8328d1f..c29127fb213 100644
--- a/server/src/com/cloud/api/commands/DeletePortForwardingServiceCmd.java
+++ b/server/src/com/cloud/api/commands/DeletePortForwardingServiceCmd.java
@@ -41,7 +41,7 @@ public class DeletePortForwardingServiceCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="ID of the port forwarding service")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeletePreallocatedLunCmd.java b/server/src/com/cloud/api/commands/DeletePreallocatedLunCmd.java
index e3416cabbcc..885eba60221 100644
--- a/server/src/com/cloud/api/commands/DeletePreallocatedLunCmd.java
+++ b/server/src/com/cloud/api/commands/DeletePreallocatedLunCmd.java
@@ -20,7 +20,7 @@ package com.cloud.api.commands;
import com.cloud.api.BaseCmd;
import com.cloud.api.Implementation;
import com.cloud.api.Parameter;
-import com.cloud.api.response.DeletePreallocatedLunResponse;
+import com.cloud.api.response.SuccessResponse;
@Implementation(method="unregisterPreallocatedLun")
public class DeletePreallocatedLunCmd extends BaseCmd {
@@ -30,7 +30,7 @@ public class DeletePreallocatedLunCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="preallocated LUN ID")
private Long id;
/////////////////////////////////////////////////////
@@ -51,10 +51,10 @@ public class DeletePreallocatedLunCmd extends BaseCmd {
}
@Override @SuppressWarnings("unchecked")
- public DeletePreallocatedLunResponse getResponse() {
+ public SuccessResponse getResponse() {
Boolean result = (Boolean)getResponseObject();
- DeletePreallocatedLunResponse response = new DeletePreallocatedLunResponse();
+ SuccessResponse response = new SuccessResponse();
response.setSuccess(result);
response.setResponseName(getName());
diff --git a/server/src/com/cloud/api/commands/DeleteServiceOfferingCmd.java b/server/src/com/cloud/api/commands/DeleteServiceOfferingCmd.java
index 3316c727076..048f1f9dc11 100644
--- a/server/src/com/cloud/api/commands/DeleteServiceOfferingCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteServiceOfferingCmd.java
@@ -35,7 +35,7 @@ public class DeleteServiceOfferingCmd extends BaseCmd{
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the service offering")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeleteSnapshotCmd.java b/server/src/com/cloud/api/commands/DeleteSnapshotCmd.java
index 511daa32970..71c9f3bd5cf 100644
--- a/server/src/com/cloud/api/commands/DeleteSnapshotCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteSnapshotCmd.java
@@ -45,7 +45,7 @@ public class DeleteSnapshotCmd extends BaseAsyncCmd {
@Parameter(name="domainid", type=CommandType.LONG)
private Long domainId;
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="The ID of the snapshot")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeleteSnapshotPoliciesCmd.java b/server/src/com/cloud/api/commands/DeleteSnapshotPoliciesCmd.java
index cb8a25abfea..7725adba353 100644
--- a/server/src/com/cloud/api/commands/DeleteSnapshotPoliciesCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteSnapshotPoliciesCmd.java
@@ -44,10 +44,10 @@ public class DeleteSnapshotPoliciesCmd extends BaseCmd {
@Parameter(name="domainid", type=CommandType.LONG)
private Long domainId;
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="the Id of the snapshot")
private Long id;
- @Parameter(name="ids", type=CommandType.LIST, collectionType=CommandType.LONG)
+ @Parameter(name="ids", type=CommandType.LIST, collectionType=CommandType.LONG, description="list of snapshots IDs separated by comma")
private List ids;
diff --git a/server/src/com/cloud/api/commands/DeleteTemplateCmd.java b/server/src/com/cloud/api/commands/DeleteTemplateCmd.java
index 5961190c671..56e89dc05ee 100644
--- a/server/src/com/cloud/api/commands/DeleteTemplateCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteTemplateCmd.java
@@ -39,10 +39,10 @@ public class DeleteTemplateCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the template")
private Long id;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="the ID of zone of the template")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/DeleteVMGroupCmd.java b/server/src/com/cloud/api/commands/DeleteVMGroupCmd.java
index a51993e0049..cfea134ff55 100644
--- a/server/src/com/cloud/api/commands/DeleteVMGroupCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteVMGroupCmd.java
@@ -34,7 +34,7 @@ public class DeleteVMGroupCmd extends BaseCmd{
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the instance group")
private Long id;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/DeleteVlanIpRangeCmd.java b/server/src/com/cloud/api/commands/DeleteVlanIpRangeCmd.java
index da020dc7a1a..9c2bfa8340f 100644
--- a/server/src/com/cloud/api/commands/DeleteVlanIpRangeCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteVlanIpRangeCmd.java
@@ -36,7 +36,7 @@ public class DeleteVlanIpRangeCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the id of the VLAN IP range")
private Long id;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/DeleteVolumeCmd.java b/server/src/com/cloud/api/commands/DeleteVolumeCmd.java
index 1c21f3e01c8..45a0b805480 100644
--- a/server/src/com/cloud/api/commands/DeleteVolumeCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteVolumeCmd.java
@@ -35,7 +35,7 @@ public class DeleteVolumeCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="The ID of the disk volume")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeleteZoneCmd.java b/server/src/com/cloud/api/commands/DeleteZoneCmd.java
index 6fc3f3528ea..63ecc2ff667 100644
--- a/server/src/com/cloud/api/commands/DeleteZoneCmd.java
+++ b/server/src/com/cloud/api/commands/DeleteZoneCmd.java
@@ -36,7 +36,7 @@ public class DeleteZoneCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the Zone")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DeployVMCmd.java b/server/src/com/cloud/api/commands/DeployVMCmd.java
index 88251980e14..aaa537e58bb 100644
--- a/server/src/com/cloud/api/commands/DeployVMCmd.java
+++ b/server/src/com/cloud/api/commands/DeployVMCmd.java
@@ -47,40 +47,40 @@ public class DeployVMCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="an optional account for the virtual machine. Must be used with domainId.")
private String accountName;
- @Parameter(name="diskofferingid", type=CommandType.LONG)
+ @Parameter(name="diskofferingid", type=CommandType.LONG, description="the ID of the disk offering for the virtual machine. If the template is of ISO format, the diskOfferingId is for the root disk volume. Otherwise this parameter is used to dinidcate the offering for the data disk volume. If the templateId parameter passed is from a Template object, the diskOfferingId refers to a DATA Disk Volume created. If the templateId parameter passed is from an ISO object, the diskOfferingId refers to a ROOT Disk Volume created.")
private Long diskOfferingId;
- @Parameter(name="displayname", type=CommandType.STRING)
+ @Parameter(name="displayname", type=CommandType.STRING, description="an optional user generated name for the virtual machine")
private String displayName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="an optional domainId for the virtual machine. If the account parameter is used, domainId must also be used.")
private Long domainId;
- @Parameter(name="group", type=CommandType.STRING)
+ @Parameter(name="group", type=CommandType.STRING, description="an optional group for the virtual machine")
private String group;
- @Parameter(name="hypervisor", type=CommandType.STRING)
+ @Parameter(name="hypervisor", type=CommandType.STRING, description="the hypervisor on which to deploy the virtual machine")
private String hypervisor;
- @Parameter(name="networkgrouplist", type=CommandType.LIST, collectionType=CommandType.STRING)
+ @Parameter(name="networkgrouplist", type=CommandType.LIST, collectionType=CommandType.STRING, description="comma separated list of network groups that going to be applied to the virtual machine. Should be passed only when vm is created from service offering with Direct Attach Network support")
private List networkGroupList;
- @Parameter(name="serviceofferingid", type=CommandType.LONG, required=true)
+ @Parameter(name="serviceofferingid", type=CommandType.LONG, required=true, description="the ID of the service offering for the virtual machine")
private Long serviceOfferingId;
- @Parameter(name="size", type=CommandType.LONG)
+ @Parameter(name="size", type=CommandType.LONG, description="the arbitrary size for the DATADISK volume. Mutually exclusive with diskOfferingId")
private Long size;
- @Parameter(name="templateid", type=CommandType.LONG, required=true)
+ @Parameter(name="templateid", type=CommandType.LONG, required=true, description="the ID of the template for the virtual machine")
private Long templateId;
- @Parameter(name="userdata", type=CommandType.STRING)
+ @Parameter(name="userdata", type=CommandType.STRING, description="an optional binary data that can be sent to the virtual machine upon a successful deployment. This binary data must be base64 encoded before adding it to the request. Currently only HTTP GET is supported. Using HTTP GET (via querystring), you can send up to 2KB of data after base64 encoding.")
private String userData;
- @Parameter(name="zoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="zoneid", type=CommandType.LONG, required=true, description="availability zone for the virtual machine")
private Long zoneId;
// unexposed parameter needed for serializing/deserializing the command
diff --git a/server/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java b/server/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java
index c0893e4fd19..1f8039b755b 100644
--- a/server/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java
+++ b/server/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java
@@ -39,7 +39,7 @@ public class DestroyConsoleProxyCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="console proxy ID")
private Long id;
diff --git a/server/src/com/cloud/api/commands/DestroyVMCmd.java b/server/src/com/cloud/api/commands/DestroyVMCmd.java
index 98496b83d77..d6304519b09 100644
--- a/server/src/com/cloud/api/commands/DestroyVMCmd.java
+++ b/server/src/com/cloud/api/commands/DestroyVMCmd.java
@@ -39,7 +39,7 @@ public class DestroyVMCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="The ID of the virtual machine")
private Long id;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/DetachIsoCmd.java b/server/src/com/cloud/api/commands/DetachIsoCmd.java
index 115a5ebce71..26ef17830ff 100644
--- a/server/src/com/cloud/api/commands/DetachIsoCmd.java
+++ b/server/src/com/cloud/api/commands/DetachIsoCmd.java
@@ -39,7 +39,7 @@ public class DetachIsoCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="virtualmachineid", type=CommandType.LONG, required=true)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, required=true, description=" The ID of the virtual machine")
private Long virtualMachineId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/DetachVolumeCmd.java b/server/src/com/cloud/api/commands/DetachVolumeCmd.java
index 8da640716b3..28629966b81 100644
--- a/server/src/com/cloud/api/commands/DetachVolumeCmd.java
+++ b/server/src/com/cloud/api/commands/DetachVolumeCmd.java
@@ -39,13 +39,13 @@ public class DetachVolumeCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="the ID of the disk volume")
private Long id;
- @Parameter(name="deviceid", type=CommandType.LONG)
+ @Parameter(name="deviceid", type=CommandType.LONG, description="the device ID on the virtual machine where volume is detached from")
private Long deviceId;
- @Parameter(name="virtualmachineid", type=CommandType.LONG)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, description="the ID of the virtual machine where the volume is detached from")
private Long virtualMachineId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ExtractIsoCmd.java b/server/src/com/cloud/api/commands/ExtractIsoCmd.java
index e75558fcf42..791a1c45f3d 100755
--- a/server/src/com/cloud/api/commands/ExtractIsoCmd.java
+++ b/server/src/com/cloud/api/commands/ExtractIsoCmd.java
@@ -39,13 +39,14 @@ public class ExtractIsoCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the ISO file")
private Long id;
+ //FIXME - add description
@Parameter(name="url", type=CommandType.STRING, required=true)
private String url;
- @Parameter(name="zoneid", type=CommandType.LONG, required=true)
+ @Parameter(name="zoneid", type=CommandType.LONG, required=true, description="the ID of the zone where the ISO is originally located")
private Long zoneId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ExtractTemplateCmd.java b/server/src/com/cloud/api/commands/ExtractTemplateCmd.java
index 245d9002f18..3bb7aca38ca 100755
--- a/server/src/com/cloud/api/commands/ExtractTemplateCmd.java
+++ b/server/src/com/cloud/api/commands/ExtractTemplateCmd.java
@@ -39,12 +39,15 @@ public class ExtractTemplateCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
+ //FIXME - add description
@Parameter(name="id", type=CommandType.LONG, required=true)
private Long id;
+ //FIXME - add description
@Parameter(name="url", type=CommandType.STRING, required=true)
private String url;
+ //FIXME - add description
@Parameter(name="zoneid", type=CommandType.LONG, required=true)
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/ExtractVolumeCmd.java b/server/src/com/cloud/api/commands/ExtractVolumeCmd.java
index f61e5101d51..c9b6ee2b159 100755
--- a/server/src/com/cloud/api/commands/ExtractVolumeCmd.java
+++ b/server/src/com/cloud/api/commands/ExtractVolumeCmd.java
@@ -38,12 +38,15 @@ public class ExtractVolumeCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
+ //FIXME - add description
@Parameter(name="id", type=CommandType.LONG, required=true)
private Long id;
+ //FIXME - add description
@Parameter(name="url", type=CommandType.STRING, required=true)
private String url;
+ //FIXME - add description
@Parameter(name="zoneid", type=CommandType.LONG, required=true)
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/GetCloudIdentifierCmd.java b/server/src/com/cloud/api/commands/GetCloudIdentifierCmd.java
index 07b8a58e7b5..28f7bea69ba 100644
--- a/server/src/com/cloud/api/commands/GetCloudIdentifierCmd.java
+++ b/server/src/com/cloud/api/commands/GetCloudIdentifierCmd.java
@@ -38,7 +38,7 @@ public class GetCloudIdentifierCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="userid", type=CommandType.LONG, required=true)
+ @Parameter(name="userid", type=CommandType.LONG, required=true, description="the user ID for the cloud identifier")
private Long userid;
diff --git a/server/src/com/cloud/api/commands/ListAccountsCmd.java b/server/src/com/cloud/api/commands/ListAccountsCmd.java
index 16845177b91..58759007322 100644
--- a/server/src/com/cloud/api/commands/ListAccountsCmd.java
+++ b/server/src/com/cloud/api/commands/ListAccountsCmd.java
@@ -49,25 +49,25 @@ public class ListAccountsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING, description="List account for a specified account. Must be used with the domainId parameter.")
+ @Parameter(name="account", type=CommandType.STRING, description="list account for a specified account. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="accounttype", type=CommandType.LONG, description="List accounts by account type. Valid account types are 1 (admin), 2 (domain-admin), and 0 (user).")
+ @Parameter(name="accounttype", type=CommandType.LONG, description="list accounts by account type. Valid account types are 1 (admin), 2 (domain-admin), and 0 (user).")
private Long accountType;
- @Parameter(name="domainid", type=CommandType.LONG, description="List all accounts in specified domain. If used with the account parameter, retrieves account information for specified account in specified domain.")
+ @Parameter(name="domainid", type=CommandType.LONG, description="list all accounts in specified domain. If used with the account parameter, retrieves account information for specified account in specified domain.")
private Long domainId;
- @Parameter(name="id", type=CommandType.LONG, description="List account by account ID")
+ @Parameter(name="id", type=CommandType.LONG, description="list account by account ID")
private Long id;
- @Parameter(name="iscleanuprequired", type=CommandType.BOOLEAN)
+ @Parameter(name="iscleanuprequired", type=CommandType.BOOLEAN, description="list accounts by cleanuprequred attribute (values are true or false)")
private Boolean cleanupRequired;
- @Parameter(name="name", type=CommandType.STRING, description="List account by account name")
+ @Parameter(name="name", type=CommandType.STRING, description="list account by account name")
private String searchName;
- @Parameter(name="state", type=CommandType.STRING, description="List accounts by state. Valid states are enabled, disabled, and locked.")
+ @Parameter(name="state", type=CommandType.STRING, description="list accounts by state. Valid states are enabled, disabled, and locked.")
private String state;
diff --git a/server/src/com/cloud/api/commands/ListAlertsCmd.java b/server/src/com/cloud/api/commands/ListAlertsCmd.java
index 52132e16b89..80674de3ffe 100644
--- a/server/src/com/cloud/api/commands/ListAlertsCmd.java
+++ b/server/src/com/cloud/api/commands/ListAlertsCmd.java
@@ -40,7 +40,7 @@ public class ListAlertsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="type", type=CommandType.STRING)
+ @Parameter(name="type", type=CommandType.STRING, description="list by alert type")
private String type;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListAsyncJobsCmd.java b/server/src/com/cloud/api/commands/ListAsyncJobsCmd.java
index 1d448ad1428..53ebd75a195 100644
--- a/server/src/com/cloud/api/commands/ListAsyncJobsCmd.java
+++ b/server/src/com/cloud/api/commands/ListAsyncJobsCmd.java
@@ -38,13 +38,13 @@ public class ListAsyncJobsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="the account associated with the async job. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID associated with the async job. If used with the account parameter, returns async jobs for the account in the specified domain.")
private Long domainId;
- @Parameter(name="startdate", type=CommandType.TZDATE)
+ @Parameter(name="startdate", type=CommandType.TZDATE, description="the start date of the async job")
private Date startDate;
diff --git a/server/src/com/cloud/api/commands/ListCapacityCmd.java b/server/src/com/cloud/api/commands/ListCapacityCmd.java
index f248cb42429..e2826cbb113 100644
--- a/server/src/com/cloud/api/commands/ListCapacityCmd.java
+++ b/server/src/com/cloud/api/commands/ListCapacityCmd.java
@@ -52,16 +52,16 @@ public class ListCapacityCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="hostid", type=CommandType.LONG)
+ @Parameter(name="hostid", type=CommandType.LONG, description="lists capacity by the Host ID")
private Long hostId;
- @Parameter(name="podid", type=CommandType.LONG)
+ @Parameter(name="podid", type=CommandType.LONG, description="lists capacity by the Pod ID")
private Long podId;
- @Parameter(name="type", type=CommandType.STRING)
+ @Parameter(name="type", type=CommandType.STRING, description="lists capacity by type")
private String type;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="lists capacity by the Zone ID")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/ListCfgsByCmd.java b/server/src/com/cloud/api/commands/ListCfgsByCmd.java
index 7e263512138..472b32f99f3 100644
--- a/server/src/com/cloud/api/commands/ListCfgsByCmd.java
+++ b/server/src/com/cloud/api/commands/ListCfgsByCmd.java
@@ -40,10 +40,10 @@ public class ListCfgsByCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="category", type=CommandType.STRING)
+ @Parameter(name="category", type=CommandType.STRING, description="lists configurations by category")
private String category;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="lists configuration by name")
private String configName;
diff --git a/server/src/com/cloud/api/commands/ListClustersCmd.java b/server/src/com/cloud/api/commands/ListClustersCmd.java
index 06413b91643..eab8d4984b5 100644
--- a/server/src/com/cloud/api/commands/ListClustersCmd.java
+++ b/server/src/com/cloud/api/commands/ListClustersCmd.java
@@ -43,16 +43,16 @@ public class ListClustersCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="lists clusters by the cluster ID")
private Long id;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="lists clusters by the cluster name")
private String clusterName;
- @Parameter(name="podid", type=CommandType.LONG)
+ @Parameter(name="podid", type=CommandType.LONG, description="lists clusters by Pod ID")
private Long podId;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="lists clusters by Zone ID")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/ListDiskOfferingsCmd.java b/server/src/com/cloud/api/commands/ListDiskOfferingsCmd.java
index 069ca1c5ebb..98ac3e1381a 100644
--- a/server/src/com/cloud/api/commands/ListDiskOfferingsCmd.java
+++ b/server/src/com/cloud/api/commands/ListDiskOfferingsCmd.java
@@ -41,13 +41,13 @@ public class ListDiskOfferingsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the ID of the domain of the disk offering. This information is not currently applicable, and should not be used as a parameter.")
private Long domainId;
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="ID of the disk offering")
private Long id;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="name of the disk offering")
private String diskOfferingName;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListEventsCmd.java b/server/src/com/cloud/api/commands/ListEventsCmd.java
index 76bc22b58ed..6d8ee45ab80 100644
--- a/server/src/com/cloud/api/commands/ListEventsCmd.java
+++ b/server/src/com/cloud/api/commands/ListEventsCmd.java
@@ -42,28 +42,28 @@ public class ListEventsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="the account for the event. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID for the event. If used with the account parameter, returns all events for an account in the specified domain ID.")
private Long domainId;
- @Parameter(name="duration", type=CommandType.INTEGER)
+ @Parameter(name="duration", type=CommandType.INTEGER, description="the duration of the event")
private Integer duration;
- @Parameter(name="enddate", type=CommandType.DATE)
+ @Parameter(name="enddate", type=CommandType.DATE, description="the end date range of the list you want to retrieve (use format \"yyyy-MM-dd\")")
private Date endDate;
- @Parameter(name="entrytime", type=CommandType.INTEGER)
+ @Parameter(name="entrytime", type=CommandType.INTEGER, description="the time the event was entered")
private Integer entryTime;
- @Parameter(name="level", type=CommandType.STRING)
+ @Parameter(name="level", type=CommandType.STRING, description="the event level (INFO, WARN, ERROR)")
private String level;
- @Parameter(name="startdate", type=CommandType.DATE)
+ @Parameter(name="startdate", type=CommandType.DATE, description="the start date range of the list you want to retrieve (use format \"yyyy-MM-dd\")")
private Date startDate;
- @Parameter(name="type", type=CommandType.STRING)
+ @Parameter(name="type", type=CommandType.STRING, description="the event type (see event types)")
private String type;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListGuestOsCategoriesCmd.java b/server/src/com/cloud/api/commands/ListGuestOsCategoriesCmd.java
index 3ecee1ac19a..ef8e6b81aef 100644
--- a/server/src/com/cloud/api/commands/ListGuestOsCategoriesCmd.java
+++ b/server/src/com/cloud/api/commands/ListGuestOsCategoriesCmd.java
@@ -40,7 +40,7 @@ public class ListGuestOsCategoriesCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="list Os category by id")
private Long id;
diff --git a/server/src/com/cloud/api/commands/ListGuestOsCmd.java b/server/src/com/cloud/api/commands/ListGuestOsCmd.java
index dc416003238..f913dd5d3d4 100644
--- a/server/src/com/cloud/api/commands/ListGuestOsCmd.java
+++ b/server/src/com/cloud/api/commands/ListGuestOsCmd.java
@@ -40,10 +40,10 @@ public class ListGuestOsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="list by Os type Id")
private Long id;
- @Parameter(name="oscategoryid", type=CommandType.LONG)
+ @Parameter(name="oscategoryid", type=CommandType.LONG, description="list by Os Category id")
private Long osCategoryId;
diff --git a/server/src/com/cloud/api/commands/ListHostsCmd.java b/server/src/com/cloud/api/commands/ListHostsCmd.java
index a454f2c59c4..40afb7c8ac9 100644
--- a/server/src/com/cloud/api/commands/ListHostsCmd.java
+++ b/server/src/com/cloud/api/commands/ListHostsCmd.java
@@ -52,25 +52,25 @@ public class ListHostsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="clusterid", type=CommandType.LONG)
+ @Parameter(name="clusterid", type=CommandType.LONG, description="lists hosts existing in particular cluster")
private Long clusterId;
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="the id of the host")
private Long id;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="the name of the host")
private String hostName;
- @Parameter(name="podid", type=CommandType.LONG)
+ @Parameter(name="podid", type=CommandType.LONG, description="the Pod ID for the host")
private Long podId;
- @Parameter(name="state", type=CommandType.STRING)
+ @Parameter(name="state", type=CommandType.STRING, description="the state of the host")
private String state;
- @Parameter(name="type", type=CommandType.STRING)
+ @Parameter(name="type", type=CommandType.STRING, description="the host type")
private String type;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="the Zone ID for the host")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/ListIsosCmd.java b/server/src/com/cloud/api/commands/ListIsosCmd.java
index 056bd9a3afe..c225cd1cc1f 100644
--- a/server/src/com/cloud/api/commands/ListIsosCmd.java
+++ b/server/src/com/cloud/api/commands/ListIsosCmd.java
@@ -52,34 +52,38 @@ public class ListIsosCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="the account of the ISO file. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="bootable", type=CommandType.BOOLEAN)
+ @Parameter(name="bootable", type=CommandType.BOOLEAN, description="true if the ISO is bootable, false otherwise")
private Boolean bootable;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="lists all available ISO files by ID of a domain. If used with the account parameter, lists all available ISO files for the account in the ID of a domain.")
private Long domainId;
- @Parameter(name="hypervisor", type=CommandType.STRING)
+ @Parameter(name="hypervisor", type=CommandType.STRING, description="the hypervisor for which to restrict the search")
private String hypervisor;
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="list all isos by id")
private Long id;
- @Parameter(name="ispublic", type=CommandType.BOOLEAN)
+ @Parameter(name="ispublic", type=CommandType.BOOLEAN, description="true if the ISO is publicly available to all users, false otherwise.")
private Boolean publicIso;
- @Parameter(name="isready", type=CommandType.BOOLEAN)
+ @Parameter(name="isready", type=CommandType.BOOLEAN, description="true if this ISO is ready to be deployed")
private Boolean ready;
- @Parameter(name="isofilter", type=CommandType.STRING)
+ @Parameter(name="isofilter", type=CommandType.STRING, description="possible values are \"featured\", \"self\", \"self-executable\",\"executable\", and \"community\". " +
+ "* featured—ISOs that are featured and are publicself—ISOs that have been registered/created by the owner. " +
+ "* selfexecutable— ISOs that have been registered/created by the owner that can be used to deploy a new VM. " +
+ "* executable— all ISOs that can be used to deploy a new VM " +
+ "* community—ISOs that are public.")
private String isoFilter = TemplateFilter.selfexecutable.toString();
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="list all isos by name")
private String isoName;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="the ID of the zone")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/ListLoadBalancerRuleInstancesCmd.java b/server/src/com/cloud/api/commands/ListLoadBalancerRuleInstancesCmd.java
index 1a757b0bafb..19b00b1230b 100644
--- a/server/src/com/cloud/api/commands/ListLoadBalancerRuleInstancesCmd.java
+++ b/server/src/com/cloud/api/commands/ListLoadBalancerRuleInstancesCmd.java
@@ -41,10 +41,10 @@ public class ListLoadBalancerRuleInstancesCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="applied", type=CommandType.BOOLEAN)
+ @Parameter(name="applied", type=CommandType.BOOLEAN, description="true if listing all virtual machines currently applied to the load balancer rule; default is true")
private Boolean applied;
- @Parameter(name="id", type=CommandType.LONG, required=true)
+ @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the load balancer rule")
private Long id;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListLoadBalancerRulesCmd.java b/server/src/com/cloud/api/commands/ListLoadBalancerRulesCmd.java
index 9e8c9ecfb35..49bfc32110a 100644
--- a/server/src/com/cloud/api/commands/ListLoadBalancerRulesCmd.java
+++ b/server/src/com/cloud/api/commands/ListLoadBalancerRulesCmd.java
@@ -42,22 +42,22 @@ public class ListLoadBalancerRulesCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="the account of the load balancer rule. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID of the load balancer rule. If used with the account parameter, lists load balancer rules for the account in the specified domain.")
private Long domainId;
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="the ID of the load balancer rule")
private Long id;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="the name of the load balancer rule")
private String loadBalancerRuleName;
- @Parameter(name="publicip", type=CommandType.STRING)
+ @Parameter(name="publicip", type=CommandType.STRING, description="the public IP address of the load balancer rule ")
private String publicIp;
- @Parameter(name="virtualmachineid", type=CommandType.LONG)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, description="the ID of the virtual machine of the load balancer rule")
private Long virtualMachineId;
diff --git a/server/src/com/cloud/api/commands/ListNetworkGroupsCmd.java b/server/src/com/cloud/api/commands/ListNetworkGroupsCmd.java
index 92798076c78..3e489e0e54f 100644
--- a/server/src/com/cloud/api/commands/ListNetworkGroupsCmd.java
+++ b/server/src/com/cloud/api/commands/ListNetworkGroupsCmd.java
@@ -44,16 +44,16 @@ public class ListNetworkGroupsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="lists all available port network groups for the account. Must be used with domainID parameter")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="lists all available network groups for the domain ID. If used with the account parameter, lists all available network groups for the account in the specified domain ID.")
private Long domainId;
- @Parameter(name="networkgroupname", type=CommandType.STRING)
+ @Parameter(name="networkgroupname", type=CommandType.STRING, description="lists network groups by name")
private String networkGroupName;
- @Parameter(name="virtualmachineid", type=CommandType.LONG)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, description="lists network groups by virtual machine id")
private Long virtualMachineId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListPodsByCmd.java b/server/src/com/cloud/api/commands/ListPodsByCmd.java
index b0d945a871f..e0f337c9f7a 100644
--- a/server/src/com/cloud/api/commands/ListPodsByCmd.java
+++ b/server/src/com/cloud/api/commands/ListPodsByCmd.java
@@ -41,13 +41,13 @@ public class ListPodsByCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="list Pods by ID")
private Long id;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="list Pods by name")
private String podName;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="list Pods by Zone ID")
private Long zoneId;
diff --git a/server/src/com/cloud/api/commands/ListPortForwardingRulesCmd.java b/server/src/com/cloud/api/commands/ListPortForwardingRulesCmd.java
index 105955deb34..15d0cfafe81 100644
--- a/server/src/com/cloud/api/commands/ListPortForwardingRulesCmd.java
+++ b/server/src/com/cloud/api/commands/ListPortForwardingRulesCmd.java
@@ -46,7 +46,7 @@ public class ListPortForwardingRulesCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="ipaddress", type=CommandType.STRING, required=true)
+ @Parameter(name="ipaddress", type=CommandType.STRING, required=true, description="the IP address of the port forwarding services")
private String ipAddress;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListPortForwardingServicesByVmCmd.java b/server/src/com/cloud/api/commands/ListPortForwardingServicesByVmCmd.java
index 52527bee8fb..12a39aa4cc5 100644
--- a/server/src/com/cloud/api/commands/ListPortForwardingServicesByVmCmd.java
+++ b/server/src/com/cloud/api/commands/ListPortForwardingServicesByVmCmd.java
@@ -43,16 +43,16 @@ public class ListPortForwardingServicesByVmCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="the account associated with the port forwarding services. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID associated with the port forwarding services. If used with the account parameter, returns a list of all port forwarding services for an account in the specified domain ID.")
private Long domainId;
- @Parameter(name="ipaddress", type=CommandType.STRING)
+ @Parameter(name="ipaddress", type=CommandType.STRING, description="public ip address")
private String ipAddress;
- @Parameter(name="virtualmachineid", type=CommandType.LONG)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, description="ID of the virtual machine")
private Long virtualMachineId;
diff --git a/server/src/com/cloud/api/commands/ListPortForwardingServicesCmd.java b/server/src/com/cloud/api/commands/ListPortForwardingServicesCmd.java
index 6737ba08150..b18c2c31d59 100644
--- a/server/src/com/cloud/api/commands/ListPortForwardingServicesCmd.java
+++ b/server/src/com/cloud/api/commands/ListPortForwardingServicesCmd.java
@@ -42,16 +42,16 @@ public class ListPortForwardingServicesCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="lists all available port forwarding services for the account. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="lists all available port forwarding services for the domain ID. If used with the account parameter, lists all available port forwarding services for the account in the specified domain ID.")
private Long domainId;
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="the ID of the port forwarding service")
private Long id;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="the name of the port forwarding service")
private String portForwardingServiceName;
diff --git a/server/src/com/cloud/api/commands/ListPreallocatedLunsCmd.java b/server/src/com/cloud/api/commands/ListPreallocatedLunsCmd.java
index 0b88b3488e3..a1884a5e3a8 100644
--- a/server/src/com/cloud/api/commands/ListPreallocatedLunsCmd.java
+++ b/server/src/com/cloud/api/commands/ListPreallocatedLunsCmd.java
@@ -40,9 +40,11 @@ public class ListPreallocatedLunsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
+ //FIXME - add description
@Parameter(name="scope", type=CommandType.STRING)
private String scope;
+ //FIXME - add description
@Parameter(name="targetiqn", type=CommandType.STRING)
private String targetIqn;
diff --git a/server/src/com/cloud/api/commands/ListRecurringSnapshotScheduleCmd.java b/server/src/com/cloud/api/commands/ListRecurringSnapshotScheduleCmd.java
index aec1f8bf9a7..3107012855c 100644
--- a/server/src/com/cloud/api/commands/ListRecurringSnapshotScheduleCmd.java
+++ b/server/src/com/cloud/api/commands/ListRecurringSnapshotScheduleCmd.java
@@ -37,10 +37,10 @@ public class ListRecurringSnapshotScheduleCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="snapshotpolicyid", type=CommandType.LONG)
+ @Parameter(name="snapshotpolicyid", type=CommandType.LONG, description="lists recurring snapshots by snapshot policy ID")
private Long snapshotPolicyId;
- @Parameter(name="volumeid", type=CommandType.LONG, required=true)
+ @Parameter(name="volumeid", type=CommandType.LONG, required=true, description="list recurring snapshots by volume ID")
private Long volumeId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListResourceLimitsCmd.java b/server/src/com/cloud/api/commands/ListResourceLimitsCmd.java
index a5f392b3d1d..a71cafd84c2 100644
--- a/server/src/com/cloud/api/commands/ListResourceLimitsCmd.java
+++ b/server/src/com/cloud/api/commands/ListResourceLimitsCmd.java
@@ -43,18 +43,22 @@ public class ListResourceLimitsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="Lists resource limits by account. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="Lists resource limits by domain ID. If used with the account parameter, lists resource limits for a specified account in a specified domain.")
private Long domainId;
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="Lists resource limits by ID.")
private Long id;
- @Parameter(name="resourcetype", type=CommandType.INTEGER)
- private Integer resourceType;
-
+ @Parameter(name="resourcetype", type=CommandType.INTEGER, required=true, description="Type of resource to update. Values are 0, 1, 2, 3, and 4. 0 — Instance. Number of instances a user can create. " +
+ "1 — IP. Number of public IP addresses a user can own. " +
+ "2 — Volume. Number of disk volumes a user can create." +
+ "3 — Snapshot. Number of snapshots a user can create." +
+ "4 — Template. Number of templates that a user can register/create.")
+ private Integer resourceType;
+
/////////////////////////////////////////////////////
/////////////////// Accessors ///////////////////////
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListRoutersCmd.java b/server/src/com/cloud/api/commands/ListRoutersCmd.java
index bf222491539..00b2ce8978c 100644
--- a/server/src/com/cloud/api/commands/ListRoutersCmd.java
+++ b/server/src/com/cloud/api/commands/ListRoutersCmd.java
@@ -43,25 +43,25 @@ public class ListRoutersCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="the name of the account associated with the router. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID associated with the router. If used with the account parameter, lists all routers associated with an account in the specified domain.")
private Long domainId;
- @Parameter(name="hostid", type=CommandType.LONG)
+ @Parameter(name="hostid", type=CommandType.LONG, description="the host ID of the router")
private Long hostId;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="the name of the router")
private String routerName;
- @Parameter(name="podid", type=CommandType.LONG)
+ @Parameter(name="podid", type=CommandType.LONG, description="the Pod ID of the router")
private Long podId;
- @Parameter(name="state", type=CommandType.STRING)
+ @Parameter(name="state", type=CommandType.STRING, description="the state of the router")
private String state;
- @Parameter(name="zoneid", type=CommandType.LONG)
+ @Parameter(name="zoneid", type=CommandType.LONG, description="the Zone ID of the router")
private Long zoneId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListServiceOfferingsCmd.java b/server/src/com/cloud/api/commands/ListServiceOfferingsCmd.java
index 3b6e98323f5..28f54d7db2f 100644
--- a/server/src/com/cloud/api/commands/ListServiceOfferingsCmd.java
+++ b/server/src/com/cloud/api/commands/ListServiceOfferingsCmd.java
@@ -40,13 +40,13 @@ public class ListServiceOfferingsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="ID of the service offering")
private Long id;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="name of the service offering")
private String serviceOfferingName;
- @Parameter(name="virtualmachineid", type=CommandType.LONG)
+ @Parameter(name="virtualmachineid", type=CommandType.LONG, description="the ID of the virtual machine. Pass this in if you want to see the available service offering that a virtual machine can be changed to.")
private Long virtualMachineId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListSnapshotPoliciesCmd.java b/server/src/com/cloud/api/commands/ListSnapshotPoliciesCmd.java
index 9e36be5565c..99a4a18ff87 100644
--- a/server/src/com/cloud/api/commands/ListSnapshotPoliciesCmd.java
+++ b/server/src/com/cloud/api/commands/ListSnapshotPoliciesCmd.java
@@ -41,13 +41,13 @@ public class ListSnapshotPoliciesCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="lists snapshot policies for the specified account. Must be used with domainid parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID. If used with the account parameter, lists snapshot policies for the specified account in this domain.")
private Long domainId;
- @Parameter(name="volumeid", type=CommandType.LONG, required=true)
+ @Parameter(name="volumeid", type=CommandType.LONG, required=true, description="the ID of the disk volume")
private Long volumeId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListSnapshotsCmd.java b/server/src/com/cloud/api/commands/ListSnapshotsCmd.java
index c02bf2fc529..52d00546cca 100644
--- a/server/src/com/cloud/api/commands/ListSnapshotsCmd.java
+++ b/server/src/com/cloud/api/commands/ListSnapshotsCmd.java
@@ -45,25 +45,25 @@ public class ListSnapshotsCmd extends BaseListCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
- @Parameter(name="account", type=CommandType.STRING)
+ @Parameter(name="account", type=CommandType.STRING, description="lists snapshot belongig to the specified account. Must be used with the domainId parameter.")
private String accountName;
- @Parameter(name="domainid", type=CommandType.LONG)
+ @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID. If used with the account parameter, lists snapshots for the specified account in this domain.")
private Long domainId;
- @Parameter(name="id", type=CommandType.LONG)
+ @Parameter(name="id", type=CommandType.LONG, description="lists snapshot by snapshot ID")
private Long id;
- @Parameter(name="intervalType", type=CommandType.STRING)
+ @Parameter(name="intervalType", type=CommandType.STRING, description="valid values are HOURLY, DAILY, WEEKLY, and MONTHLY.")
private String intervalType;
- @Parameter(name="name", type=CommandType.STRING)
+ @Parameter(name="name", type=CommandType.STRING, description="lists snapshot by snapshot name")
private String snapshotName;
- @Parameter(name="snapshottype", type=CommandType.STRING)
+ @Parameter(name="snapshottype", type=CommandType.STRING, description="valid values are MANUAL or RECURRING.")
private String snapshotType;
- @Parameter(name="volumeid", type=CommandType.LONG)
+ @Parameter(name="volumeid", type=CommandType.LONG, description="the ID of the disk volume")
private Long volumeId;
/////////////////////////////////////////////////////
diff --git a/server/src/com/cloud/api/commands/ListStoragePoolsAndHostsCmd.java b/server/src/com/cloud/api/commands/ListStoragePoolsAndHostsCmd.java
deleted file mode 100644
index 998d393fac1..00000000000
--- a/server/src/com/cloud/api/commands/ListStoragePoolsAndHostsCmd.java
+++ /dev/null
@@ -1,276 +0,0 @@
-/**
- * Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
- *
- * This software is licensed under the GNU General Public License v3 or later.
- *
- * It is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-
-package com.cloud.api.commands;
-
-import java.text.DecimalFormat;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-import org.apache.log4j.Logger;
-
-import com.cloud.api.ApiDBUtils;
-import com.cloud.api.BaseListCmd;
-import com.cloud.api.Implementation;
-import com.cloud.api.Parameter;
-import com.cloud.api.ResponseObject;
-import com.cloud.api.response.ApiResponseSerializer;
-import com.cloud.api.response.HostResponse;
-import com.cloud.api.response.ListResponse;
-import com.cloud.api.response.StoragePoolResponse;
-import com.cloud.dc.ClusterVO;
-import com.cloud.host.Host;
-import com.cloud.host.HostStats;
-import com.cloud.host.HostVO;
-import com.cloud.host.Status.Event;
-import com.cloud.offering.ServiceOffering;
-import com.cloud.storage.GuestOSCategoryVO;
-import com.cloud.storage.StoragePoolVO;
-import com.cloud.storage.StorageStats;
-import com.cloud.vm.UserVmVO;
-
-@Implementation(method="")
-public class ListStoragePoolsAndHostsCmd extends BaseListCmd {
- public static final Logger s_logger = Logger.getLogger(ListStoragePoolsAndHostsCmd.class.getName());
-
- private static final String s_name = "liststoragepoolsandhostsresponse";
-
- /////////////////////////////////////////////////////
- //////////////// API parameters /////////////////////
- /////////////////////////////////////////////////////
-
- @Parameter(name="ipaddress", type=CommandType.STRING)
- private String ipAddress;
-
- @Parameter(name="name", type=CommandType.STRING)
- private String storagePoolName;
-
- @Parameter(name="path", type=CommandType.STRING)
- private String path;
-
- @Parameter(name="podid", type=CommandType.LONG)
- private Long podId;
-
- @Parameter(name="state", type=CommandType.STRING)
- private String state;
-
- @Parameter(name="type", type=CommandType.STRING)
- private String type;
-
- @Parameter(name="zoneid", type=CommandType.LONG)
- private Long zoneId;
-
- /////////////////////////////////////////////////////
- /////////////////// Accessors ///////////////////////
- /////////////////////////////////////////////////////
-
- public String getIpAddress() {
- return ipAddress;
- }
-
- public String getStoragePoolName() {
- return storagePoolName;
- }
-
- public String getPath() {
- return path;
- }
-
- public Long getPodId() {
- return podId;
- }
-
- public String getState() {
- return state;
- }
-
- public String getType() {
- return type;
- }
-
- public Long getZoneId() {
- return zoneId;
- }
-
- /////////////////////////////////////////////////////
- /////////////// API Implementation///////////////////
- /////////////////////////////////////////////////////
-
- @Override
- public String getName() {
- return s_name;
- }
-
- @Override @SuppressWarnings("unchecked")
- public ResponseObject getResponse() {
- List