Set length for parameters that expect a list of domain ids. (#5763)

Currently, when updating a service offering there is a limitation of the number of domains the offering can be updated.

Multiple domain ids lead to the following API error:
Error: (HTTP 431, error code 9999) Unable to execute API command updateserviceoffering due to invalid value. Value greater than max allowed length 255 for param: domainIds"
This commit is contained in:
Gabriel Beims Bräscher 2021-12-15 05:08:15 -03:00 committed by GitHub
parent d49f67ceb9
commit 8ace2722e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -86,7 +86,8 @@ public class UpdateNetworkOfferingCmd extends BaseCmd {
@Parameter(name = ApiConstants.ZONE_ID, @Parameter(name = ApiConstants.ZONE_ID,
type = CommandType.STRING, type = CommandType.STRING,
description = "the ID of the containing zone(s) as comma separated string, all for all zones offerings", description = "the ID of the containing zone(s) as comma separated string, all for all zones offerings",
since = "4.13") since = "4.13",
length = 4096)
private String zoneIds; private String zoneIds;
///////////////////////////////////////////////////// /////////////////////////////////////////////////////

View File

@ -69,7 +69,8 @@ public class UpdateDiskOfferingCmd extends BaseCmd {
@Parameter(name = ApiConstants.DOMAIN_ID, @Parameter(name = ApiConstants.DOMAIN_ID,
type = CommandType.STRING, type = CommandType.STRING,
description = "the ID of the containing domain(s) as comma separated string, public for public offerings", description = "the ID of the containing domain(s) as comma separated string, public for public offerings",
since = "4.13") since = "4.13",
length = 4096)
private String domainIds; private String domainIds;
@Parameter(name = ApiConstants.ZONE_ID, @Parameter(name = ApiConstants.ZONE_ID,

View File

@ -64,7 +64,8 @@ public class UpdateServiceOfferingCmd extends BaseCmd {
@Parameter(name = ApiConstants.DOMAIN_ID, @Parameter(name = ApiConstants.DOMAIN_ID,
type = CommandType.STRING, type = CommandType.STRING,
description = "the ID of the containing domain(s) as comma separated string, public for public offerings") description = "the ID of the containing domain(s) as comma separated string, public for public offerings",
length = 4096)
private String domainIds; private String domainIds;
@Parameter(name = ApiConstants.ZONE_ID, @Parameter(name = ApiConstants.ZONE_ID,

View File

@ -60,7 +60,8 @@ public class UpdateVPCOfferingCmd extends BaseAsyncCmd {
@Parameter(name = ApiConstants.DOMAIN_ID, @Parameter(name = ApiConstants.DOMAIN_ID,
type = CommandType.STRING, type = CommandType.STRING,
description = "the ID of the containing domain(s) as comma separated string, public for public offerings") description = "the ID of the containing domain(s) as comma separated string, public for public offerings",
length = 4096)
private String domainIds; private String domainIds;
@Parameter(name = ApiConstants.ZONE_ID, @Parameter(name = ApiConstants.ZONE_ID,