mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
d49f67ceb9
commit
8ace2722e7
@ -86,7 +86,8 @@ public class UpdateNetworkOfferingCmd extends BaseCmd {
|
||||
@Parameter(name = ApiConstants.ZONE_ID,
|
||||
type = CommandType.STRING,
|
||||
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;
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
|
||||
@ -69,7 +69,8 @@ public class UpdateDiskOfferingCmd extends BaseCmd {
|
||||
@Parameter(name = ApiConstants.DOMAIN_ID,
|
||||
type = CommandType.STRING,
|
||||
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;
|
||||
|
||||
@Parameter(name = ApiConstants.ZONE_ID,
|
||||
|
||||
@ -64,7 +64,8 @@ public class UpdateServiceOfferingCmd extends BaseCmd {
|
||||
|
||||
@Parameter(name = ApiConstants.DOMAIN_ID,
|
||||
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;
|
||||
|
||||
@Parameter(name = ApiConstants.ZONE_ID,
|
||||
|
||||
@ -60,7 +60,8 @@ public class UpdateVPCOfferingCmd extends BaseAsyncCmd {
|
||||
|
||||
@Parameter(name = ApiConstants.DOMAIN_ID,
|
||||
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;
|
||||
|
||||
@Parameter(name = ApiConstants.ZONE_ID,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user