Skip to content

Commit bded5e9

Browse files
committed
API: update url field max length
1 parent d0453fc commit bded5e9

9 files changed

Lines changed: 9 additions & 6 deletions

File tree

api/src/org/apache/cloudstack/api/command/admin/storage/AddImageStoreCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class AddImageStoreCmd extends BaseCmd {
4949
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "the name for the image store")
5050
private String name;
5151

52-
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, description = "the URL for the image store")
52+
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, length = 2048, description = "the URL for the image store")
5353
private String url;
5454

5555
@Parameter(name = ApiConstants.ZONE_ID, type = CommandType.UUID, entityType = ZoneResponse.class, description = "the Zone ID for the image store")

api/src/org/apache/cloudstack/api/command/admin/storage/CreateSecondaryStagingStoreCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class CreateSecondaryStagingStoreCmd extends BaseCmd {
4545
//////////////// API parameters /////////////////////
4646
/////////////////////////////////////////////////////
4747

48-
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = true, description = "the URL for the staging store")
48+
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = true, length = 2048, description = "the URL for the staging store")
4949
private String url;
5050

5151
@Parameter(name = ApiConstants.ZONE_ID, type = CommandType.UUID, entityType = ZoneResponse.class, description = "the Zone ID for the staging store")

api/src/org/apache/cloudstack/api/command/user/iso/ExtractIsoCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class ExtractIsoCmd extends BaseAsyncCmd {
4949
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = TemplateResponse.class, required = true, description = "the ID of the ISO file")
5050
private Long id;
5151

52-
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = false, description = "the URL to which the ISO would be extracted")
52+
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = false, length = 2048, description = "the URL to which the ISO would be extracted")
5353
private String url;
5454

5555
@Parameter(name = ApiConstants.ZONE_ID,

api/src/org/apache/cloudstack/api/command/user/iso/RegisterIsoCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class RegisterIsoCmd extends BaseCmd {
7878
description = "the ID of the OS type that best represents the OS of this ISO. If the ISO is bootable this parameter needs to be passed")
7979
private Long osTypeId;
8080

81-
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = true, description = "the URL to where the ISO is currently being hosted")
81+
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = true, length = 2048, description = "the URL to where the ISO is currently being hosted")
8282
private String url;
8383

8484
@Parameter(name=ApiConstants.ZONE_ID, type=CommandType.UUID, entityType = ZoneResponse.class,

api/src/org/apache/cloudstack/api/command/user/template/CreateTemplateCmd.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public class CreateTemplateCmd extends BaseAsyncCreateCmd {
113113

114114
@Parameter(name = ApiConstants.URL,
115115
type = CommandType.STRING,
116+
length = 2048,
116117
description = "Optional, only for baremetal hypervisor. The directory name where template stored on CIFS server")
117118
private String url;
118119

api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class ExtractTemplateCmd extends BaseAsyncCmd {
4949
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = TemplateResponse.class, required = true, description = "the ID of the template")
5050
private Long id;
5151

52-
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = false, description = "the url to which the ISO would be extracted")
52+
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = false, length = 2048, description = "the url to which the ISO would be extracted")
5353
private String url;
5454

5555
@Parameter(name = ApiConstants.ZONE_ID,

api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public class RegisterTemplateCmd extends BaseCmd {
104104
@Parameter(name = ApiConstants.URL,
105105
type = CommandType.STRING,
106106
required = true,
107+
length = 2048,
107108
description = "the URL of where the template is hosted. Possible URL include http:// and https://")
108109
private String url;
109110

api/src/org/apache/cloudstack/api/command/user/volume/ExtractVolumeCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class ExtractVolumeCmd extends BaseAsyncCmd {
5454
required=true, description="the ID of the volume")
5555
private Long id;
5656

57-
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = false, description = "the url to which the volume would be extracted")
57+
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = false, length = 2048, description = "the url to which the volume would be extracted")
5858
private String url;
5959

6060
@Parameter(name = ApiConstants.ZONE_ID,

api/src/org/apache/cloudstack/api/command/user/volume/UploadVolumeCmd.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public class UploadVolumeCmd extends BaseAsyncCmd {
6262
@Parameter(name = ApiConstants.URL,
6363
type = CommandType.STRING,
6464
required = true,
65+
length = 2048,
6566
description = "the URL of where the volume is hosted. Possible URL include http:// and https://")
6667
private String url;
6768

0 commit comments

Comments
 (0)