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
Copy file name to clipboardExpand all lines: api/src/main/java/org/apache/cloudstack/api/command/user/volume/UpdateVolumeCmd.java
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -52,30 +52,33 @@ public class UpdateVolumeCmd extends BaseAsyncCustomIdCmd implements UserCmd {
52
52
@Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType=VolumeResponse.class, description="the ID of the disk volume")
53
53
privateLongid;
54
54
55
-
@Parameter(name = ApiConstants.PATH, type = CommandType.STRING, description = "The path of the volume")
55
+
@Parameter(name = ApiConstants.PATH, type = CommandType.STRING, description = "The path of the volume", authorized = {RoleType.Admin})
56
56
privateStringpath;
57
57
58
58
@Parameter(name = ApiConstants.CHAIN_INFO,
59
59
type = CommandType.STRING,
60
60
description = "The chain info of the volume",
61
-
since = "4.4")
61
+
since = "4.4", authorized = {RoleType.Admin})
62
62
privateStringchainInfo;
63
63
64
64
@Parameter(name = ApiConstants.STORAGE_ID,
65
65
type = CommandType.UUID,
66
66
entityType = StoragePoolResponse.class,
67
67
description = "Destination storage pool UUID for the volume",
68
-
since = "4.3")
68
+
since = "4.3", authorized = {RoleType.Admin})
69
69
privateLongstorageId;
70
70
71
-
@Parameter(name = ApiConstants.STATE, type = CommandType.STRING, description = "The state of the volume", since = "4.3")
71
+
@Parameter(name = ApiConstants.STATE, type = CommandType.STRING, description = "The state of the volume", since = "4.3", authorized = {RoleType.Admin})
72
72
privateStringstate;
73
73
74
74
@Parameter(name = ApiConstants.DISPLAY_VOLUME,
75
75
type = CommandType.BOOLEAN,
76
76
description = "an optional field, whether to the display the volume to the end user or not.", authorized = {RoleType.Admin})
77
77
privateBooleandisplayVolume;
78
78
79
+
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "new name of the volume", since = "4.16")
0 commit comments