Fixed createPFRule API command - use UUID for vmInstanceId

This commit is contained in:
Alena Prokharchyk 2011-11-23 10:34:58 -08:00
parent e034e3d7a3
commit 5963f3252b

View File

@ -70,6 +70,7 @@ public class CreatePortForwardingRuleCmd extends BaseAsyncCreateCmd implements P
@Parameter(name = ApiConstants.PUBLIC_END_PORT, type = CommandType.INTEGER, required = false, description = "the ending port of port forwarding rule's private port range")
private Integer publicEndPort;
@IdentityMapper(entityTableName="vm_instance")
@Parameter(name = ApiConstants.VIRTUAL_MACHINE_ID, type = CommandType.LONG, required = true, description = "the ID of the virtual machine for the port forwarding rule")
private Long virtualMachineId;