Skip to content

Commit 8ce1c98

Browse files
João JandreDaan Hoogland
authored andcommitted
fix restore volume from backup and attach
1 parent 9db6309 commit 8ce1c98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/backup/RestoreVolumeFromBackupAndAttachToVMCmd.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import javax.inject.Inject;
2121

2222
import org.apache.cloudstack.acl.RoleType;
23+
import org.apache.cloudstack.api.ACL;
2324
import org.apache.cloudstack.api.APICommand;
2425
import org.apache.cloudstack.api.ApiConstants;
2526
import org.apache.cloudstack.api.ApiErrorCode;
@@ -53,19 +54,22 @@ public class RestoreVolumeFromBackupAndAttachToVMCmd extends BaseAsyncCmd {
5354
//////////////// API parameters /////////////////////
5455
/////////////////////////////////////////////////////
5556

57+
@ACL
5658
@Parameter(name = ApiConstants.BACKUP_ID,
5759
type = CommandType.UUID,
5860
entityType = BackupResponse.class,
5961
required = true,
6062
description = "ID of the VM backup")
6163
private Long backupId;
6264

65+
@ACL
6366
@Parameter(name = ApiConstants.VOLUME_ID,
6467
type = CommandType.STRING,
6568
required = true,
6669
description = "ID of the volume backed up")
6770
private String volumeUuid;
6871

72+
@ACL
6973
@Parameter(name = ApiConstants.VIRTUAL_MACHINE_ID,
7074
type = CommandType.UUID,
7175
entityType = UserVmResponse.class,

0 commit comments

Comments
 (0)