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
@@ -69,6 +73,7 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
69
73
@Parameter(name=ApiConstants.SERVICE_OFFERING_ID, type=CommandType.LONG, required=true, description="the ID of the service offering for the virtual machine")
70
74
privateLongserviceOfferingId;
71
75
76
+
@ACL(resourceType=VirtualMachineTemplate.class)
72
77
@IdentityMapper(entityTableName="vm_template")
73
78
@Parameter(name=ApiConstants.TEMPLATE_ID, type=CommandType.LONG, required=true, description="the ID of the template for the virtual machine")
74
79
privateLongtemplateId;
@@ -88,6 +93,7 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
88
93
privateLongdomainId;
89
94
90
95
//Network information
96
+
@ACL(resourceType=Network.class)
91
97
@IdentityMapper(entityTableName="networks")
92
98
@Parameter(name=ApiConstants.NETWORK_IDS, type=CommandType.LIST, collectionType=CommandType.LONG, description="list of network ids used by virtual machine. Can't be specified with ipToNetworkList parameter")
93
99
privateList<Long> networkIds;
@@ -112,14 +118,17 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
112
118
@Parameter(name=ApiConstants.SSH_KEYPAIR, type=CommandType.STRING, description="name of the ssh key pair used to login to the virtual machine")
113
119
privateStringsshKeyPairName;
114
120
121
+
//@ACL(resourceType=Host.class)
115
122
@IdentityMapper(entityTableName="host")
116
123
@Parameter(name=ApiConstants.HOST_ID, type=CommandType.LONG, description="destination Host ID to deploy the VM to - parameter available for root admin only")
117
124
privateLonghostId;
118
125
126
+
//@ACL(resourceType=SecurityGroup.class)
119
127
@IdentityMapper(entityTableName="security_group")
120
128
@Parameter(name=ApiConstants.SECURITY_GROUP_IDS, type=CommandType.LIST, collectionType=CommandType.LONG, description="comma separated list of security groups id that going to be applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support. Mutually exclusive with securitygroupnames parameter")
121
129
privateList<Long> securityGroupIdList;
122
130
131
+
//@ACL(resourceType=SecurityGroup.class)
123
132
@Parameter(name=ApiConstants.SECURITY_GROUP_NAMES, type=CommandType.LIST, collectionType=CommandType.STRING, description="comma separated list of security groups names that going to be applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support. Mutually exclusive with securitygroupids parameter")
0 commit comments