You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3f967fb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: api/src/main/java/org/apache/cloudstack/api/AbstractGetUploadParamsCmd.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,12 @@ public abstract class AbstractGetUploadParamsCmd extends BaseCmd {
32
32
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = true, description = "The name of the Volume/Template/ISO")
33
33
privateStringname;
34
34
35
-
@Parameter(name = ApiConstants.FORMAT, type = CommandType.STRING, required = true, description = "The format for the Volume/Template/ISO. Possible values include QCOW2, OVA, "
36
-
+ "and VHD.")
35
+
@Parameter(name = ApiConstants.FORMAT,
36
+
type = CommandType.STRING,
37
+
allowedValues = {"QCOW2", "OVA", "VHD"},
38
+
required = true,
39
+
description = "The format for the Volume/Template/ISO. Possible values include QCOW2, OVA, "
40
+
+ "and VHD.")
37
41
privateStringformat;
38
42
39
43
@Parameter(name = ApiConstants.ZONE_ID, type = CommandType.UUID, entityType = ZoneResponse.class, required = true, description = "The ID of the zone the Volume/Template/ISO is "
Copy file name to clipboardExpand all lines: api/src/main/java/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,9 @@ public abstract class BaseUpdateTemplateOrIsoCmd extends BaseCmd {
83
83
description = "Optional boolean field, which indicates if details should be cleaned up or not (if set to true, details removed for this resource, details field ignored; if false or not set, no action)")
84
84
privateBooleancleanupDetails;
85
85
86
-
@Parameter(name = ApiConstants.ARCH, type = CommandType.STRING,
86
+
@Parameter(name = ApiConstants.ARCH,
87
+
type = CommandType.STRING,
88
+
allowedValues = {"x86_64", "aarch64", "s390x"},
87
89
description = "the CPU arch of the template/ISO. Valid options are: x86_64, aarch64, s390x",
Copy file name to clipboardExpand all lines: api/src/main/java/org/apache/cloudstack/api/command/admin/acl/ListRolesCmd.java
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -49,10 +49,16 @@ public class ListRolesCmd extends BaseListCmd {
49
49
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "List role by role name.")
50
50
privateStringroleName;
51
51
52
-
@Parameter(name = ApiConstants.TYPE, type = CommandType.STRING, description = "List role by role type, valid options are: Admin, ResourceAdmin, DomainAdmin, User.")
@Parameter(name = ApiConstants.TYPE, type = CommandType.STRING, description = "The type of the role, valid options are: Admin, ResourceAdmin, DomainAdmin, User")
description = "Type of virtual switch used for guest traffic in the cluster. Allowed values are, vmwaresvs (for VMware standard vSwitch) and vmwaredvs (for VMware distributed vSwitch)")
94
+
type = CommandType.STRING,
95
+
allowedValues = {"vmwaresvs", "vmwaredvs"},
96
+
required = false,
97
+
description = "Type of virtual switch used for guest traffic in the cluster. Allowed values are, vmwaresvs (for VMware standard vSwitch) and vmwaredvs (for VMware distributed vSwitch)")
description = "Type of virtual switch used for public traffic in the cluster. Allowed values are, vmwaresvs (for VMware standard vSwitch) and vmwaredvs (for VMware distributed vSwitch)")
101
+
type = CommandType.STRING,
102
+
allowedValues = {"vmwaresvs", "vmwaredvs"},
103
+
required = false,
104
+
description = "Type of virtual switch used for public traffic in the cluster. Allowed values are, vmwaresvs (for VMware standard vSwitch) and vmwaredvs (for VMware distributed vSwitch)")
Copy file name to clipboardExpand all lines: api/src/main/java/org/apache/cloudstack/api/command/admin/host/UpdateHostCmd.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,9 @@ public class UpdateHostCmd extends BaseCmd {
53
53
privateLongosCategoryId;
54
54
55
55
@Parameter(name = ApiConstants.ALLOCATION_STATE,
56
-
type = CommandType.STRING,
57
-
description = "Change resource state of host, valid values are [Enable, Disable]. Operation may failed if host in states not allowing Enable/Disable")
56
+
type = CommandType.STRING,
57
+
allowedValues = {"Enable", "Disable"},
58
+
description = "Change resource state of host, valid values are [Enable, Disable]. Operation may failed if host in states not allowing Enable/Disable")
58
59
privateStringallocationState;
59
60
60
61
@Parameter(name = ApiConstants.HOST_TAGS, type = CommandType.LIST, collectionType = CommandType.STRING, description = "List of tags to be added to the host")
0 commit comments