ravening commented on a change in pull request #4584:
URL: https://github.com/apache/cloudstack/pull/4584#discussion_r560139399
##########
File path:
api/src/main/java/org/apache/cloudstack/api/command/user/volume/UpdateVolumeCmd.java
##########
@@ -52,30 +52,33 @@
@Parameter(name=ApiConstants.ID, type=CommandType.UUID,
entityType=VolumeResponse.class, description="the ID of the disk volume")
private Long id;
- @Parameter(name = ApiConstants.PATH, type = CommandType.STRING,
description = "The path of the volume")
+ @Parameter(name = ApiConstants.PATH, type = CommandType.STRING,
description = "The path of the volume", authorized = {RoleType.Admin})
private String path;
@Parameter(name = ApiConstants.CHAIN_INFO,
type = CommandType.STRING,
description = "The chain info of the volume",
- since = "4.4")
+ since = "4.4", authorized = {RoleType.Admin})
private String chainInfo;
@Parameter(name = ApiConstants.STORAGE_ID,
type = CommandType.UUID,
entityType = StoragePoolResponse.class,
description = "Destination storage pool UUID for the volume",
- since = "4.3")
+ since = "4.3", authorized = {RoleType.Admin})
private Long storageId;
- @Parameter(name = ApiConstants.STATE, type = CommandType.STRING,
description = "The state of the volume", since = "4.3")
+ @Parameter(name = ApiConstants.STATE, type = CommandType.STRING,
description = "The state of the volume", since = "4.3", authorized =
{RoleType.Admin})
private String state;
@Parameter(name = ApiConstants.DISPLAY_VOLUME,
type = CommandType.BOOLEAN,
description = "an optional field, whether to the display the volume to the
end user or not.", authorized = {RoleType.Admin})
private Boolean displayVolume;
+ @Parameter(name = ApiConstants.NAME, type = CommandType.STRING,
description = "new name of the volume", since = "4.16")
Review comment:
Other parameters have sensitive info whereas the "name" parameter is not
critical.
So regular users can change only name but not other important values
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]