You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ab...@apache.org on 2026/08/07 04:40:55 UTC
(cloudstack-go) branch main updated: Add support for 4.22.1.0 release (#143)
This is an automated email from the ASF dual-hosted git repository.
abh1sar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git
The following commit(s) were added to refs/heads/main by this push:
new 35cbeda Add support for 4.22.1.0 release (#143)
35cbeda is described below
commit 35cbeda03077a3a7bcb1aa5b4ea0662770145e25
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Fri Aug 7 00:40:50 2026 -0400
Add support for 4.22.1.0 release (#143)
* Add support for 4.22.1.0 release
* Add support for managing guest OS category - create, delete, update (#144)
---------
Co-authored-by: Pearl Dsilva <pe...@gmail.com>
* Adds support to upload k8s ISO from local (#147)
* update nested response
---------
Co-authored-by: Pearl Dsilva <pe...@gmail.com>
* Support the returned response for getUploadParamsForKubernetesSupportedVersion
* Add support for managing Storage access groups (#146)
Co-authored-by: Pearl Dsilva <pe...@gmail.com>
---------
Co-authored-by: Pearl Dsilva <pe...@gmail.com>
---
cloudstack/APIDiscoveryService.go | 2 +-
cloudstack/AccountService.go | 12 +-
cloudstack/AddressService.go | 10 +-
cloudstack/AffinityGroupService.go | 3 +-
cloudstack/AnnotationService.go | 6 +-
cloudstack/AsyncjobService.go | 98 +-
cloudstack/AutoScaleService.go | 36 +-
cloudstack/BackupService.go | 56 +-
cloudstack/BaremetalService.go | 16 +-
cloudstack/BrocadeVCSService.go | 2 +-
cloudstack/CertificateService.go | 4 +-
cloudstack/ConfigurationService.go | 1 +
cloudstack/ConsoleEndpointService.go | 2 +-
cloudstack/DiagnosticsService.go | 4 +-
cloudstack/ExtensionService.go | 222 +-
cloudstack/FirewallService.go | 6 +-
cloudstack/GuestOSService.go | 370 +
cloudstack/GuestOSService_mock.go | 87 +
cloudstack/HostService.go | 83 +-
cloudstack/ISOService.go | 12 +-
cloudstack/ImageStoreService.go | 2 +-
cloudstack/InfrastructureUsageService.go | 2 +-
cloudstack/InternalLBService.go | 6 +-
cloudstack/KubernetesService.go | 304 +
cloudstack/KubernetesService_mock.go | 29 +
cloudstack/LDAPService.go | 2 +-
cloudstack/LoadBalancerService.go | 10 +-
cloudstack/ManagementService.go | 48 +
cloudstack/NetscalerService.go | 8 +-
cloudstack/NetworkACLService.go | 10 +-
cloudstack/NetworkService.go | 20 +-
cloudstack/NicService.go | 5 +-
cloudstack/PoolService.go | 393 +
cloudstack/PoolService_mock.go | 79 +
cloudstack/PortableIPService.go | 6 +-
cloudstack/ProjectService.go | 8 +-
cloudstack/QuotaService.go | 4 +-
cloudstack/ResourceIconService.go | 2 +-
cloudstack/ResourcemetadataService.go | 2 +-
cloudstack/SSHService.go | 3 +-
cloudstack/SnapshotService.go | 39 +-
cloudstack/SystemVMService.go | 8 +-
cloudstack/TemplateService.go | 26 +-
cloudstack/UCSService.go | 2 +-
cloudstack/UserService.go | 2 +-
cloudstack/VMGroupService.go | 8 +-
cloudstack/VPCService.go | 2 +-
cloudstack/VPNService.go | 40 +-
cloudstack/VirtualMachineService.go | 208 +-
cloudstack/VirtualNetworkFunctionsService.go | 2 +
cloudstack/VolumeService.go | 34 +-
cloudstack/ZoneService.go | 38 +-
cloudstack/cloudstack.go | 4 +-
generate/generate.go | 72 +-
generate/layout.go | 6 +
generate/listApis.json | 169986 ++++++++++++------------
generate/requiredParams.go | 3 +
test/GuestOSService_test.go | 42 +
test/KubernetesService_test.go | 15 +
test/PoolService_test.go | 24 +
test/testdata/KubernetesService.json | 11 +
61 files changed, 87168 insertions(+), 85379 deletions(-)
diff --git a/cloudstack/APIDiscoveryService.go b/cloudstack/APIDiscoveryService.go
index a70f1cd..f6fc3e5 100644
--- a/cloudstack/APIDiscoveryService.go
+++ b/cloudstack/APIDiscoveryService.go
@@ -73,7 +73,7 @@ func (s *APIDiscoveryService) NewListApisParams() *ListApisParams {
return p
}
-// lists all available apis on the server, provided by the Api Discovery plugin
+// Lists all available APIs on the server, provided by the API Discovery plugin
func (s *APIDiscoveryService) ListApis(p *ListApisParams) (*ListApisResponse, error) {
resp, err := s.cs.newRequest("listApis", p.toURLValues())
if err != nil {
diff --git a/cloudstack/AccountService.go b/cloudstack/AccountService.go
index be33678..5170559 100644
--- a/cloudstack/AccountService.go
+++ b/cloudstack/AccountService.go
@@ -594,7 +594,7 @@ func (s *AccountService) NewDeleteAccountParams(id string) *DeleteAccountParams
return p
}
-// Deletes a account, and all users associated with this account
+// Deletes an Account and all Users associated with this Account
func (s *AccountService) DeleteAccount(p *DeleteAccountParams) (*DeleteAccountResponse, error) {
resp, err := s.cs.newPostRequest("deleteAccount", p.toURLValues())
if err != nil {
@@ -1367,7 +1367,7 @@ func (s *AccountService) NewLinkAccountToLdapParams(account string, domainid str
return p
}
-// link a cloudstack account to a group or OU in ldap
+// Link a cloudstack account to a group or OU in ldap
func (s *AccountService) LinkAccountToLdap(p *LinkAccountToLdapParams) (*LinkAccountToLdapResponse, error) {
resp, err := s.cs.newPostRequest("linkAccountToLdap", p.toURLValues())
if err != nil {
@@ -1864,7 +1864,7 @@ func (s *AccountService) GetAccountByID(id string, opts ...OptionFunc) (*Account
return nil, l.Count, fmt.Errorf("There is more then one result for Account UUID: %s!", id)
}
-// Lists accounts and provides detailed account information for listed accounts
+// Lists Accounts and provides detailed Account information for listed Accounts
func (s *AccountService) ListAccounts(p *ListAccountsParams) (*ListAccountsResponse, error) {
resp, err := s.cs.newRequest("listAccounts", p.toURLValues())
if err != nil {
@@ -2245,7 +2245,7 @@ func (s *AccountService) GetProjectAccountID(keyword string, projectid string, o
return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", keyword, l)
}
-// Lists project's accounts
+// Lists project's Accounts
func (s *AccountService) ListProjectAccounts(p *ListProjectAccountsParams) (*ListProjectAccountsResponse, error) {
resp, err := s.cs.newRequest("listProjectAccounts", p.toURLValues())
if err != nil {
@@ -2416,7 +2416,7 @@ func (s *AccountService) NewLockAccountParams(account string, domainid string) *
return p
}
-// This deprecated function used to locks an account. Look for the API DisableAccount instead
+// This deprecated function used to lock an Account. Look for the API DisableAccount instead
func (s *AccountService) LockAccount(p *LockAccountParams) (*LockAccountResponse, error) {
resp, err := s.cs.newPostRequest("lockAccount", p.toURLValues())
if err != nil {
@@ -2994,7 +2994,7 @@ func (s *AccountService) NewUpdateAccountParams() *UpdateAccountParams {
return p
}
-// Updates account information for the authenticated user
+// Updates Account information for the authenticated user
func (s *AccountService) UpdateAccount(p *UpdateAccountParams) (*UpdateAccountResponse, error) {
resp, err := s.cs.newPostRequest("updateAccount", p.toURLValues())
if err != nil {
diff --git a/cloudstack/AddressService.go b/cloudstack/AddressService.go
index 98ce3aa..0d146c4 100644
--- a/cloudstack/AddressService.go
+++ b/cloudstack/AddressService.go
@@ -406,7 +406,7 @@ func (s *AddressService) NewAssociateIpAddressParams() *AssociateIpAddressParams
return p
}
-// Acquires and associates a public IP to an account.
+// Acquires and associates a public IP to an Account.
func (s *AddressService) AssociateIpAddress(p *AssociateIpAddressParams) (*AssociateIpAddressResponse, error) {
resp, err := s.cs.newPostRequest("associateIpAddress", p.toURLValues())
if err != nil {
@@ -553,7 +553,7 @@ func (s *AddressService) NewDisassociateIpAddressParams(id string) *Disassociate
return p
}
-// Disassociates an IP address from the account.
+// Disassociates an IP address from the Account.
func (s *AddressService) DisassociateIpAddress(p *DisassociateIpAddressParams) (*DisassociateIpAddressResponse, error) {
resp, err := s.cs.newPostRequest("disassociateIpAddress", p.toURLValues())
if err != nil {
@@ -1308,7 +1308,7 @@ func (s *AddressService) GetPublicIpAddressByID(id string, opts ...OptionFunc) (
return nil, l.Count, fmt.Errorf("There is more then one result for PublicIpAddress UUID: %s!", id)
}
-// Lists all public ip addresses
+// Lists all public IP addresses
func (s *AddressService) ListPublicIpAddresses(p *ListPublicIpAddressesParams) (*ListPublicIpAddressesResponse, error) {
resp, err := s.cs.newRequest("listPublicIpAddresses", p.toURLValues())
if err != nil {
@@ -1588,7 +1588,7 @@ func (s *AddressService) NewReleaseIpAddressParams(id string) *ReleaseIpAddressP
return p
}
-// Releases an IP address from the account.
+// Releases an IP address from the Account.
func (s *AddressService) ReleaseIpAddress(p *ReleaseIpAddressParams) (*ReleaseIpAddressResponse, error) {
resp, err := s.cs.newPostRequest("releaseIpAddress", p.toURLValues())
if err != nil {
@@ -1874,7 +1874,7 @@ func (s *AddressService) NewReserveIpAddressParams(id string) *ReserveIpAddressP
return p
}
-// Reserve a public IP to an account.
+// Reserve a public IP to an Account.
func (s *AddressService) ReserveIpAddress(p *ReserveIpAddressParams) (*ReserveIpAddressResponse, error) {
resp, err := s.cs.newPostRequest("reserveIpAddress", p.toURLValues())
if err != nil {
diff --git a/cloudstack/AffinityGroupService.go b/cloudstack/AffinityGroupService.go
index afd1767..f202a81 100644
--- a/cloudstack/AffinityGroupService.go
+++ b/cloudstack/AffinityGroupService.go
@@ -1093,7 +1093,7 @@ func (s *AffinityGroupService) NewUpdateVMAffinityGroupParams(id string) *Update
return p
}
-// Updates the affinity/anti-affinity group associations of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect.
+// Updates the affinity/anti-affinity group associations of an Instance. The Instance has to be stopped and restarted for the new properties to take effect.
func (s *AffinityGroupService) UpdateVMAffinityGroup(p *UpdateVMAffinityGroupParams) (*UpdateVMAffinityGroupResponse, error) {
resp, err := s.cs.newPostRequest("updateVMAffinityGroup", p.toURLValues())
if err != nil {
@@ -1131,6 +1131,7 @@ func (s *AffinityGroupService) UpdateVMAffinityGroup(p *UpdateVMAffinityGroupPar
type UpdateVMAffinityGroupResponse struct {
Account string `json:"account"`
Affinitygroup []UpdateVMAffinityGroupResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
diff --git a/cloudstack/AnnotationService.go b/cloudstack/AnnotationService.go
index 584883e..499c943 100644
--- a/cloudstack/AnnotationService.go
+++ b/cloudstack/AnnotationService.go
@@ -156,7 +156,7 @@ func (s *AnnotationService) NewAddAnnotationParams() *AddAnnotationParams {
return p
}
-// add an annotation.
+// Add an annotation.
func (s *AnnotationService) AddAnnotation(p *AddAnnotationParams) (*AddAnnotationResponse, error) {
resp, err := s.cs.newPostRequest("addAnnotation", p.toURLValues())
if err != nil {
@@ -517,7 +517,7 @@ func (s *AnnotationService) NewRemoveAnnotationParams(id string) *RemoveAnnotati
return p
}
-// remove an annotation.
+// Remove an annotation.
func (s *AnnotationService) RemoveAnnotation(p *RemoveAnnotationParams) (*RemoveAnnotationResponse, error) {
resp, err := s.cs.newPostRequest("removeAnnotation", p.toURLValues())
if err != nil {
@@ -622,7 +622,7 @@ func (s *AnnotationService) NewUpdateAnnotationVisibilityParams(adminsonly bool,
return p
}
-// update an annotation visibility.
+// Update an annotation visibility.
func (s *AnnotationService) UpdateAnnotationVisibility(p *UpdateAnnotationVisibilityParams) (*UpdateAnnotationVisibilityResponse, error) {
resp, err := s.cs.newPostRequest("updateAnnotationVisibility", p.toURLValues())
if err != nil {
diff --git a/cloudstack/AsyncjobService.go b/cloudstack/AsyncjobService.go
index 471289f..abc7ad3 100644
--- a/cloudstack/AsyncjobService.go
+++ b/cloudstack/AsyncjobService.go
@@ -70,6 +70,12 @@ func (p *ListAsyncJobsParams) toURLValues() url.Values {
vv := strconv.Itoa(v.(int))
u.Set("pagesize", vv)
}
+ if v, found := p.p["resourceid"]; found {
+ u.Set("resourceid", v.(string))
+ }
+ if v, found := p.p["resourcetype"]; found {
+ u.Set("resourcetype", v.(string))
+ }
if v, found := p.p["startdate"]; found {
u.Set("startdate", v.(string))
}
@@ -244,6 +250,48 @@ func (p *ListAsyncJobsParams) GetPagesize() (int, bool) {
return value, ok
}
+func (p *ListAsyncJobsParams) SetResourceid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["resourceid"] = v
+}
+
+func (p *ListAsyncJobsParams) ResetResourceid() {
+ if p.p != nil && p.p["resourceid"] != nil {
+ delete(p.p, "resourceid")
+ }
+}
+
+func (p *ListAsyncJobsParams) GetResourceid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["resourceid"].(string)
+ return value, ok
+}
+
+func (p *ListAsyncJobsParams) SetResourcetype(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["resourcetype"] = v
+}
+
+func (p *ListAsyncJobsParams) ResetResourcetype() {
+ if p.p != nil && p.p["resourcetype"] != nil {
+ delete(p.p, "resourcetype")
+ }
+}
+
+func (p *ListAsyncJobsParams) GetResourcetype() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["resourcetype"].(string)
+ return value, ok
+}
+
func (p *ListAsyncJobsParams) SetStartdate(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -273,7 +321,7 @@ func (s *AsyncjobService) NewListAsyncJobsParams() *ListAsyncJobsParams {
return p
}
-// Lists all pending asynchronous jobs for the account.
+// Lists all pending asynchronous jobs for the Account.
func (s *AsyncjobService) ListAsyncJobs(p *ListAsyncJobsParams) (*ListAsyncJobsResponse, error) {
resp, err := s.cs.newRequest("listAsyncJobs", p.toURLValues())
if err != nil {
@@ -326,6 +374,12 @@ func (p *QueryAsyncJobResultParams) toURLValues() url.Values {
if v, found := p.p["jobid"]; found {
u.Set("jobid", v.(string))
}
+ if v, found := p.p["resourceid"]; found {
+ u.Set("resourceid", v.(string))
+ }
+ if v, found := p.p["resourcetype"]; found {
+ u.Set("resourcetype", v.(string))
+ }
return u
}
@@ -350,6 +404,48 @@ func (p *QueryAsyncJobResultParams) GetJobID() (string, bool) {
return value, ok
}
+func (p *QueryAsyncJobResultParams) SetResourceid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["resourceid"] = v
+}
+
+func (p *QueryAsyncJobResultParams) ResetResourceid() {
+ if p.p != nil && p.p["resourceid"] != nil {
+ delete(p.p, "resourceid")
+ }
+}
+
+func (p *QueryAsyncJobResultParams) GetResourceid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["resourceid"].(string)
+ return value, ok
+}
+
+func (p *QueryAsyncJobResultParams) SetResourcetype(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["resourcetype"] = v
+}
+
+func (p *QueryAsyncJobResultParams) ResetResourcetype() {
+ if p.p != nil && p.p["resourcetype"] != nil {
+ delete(p.p, "resourcetype")
+ }
+}
+
+func (p *QueryAsyncJobResultParams) GetResourcetype() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["resourcetype"].(string)
+ return value, ok
+}
+
// You should always use this function to get a new QueryAsyncJobResultParams instance,
// as then you are sure you have configured all required params
func (s *AsyncjobService) NewQueryAsyncJobResultParams(jobid string) *QueryAsyncJobResultParams {
diff --git a/cloudstack/AutoScaleService.go b/cloudstack/AutoScaleService.go
index 58aab95..ad16566 100644
--- a/cloudstack/AutoScaleService.go
+++ b/cloudstack/AutoScaleService.go
@@ -229,7 +229,7 @@ func (s *AutoScaleService) NewCreateAutoScalePolicyParams(action string, conditi
return p
}
-// Creates an autoscale policy for a provision or deprovision action, the action is taken when the all the conditions evaluates to true for the specified duration. The policy is in effect once it is attached to a autscale vm group.
+// Creates an autoscale policy for a provision or deprovision action, the action is taken when the all the conditions evaluates to true for the specified duration. The policy is in effect once it is attached to a autscale Instance group.
func (s *AutoScaleService) CreateAutoScalePolicy(p *CreateAutoScalePolicyParams) (*CreateAutoScalePolicyResponse, error) {
resp, err := s.cs.newPostRequest("createAutoScalePolicy", p.toURLValues())
if err != nil {
@@ -529,7 +529,7 @@ func (s *AutoScaleService) NewCreateAutoScaleVmGroupParams(lbruleid string, maxm
return p
}
-// Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
+// Creates and automatically starts an Instance based on a service offering, disk offering, and Template.
func (s *AutoScaleService) CreateAutoScaleVmGroup(p *CreateAutoScaleVmGroupParams) (*CreateAutoScaleVmGroupResponse, error) {
resp, err := s.cs.newPostRequest("createAutoScaleVmGroup", p.toURLValues())
if err != nil {
@@ -968,7 +968,7 @@ func (s *AutoScaleService) NewCreateAutoScaleVmProfileParams(serviceofferingid s
return p
}
-// Creates a profile that contains information about the virtual machine which will be provisioned automatically by autoscale feature.
+// Creates a profile that contains information about the Instance which will be provisioned automatically by autoscale feature.
func (s *AutoScaleService) CreateAutoScaleVmProfile(p *CreateAutoScaleVmProfileParams) (*CreateAutoScaleVmProfileResponse, error) {
resp, err := s.cs.newPostRequest("createAutoScaleVmProfile", p.toURLValues())
if err != nil {
@@ -1195,7 +1195,7 @@ func (s *AutoScaleService) NewCreateConditionParams(counterid string, relational
return p
}
-// Creates a condition for VM auto scaling
+// Creates a condition for Instance auto scaling
func (s *AutoScaleService) CreateCondition(p *CreateConditionParams) (*CreateConditionResponse, error) {
resp, err := s.cs.newPostRequest("createCondition", p.toURLValues())
if err != nil {
@@ -1368,7 +1368,7 @@ func (s *AutoScaleService) NewCreateCounterParams(name string, provider string,
return p
}
-// Adds metric counter for VM auto scaling
+// Adds metric counter for Instance auto scaling
func (s *AutoScaleService) CreateCounter(p *CreateCounterParams) (*CreateCounterResponse, error) {
resp, err := s.cs.newPostRequest("createCounter", p.toURLValues())
if err != nil {
@@ -1566,7 +1566,7 @@ func (s *AutoScaleService) NewDeleteAutoScaleVmGroupParams(id string) *DeleteAut
return p
}
-// Deletes a autoscale vm group.
+// Deletes an autoscale Instance group.
func (s *AutoScaleService) DeleteAutoScaleVmGroup(p *DeleteAutoScaleVmGroupParams) (*DeleteAutoScaleVmGroupResponse, error) {
resp, err := s.cs.newPostRequest("deleteAutoScaleVmGroup", p.toURLValues())
if err != nil {
@@ -1648,7 +1648,7 @@ func (s *AutoScaleService) NewDeleteAutoScaleVmProfileParams(id string) *DeleteA
return p
}
-// Deletes a autoscale vm profile.
+// Deletes a autoscale Instance profile.
func (s *AutoScaleService) DeleteAutoScaleVmProfile(p *DeleteAutoScaleVmProfileParams) (*DeleteAutoScaleVmProfileResponse, error) {
resp, err := s.cs.newPostRequest("deleteAutoScaleVmProfile", p.toURLValues())
if err != nil {
@@ -1730,7 +1730,7 @@ func (s *AutoScaleService) NewDeleteConditionParams(id string) *DeleteConditionP
return p
}
-// Removes a condition for VM auto scaling
+// Removes a condition for Instance auto scaling
func (s *AutoScaleService) DeleteCondition(p *DeleteConditionParams) (*DeleteConditionResponse, error) {
resp, err := s.cs.newPostRequest("deleteCondition", p.toURLValues())
if err != nil {
@@ -1812,7 +1812,7 @@ func (s *AutoScaleService) NewDeleteCounterParams(id string) *DeleteCounterParam
return p
}
-// Deletes a counter for VM auto scaling
+// Deletes a counter for Instance auto scaling
func (s *AutoScaleService) DeleteCounter(p *DeleteCounterParams) (*DeleteCounterResponse, error) {
resp, err := s.cs.newPostRequest("deleteCounter", p.toURLValues())
if err != nil {
@@ -1894,7 +1894,7 @@ func (s *AutoScaleService) NewDisableAutoScaleVmGroupParams(id string) *DisableA
return p
}
-// Disables an AutoScale Vm Group
+// Disables an AutoScale Instance Group
func (s *AutoScaleService) DisableAutoScaleVmGroup(p *DisableAutoScaleVmGroupParams) (*DisableAutoScaleVmGroupResponse, error) {
resp, err := s.cs.newPostRequest("disableAutoScaleVmGroup", p.toURLValues())
if err != nil {
@@ -2006,7 +2006,7 @@ func (s *AutoScaleService) NewEnableAutoScaleVmGroupParams(id string) *EnableAut
return p
}
-// Enables an AutoScale Vm Group
+// Enables an AutoScale Instance Group
func (s *AutoScaleService) EnableAutoScaleVmGroup(p *EnableAutoScaleVmGroupParams) (*EnableAutoScaleVmGroupResponse, error) {
resp, err := s.cs.newPostRequest("enableAutoScaleVmGroup", p.toURLValues())
if err != nil {
@@ -2997,7 +2997,7 @@ func (s *AutoScaleService) GetAutoScaleVmGroupByID(id string, opts ...OptionFunc
return nil, l.Count, fmt.Errorf("There is more then one result for AutoScaleVmGroup UUID: %s!", id)
}
-// Lists autoscale vm groups.
+// Lists autoscale Instance groups.
func (s *AutoScaleService) ListAutoScaleVmGroups(p *ListAutoScaleVmGroupsParams) (*ListAutoScaleVmGroupsResponse, error) {
resp, err := s.cs.newRequest("listAutoScaleVmGroups", p.toURLValues())
if err != nil {
@@ -3443,7 +3443,7 @@ func (s *AutoScaleService) GetAutoScaleVmProfileByID(id string, opts ...OptionFu
return nil, l.Count, fmt.Errorf("There is more then one result for AutoScaleVmProfile UUID: %s!", id)
}
-// Lists autoscale vm profiles.
+// Lists autoscale Instance profiles.
func (s *AutoScaleService) ListAutoScaleVmProfiles(p *ListAutoScaleVmProfilesParams) (*ListAutoScaleVmProfilesResponse, error) {
resp, err := s.cs.newRequest("listAutoScaleVmProfiles", p.toURLValues())
if err != nil {
@@ -3808,7 +3808,7 @@ func (s *AutoScaleService) GetConditionByID(id string, opts ...OptionFunc) (*Con
return nil, l.Count, fmt.Errorf("There is more then one result for Condition UUID: %s!", id)
}
-// List Conditions for VM auto scaling
+// List Conditions for Instance auto scaling
func (s *AutoScaleService) ListConditions(p *ListConditionsParams) (*ListConditionsResponse, error) {
resp, err := s.cs.newRequest("listConditions", p.toURLValues())
if err != nil {
@@ -4119,7 +4119,7 @@ func (s *AutoScaleService) GetCounterByID(id string, opts ...OptionFunc) (*Count
return nil, l.Count, fmt.Errorf("There is more then one result for Counter UUID: %s!", id)
}
-// List the counters for VM auto scaling
+// List the counters for Instance auto scaling
func (s *AutoScaleService) ListCounters(p *ListCountersParams) (*ListCountersResponse, error) {
resp, err := s.cs.newRequest("listCounters", p.toURLValues())
if err != nil {
@@ -4589,7 +4589,7 @@ func (s *AutoScaleService) NewUpdateAutoScaleVmGroupParams(id string) *UpdateAut
return p
}
-// Updates an existing autoscale vm group.
+// Updates an existing autoscale Instance group.
func (s *AutoScaleService) UpdateAutoScaleVmGroup(p *UpdateAutoScaleVmGroupParams) (*UpdateAutoScaleVmGroupResponse, error) {
resp, err := s.cs.newPostRequest("updateAutoScaleVmGroup", p.toURLValues())
if err != nil {
@@ -4978,7 +4978,7 @@ func (s *AutoScaleService) NewUpdateAutoScaleVmProfileParams(id string) *UpdateA
return p
}
-// Updates an existing autoscale vm profile.
+// Updates an existing autoscale Instance profile.
func (s *AutoScaleService) UpdateAutoScaleVmProfile(p *UpdateAutoScaleVmProfileParams) (*UpdateAutoScaleVmProfileResponse, error) {
resp, err := s.cs.newPostRequest("updateAutoScaleVmProfile", p.toURLValues())
if err != nil {
@@ -5133,7 +5133,7 @@ func (s *AutoScaleService) NewUpdateConditionParams(id string, relationaloperato
return p
}
-// Updates a condition for VM auto scaling
+// Updates a condition for Instance auto scaling
func (s *AutoScaleService) UpdateCondition(p *UpdateConditionParams) (*UpdateConditionResponse, error) {
resp, err := s.cs.newPostRequest("updateCondition", p.toURLValues())
if err != nil {
diff --git a/cloudstack/BackupService.go b/cloudstack/BackupService.go
index 882bbb0..783d519 100644
--- a/cloudstack/BackupService.go
+++ b/cloudstack/BackupService.go
@@ -320,6 +320,7 @@ type AddBackupRepositoryResponse struct {
Id string `json:"id"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
+ Mountopts string `json:"mountopts"`
Name string `json:"name"`
Provider string `json:"provider"`
Type string `json:"type"`
@@ -445,7 +446,7 @@ func (s *BackupService) NewCreateBackupParams(virtualmachineid string) *CreateBa
return p
}
-// Create VM backup
+// Create Instance backup
func (s *BackupService) CreateBackup(p *CreateBackupParams) (*CreateBackupResponse, error) {
resp, err := s.cs.newPostRequest("createBackup", p.toURLValues())
if err != nil {
@@ -652,7 +653,7 @@ func (s *BackupService) NewCreateBackupScheduleParams(intervaltype string, sched
return p
}
-// Creates a user-defined VM backup schedule
+// Creates a User-defined Instance backup schedule
func (s *BackupService) CreateBackupSchedule(p *CreateBackupScheduleParams) (*CreateBackupScheduleResponse, error) {
resp, err := s.cs.newPostRequest("createBackupSchedule", p.toURLValues())
if err != nil {
@@ -668,32 +669,16 @@ func (s *BackupService) CreateBackupSchedule(p *CreateBackupScheduleParams) (*Cr
}
type CreateBackupScheduleResponse struct {
- Account string `json:"account"`
- Accountid string `json:"accountid"`
- Backupofferingid string `json:"backupofferingid"`
- Backupofferingname string `json:"backupofferingname"`
- Created string `json:"created"`
- Description string `json:"description"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Externalid string `json:"externalid"`
- Id string `json:"id"`
- Intervaltype string `json:"intervaltype"`
- Isbackupvmexpunged bool `json:"isbackupvmexpunged"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Size int64 `json:"size"`
- Status string `json:"status"`
- Type string `json:"type"`
- Virtualmachineid string `json:"virtualmachineid"`
- Virtualmachinename string `json:"virtualmachinename"`
- Virtualsize int64 `json:"virtualsize"`
- Vmbackupofferingremoved bool `json:"vmbackupofferingremoved"`
- Vmdetails map[string]string `json:"vmdetails"`
- Volumes string `json:"volumes"`
- Zone string `json:"zone"`
- Zoneid string `json:"zoneid"`
+ Id string `json:"id"`
+ Intervaltype string `json:"intervaltype"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Maxbackups int `json:"maxbackups"`
+ Quiescevm bool `json:"quiescevm"`
+ Schedule string `json:"schedule"`
+ Timezone string `json:"timezone"`
+ Virtualmachineid string `json:"virtualmachineid"`
+ Virtualmachinename string `json:"virtualmachinename"`
}
type CreateVMFromBackupParams struct {
@@ -2260,6 +2245,7 @@ func (s *BackupService) CreateVMFromBackup(p *CreateVMFromBackupParams) (*Create
type CreateVMFromBackupResponse struct {
Account string `json:"account"`
Affinitygroup []CreateVMFromBackupResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -2508,7 +2494,7 @@ func (s *BackupService) NewDeleteBackupParams(id string) *DeleteBackupParams {
return p
}
-// Delete VM backup
+// Delete Instance backup
func (s *BackupService) DeleteBackup(p *DeleteBackupParams) (*DeleteBackupResponse, error) {
resp, err := s.cs.newPostRequest("deleteBackup", p.toURLValues())
if err != nil {
@@ -2801,7 +2787,7 @@ func (s *BackupService) NewDeleteBackupScheduleParams() *DeleteBackupSchedulePar
return p
}
-// Deletes the backup schedule of a VM
+// Deletes the backup schedule of a Instance
func (s *BackupService) DeleteBackupSchedule(p *DeleteBackupScheduleParams) (*DeleteBackupScheduleResponse, error) {
resp, err := s.cs.newPostRequest("deleteBackupSchedule", p.toURLValues())
if err != nil {
@@ -3869,6 +3855,7 @@ type BackupRepository struct {
Id string `json:"id"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
+ Mountopts string `json:"mountopts"`
Name string `json:"name"`
Provider string `json:"provider"`
Type string `json:"type"`
@@ -4173,7 +4160,7 @@ func (s *BackupService) GetBackupScheduleByID(id string, opts ...OptionFunc) (*B
return nil, l.Count, fmt.Errorf("There is more then one result for BackupSchedule UUID: %s!", id)
}
-// List backup schedule of a VM
+// List backup schedule of an Instance
func (s *BackupService) ListBackupSchedule(p *ListBackupScheduleParams) (*ListBackupScheduleResponse, error) {
resp, err := s.cs.newRequest("listBackupSchedule", p.toURLValues())
if err != nil {
@@ -4650,7 +4637,7 @@ func (s *BackupService) GetBackupByID(id string, opts ...OptionFunc) (*Backup, i
return nil, l.Count, fmt.Errorf("There is more then one result for Backup UUID: %s!", id)
}
-// Lists VM backups
+// Lists Instance backups
func (s *BackupService) ListBackups(p *ListBackupsParams) (*ListBackupsResponse, error) {
resp, err := s.cs.newRequest("listBackups", p.toURLValues())
if err != nil {
@@ -4744,7 +4731,7 @@ func (s *BackupService) NewRestoreBackupParams(id string) *RestoreBackupParams {
return p
}
-// Restores an existing stopped or deleted VM using a VM backup
+// Restores an existing stopped or deleted Instance using an Instance backup
func (s *BackupService) RestoreBackup(p *RestoreBackupParams) (*RestoreBackupResponse, error) {
resp, err := s.cs.newPostRequest("restoreBackup", p.toURLValues())
if err != nil {
@@ -4946,6 +4933,7 @@ type UpdateBackupRepositoryResponse struct {
Id string `json:"id"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
+ Mountopts string `json:"mountopts"`
Name string `json:"name"`
Provider string `json:"provider"`
Type string `json:"type"`
@@ -5271,7 +5259,7 @@ func (s *BackupService) NewUpdateBackupScheduleParams(intervaltype string, sched
return p
}
-// Updates a user-defined VM backup schedule
+// Updates a User-defined Instance backup schedule
func (s *BackupService) UpdateBackupSchedule(p *UpdateBackupScheduleParams) (*UpdateBackupScheduleResponse, error) {
resp, err := s.cs.newPostRequest("updateBackupSchedule", p.toURLValues())
if err != nil {
diff --git a/cloudstack/BaremetalService.go b/cloudstack/BaremetalService.go
index 9342506..6cd52f2 100644
--- a/cloudstack/BaremetalService.go
+++ b/cloudstack/BaremetalService.go
@@ -191,7 +191,7 @@ func (s *BaremetalService) NewAddBaremetalDhcpParams(dhcpservertype string, pass
return p
}
-// adds a baremetal dhcp server
+// Adds a baremetal DHCP server
func (s *BaremetalService) AddBaremetalDhcp(p *AddBaremetalDhcpParams) (*AddBaremetalDhcpResponse, error) {
resp, err := s.cs.newPostRequest("addBaremetalDhcp", p.toURLValues())
if err != nil {
@@ -430,7 +430,7 @@ func (s *BaremetalService) NewAddBaremetalPxeKickStartServerParams(password stri
return p
}
-// add a baremetal pxe server
+// Add a baremetal PXE server
func (s *BaremetalService) AddBaremetalPxeKickStartServer(p *AddBaremetalPxeKickStartServerParams) (*AddBaremetalPxeKickStartServerResponse, error) {
resp, err := s.cs.newPostRequest("addBaremetalPxeKickStartServer", p.toURLValues())
if err != nil {
@@ -767,7 +767,7 @@ func (s *BaremetalService) NewAddBaremetalPxePingServerParams(password string, p
return p
}
-// add a baremetal ping pxe server
+// Add a baremetal ping PXE server
func (s *BaremetalService) AddBaremetalPxePingServer(p *AddBaremetalPxePingServerParams) (*AddBaremetalPxePingServerResponse, error) {
resp, err := s.cs.newPostRequest("addBaremetalPxePingServer", p.toURLValues())
if err != nil {
@@ -859,7 +859,7 @@ func (s *BaremetalService) NewAddBaremetalRctParams(baremetalrcturl string) *Add
return p
}
-// adds baremetal rack configuration text
+// Adds baremetal rack configuration text
func (s *BaremetalService) AddBaremetalRct(p *AddBaremetalRctParams) (*AddBaremetalRctResponse, error) {
resp, err := s.cs.newPostRequest("addBaremetalRct", p.toURLValues())
if err != nil {
@@ -946,7 +946,7 @@ func (s *BaremetalService) NewDeleteBaremetalRctParams(id string) *DeleteBaremet
return p
}
-// deletes baremetal rack configuration text
+// Deletes baremetal rack configuration text
func (s *BaremetalService) DeleteBaremetalRct(p *DeleteBaremetalRctParams) (*DeleteBaremetalRctResponse, error) {
resp, err := s.cs.newPostRequest("deleteBaremetalRct", p.toURLValues())
if err != nil {
@@ -1151,7 +1151,7 @@ func (s *BaremetalService) NewListBaremetalDhcpParams(physicalnetworkid string)
return p
}
-// list baremetal dhcp servers
+// List baremetal dhcp servers
func (s *BaremetalService) ListBaremetalDhcp(p *ListBaremetalDhcpParams) (*ListBaremetalDhcpResponse, error) {
resp, err := s.cs.newRequest("listBaremetalDhcp", p.toURLValues())
if err != nil {
@@ -1325,7 +1325,7 @@ func (s *BaremetalService) NewListBaremetalPxeServersParams(physicalnetworkid st
return p
}
-// list baremetal pxe server
+// List baremetal pxe server
func (s *BaremetalService) ListBaremetalPxeServers(p *ListBaremetalPxeServersParams) (*ListBaremetalPxeServersResponse, error) {
resp, err := s.cs.newRequest("listBaremetalPxeServers", p.toURLValues())
if err != nil {
@@ -1448,7 +1448,7 @@ func (s *BaremetalService) NewListBaremetalRctParams() *ListBaremetalRctParams {
return p
}
-// list baremetal rack configuration
+// List baremetal rack configuration
func (s *BaremetalService) ListBaremetalRct(p *ListBaremetalRctParams) (*ListBaremetalRctResponse, error) {
resp, err := s.cs.newRequest("listBaremetalRct", p.toURLValues())
if err != nil {
diff --git a/cloudstack/BrocadeVCSService.go b/cloudstack/BrocadeVCSService.go
index 571b343..f921c87 100644
--- a/cloudstack/BrocadeVCSService.go
+++ b/cloudstack/BrocadeVCSService.go
@@ -441,7 +441,7 @@ func (s *BrocadeVCSService) GetBrocadeVcsDeviceNetworkID(keyword string, vcsdevi
return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", keyword, l)
}
-// lists network that are using a brocade vcs switch
+// Lists network that are using a brocade vcs switch
func (s *BrocadeVCSService) ListBrocadeVcsDeviceNetworks(p *ListBrocadeVcsDeviceNetworksParams) (*ListBrocadeVcsDeviceNetworksResponse, error) {
resp, err := s.cs.newRequest("listBrocadeVcsDeviceNetworks", p.toURLValues())
if err != nil {
diff --git a/cloudstack/CertificateService.go b/cloudstack/CertificateService.go
index e2aa402..26c5843 100644
--- a/cloudstack/CertificateService.go
+++ b/cloudstack/CertificateService.go
@@ -578,7 +578,7 @@ func (s *CertificateService) GetTemplateDirectDownloadCertificateByID(id string,
return nil, l.Count, fmt.Errorf("There is more then one result for TemplateDirectDownloadCertificate UUID: %s!", id)
}
-// List the uploaded certificates for direct download templates
+// List the uploaded certificates for direct download Templates
func (s *CertificateService) ListTemplateDirectDownloadCertificates(p *ListTemplateDirectDownloadCertificatesParams) (*ListTemplateDirectDownloadCertificatesResponse, error) {
resp, err := s.cs.newRequest("listTemplateDirectDownloadCertificates", p.toURLValues())
if err != nil {
@@ -1462,7 +1462,7 @@ func (s *CertificateService) NewUploadTemplateDirectDownloadCertificateParams(ce
return p
}
-// Upload a certificate for HTTPS direct template download on KVM hosts
+// Upload a certificate for HTTPS direct Template download on KVM hosts
func (s *CertificateService) UploadTemplateDirectDownloadCertificate(p *UploadTemplateDirectDownloadCertificateParams) (*UploadTemplateDirectDownloadCertificateResponse, error) {
resp, err := s.cs.newPostRequest("uploadTemplateDirectDownloadCertificate", p.toURLValues())
if err != nil {
diff --git a/cloudstack/ConfigurationService.go b/cloudstack/ConfigurationService.go
index 571b85c..5d110e4 100644
--- a/cloudstack/ConfigurationService.go
+++ b/cloudstack/ConfigurationService.go
@@ -125,6 +125,7 @@ type Capability struct {
Securitygroupsenabled bool `json:"securitygroupsenabled"`
Sharedfsvmmincpucount int `json:"sharedfsvmmincpucount"`
Sharedfsvmminramsize int `json:"sharedfsvmminramsize"`
+ Snapshotshowchainsize bool `json:"snapshotshowchainsize"`
SupportELB string `json:"supportELB"`
Userpublictemplateenabled bool `json:"userpublictemplateenabled"`
}
diff --git a/cloudstack/ConsoleEndpointService.go b/cloudstack/ConsoleEndpointService.go
index 19bff84..d07d3d8 100644
--- a/cloudstack/ConsoleEndpointService.go
+++ b/cloudstack/ConsoleEndpointService.go
@@ -99,7 +99,7 @@ func (s *ConsoleEndpointService) NewCreateConsoleEndpointParams(virtualmachineid
return p
}
-// Create a console endpoint to connect to a VM console
+// Create a console endpoint to connect to a Instance console
func (s *ConsoleEndpointService) CreateConsoleEndpoint(p *CreateConsoleEndpointParams) (*CreateConsoleEndpointResponse, error) {
resp, err := s.cs.newPostRequest("createConsoleEndpoint", p.toURLValues())
if err != nil {
diff --git a/cloudstack/DiagnosticsService.go b/cloudstack/DiagnosticsService.go
index 4351939..6f057d6 100644
--- a/cloudstack/DiagnosticsService.go
+++ b/cloudstack/DiagnosticsService.go
@@ -102,7 +102,7 @@ func (s *DiagnosticsService) NewGetDiagnosticsDataParams(targetid string) *GetDi
return p
}
-// Get diagnostics and files from system VMs
+// Get diagnostics and files from System VMs
func (s *DiagnosticsService) GetDiagnosticsData(p *GetDiagnosticsDataParams) (*GetDiagnosticsDataResponse, error) {
resp, err := s.cs.newRequest("getDiagnosticsData", p.toURLValues())
if err != nil {
@@ -262,7 +262,7 @@ func (s *DiagnosticsService) NewRunDiagnosticsParams(ipaddress string, targetid
return p
}
-// Execute network-utility command (ping/arping/tracert) on system VMs remotely
+// Execute network-utility command (ping/arping/tracert) on System VMs remotely
func (s *DiagnosticsService) RunDiagnostics(p *RunDiagnosticsParams) (*RunDiagnosticsResponse, error) {
resp, err := s.cs.newPostRequest("runDiagnostics", p.toURLValues())
if err != nil {
diff --git a/cloudstack/ExtensionService.go b/cloudstack/ExtensionService.go
index b565f4a..fe3b281 100644
--- a/cloudstack/ExtensionService.go
+++ b/cloudstack/ExtensionService.go
@@ -424,6 +424,9 @@ func (p *CreateExtensionParams) toURLValues() url.Values {
if v, found := p.p["path"]; found {
u.Set("path", v.(string))
}
+ if v, found := p.p["reservedresourcedetails"]; found {
+ u.Set("reservedresourcedetails", v.(string))
+ }
if v, found := p.p["state"]; found {
u.Set("state", v.(string))
}
@@ -538,6 +541,27 @@ func (p *CreateExtensionParams) GetPath() (string, bool) {
return value, ok
}
+func (p *CreateExtensionParams) SetReservedresourcedetails(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["reservedresourcedetails"] = v
+}
+
+func (p *CreateExtensionParams) ResetReservedresourcedetails() {
+ if p.p != nil && p.p["reservedresourcedetails"] != nil {
+ delete(p.p, "reservedresourcedetails")
+ }
+}
+
+func (p *CreateExtensionParams) GetReservedresourcedetails() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["reservedresourcedetails"].(string)
+ return value, ok
+}
+
func (p *CreateExtensionParams) SetState(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -606,20 +630,21 @@ func (s *ExtensionService) CreateExtension(p *CreateExtensionParams) (*CreateExt
}
type CreateExtensionResponse struct {
- Created string `json:"created"`
- Description string `json:"description"`
- Details map[string]string `json:"details"`
- Id string `json:"id"`
- Isuserdefined bool `json:"isuserdefined"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Path string `json:"path"`
- Pathready bool `json:"pathready"`
- Removed string `json:"removed"`
- Resources []CreateExtensionResponseResources `json:"resources"`
- State string `json:"state"`
- Type string `json:"type"`
+ Created string `json:"created"`
+ Description string `json:"description"`
+ Details map[string]string `json:"details"`
+ Id string `json:"id"`
+ Isuserdefined bool `json:"isuserdefined"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Path string `json:"path"`
+ Pathready bool `json:"pathready"`
+ Removed string `json:"removed"`
+ Reservedresourcedetails string `json:"reservedresourcedetails"`
+ Resources []CreateExtensionResponseResources `json:"resources"`
+ State string `json:"state"`
+ Type string `json:"type"`
}
type CreateExtensionResponseResources struct {
@@ -808,20 +833,21 @@ func (s *ExtensionService) DeleteExtension(p *DeleteExtensionParams) (*DeleteExt
}
type DeleteExtensionResponse struct {
- Created string `json:"created"`
- Description string `json:"description"`
- Details map[string]string `json:"details"`
- Id string `json:"id"`
- Isuserdefined bool `json:"isuserdefined"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Path string `json:"path"`
- Pathready bool `json:"pathready"`
- Removed string `json:"removed"`
- Resources []DeleteExtensionResponseResources `json:"resources"`
- State string `json:"state"`
- Type string `json:"type"`
+ Created string `json:"created"`
+ Description string `json:"description"`
+ Details map[string]string `json:"details"`
+ Id string `json:"id"`
+ Isuserdefined bool `json:"isuserdefined"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Path string `json:"path"`
+ Pathready bool `json:"pathready"`
+ Removed string `json:"removed"`
+ Reservedresourcedetails string `json:"reservedresourcedetails"`
+ Resources []DeleteExtensionResponseResources `json:"resources"`
+ State string `json:"state"`
+ Type string `json:"type"`
}
type DeleteExtensionResponseResources struct {
@@ -1472,20 +1498,21 @@ type ListExtensionsResponse struct {
}
type Extension struct {
- Created string `json:"created"`
- Description string `json:"description"`
- Details map[string]string `json:"details"`
- Id string `json:"id"`
- Isuserdefined bool `json:"isuserdefined"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Path string `json:"path"`
- Pathready bool `json:"pathready"`
- Removed string `json:"removed"`
- Resources []ExtensionResources `json:"resources"`
- State string `json:"state"`
- Type string `json:"type"`
+ Created string `json:"created"`
+ Description string `json:"description"`
+ Details map[string]string `json:"details"`
+ Id string `json:"id"`
+ Isuserdefined bool `json:"isuserdefined"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Path string `json:"path"`
+ Pathready bool `json:"pathready"`
+ Removed string `json:"removed"`
+ Reservedresourcedetails string `json:"reservedresourcedetails"`
+ Resources []ExtensionResources `json:"resources"`
+ State string `json:"state"`
+ Type string `json:"type"`
}
type ExtensionResources struct {
@@ -1634,20 +1661,21 @@ func (s *ExtensionService) RegisterExtension(p *RegisterExtensionParams) (*Regis
}
type RegisterExtensionResponse struct {
- Created string `json:"created"`
- Description string `json:"description"`
- Details map[string]string `json:"details"`
- Id string `json:"id"`
- Isuserdefined bool `json:"isuserdefined"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Path string `json:"path"`
- Pathready bool `json:"pathready"`
- Removed string `json:"removed"`
- Resources []RegisterExtensionResponseResources `json:"resources"`
- State string `json:"state"`
- Type string `json:"type"`
+ Created string `json:"created"`
+ Description string `json:"description"`
+ Details map[string]string `json:"details"`
+ Id string `json:"id"`
+ Isuserdefined bool `json:"isuserdefined"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Path string `json:"path"`
+ Pathready bool `json:"pathready"`
+ Removed string `json:"removed"`
+ Reservedresourcedetails string `json:"reservedresourcedetails"`
+ Resources []RegisterExtensionResponseResources `json:"resources"`
+ State string `json:"state"`
+ Type string `json:"type"`
}
type RegisterExtensionResponseResources struct {
@@ -1935,20 +1963,21 @@ func (s *ExtensionService) UnregisterExtension(p *UnregisterExtensionParams) (*U
}
type UnregisterExtensionResponse struct {
- Created string `json:"created"`
- Description string `json:"description"`
- Details map[string]string `json:"details"`
- Id string `json:"id"`
- Isuserdefined bool `json:"isuserdefined"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Path string `json:"path"`
- Pathready bool `json:"pathready"`
- Removed string `json:"removed"`
- Resources []UnregisterExtensionResponseResources `json:"resources"`
- State string `json:"state"`
- Type string `json:"type"`
+ Created string `json:"created"`
+ Description string `json:"description"`
+ Details map[string]string `json:"details"`
+ Id string `json:"id"`
+ Isuserdefined bool `json:"isuserdefined"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Path string `json:"path"`
+ Pathready bool `json:"pathready"`
+ Removed string `json:"removed"`
+ Reservedresourcedetails string `json:"reservedresourcedetails"`
+ Resources []UnregisterExtensionResponseResources `json:"resources"`
+ State string `json:"state"`
+ Type string `json:"type"`
}
type UnregisterExtensionResponseResources struct {
@@ -2358,6 +2387,9 @@ func (p *UpdateExtensionParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("orchestratorrequirespreparevm", vv)
}
+ if v, found := p.p["reservedresourcedetails"]; found {
+ u.Set("reservedresourcedetails", v.(string))
+ }
if v, found := p.p["state"]; found {
u.Set("state", v.(string))
}
@@ -2469,6 +2501,27 @@ func (p *UpdateExtensionParams) GetOrchestratorrequirespreparevm() (bool, bool)
return value, ok
}
+func (p *UpdateExtensionParams) SetReservedresourcedetails(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["reservedresourcedetails"] = v
+}
+
+func (p *UpdateExtensionParams) ResetReservedresourcedetails() {
+ if p.p != nil && p.p["reservedresourcedetails"] != nil {
+ delete(p.p, "reservedresourcedetails")
+ }
+}
+
+func (p *UpdateExtensionParams) GetReservedresourcedetails() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["reservedresourcedetails"].(string)
+ return value, ok
+}
+
func (p *UpdateExtensionParams) SetState(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2515,20 +2568,21 @@ func (s *ExtensionService) UpdateExtension(p *UpdateExtensionParams) (*UpdateExt
}
type UpdateExtensionResponse struct {
- Created string `json:"created"`
- Description string `json:"description"`
- Details map[string]string `json:"details"`
- Id string `json:"id"`
- Isuserdefined bool `json:"isuserdefined"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Path string `json:"path"`
- Pathready bool `json:"pathready"`
- Removed string `json:"removed"`
- Resources []UpdateExtensionResponseResources `json:"resources"`
- State string `json:"state"`
- Type string `json:"type"`
+ Created string `json:"created"`
+ Description string `json:"description"`
+ Details map[string]string `json:"details"`
+ Id string `json:"id"`
+ Isuserdefined bool `json:"isuserdefined"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Path string `json:"path"`
+ Pathready bool `json:"pathready"`
+ Removed string `json:"removed"`
+ Reservedresourcedetails string `json:"reservedresourcedetails"`
+ Resources []UpdateExtensionResponseResources `json:"resources"`
+ State string `json:"state"`
+ Type string `json:"type"`
}
type UpdateExtensionResponseResources struct {
diff --git a/cloudstack/FirewallService.go b/cloudstack/FirewallService.go
index c299de5..e6b78c0 100644
--- a/cloudstack/FirewallService.go
+++ b/cloudstack/FirewallService.go
@@ -3231,7 +3231,7 @@ func (s *FirewallService) NewListPaloAltoFirewallsParams() *ListPaloAltoFirewall
return p
}
-// lists Palo Alto firewall devices in a physical network
+// Lists Palo Alto firewall devices in a physical Network
func (s *FirewallService) ListPaloAltoFirewalls(p *ListPaloAltoFirewallsParams) (*ListPaloAltoFirewallsResponse, error) {
resp, err := s.cs.newRequest("listPaloAltoFirewalls", p.toURLValues())
if err != nil {
@@ -4644,7 +4644,7 @@ func (s *FirewallService) NewUpdatePortForwardingRuleParams(id string) *UpdatePo
return p
}
-// Updates a port forwarding rule. Only the private port and the virtual machine can be updated.
+// Updates a port forwarding rule. Only the private port and the Instance can be updated.
func (s *FirewallService) UpdatePortForwardingRule(p *UpdatePortForwardingRuleParams) (*UpdatePortForwardingRuleResponse, error) {
resp, err := s.cs.newPostRequest("updatePortForwardingRule", p.toURLValues())
if err != nil {
@@ -5396,7 +5396,7 @@ func (s *FirewallService) NewCreateIpv6FirewallRuleParams(networkid string, prot
return p
}
-// Creates an Ipv6 firewall rule in the given network (the network must not belong to VPC)
+// Creates an IPv6 firewall rule in the given Network (the Network must not belong to VPC)
func (s *FirewallService) CreateIpv6FirewallRule(p *CreateIpv6FirewallRuleParams) (*CreateIpv6FirewallRuleResponse, error) {
resp, err := s.cs.newPostRequest("createIpv6FirewallRule", p.toURLValues())
if err != nil {
diff --git a/cloudstack/GuestOSService.go b/cloudstack/GuestOSService.go
index f7dd0c0..c274507 100644
--- a/cloudstack/GuestOSService.go
+++ b/cloudstack/GuestOSService.go
@@ -55,6 +55,12 @@ type GuestOSServiceIface interface {
NewUpdateGuestOsMappingParams(id string, osnameforhypervisor string) *UpdateGuestOsMappingParams
GetHypervisorGuestOsNames(p *GetHypervisorGuestOsNamesParams) (*GetHypervisorGuestOsNamesResponse, error)
NewGetHypervisorGuestOsNamesParams(hypervisor string, hypervisorversion string) *GetHypervisorGuestOsNamesParams
+ AddOsCategory(p *AddOsCategoryParams) (*AddOsCategoryResponse, error)
+ NewAddOsCategoryParams(name string) *AddOsCategoryParams
+ DeleteOsCategory(p *DeleteOsCategoryParams) (*DeleteOsCategoryResponse, error)
+ NewDeleteOsCategoryParams(id string) *DeleteOsCategoryParams
+ UpdateOsCategory(p *UpdateOsCategoryParams) (*UpdateOsCategoryResponse, error)
+ NewUpdateOsCategoryParams(id string) *UpdateOsCategoryParams
}
type AddGuestOsParams struct {
@@ -1270,6 +1276,10 @@ func (p *ListOsTypesParams) toURLValues() url.Values {
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
+ if v, found := p.p["ids"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("ids", vv)
+ }
if v, found := p.p["keyword"]; found {
u.Set("keyword", v.(string))
}
@@ -1350,6 +1360,27 @@ func (p *ListOsTypesParams) GetId() (string, bool) {
return value, ok
}
+func (p *ListOsTypesParams) SetIds(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["ids"] = v
+}
+
+func (p *ListOsTypesParams) ResetIds() {
+ if p.p != nil && p.p["ids"] != nil {
+ delete(p.p, "ids")
+ }
+}
+
+func (p *ListOsTypesParams) GetIds() ([]string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["ids"].([]string)
+ return value, ok
+}
+
func (p *ListOsTypesParams) SetKeyword(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2226,3 +2257,342 @@ type GetHypervisorGuestOsNamesResponseGuestoslist struct {
Osdisplayname string `json:"osdisplayname"`
Osnameforhypervisor string `json:"osnameforhypervisor"`
}
+
+type AddOsCategoryParams struct {
+ p map[string]interface{}
+}
+
+func (p *AddOsCategoryParams) toURLValues() url.Values {
+ u := url.Values{}
+ if p.p == nil {
+ return u
+ }
+ if v, found := p.p["isfeatured"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("isfeatured", vv)
+ }
+ if v, found := p.p["name"]; found {
+ u.Set("name", v.(string))
+ }
+ return u
+}
+
+func (p *AddOsCategoryParams) SetIsfeatured(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["isfeatured"] = v
+}
+
+func (p *AddOsCategoryParams) ResetIsfeatured() {
+ if p.p != nil && p.p["isfeatured"] != nil {
+ delete(p.p, "isfeatured")
+ }
+}
+
+func (p *AddOsCategoryParams) GetIsfeatured() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["isfeatured"].(bool)
+ return value, ok
+}
+
+func (p *AddOsCategoryParams) SetName(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["name"] = v
+}
+
+func (p *AddOsCategoryParams) ResetName() {
+ if p.p != nil && p.p["name"] != nil {
+ delete(p.p, "name")
+ }
+}
+
+func (p *AddOsCategoryParams) GetName() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["name"].(string)
+ return value, ok
+}
+
+// You should always use this function to get a new AddOsCategoryParams instance,
+// as then you are sure you have configured all required params
+func (s *GuestOSService) NewAddOsCategoryParams(name string) *AddOsCategoryParams {
+ p := &AddOsCategoryParams{}
+ p.p = make(map[string]interface{})
+ p.p["name"] = name
+ return p
+}
+
+// Adds a new OS category
+func (s *GuestOSService) AddOsCategory(p *AddOsCategoryParams) (*AddOsCategoryResponse, error) {
+ resp, err := s.cs.newPostRequest("addOsCategory", p.toURLValues())
+ if err != nil {
+ return nil, err
+ }
+
+ var nested struct {
+ Response AddOsCategoryResponse `json:"oscategory"`
+ }
+ if err := json.Unmarshal(resp, &nested); err != nil {
+ return nil, err
+ }
+ r := nested.Response
+
+ return &r, nil
+}
+
+type AddOsCategoryResponse struct {
+ Created string `json:"created"`
+ Icon interface{} `json:"icon"`
+ Id string `json:"id"`
+ Isfeatured bool `json:"isfeatured"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+}
+
+type DeleteOsCategoryParams struct {
+ p map[string]interface{}
+}
+
+func (p *DeleteOsCategoryParams) toURLValues() url.Values {
+ u := url.Values{}
+ if p.p == nil {
+ return u
+ }
+ if v, found := p.p["id"]; found {
+ u.Set("id", v.(string))
+ }
+ return u
+}
+
+func (p *DeleteOsCategoryParams) SetId(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["id"] = v
+}
+
+func (p *DeleteOsCategoryParams) ResetId() {
+ if p.p != nil && p.p["id"] != nil {
+ delete(p.p, "id")
+ }
+}
+
+func (p *DeleteOsCategoryParams) GetId() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["id"].(string)
+ return value, ok
+}
+
+// You should always use this function to get a new DeleteOsCategoryParams instance,
+// as then you are sure you have configured all required params
+func (s *GuestOSService) NewDeleteOsCategoryParams(id string) *DeleteOsCategoryParams {
+ p := &DeleteOsCategoryParams{}
+ p.p = make(map[string]interface{})
+ p.p["id"] = id
+ return p
+}
+
+// Deletes an OS category
+func (s *GuestOSService) DeleteOsCategory(p *DeleteOsCategoryParams) (*DeleteOsCategoryResponse, error) {
+ resp, err := s.cs.newPostRequest("deleteOsCategory", p.toURLValues())
+ if err != nil {
+ return nil, err
+ }
+
+ var r DeleteOsCategoryResponse
+ if err := json.Unmarshal(resp, &r); err != nil {
+ return nil, err
+ }
+
+ return &r, nil
+}
+
+type DeleteOsCategoryResponse struct {
+ Displaytext string `json:"displaytext"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Success bool `json:"success"`
+}
+
+func (r *DeleteOsCategoryResponse) UnmarshalJSON(b []byte) error {
+ var m map[string]interface{}
+ err := json.Unmarshal(b, &m)
+ if err != nil {
+ return err
+ }
+
+ if success, ok := m["success"].(string); ok {
+ m["success"] = success == "true"
+ b, err = json.Marshal(m)
+ if err != nil {
+ return err
+ }
+ }
+
+ if ostypeid, ok := m["ostypeid"].(float64); ok {
+ m["ostypeid"] = strconv.Itoa(int(ostypeid))
+ b, err = json.Marshal(m)
+ if err != nil {
+ return err
+ }
+ }
+
+ type alias DeleteOsCategoryResponse
+ return json.Unmarshal(b, (*alias)(r))
+}
+
+type UpdateOsCategoryParams struct {
+ p map[string]interface{}
+}
+
+func (p *UpdateOsCategoryParams) toURLValues() url.Values {
+ u := url.Values{}
+ if p.p == nil {
+ return u
+ }
+ if v, found := p.p["id"]; found {
+ u.Set("id", v.(string))
+ }
+ if v, found := p.p["isfeatured"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("isfeatured", vv)
+ }
+ if v, found := p.p["name"]; found {
+ u.Set("name", v.(string))
+ }
+ if v, found := p.p["sortkey"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("sortkey", vv)
+ }
+ return u
+}
+
+func (p *UpdateOsCategoryParams) SetId(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["id"] = v
+}
+
+func (p *UpdateOsCategoryParams) ResetId() {
+ if p.p != nil && p.p["id"] != nil {
+ delete(p.p, "id")
+ }
+}
+
+func (p *UpdateOsCategoryParams) GetId() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["id"].(string)
+ return value, ok
+}
+
+func (p *UpdateOsCategoryParams) SetIsfeatured(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["isfeatured"] = v
+}
+
+func (p *UpdateOsCategoryParams) ResetIsfeatured() {
+ if p.p != nil && p.p["isfeatured"] != nil {
+ delete(p.p, "isfeatured")
+ }
+}
+
+func (p *UpdateOsCategoryParams) GetIsfeatured() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["isfeatured"].(bool)
+ return value, ok
+}
+
+func (p *UpdateOsCategoryParams) SetName(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["name"] = v
+}
+
+func (p *UpdateOsCategoryParams) ResetName() {
+ if p.p != nil && p.p["name"] != nil {
+ delete(p.p, "name")
+ }
+}
+
+func (p *UpdateOsCategoryParams) GetName() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["name"].(string)
+ return value, ok
+}
+
+func (p *UpdateOsCategoryParams) SetSortkey(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["sortkey"] = v
+}
+
+func (p *UpdateOsCategoryParams) ResetSortkey() {
+ if p.p != nil && p.p["sortkey"] != nil {
+ delete(p.p, "sortkey")
+ }
+}
+
+func (p *UpdateOsCategoryParams) GetSortkey() (int, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["sortkey"].(int)
+ return value, ok
+}
+
+// You should always use this function to get a new UpdateOsCategoryParams instance,
+// as then you are sure you have configured all required params
+func (s *GuestOSService) NewUpdateOsCategoryParams(id string) *UpdateOsCategoryParams {
+ p := &UpdateOsCategoryParams{}
+ p.p = make(map[string]interface{})
+ p.p["id"] = id
+ return p
+}
+
+// Updates an OS category
+func (s *GuestOSService) UpdateOsCategory(p *UpdateOsCategoryParams) (*UpdateOsCategoryResponse, error) {
+ resp, err := s.cs.newPostRequest("updateOsCategory", p.toURLValues())
+ if err != nil {
+ return nil, err
+ }
+
+ var nested struct {
+ Response UpdateOsCategoryResponse `json:"oscategory"`
+ }
+ if err := json.Unmarshal(resp, &nested); err != nil {
+ return nil, err
+ }
+ r := nested.Response
+
+ return &r, nil
+}
+
+type UpdateOsCategoryResponse struct {
+ Created string `json:"created"`
+ Icon interface{} `json:"icon"`
+ Id string `json:"id"`
+ Isfeatured bool `json:"isfeatured"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+}
diff --git a/cloudstack/GuestOSService_mock.go b/cloudstack/GuestOSService_mock.go
index b3a78a0..7a1c351 100644
--- a/cloudstack/GuestOSService_mock.go
+++ b/cloudstack/GuestOSService_mock.go
@@ -88,6 +88,36 @@ func (mr *MockGuestOSServiceIfaceMockRecorder) AddGuestOsMapping(p any) *gomock.
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddGuestOsMapping", reflect.TypeOf((*MockGuestOSServiceIface)(nil).AddGuestOsMapping), p)
}
+// AddOsCategory mocks base method.
+func (m *MockGuestOSServiceIface) AddOsCategory(p *AddOsCategoryParams) (*AddOsCategoryResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "AddOsCategory", p)
+ ret0, _ := ret[0].(*AddOsCategoryResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// AddOsCategory indicates an expected call of AddOsCategory.
+func (mr *MockGuestOSServiceIfaceMockRecorder) AddOsCategory(p any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddOsCategory", reflect.TypeOf((*MockGuestOSServiceIface)(nil).AddOsCategory), p)
+}
+
+// DeleteOsCategory mocks base method.
+func (m *MockGuestOSServiceIface) DeleteOsCategory(p *DeleteOsCategoryParams) (*DeleteOsCategoryResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "DeleteOsCategory", p)
+ ret0, _ := ret[0].(*DeleteOsCategoryResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// DeleteOsCategory indicates an expected call of DeleteOsCategory.
+func (mr *MockGuestOSServiceIfaceMockRecorder) DeleteOsCategory(p any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOsCategory", reflect.TypeOf((*MockGuestOSServiceIface)(nil).DeleteOsCategory), p)
+}
+
// GetGuestOsMappingByID mocks base method.
func (m *MockGuestOSServiceIface) GetGuestOsMappingByID(id string, opts ...OptionFunc) (*GuestOsMapping, int, error) {
m.ctrl.T.Helper()
@@ -323,6 +353,34 @@ func (mr *MockGuestOSServiceIfaceMockRecorder) NewAddGuestOsParams(oscategoryid,
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewAddGuestOsParams", reflect.TypeOf((*MockGuestOSServiceIface)(nil).NewAddGuestOsParams), oscategoryid, osdisplayname)
}
+// NewAddOsCategoryParams mocks base method.
+func (m *MockGuestOSServiceIface) NewAddOsCategoryParams(name string) *AddOsCategoryParams {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "NewAddOsCategoryParams", name)
+ ret0, _ := ret[0].(*AddOsCategoryParams)
+ return ret0
+}
+
+// NewAddOsCategoryParams indicates an expected call of NewAddOsCategoryParams.
+func (mr *MockGuestOSServiceIfaceMockRecorder) NewAddOsCategoryParams(name any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewAddOsCategoryParams", reflect.TypeOf((*MockGuestOSServiceIface)(nil).NewAddOsCategoryParams), name)
+}
+
+// NewDeleteOsCategoryParams mocks base method.
+func (m *MockGuestOSServiceIface) NewDeleteOsCategoryParams(id string) *DeleteOsCategoryParams {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "NewDeleteOsCategoryParams", id)
+ ret0, _ := ret[0].(*DeleteOsCategoryParams)
+ return ret0
+}
+
+// NewDeleteOsCategoryParams indicates an expected call of NewDeleteOsCategoryParams.
+func (mr *MockGuestOSServiceIfaceMockRecorder) NewDeleteOsCategoryParams(id any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDeleteOsCategoryParams", reflect.TypeOf((*MockGuestOSServiceIface)(nil).NewDeleteOsCategoryParams), id)
+}
+
// NewGetHypervisorGuestOsNamesParams mocks base method.
func (m *MockGuestOSServiceIface) NewGetHypervisorGuestOsNamesParams(hypervisor, hypervisorversion string) *GetHypervisorGuestOsNamesParams {
m.ctrl.T.Helper()
@@ -435,6 +493,20 @@ func (mr *MockGuestOSServiceIfaceMockRecorder) NewUpdateGuestOsParams(id, osdisp
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateGuestOsParams", reflect.TypeOf((*MockGuestOSServiceIface)(nil).NewUpdateGuestOsParams), id, osdisplayname)
}
+// NewUpdateOsCategoryParams mocks base method.
+func (m *MockGuestOSServiceIface) NewUpdateOsCategoryParams(id string) *UpdateOsCategoryParams {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "NewUpdateOsCategoryParams", id)
+ ret0, _ := ret[0].(*UpdateOsCategoryParams)
+ return ret0
+}
+
+// NewUpdateOsCategoryParams indicates an expected call of NewUpdateOsCategoryParams.
+func (mr *MockGuestOSServiceIfaceMockRecorder) NewUpdateOsCategoryParams(id any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateOsCategoryParams", reflect.TypeOf((*MockGuestOSServiceIface)(nil).NewUpdateOsCategoryParams), id)
+}
+
// RemoveGuestOs mocks base method.
func (m *MockGuestOSServiceIface) RemoveGuestOs(p *RemoveGuestOsParams) (*RemoveGuestOsResponse, error) {
m.ctrl.T.Helper()
@@ -494,3 +566,18 @@ func (mr *MockGuestOSServiceIfaceMockRecorder) UpdateGuestOsMapping(p any) *gomo
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGuestOsMapping", reflect.TypeOf((*MockGuestOSServiceIface)(nil).UpdateGuestOsMapping), p)
}
+
+// UpdateOsCategory mocks base method.
+func (m *MockGuestOSServiceIface) UpdateOsCategory(p *UpdateOsCategoryParams) (*UpdateOsCategoryResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UpdateOsCategory", p)
+ ret0, _ := ret[0].(*UpdateOsCategoryResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UpdateOsCategory indicates an expected call of UpdateOsCategory.
+func (mr *MockGuestOSServiceIfaceMockRecorder) UpdateOsCategory(p any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOsCategory", reflect.TypeOf((*MockGuestOSServiceIface)(nil).UpdateOsCategory), p)
+}
diff --git a/cloudstack/HostService.go b/cloudstack/HostService.go
index f7d14e8..792b2bc 100644
--- a/cloudstack/HostService.go
+++ b/cloudstack/HostService.go
@@ -444,7 +444,7 @@ func (s *HostService) NewAddBaremetalHostParams(hypervisor string, podid string,
return p
}
-// add a baremetal host
+// Add a baremetal host
func (s *HostService) AddBaremetalHost(p *AddBaremetalHostParams) (*AddBaremetalHostResponse, error) {
resp, err := s.cs.newPostRequest("addBaremetalHost", p.toURLValues())
if err != nil {
@@ -1154,6 +1154,12 @@ func (p *AddSecondaryStorageParams) toURLValues() url.Values {
if p.p == nil {
return u
}
+ if v, found := p.p["details"]; found {
+ m := v.(map[string]string)
+ for i, k := range getSortedKeysFromMap(m) {
+ u.Set(fmt.Sprintf("details[%d].%s", i, k), m[k])
+ }
+ }
if v, found := p.p["url"]; found {
u.Set("url", v.(string))
}
@@ -1163,6 +1169,27 @@ func (p *AddSecondaryStorageParams) toURLValues() url.Values {
return u
}
+func (p *AddSecondaryStorageParams) SetDetails(v map[string]string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["details"] = v
+}
+
+func (p *AddSecondaryStorageParams) ResetDetails() {
+ if p.p != nil && p.p["details"] != nil {
+ delete(p.p, "details")
+ }
+}
+
+func (p *AddSecondaryStorageParams) GetDetails() (map[string]string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["details"].(map[string]string)
+ return value, ok
+}
+
func (p *AddSecondaryStorageParams) SetUrl(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2312,7 +2339,7 @@ func (s *HostService) NewFindHostsForMigrationParams(virtualmachineid string) *F
return p
}
-// Find hosts suitable for migrating a virtual machine.
+// Find hosts suitable for migrating an Instance.
func (s *HostService) FindHostsForMigration(p *FindHostsForMigrationParams) (*FindHostsForMigrationResponse, error) {
resp, err := s.cs.newRequest("findHostsForMigration", p.toURLValues())
if err != nil {
@@ -2877,6 +2904,9 @@ func (p *ListHostsParams) toURLValues() url.Values {
if v, found := p.p["type"]; found {
u.Set("type", v.(string))
}
+ if v, found := p.p["version"]; found {
+ u.Set("version", v.(string))
+ }
if v, found := p.p["virtualmachineid"]; found {
u.Set("virtualmachineid", v.(string))
}
@@ -3264,6 +3294,27 @@ func (p *ListHostsParams) GetType() (string, bool) {
return value, ok
}
+func (p *ListHostsParams) SetVersion(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["version"] = v
+}
+
+func (p *ListHostsParams) ResetVersion() {
+ if p.p != nil && p.p["version"] != nil {
+ delete(p.p, "version")
+ }
+}
+
+func (p *ListHostsParams) GetVersion() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["version"].(string)
+ return value, ok
+}
+
func (p *ListHostsParams) SetVirtualmachineid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -3581,6 +3632,9 @@ func (p *ListHostsMetricsParams) toURLValues() url.Values {
if v, found := p.p["type"]; found {
u.Set("type", v.(string))
}
+ if v, found := p.p["version"]; found {
+ u.Set("version", v.(string))
+ }
if v, found := p.p["virtualmachineid"]; found {
u.Set("virtualmachineid", v.(string))
}
@@ -3968,6 +4022,27 @@ func (p *ListHostsMetricsParams) GetType() (string, bool) {
return value, ok
}
+func (p *ListHostsMetricsParams) SetVersion(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["version"] = v
+}
+
+func (p *ListHostsMetricsParams) ResetVersion() {
+ if p.p != nil && p.p["version"] != nil {
+ delete(p.p, "version")
+ }
+}
+
+func (p *ListHostsMetricsParams) GetVersion() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["version"].(string)
+ return value, ok
+}
+
func (p *ListHostsMetricsParams) SetVirtualmachineid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -5418,7 +5493,7 @@ func (s *HostService) NewMigrateSecondaryStorageDataParams(destpools []string, s
return p
}
-// migrates data objects from one secondary storage to destination image store(s)
+// Migrates data objects from one secondary storage to destination image store(s)
func (s *HostService) MigrateSecondaryStorageData(p *MigrateSecondaryStorageDataParams) (*MigrateSecondaryStorageDataResponse, error) {
resp, err := s.cs.newPostRequest("migrateSecondaryStorageData", p.toURLValues())
if err != nil {
@@ -6339,7 +6414,7 @@ func (s *HostService) NewDeclareHostAsDegradedParams(id string) *DeclareHostAsDe
return p
}
-// Declare host as 'Degraded'. Host must be on 'Disconnected' or 'Alert' state. The ADMIN must be sure that there are no VMs running on the respective host otherwise this command might corrupted VMs that were running on the 'Degraded' host.
+// Declare host as 'Degraded'. Host must be on 'Disconnected' or 'Alert' state. The ADMIN must be sure that there are no Instances running on the respective host otherwise this command might corrupted Instances that were running on the 'Degraded' host.
func (s *HostService) DeclareHostAsDegraded(p *DeclareHostAsDegradedParams) (*DeclareHostAsDegradedResponse, error) {
resp, err := s.cs.newPostRequest("declareHostAsDegraded", p.toURLValues())
if err != nil {
diff --git a/cloudstack/ISOService.go b/cloudstack/ISOService.go
index d98f004..09510e8 100644
--- a/cloudstack/ISOService.go
+++ b/cloudstack/ISOService.go
@@ -151,7 +151,7 @@ func (s *ISOService) NewAttachIsoParams(id string, virtualmachineid string) *Att
return p
}
-// Attaches an ISO to a virtual machine.
+// Attaches an ISO to an Instance.
func (s *ISOService) AttachIso(p *AttachIsoParams) (*AttachIsoResponse, error) {
resp, err := s.cs.newPostRequest("attachIso", p.toURLValues())
if err != nil {
@@ -189,6 +189,7 @@ func (s *ISOService) AttachIso(p *AttachIsoParams) (*AttachIsoResponse, error) {
type AttachIsoResponse struct {
Account string `json:"account"`
Affinitygroup []AttachIsoResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -485,7 +486,7 @@ func (s *ISOService) NewCopyIsoParams(id string) *CopyIsoParams {
return p
}
-// Copies an iso from one zone to another.
+// Copies an ISO from one zone to another.
func (s *ISOService) CopyIso(p *CopyIsoParams) (*CopyIsoResponse, error) {
resp, err := s.cs.newPostRequest("copyIso", p.toURLValues())
if err != nil {
@@ -785,7 +786,7 @@ func (s *ISOService) NewDetachIsoParams(virtualmachineid string) *DetachIsoParam
return p
}
-// Detaches any ISO file (if any) currently attached to a virtual machine.
+// Detaches any ISO file (if any) currently attached to an Instance.
func (s *ISOService) DetachIso(p *DetachIsoParams) (*DetachIsoResponse, error) {
resp, err := s.cs.newPostRequest("detachIso", p.toURLValues())
if err != nil {
@@ -823,6 +824,7 @@ func (s *ISOService) DetachIso(p *DetachIsoParams) (*DetachIsoResponse, error) {
type DetachIsoResponse struct {
Account string `json:"account"`
Affinitygroup []DetachIsoResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -1512,7 +1514,7 @@ func (s *ISOService) NewGetUploadParamsForIsoParams(format string, name string,
return p
}
-// upload an existing ISO into the CloudStack cloud.
+// Upload an existing ISO into the CloudStack cloud.
func (s *ISOService) GetUploadParamsForIso(p *GetUploadParamsForIsoParams) (*GetUploadParamsForIsoResponse, error) {
resp, err := s.cs.newRequest("getUploadParamsForIso", p.toURLValues())
if err != nil {
@@ -1615,7 +1617,7 @@ func (s *ISOService) GetIsoPermissionByID(id string, opts ...OptionFunc) (*IsoPe
return nil, l.Count, fmt.Errorf("There is more then one result for IsoPermission UUID: %s!", id)
}
-// List iso visibility and all accounts that have permissions to view this iso.
+// List ISO visibility and all accounts that have permissions to view this ISO.
func (s *ISOService) ListIsoPermissions(p *ListIsoPermissionsParams) (*ListIsoPermissionsResponse, error) {
resp, err := s.cs.newRequest("listIsoPermissions", p.toURLValues())
if err != nil {
diff --git a/cloudstack/ImageStoreService.go b/cloudstack/ImageStoreService.go
index 8ff7f9b..2eb4d9a 100644
--- a/cloudstack/ImageStoreService.go
+++ b/cloudstack/ImageStoreService.go
@@ -713,7 +713,7 @@ func (s *ImageStoreService) NewCreateSecondaryStagingStoreParams(url string) *Cr
return p
}
-// create secondary staging store.
+// Create secondary staging store.
func (s *ImageStoreService) CreateSecondaryStagingStore(p *CreateSecondaryStagingStoreParams) (*CreateSecondaryStagingStoreResponse, error) {
resp, err := s.cs.newPostRequest("createSecondaryStagingStore", p.toURLValues())
if err != nil {
diff --git a/cloudstack/InfrastructureUsageService.go b/cloudstack/InfrastructureUsageService.go
index 6a3812d..1eff148 100644
--- a/cloudstack/InfrastructureUsageService.go
+++ b/cloudstack/InfrastructureUsageService.go
@@ -49,7 +49,7 @@ func (s *InfrastructureUsageService) NewListDbMetricsParams() *ListDbMetricsPara
return p
}
-// list the db hosts and statistics
+// List the db hosts and statistics
func (s *InfrastructureUsageService) ListDbMetrics(p *ListDbMetricsParams) (*ListDbMetricsResponse, error) {
resp, err := s.cs.newRequest("listDbMetrics", p.toURLValues())
if err != nil {
diff --git a/cloudstack/InternalLBService.go b/cloudstack/InternalLBService.go
index 1e2c53c..b903807 100644
--- a/cloudstack/InternalLBService.go
+++ b/cloudstack/InternalLBService.go
@@ -1017,7 +1017,7 @@ func (s *InternalLBService) GetInternalLoadBalancerVMByID(id string, opts ...Opt
return nil, l.Count, fmt.Errorf("There is more then one result for InternalLoadBalancerVM UUID: %s!", id)
}
-// List internal LB VMs.
+// List internal LB Instances.
func (s *InternalLBService) ListInternalLoadBalancerVMs(p *ListInternalLoadBalancerVMsParams) (*ListInternalLoadBalancerVMsResponse, error) {
resp, err := s.cs.newRequest("listInternalLoadBalancerVMs", p.toURLValues())
if err != nil {
@@ -1151,7 +1151,7 @@ func (s *InternalLBService) NewStartInternalLoadBalancerVMParams(id string) *Sta
return p
}
-// Starts an existing internal lb vm.
+// Starts an existing Internal LB Instance.
func (s *InternalLBService) StartInternalLoadBalancerVM(p *StartInternalLoadBalancerVMParams) (*StartInternalLoadBalancerVMResponse, error) {
resp, err := s.cs.newPostRequest("startInternalLoadBalancerVM", p.toURLValues())
if err != nil {
@@ -1325,7 +1325,7 @@ func (s *InternalLBService) NewStopInternalLoadBalancerVMParams(id string) *Stop
return p
}
-// Stops an Internal LB vm.
+// Stops an Internal LB Instance.
func (s *InternalLBService) StopInternalLoadBalancerVM(p *StopInternalLoadBalancerVMParams) (*StopInternalLoadBalancerVMResponse, error) {
resp, err := s.cs.newPostRequest("stopInternalLoadBalancerVM", p.toURLValues())
if err != nil {
diff --git a/cloudstack/KubernetesService.go b/cloudstack/KubernetesService.go
index 0ce0afb..b860e8e 100644
--- a/cloudstack/KubernetesService.go
+++ b/cloudstack/KubernetesService.go
@@ -66,6 +66,8 @@ type KubernetesServiceIface interface {
NewAddNodesToKubernetesClusterParams(id string, nodeids []string) *AddNodesToKubernetesClusterParams
RemoveNodesFromKubernetesCluster(p *RemoveNodesFromKubernetesClusterParams) (*RemoveNodesFromKubernetesClusterResponse, error)
NewRemoveNodesFromKubernetesClusterParams(id string, nodeids []string) *RemoveNodesFromKubernetesClusterParams
+ GetUploadParamsForKubernetesSupportedVersion(p *GetUploadParamsForKubernetesSupportedVersionParams) (*GetUploadParamsForKubernetesSupportedVersionResponse, error)
+ NewGetUploadParamsForKubernetesSupportedVersionParams(format string, mincpunumber int, minmemory int, name string, semanticversion string, zoneid string) *GetUploadParamsForKubernetesSupportedVersionParams
}
type AddKubernetesSupportedVersionParams struct {
@@ -337,6 +339,7 @@ type AddKubernetesSupportedVersionResponse struct {
Isoid string `json:"isoid"`
Isoname string `json:"isoname"`
Isostate string `json:"isostate"`
+ Isourl string `json:"isourl"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Mincpunumber int `json:"mincpunumber"`
@@ -2207,6 +2210,7 @@ type KubernetesSupportedVersion struct {
Isoid string `json:"isoid"`
Isoname string `json:"isoname"`
Isostate string `json:"isostate"`
+ Isourl string `json:"isourl"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Mincpunumber int `json:"mincpunumber"`
@@ -2838,6 +2842,7 @@ type UpdateKubernetesSupportedVersionResponse struct {
Isoid string `json:"isoid"`
Isoname string `json:"isoname"`
Isostate string `json:"isostate"`
+ Isourl string `json:"isourl"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Mincpunumber int `json:"mincpunumber"`
@@ -3716,3 +3721,302 @@ type RemoveNodesFromKubernetesClusterResponse struct {
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
+
+type GetUploadParamsForKubernetesSupportedVersionParams struct {
+ p map[string]interface{}
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) toURLValues() url.Values {
+ u := url.Values{}
+ if p.p == nil {
+ return u
+ }
+ if v, found := p.p["account"]; found {
+ u.Set("account", v.(string))
+ }
+ if v, found := p.p["checksum"]; found {
+ u.Set("checksum", v.(string))
+ }
+ if v, found := p.p["checksum"]; found {
+ u.Set("checksum", v.(string))
+ }
+ if v, found := p.p["domainid"]; found {
+ u.Set("domainid", v.(string))
+ }
+ if v, found := p.p["format"]; found {
+ u.Set("format", v.(string))
+ }
+ if v, found := p.p["mincpunumber"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("mincpunumber", vv)
+ }
+ if v, found := p.p["minmemory"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("minmemory", vv)
+ }
+ if v, found := p.p["name"]; found {
+ u.Set("name", v.(string))
+ }
+ if v, found := p.p["projectid"]; found {
+ u.Set("projectid", v.(string))
+ }
+ if v, found := p.p["semanticversion"]; found {
+ u.Set("semanticversion", v.(string))
+ }
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
+ return u
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetAccount(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["account"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetAccount() {
+ if p.p != nil && p.p["account"] != nil {
+ delete(p.p, "account")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetAccount() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["account"].(string)
+ return value, ok
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetChecksum(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["checksum"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetChecksum() {
+ if p.p != nil && p.p["checksum"] != nil {
+ delete(p.p, "checksum")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetChecksum() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["checksum"].(string)
+ return value, ok
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetDomainid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetDomainid() {
+ if p.p != nil && p.p["domainid"] != nil {
+ delete(p.p, "domainid")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetDomainid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["domainid"].(string)
+ return value, ok
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetFormat(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["format"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetFormat() {
+ if p.p != nil && p.p["format"] != nil {
+ delete(p.p, "format")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetFormat() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["format"].(string)
+ return value, ok
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetMincpunumber(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["mincpunumber"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetMincpunumber() {
+ if p.p != nil && p.p["mincpunumber"] != nil {
+ delete(p.p, "mincpunumber")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetMincpunumber() (int, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["mincpunumber"].(int)
+ return value, ok
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetMinmemory(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["minmemory"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetMinmemory() {
+ if p.p != nil && p.p["minmemory"] != nil {
+ delete(p.p, "minmemory")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetMinmemory() (int, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["minmemory"].(int)
+ return value, ok
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetName(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["name"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetName() {
+ if p.p != nil && p.p["name"] != nil {
+ delete(p.p, "name")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetName() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["name"].(string)
+ return value, ok
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetProjectid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["projectid"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetProjectid() {
+ if p.p != nil && p.p["projectid"] != nil {
+ delete(p.p, "projectid")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetProjectid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["projectid"].(string)
+ return value, ok
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetSemanticversion(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["semanticversion"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetSemanticversion() {
+ if p.p != nil && p.p["semanticversion"] != nil {
+ delete(p.p, "semanticversion")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetSemanticversion() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["semanticversion"].(string)
+ return value, ok
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) ResetZoneid() {
+ if p.p != nil && p.p["zoneid"] != nil {
+ delete(p.p, "zoneid")
+ }
+}
+
+func (p *GetUploadParamsForKubernetesSupportedVersionParams) GetZoneid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["zoneid"].(string)
+ return value, ok
+}
+
+// You should always use this function to get a new GetUploadParamsForKubernetesSupportedVersionParams instance,
+// as then you are sure you have configured all required params
+func (s *KubernetesService) NewGetUploadParamsForKubernetesSupportedVersionParams(format string, mincpunumber int, minmemory int, name string, semanticversion string, zoneid string) *GetUploadParamsForKubernetesSupportedVersionParams {
+ p := &GetUploadParamsForKubernetesSupportedVersionParams{}
+ p.p = make(map[string]interface{})
+ p.p["format"] = format
+ p.p["mincpunumber"] = mincpunumber
+ p.p["minmemory"] = minmemory
+ p.p["name"] = name
+ p.p["semanticversion"] = semanticversion
+ p.p["zoneid"] = zoneid
+ return p
+}
+
+// Upload a supported Kubernetes version
+func (s *KubernetesService) GetUploadParamsForKubernetesSupportedVersion(p *GetUploadParamsForKubernetesSupportedVersionParams) (*GetUploadParamsForKubernetesSupportedVersionResponse, error) {
+ resp, err := s.cs.newRequest("getUploadParamsForKubernetesSupportedVersion", p.toURLValues())
+ if err != nil {
+ return nil, err
+ }
+
+ var nested struct {
+ Response GetUploadParamsForKubernetesSupportedVersionResponse `json:"getuploadparams"`
+ }
+ if err := json.Unmarshal(resp, &nested); err != nil {
+ return nil, err
+ }
+ r := nested.Response
+
+ return &r, nil
+}
+
+type GetUploadParamsForKubernetesSupportedVersionResponse struct {
+ Expires string `json:"expires"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Metadata string `json:"metadata"`
+ PostURL string `json:"postURL"`
+ Signature string `json:"signature"`
+}
diff --git a/cloudstack/KubernetesService_mock.go b/cloudstack/KubernetesService_mock.go
index 65dea25..6ed11bd 100644
--- a/cloudstack/KubernetesService_mock.go
+++ b/cloudstack/KubernetesService_mock.go
@@ -289,6 +289,21 @@ func (mr *MockKubernetesServiceIfaceMockRecorder) GetKubernetesSupportedVersionI
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKubernetesSupportedVersionID", reflect.TypeOf((*MockKubernetesServiceIface)(nil).GetKubernetesSupportedVersionID), varargs...)
}
+// GetUploadParamsForKubernetesSupportedVersion mocks base method.
+func (m *MockKubernetesServiceIface) GetUploadParamsForKubernetesSupportedVersion(p *GetUploadParamsForKubernetesSupportedVersionParams) (*GetUploadParamsForKubernetesSupportedVersionResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "GetUploadParamsForKubernetesSupportedVersion", p)
+ ret0, _ := ret[0].(*GetUploadParamsForKubernetesSupportedVersionResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// GetUploadParamsForKubernetesSupportedVersion indicates an expected call of GetUploadParamsForKubernetesSupportedVersion.
+func (mr *MockKubernetesServiceIfaceMockRecorder) GetUploadParamsForKubernetesSupportedVersion(p any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUploadParamsForKubernetesSupportedVersion", reflect.TypeOf((*MockKubernetesServiceIface)(nil).GetUploadParamsForKubernetesSupportedVersion), p)
+}
+
// ListKubernetesClusters mocks base method.
func (m *MockKubernetesServiceIface) ListKubernetesClusters(p *ListKubernetesClustersParams) (*ListKubernetesClustersResponse, error) {
m.ctrl.T.Helper()
@@ -417,6 +432,20 @@ func (mr *MockKubernetesServiceIfaceMockRecorder) NewGetKubernetesClusterConfigP
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewGetKubernetesClusterConfigParams", reflect.TypeOf((*MockKubernetesServiceIface)(nil).NewGetKubernetesClusterConfigParams))
}
+// NewGetUploadParamsForKubernetesSupportedVersionParams mocks base method.
+func (m *MockKubernetesServiceIface) NewGetUploadParamsForKubernetesSupportedVersionParams(format string, mincpunumber, minmemory int, name, semanticversion, zoneid string) *GetUploadParamsForKubernetesSupportedVersionParams {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "NewGetUploadParamsForKubernetesSupportedVersionParams", format, mincpunumber, minmemory, name, semanticversion, zoneid)
+ ret0, _ := ret[0].(*GetUploadParamsForKubernetesSupportedVersionParams)
+ return ret0
+}
+
+// NewGetUploadParamsForKubernetesSupportedVersionParams indicates an expected call of NewGetUploadParamsForKubernetesSupportedVersionParams.
+func (mr *MockKubernetesServiceIfaceMockRecorder) NewGetUploadParamsForKubernetesSupportedVersionParams(format, mincpunumber, minmemory, name, semanticversion, zoneid any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewGetUploadParamsForKubernetesSupportedVersionParams", reflect.TypeOf((*MockKubernetesServiceIface)(nil).NewGetUploadParamsForKubernetesSupportedVersionParams), format, mincpunumber, minmemory, name, semanticversion, zoneid)
+}
+
// NewListKubernetesClustersParams mocks base method.
func (m *MockKubernetesServiceIface) NewListKubernetesClustersParams() *ListKubernetesClustersParams {
m.ctrl.T.Helper()
diff --git a/cloudstack/LDAPService.go b/cloudstack/LDAPService.go
index b2ab062..824f6b3 100644
--- a/cloudstack/LDAPService.go
+++ b/cloudstack/LDAPService.go
@@ -1500,7 +1500,7 @@ func (s *LDAPService) NewLinkDomainToLdapParams(accounttype int, domainid string
return p
}
-// link an existing cloudstack domain to group or OU in ldap
+// Link an existing Cloudstack domain to group or OU in ldap
func (s *LDAPService) LinkDomainToLdap(p *LinkDomainToLdapParams) (*LinkDomainToLdapResponse, error) {
resp, err := s.cs.newPostRequest("linkDomainToLdap", p.toURLValues())
if err != nil {
diff --git a/cloudstack/LoadBalancerService.go b/cloudstack/LoadBalancerService.go
index 18997dc..df12613 100644
--- a/cloudstack/LoadBalancerService.go
+++ b/cloudstack/LoadBalancerService.go
@@ -477,7 +477,7 @@ func (s *LoadBalancerService) NewAssignToLoadBalancerRuleParams(id string) *Assi
return p
}
-// Assigns virtual machine or a list of virtual machines to a load balancer rule.
+// Assigns an Instance or a list of Instances to a load balancer rule.
func (s *LoadBalancerService) AssignToLoadBalancerRule(p *AssignToLoadBalancerRuleParams) (*AssignToLoadBalancerRuleResponse, error) {
resp, err := s.cs.newPostRequest("assignToLoadBalancerRule", p.toURLValues())
if err != nil {
@@ -4011,7 +4011,7 @@ func (s *LoadBalancerService) GetLoadBalancerRuleInstanceByID(id string, opts ..
return nil, l.Count, fmt.Errorf("There is more then one result for LoadBalancerRuleInstance UUID: %s!", id)
}
-// List all virtual machine instances that are assigned to a load balancer rule.
+// List all Instances that are assigned to a load balancer rule.
func (s *LoadBalancerService) ListLoadBalancerRuleInstances(p *ListLoadBalancerRuleInstancesParams) (*ListLoadBalancerRuleInstancesResponse, error) {
resp, err := s.cs.newRequest("listLoadBalancerRuleInstances", p.toURLValues())
if err != nil {
@@ -5263,7 +5263,7 @@ func (s *LoadBalancerService) GetRegisteredServicePackageID(keyword string, opts
return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", keyword, l)
}
-// lists registered service packages
+// Lists registered service packages
func (s *LoadBalancerService) ListRegisteredServicePackages(p *ListRegisteredServicePackagesParams) (*ListRegisteredServicePackagesResponse, error) {
resp, err := s.cs.newRequest("listRegisteredServicePackages", p.toURLValues())
if err != nil {
@@ -5731,7 +5731,7 @@ func (s *LoadBalancerService) NewRemoveFromLoadBalancerRuleParams(id string) *Re
return p
}
-// Removes a virtual machine or a list of virtual machines from a load balancer rule.
+// Removes an Instance or a list of Instances from a load balancer rule.
func (s *LoadBalancerService) RemoveFromLoadBalancerRule(p *RemoveFromLoadBalancerRuleParams) (*RemoveFromLoadBalancerRuleResponse, error) {
resp, err := s.cs.newPostRequest("removeFromLoadBalancerRule", p.toURLValues())
if err != nil {
@@ -6059,7 +6059,7 @@ func (s *LoadBalancerService) NewUpdateGlobalLoadBalancerRuleParams(id string) *
return p
}
-// update global load balancer rules.
+// Update global load balancer rules.
func (s *LoadBalancerService) UpdateGlobalLoadBalancerRule(p *UpdateGlobalLoadBalancerRuleParams) (*UpdateGlobalLoadBalancerRuleResponse, error) {
resp, err := s.cs.newPostRequest("updateGlobalLoadBalancerRule", p.toURLValues())
if err != nil {
diff --git a/cloudstack/ManagementService.go b/cloudstack/ManagementService.go
index f27c7fb..f9bac33 100644
--- a/cloudstack/ManagementService.go
+++ b/cloudstack/ManagementService.go
@@ -84,6 +84,9 @@ func (p *ListManagementServersParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("peers", vv)
}
+ if v, found := p.p["version"]; found {
+ u.Set("version", v.(string))
+ }
return u
}
@@ -213,6 +216,27 @@ func (p *ListManagementServersParams) GetPeers() (bool, bool) {
return value, ok
}
+func (p *ListManagementServersParams) SetVersion(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["version"] = v
+}
+
+func (p *ListManagementServersParams) ResetVersion() {
+ if p.p != nil && p.p["version"] != nil {
+ delete(p.p, "version")
+ }
+}
+
+func (p *ListManagementServersParams) GetVersion() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["version"].(string)
+ return value, ok
+}
+
// You should always use this function to get a new ListManagementServersParams instance,
// as then you are sure you have configured all required params
func (s *ManagementService) NewListManagementServersParams() *ListManagementServersParams {
@@ -381,6 +405,9 @@ func (p *ListManagementServersMetricsParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("system", vv)
}
+ if v, found := p.p["version"]; found {
+ u.Set("version", v.(string))
+ }
return u
}
@@ -531,6 +558,27 @@ func (p *ListManagementServersMetricsParams) GetSystem() (bool, bool) {
return value, ok
}
+func (p *ListManagementServersMetricsParams) SetVersion(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["version"] = v
+}
+
+func (p *ListManagementServersMetricsParams) ResetVersion() {
+ if p.p != nil && p.p["version"] != nil {
+ delete(p.p, "version")
+ }
+}
+
+func (p *ListManagementServersMetricsParams) GetVersion() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["version"].(string)
+ return value, ok
+}
+
// You should always use this function to get a new ListManagementServersMetricsParams instance,
// as then you are sure you have configured all required params
func (s *ManagementService) NewListManagementServersMetricsParams() *ListManagementServersMetricsParams {
diff --git a/cloudstack/NetscalerService.go b/cloudstack/NetscalerService.go
index dc17de7..6e8058d 100644
--- a/cloudstack/NetscalerService.go
+++ b/cloudstack/NetscalerService.go
@@ -492,7 +492,7 @@ func (s *NetscalerService) NewConfigureNetscalerLoadBalancerParams(lbdeviceid st
return p
}
-// configures a netscaler load balancer device
+// Configures a netscaler load balancer device
func (s *NetscalerService) ConfigureNetscalerLoadBalancer(p *ConfigureNetscalerLoadBalancerParams) (*NetscalerLoadBalancerResponse, error) {
resp, err := s.cs.newPostRequest("configureNetscalerLoadBalancer", p.toURLValues())
if err != nil {
@@ -817,7 +817,7 @@ func (s *NetscalerService) NewListNetscalerControlCenterParams() *ListNetscalerC
return p
}
-// list control center
+// List control center
func (s *NetscalerService) ListNetscalerControlCenter(p *ListNetscalerControlCenterParams) (*ListNetscalerControlCenterResponse, error) {
resp, err := s.cs.newRequest("listNetscalerControlCenter", p.toURLValues())
if err != nil {
@@ -1003,7 +1003,7 @@ func (s *NetscalerService) GetNetscalerLoadBalancerNetworkID(keyword string, lbd
return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", keyword, l)
}
-// lists network that are using a netscaler load balancer device
+// Lists network that are using a netscaler load balancer device
func (s *NetscalerService) ListNetscalerLoadBalancerNetworks(p *ListNetscalerLoadBalancerNetworksParams) (*ListNetscalerLoadBalancerNetworksResponse, error) {
resp, err := s.cs.newRequest("listNetscalerLoadBalancerNetworks", p.toURLValues())
if err != nil {
@@ -1269,7 +1269,7 @@ func (s *NetscalerService) NewListNetscalerLoadBalancersParams() *ListNetscalerL
return p
}
-// lists netscaler load balancer devices
+// Lists netscaler load balancer devices
func (s *NetscalerService) ListNetscalerLoadBalancers(p *ListNetscalerLoadBalancersParams) (*ListNetscalerLoadBalancersResponse, error) {
resp, err := s.cs.newRequest("listNetscalerLoadBalancers", p.toURLValues())
if err != nil {
diff --git a/cloudstack/NetworkACLService.go b/cloudstack/NetworkACLService.go
index b64e873..751ebd9 100644
--- a/cloudstack/NetworkACLService.go
+++ b/cloudstack/NetworkACLService.go
@@ -394,7 +394,7 @@ func (s *NetworkACLService) NewCreateNetworkACLParams(protocol string) *CreateNe
return p
}
-// Creates a ACL rule in the given network (the network has to belong to VPC)
+// Creates a ACL rule in the given Network (the Network has to belong to VPC)
func (s *NetworkACLService) CreateNetworkACL(p *CreateNetworkACLParams) (*CreateNetworkACLResponse, error) {
resp, err := s.cs.newPostRequest("createNetworkACL", p.toURLValues())
if err != nil {
@@ -569,7 +569,7 @@ func (s *NetworkACLService) NewCreateNetworkACLListParams(name string, vpcid str
return p
}
-// Creates a network ACL. If no VPC is given, then it creates a global ACL that can be used by everyone.
+// Creates a Network ACL. If no VPC is given, then it creates a global ACL that can be used by everyone.
func (s *NetworkACLService) CreateNetworkACLList(p *CreateNetworkACLListParams) (*CreateNetworkACLListResponse, error) {
resp, err := s.cs.newPostRequest("createNetworkACLList", p.toURLValues())
if err != nil {
@@ -660,7 +660,7 @@ func (s *NetworkACLService) NewDeleteNetworkACLParams(id string) *DeleteNetworkA
return p
}
-// Deletes a network ACL
+// Deletes a Network ACL
func (s *NetworkACLService) DeleteNetworkACL(p *DeleteNetworkACLParams) (*DeleteNetworkACLResponse, error) {
resp, err := s.cs.newPostRequest("deleteNetworkACL", p.toURLValues())
if err != nil {
@@ -1858,7 +1858,7 @@ func (s *NetworkACLService) NewMoveNetworkAclItemParams(id string) *MoveNetworkA
return p
}
-// Move an ACL rule to a position bettwen two other ACL rules of the same ACL network list
+// Move an ACL rule to a position between two other ACL rules of the same ACL Network list
func (s *NetworkACLService) MoveNetworkAclItem(p *MoveNetworkAclItemParams) (*MoveNetworkAclItemResponse, error) {
resp, err := s.cs.newPostRequest("moveNetworkAclItem", p.toURLValues())
if err != nil {
@@ -2607,7 +2607,7 @@ func (s *NetworkACLService) NewUpdateNetworkACLListParams(id string) *UpdateNetw
return p
}
-// Updates network ACL list
+// Updates Network ACL list
func (s *NetworkACLService) UpdateNetworkACLList(p *UpdateNetworkACLListParams) (*UpdateNetworkACLListResponse, error) {
resp, err := s.cs.newPostRequest("updateNetworkACLList", p.toURLValues())
if err != nil {
diff --git a/cloudstack/NetworkService.go b/cloudstack/NetworkService.go
index cccb28f..4bf894f 100644
--- a/cloudstack/NetworkService.go
+++ b/cloudstack/NetworkService.go
@@ -1766,7 +1766,7 @@ func (s *NetworkService) NewCreateNetworkParams(name string, networkofferingid s
return p
}
-// Creates a network
+// Creates a Network
func (s *NetworkService) CreateNetwork(p *CreateNetworkParams) (*CreateNetworkResponse, error) {
resp, err := s.cs.newPostRequest("createNetwork", p.toURLValues())
if err != nil {
@@ -2105,7 +2105,7 @@ func (s *NetworkService) NewCreatePhysicalNetworkParams(name string, zoneid stri
return p
}
-// Creates a physical network
+// Creates a physical Network
func (s *NetworkService) CreatePhysicalNetwork(p *CreatePhysicalNetworkParams) (*CreatePhysicalNetworkResponse, error) {
resp, err := s.cs.newPostRequest("createPhysicalNetwork", p.toURLValues())
if err != nil {
@@ -2981,7 +2981,7 @@ func (s *NetworkService) NewDeleteNetworkParams(id string) *DeleteNetworkParams
return p
}
-// Deletes a network
+// Deletes a Network
func (s *NetworkService) DeleteNetwork(p *DeleteNetworkParams) (*DeleteNetworkResponse, error) {
resp, err := s.cs.newPostRequest("deleteNetwork", p.toURLValues())
if err != nil {
@@ -5212,7 +5212,7 @@ func (s *NetworkService) GetNiciraNvpDeviceNetworkID(keyword string, nvpdeviceid
return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", keyword, l)
}
-// lists network that are using a nicira nvp device
+// Lists network that are using a nicira nvp device
func (s *NetworkService) ListNiciraNvpDeviceNetworks(p *ListNiciraNvpDeviceNetworksParams) (*ListNiciraNvpDeviceNetworksResponse, error) {
resp, err := s.cs.newRequest("listNiciraNvpDeviceNetworks", p.toURLValues())
if err != nil {
@@ -5623,7 +5623,7 @@ func (s *NetworkService) GetPaloAltoFirewallNetworkID(keyword string, lbdeviceid
return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", keyword, l)
}
-// lists network that are using Palo Alto firewall device
+// Lists Network that are using Palo Alto firewall device
func (s *NetworkService) ListPaloAltoFirewallNetworks(p *ListPaloAltoFirewallNetworksParams) (*ListPaloAltoFirewallNetworksResponse, error) {
resp, err := s.cs.newRequest("listPaloAltoFirewallNetworks", p.toURLValues())
if err != nil {
@@ -6546,7 +6546,7 @@ func (s *NetworkService) NewMigrateNetworkParams(networkid string, networkofferi
return p
}
-// moves a network to another physical network
+// Moves a network to another physical network
func (s *NetworkService) MigrateNetwork(p *MigrateNetworkParams) (*MigrateNetworkResponse, error) {
resp, err := s.cs.newPostRequest("migrateNetwork", p.toURLValues())
if err != nil {
@@ -6899,7 +6899,7 @@ func (s *NetworkService) NewRestartNetworkParams(id string) *RestartNetworkParam
return p
}
-// Restarts the network; includes 1) restarting network elements - virtual routers, DHCP servers 2) reapplying all public IPs 3) reapplying loadBalancing/portForwarding rules
+// Restarts the Network; includes 1) restarting network elements - virtual routers, DHCP servers 2) reapplying all public IPs 3) reapplying loadBalancing/portForwarding rules
func (s *NetworkService) RestartNetwork(p *RestartNetworkParams) (*RestartNetworkResponse, error) {
resp, err := s.cs.newPostRequest("restartNetwork", p.toURLValues())
if err != nil {
@@ -8704,7 +8704,7 @@ func (s *NetworkService) NewResetNetworkPermissionsParams(networkid string) *Res
return p
}
-// Resets network permissions.
+// Resets Network permissions.
func (s *NetworkService) ResetNetworkPermissions(p *ResetNetworkPermissionsParams) (*ResetNetworkPermissionsResponse, error) {
resp, err := s.cs.newPostRequest("resetNetworkPermissions", p.toURLValues())
if err != nil {
@@ -8798,7 +8798,7 @@ func (s *NetworkService) NewListNetworkPermissionsParams(networkid string) *List
return p
}
-// List network visibility and all accounts that have permissions to view this network.
+// List Network visibility and all Accounts that have permissions to view this Network.
func (s *NetworkService) ListNetworkPermissions(p *ListNetworkPermissionsParams) (*ListNetworkPermissionsResponse, error) {
resp, err := s.cs.newRequest("listNetworkPermissions", p.toURLValues())
if err != nil {
@@ -8950,7 +8950,7 @@ func (s *NetworkService) NewRemoveNetworkPermissionsParams(networkid string) *Re
return p
}
-// Removes network permissions.
+// Removes Network permissions.
func (s *NetworkService) RemoveNetworkPermissions(p *RemoveNetworkPermissionsParams) (*RemoveNetworkPermissionsResponse, error) {
resp, err := s.cs.newPostRequest("removeNetworkPermissions", p.toURLValues())
if err != nil {
diff --git a/cloudstack/NicService.go b/cloudstack/NicService.go
index 3fe8f33..eee7d36 100644
--- a/cloudstack/NicService.go
+++ b/cloudstack/NicService.go
@@ -346,7 +346,7 @@ func (s *NicService) NewListNicsParams(virtualmachineid string) *ListNicsParams
return p
}
-// list the vm nics IP to NIC
+// List the Instance NICs IP to NIC
func (s *NicService) ListNics(p *ListNicsParams) (*ListNicsResponse, error) {
resp, err := s.cs.newRequest("listNics", p.toURLValues())
if err != nil {
@@ -556,7 +556,7 @@ func (s *NicService) NewUpdateVmNicIpParams(nicid string) *UpdateVmNicIpParams {
return p
}
-// Update the default Ip of a VM Nic
+// Update the default IP of an Instance NIC
func (s *NicService) UpdateVmNicIp(p *UpdateVmNicIpParams) (*UpdateVmNicIpResponse, error) {
resp, err := s.cs.newPostRequest("updateVmNicIp", p.toURLValues())
if err != nil {
@@ -594,6 +594,7 @@ func (s *NicService) UpdateVmNicIp(p *UpdateVmNicIpParams) (*UpdateVmNicIpRespon
type UpdateVmNicIpResponse struct {
Account string `json:"account"`
Affinitygroup []UpdateVmNicIpResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
diff --git a/cloudstack/PoolService.go b/cloudstack/PoolService.go
index 9ea2f50..641c527 100644
--- a/cloudstack/PoolService.go
+++ b/cloudstack/PoolService.go
@@ -45,6 +45,11 @@ type PoolServiceIface interface {
NewSyncStoragePoolParams(id string) *SyncStoragePoolParams
UpdateStoragePool(p *UpdateStoragePoolParams) (*UpdateStoragePoolResponse, error)
NewUpdateStoragePoolParams(id string) *UpdateStoragePoolParams
+ ConfigureStorageAccess(p *ConfigureStorageAccessParams) (*StorageAccessResponse, error)
+ NewConfigureStorageAccessParams() *ConfigureStorageAccessParams
+ ListStorageAccessGroups(p *ListStorageAccessGroupsParams) (*ListStorageAccessGroupsResponse, error)
+ NewListStorageAccessGroupsParams() *ListStorageAccessGroupsParams
+ GetStorageAccessGroupID(name string, opts ...OptionFunc) (string, int, error)
}
type CreateStoragePoolParams struct {
@@ -1806,3 +1811,391 @@ type UpdateStoragePoolResponse struct {
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
+
+type ConfigureStorageAccessParams struct {
+ p map[string]interface{}
+}
+
+func (p *ConfigureStorageAccessParams) toURLValues() url.Values {
+ u := url.Values{}
+ if p.p == nil {
+ return u
+ }
+ if v, found := p.p["clusterid"]; found {
+ u.Set("clusterid", v.(string))
+ }
+ if v, found := p.p["hostid"]; found {
+ u.Set("hostid", v.(string))
+ }
+ if v, found := p.p["podid"]; found {
+ u.Set("podid", v.(string))
+ }
+ if v, found := p.p["storageaccessgroups"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("storageaccessgroups", vv)
+ }
+ if v, found := p.p["storageid"]; found {
+ u.Set("storageid", v.(string))
+ }
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
+ return u
+}
+
+func (p *ConfigureStorageAccessParams) SetClusterid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["clusterid"] = v
+}
+
+func (p *ConfigureStorageAccessParams) ResetClusterid() {
+ if p.p != nil && p.p["clusterid"] != nil {
+ delete(p.p, "clusterid")
+ }
+}
+
+func (p *ConfigureStorageAccessParams) GetClusterid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["clusterid"].(string)
+ return value, ok
+}
+
+func (p *ConfigureStorageAccessParams) SetHostid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["hostid"] = v
+}
+
+func (p *ConfigureStorageAccessParams) ResetHostid() {
+ if p.p != nil && p.p["hostid"] != nil {
+ delete(p.p, "hostid")
+ }
+}
+
+func (p *ConfigureStorageAccessParams) GetHostid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["hostid"].(string)
+ return value, ok
+}
+
+func (p *ConfigureStorageAccessParams) SetPodid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["podid"] = v
+}
+
+func (p *ConfigureStorageAccessParams) ResetPodid() {
+ if p.p != nil && p.p["podid"] != nil {
+ delete(p.p, "podid")
+ }
+}
+
+func (p *ConfigureStorageAccessParams) GetPodid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["podid"].(string)
+ return value, ok
+}
+
+func (p *ConfigureStorageAccessParams) SetStorageaccessgroups(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["storageaccessgroups"] = v
+}
+
+func (p *ConfigureStorageAccessParams) ResetStorageaccessgroups() {
+ if p.p != nil && p.p["storageaccessgroups"] != nil {
+ delete(p.p, "storageaccessgroups")
+ }
+}
+
+func (p *ConfigureStorageAccessParams) GetStorageaccessgroups() ([]string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["storageaccessgroups"].([]string)
+ return value, ok
+}
+
+func (p *ConfigureStorageAccessParams) SetStorageid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["storageid"] = v
+}
+
+func (p *ConfigureStorageAccessParams) ResetStorageid() {
+ if p.p != nil && p.p["storageid"] != nil {
+ delete(p.p, "storageid")
+ }
+}
+
+func (p *ConfigureStorageAccessParams) GetStorageid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["storageid"].(string)
+ return value, ok
+}
+
+func (p *ConfigureStorageAccessParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
+func (p *ConfigureStorageAccessParams) ResetZoneid() {
+ if p.p != nil && p.p["zoneid"] != nil {
+ delete(p.p, "zoneid")
+ }
+}
+
+func (p *ConfigureStorageAccessParams) GetZoneid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["zoneid"].(string)
+ return value, ok
+}
+
+// You should always use this function to get a new ConfigureStorageAccessParams instance,
+// as then you are sure you have configured all required params
+func (s *PoolService) NewConfigureStorageAccessParams() *ConfigureStorageAccessParams {
+ p := &ConfigureStorageAccessParams{}
+ p.p = make(map[string]interface{})
+ return p
+}
+
+// Configure the storage access groups on zone/pod/cluster/host and storage, accordingly connections to the storage pools
+func (s *PoolService) ConfigureStorageAccess(p *ConfigureStorageAccessParams) (*StorageAccessResponse, error) {
+ resp, err := s.cs.newPostRequest("configureStorageAccess", p.toURLValues())
+ if err != nil {
+ return nil, err
+ }
+
+ var r StorageAccessResponse
+ if err := json.Unmarshal(resp, &r); err != nil {
+ return nil, err
+ }
+
+ // If we have a async client, we need to wait for the async result
+ if s.cs.async {
+ b, err := s.cs.GetAsyncJobResult(r.JobID, s.cs.timeout)
+ if err != nil {
+ if err == AsyncTimeoutErr {
+ return &r, err
+ }
+ return nil, err
+ }
+
+ if err := json.Unmarshal(b, &r); err != nil {
+ return nil, err
+ }
+ }
+
+ return &r, nil
+}
+
+type StorageAccessResponse struct {
+ Displaytext string `json:"displaytext"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Success bool `json:"success"`
+}
+
+type ListStorageAccessGroupsParams struct {
+ p map[string]interface{}
+}
+
+func (p *ListStorageAccessGroupsParams) toURLValues() url.Values {
+ u := url.Values{}
+ if p.p == nil {
+ return u
+ }
+ if v, found := p.p["keyword"]; found {
+ u.Set("keyword", v.(string))
+ }
+ if v, found := p.p["name"]; found {
+ u.Set("name", v.(string))
+ }
+ if v, found := p.p["page"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("page", vv)
+ }
+ if v, found := p.p["pagesize"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("pagesize", vv)
+ }
+ return u
+}
+
+func (p *ListStorageAccessGroupsParams) SetKeyword(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["keyword"] = v
+}
+
+func (p *ListStorageAccessGroupsParams) ResetKeyword() {
+ if p.p != nil && p.p["keyword"] != nil {
+ delete(p.p, "keyword")
+ }
+}
+
+func (p *ListStorageAccessGroupsParams) GetKeyword() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["keyword"].(string)
+ return value, ok
+}
+
+func (p *ListStorageAccessGroupsParams) SetName(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["name"] = v
+}
+
+func (p *ListStorageAccessGroupsParams) ResetName() {
+ if p.p != nil && p.p["name"] != nil {
+ delete(p.p, "name")
+ }
+}
+
+func (p *ListStorageAccessGroupsParams) GetName() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["name"].(string)
+ return value, ok
+}
+
+func (p *ListStorageAccessGroupsParams) SetPage(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["page"] = v
+}
+
+func (p *ListStorageAccessGroupsParams) ResetPage() {
+ if p.p != nil && p.p["page"] != nil {
+ delete(p.p, "page")
+ }
+}
+
+func (p *ListStorageAccessGroupsParams) GetPage() (int, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["page"].(int)
+ return value, ok
+}
+
+func (p *ListStorageAccessGroupsParams) SetPagesize(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["pagesize"] = v
+}
+
+func (p *ListStorageAccessGroupsParams) ResetPagesize() {
+ if p.p != nil && p.p["pagesize"] != nil {
+ delete(p.p, "pagesize")
+ }
+}
+
+func (p *ListStorageAccessGroupsParams) GetPagesize() (int, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["pagesize"].(int)
+ return value, ok
+}
+
+// You should always use this function to get a new ListStorageAccessGroupsParams instance,
+// as then you are sure you have configured all required params
+func (s *PoolService) NewListStorageAccessGroupsParams() *ListStorageAccessGroupsParams {
+ p := &ListStorageAccessGroupsParams{}
+ p.p = make(map[string]interface{})
+ return p
+}
+
+// This is a courtesy helper function, which in some cases may not work as expected!
+func (s *PoolService) GetStorageAccessGroupID(name string, opts ...OptionFunc) (string, int, error) {
+ p := &ListStorageAccessGroupsParams{}
+ p.p = make(map[string]interface{})
+
+ p.p["name"] = name
+
+ for _, fn := range append(s.cs.options, opts...) {
+ if err := fn(s.cs, p); err != nil {
+ return "", -1, err
+ }
+ }
+
+ l, err := s.ListStorageAccessGroups(p)
+ if err != nil {
+ return "", -1, err
+ }
+
+ if l.Count == 0 {
+ return "", l.Count, fmt.Errorf("No match found for %s: %+v", name, l)
+ }
+
+ if l.Count == 1 {
+ return l.StorageAccessGroups[0].Id, l.Count, nil
+ }
+
+ if l.Count > 1 {
+ for _, v := range l.StorageAccessGroups {
+ if v.Name == name {
+ return v.Id, l.Count, nil
+ }
+ }
+ }
+ return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", name, l)
+}
+
+// Lists storage access groups
+func (s *PoolService) ListStorageAccessGroups(p *ListStorageAccessGroupsParams) (*ListStorageAccessGroupsResponse, error) {
+ resp, err := s.cs.newRequest("listStorageAccessGroups", p.toURLValues())
+ if err != nil {
+ return nil, err
+ }
+
+ var r ListStorageAccessGroupsResponse
+ if err := json.Unmarshal(resp, &r); err != nil {
+ return nil, err
+ }
+
+ return &r, nil
+}
+
+type ListStorageAccessGroupsResponse struct {
+ Count int `json:"count"`
+ StorageAccessGroups []*StorageAccessGroup `json:"storageaccessgroup"`
+}
+
+type StorageAccessGroup struct {
+ Clusters string `json:"clusters"`
+ Hosts string `json:"hosts"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Pods string `json:"pods"`
+ Storagepools string `json:"storagepools"`
+ Zones string `json:"zones"`
+}
diff --git a/cloudstack/PoolService_mock.go b/cloudstack/PoolService_mock.go
index 261f24a..3cb5c66 100644
--- a/cloudstack/PoolService_mock.go
+++ b/cloudstack/PoolService_mock.go
@@ -58,6 +58,21 @@ func (m *MockPoolServiceIface) EXPECT() *MockPoolServiceIfaceMockRecorder {
return m.recorder
}
+// ConfigureStorageAccess mocks base method.
+func (m *MockPoolServiceIface) ConfigureStorageAccess(p *ConfigureStorageAccessParams) (*StorageAccessResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "ConfigureStorageAccess", p)
+ ret0, _ := ret[0].(*StorageAccessResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// ConfigureStorageAccess indicates an expected call of ConfigureStorageAccess.
+func (mr *MockPoolServiceIfaceMockRecorder) ConfigureStorageAccess(p any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigureStorageAccess", reflect.TypeOf((*MockPoolServiceIface)(nil).ConfigureStorageAccess), p)
+}
+
// CreateStoragePool mocks base method.
func (m *MockPoolServiceIface) CreateStoragePool(p *CreateStoragePoolParams) (*CreateStoragePoolResponse, error) {
m.ctrl.T.Helper()
@@ -103,6 +118,27 @@ func (mr *MockPoolServiceIfaceMockRecorder) FindStoragePoolsForMigration(p any)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindStoragePoolsForMigration", reflect.TypeOf((*MockPoolServiceIface)(nil).FindStoragePoolsForMigration), p)
}
+// GetStorageAccessGroupID mocks base method.
+func (m *MockPoolServiceIface) GetStorageAccessGroupID(name string, opts ...OptionFunc) (string, int, error) {
+ m.ctrl.T.Helper()
+ varargs := []any{name}
+ for _, a := range opts {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "GetStorageAccessGroupID", varargs...)
+ ret0, _ := ret[0].(string)
+ ret1, _ := ret[1].(int)
+ ret2, _ := ret[2].(error)
+ return ret0, ret1, ret2
+}
+
+// GetStorageAccessGroupID indicates an expected call of GetStorageAccessGroupID.
+func (mr *MockPoolServiceIfaceMockRecorder) GetStorageAccessGroupID(name any, opts ...any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ varargs := append([]any{name}, opts...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStorageAccessGroupID", reflect.TypeOf((*MockPoolServiceIface)(nil).GetStorageAccessGroupID), varargs...)
+}
+
// GetStoragePoolByID mocks base method.
func (m *MockPoolServiceIface) GetStoragePoolByID(id string, opts ...OptionFunc) (*StoragePool, int, error) {
m.ctrl.T.Helper()
@@ -181,6 +217,21 @@ func (mr *MockPoolServiceIfaceMockRecorder) ListElastistorPool(p any) *gomock.Ca
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListElastistorPool", reflect.TypeOf((*MockPoolServiceIface)(nil).ListElastistorPool), p)
}
+// ListStorageAccessGroups mocks base method.
+func (m *MockPoolServiceIface) ListStorageAccessGroups(p *ListStorageAccessGroupsParams) (*ListStorageAccessGroupsResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "ListStorageAccessGroups", p)
+ ret0, _ := ret[0].(*ListStorageAccessGroupsResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// ListStorageAccessGroups indicates an expected call of ListStorageAccessGroups.
+func (mr *MockPoolServiceIfaceMockRecorder) ListStorageAccessGroups(p any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStorageAccessGroups", reflect.TypeOf((*MockPoolServiceIface)(nil).ListStorageAccessGroups), p)
+}
+
// ListStoragePools mocks base method.
func (m *MockPoolServiceIface) ListStoragePools(p *ListStoragePoolsParams) (*ListStoragePoolsResponse, error) {
m.ctrl.T.Helper()
@@ -196,6 +247,20 @@ func (mr *MockPoolServiceIfaceMockRecorder) ListStoragePools(p any) *gomock.Call
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStoragePools", reflect.TypeOf((*MockPoolServiceIface)(nil).ListStoragePools), p)
}
+// NewConfigureStorageAccessParams mocks base method.
+func (m *MockPoolServiceIface) NewConfigureStorageAccessParams() *ConfigureStorageAccessParams {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "NewConfigureStorageAccessParams")
+ ret0, _ := ret[0].(*ConfigureStorageAccessParams)
+ return ret0
+}
+
+// NewConfigureStorageAccessParams indicates an expected call of NewConfigureStorageAccessParams.
+func (mr *MockPoolServiceIfaceMockRecorder) NewConfigureStorageAccessParams() *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewConfigureStorageAccessParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewConfigureStorageAccessParams))
+}
+
// NewCreateStoragePoolParams mocks base method.
func (m *MockPoolServiceIface) NewCreateStoragePoolParams(name, url, zoneid string) *CreateStoragePoolParams {
m.ctrl.T.Helper()
@@ -252,6 +317,20 @@ func (mr *MockPoolServiceIfaceMockRecorder) NewListElastistorPoolParams() *gomoc
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListElastistorPoolParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewListElastistorPoolParams))
}
+// NewListStorageAccessGroupsParams mocks base method.
+func (m *MockPoolServiceIface) NewListStorageAccessGroupsParams() *ListStorageAccessGroupsParams {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "NewListStorageAccessGroupsParams")
+ ret0, _ := ret[0].(*ListStorageAccessGroupsParams)
+ return ret0
+}
+
+// NewListStorageAccessGroupsParams indicates an expected call of NewListStorageAccessGroupsParams.
+func (mr *MockPoolServiceIfaceMockRecorder) NewListStorageAccessGroupsParams() *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListStorageAccessGroupsParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewListStorageAccessGroupsParams))
+}
+
// NewListStoragePoolsParams mocks base method.
func (m *MockPoolServiceIface) NewListStoragePoolsParams() *ListStoragePoolsParams {
m.ctrl.T.Helper()
diff --git a/cloudstack/PortableIPService.go b/cloudstack/PortableIPService.go
index 92ec0e3..59a497f 100644
--- a/cloudstack/PortableIPService.go
+++ b/cloudstack/PortableIPService.go
@@ -207,7 +207,7 @@ func (s *PortableIPService) NewCreatePortableIpRangeParams(endip string, gateway
return p
}
-// adds a range of portable public IP's to a region
+// Adds a range of portable public IP's to a region
func (s *PortableIPService) CreatePortableIpRange(p *CreatePortableIpRangeParams) (*CreatePortableIpRangeResponse, error) {
resp, err := s.cs.newPostRequest("createPortableIpRange", p.toURLValues())
if err != nil {
@@ -313,7 +313,7 @@ func (s *PortableIPService) NewDeletePortableIpRangeParams(id string) *DeletePor
return p
}
-// deletes a range of portable public IP's associated with a region
+// Deletes a range of portable public IP's associated with a region
func (s *PortableIPService) DeletePortableIpRange(p *DeletePortableIpRangeParams) (*DeletePortableIpRangeResponse, error) {
resp, err := s.cs.newPostRequest("deletePortableIpRange", p.toURLValues())
if err != nil {
@@ -526,7 +526,7 @@ func (s *PortableIPService) GetPortableIpRangeByID(id string, opts ...OptionFunc
return nil, l.Count, fmt.Errorf("There is more then one result for PortableIpRange UUID: %s!", id)
}
-// list portable IP ranges
+// List portable IP ranges
func (s *PortableIPService) ListPortableIpRanges(p *ListPortableIpRangesParams) (*ListPortableIpRangesResponse, error) {
resp, err := s.cs.newRequest("listPortableIpRanges", p.toURLValues())
if err != nil {
diff --git a/cloudstack/ProjectService.go b/cloudstack/ProjectService.go
index bbafee4..e761ecb 100644
--- a/cloudstack/ProjectService.go
+++ b/cloudstack/ProjectService.go
@@ -362,7 +362,7 @@ func (s *ProjectService) NewAddAccountToProjectParams(projectid string) *AddAcco
return p
}
-// Adds account to a project
+// Adds Account to a project
func (s *ProjectService) AddAccountToProject(p *AddAccountToProjectParams) (*AddAccountToProjectResponse, error) {
resp, err := s.cs.newPostRequest("addAccountToProject", p.toURLValues())
if err != nil {
@@ -541,7 +541,7 @@ func (s *ProjectService) NewAddUserToProjectParams(projectid string, username st
return p
}
-// Adds user to a project
+// Adds User to a project
func (s *ProjectService) AddUserToProject(p *AddUserToProjectParams) (*AddUserToProjectResponse, error) {
resp, err := s.cs.newPostRequest("addUserToProject", p.toURLValues())
if err != nil {
@@ -916,7 +916,7 @@ func (s *ProjectService) NewDeleteAccountFromProjectParams(account string, proje
return p
}
-// Deletes account from the project
+// Deletes Account from the project
func (s *ProjectService) DeleteAccountFromProject(p *DeleteAccountFromProjectParams) (*DeleteAccountFromProjectResponse, error) {
resp, err := s.cs.newPostRequest("deleteAccountFromProject", p.toURLValues())
if err != nil {
@@ -1023,7 +1023,7 @@ func (s *ProjectService) NewDeleteUserFromProjectParams(projectid string, userid
return p
}
-// Deletes user from the project
+// Deletes User from the project
func (s *ProjectService) DeleteUserFromProject(p *DeleteUserFromProjectParams) (*DeleteUserFromProjectResponse, error) {
resp, err := s.cs.newPostRequest("deleteUserFromProject", p.toURLValues())
if err != nil {
diff --git a/cloudstack/QuotaService.go b/cloudstack/QuotaService.go
index ac50a38..e47fdd0 100644
--- a/cloudstack/QuotaService.go
+++ b/cloudstack/QuotaService.go
@@ -362,7 +362,7 @@ func (s *QuotaService) NewQuotaCreditsParams(account string, domainid string, va
return p
}
-// Add +-credits to an account
+// Add +-credits to an Account
func (s *QuotaService) QuotaCredits(p *QuotaCreditsParams) (*QuotaCreditsResponse, error) {
resp, err := s.cs.newPostRequest("quotaCredits", p.toURLValues())
if err != nil {
@@ -800,7 +800,7 @@ func (s *QuotaService) NewQuotaSummaryParams() *QuotaSummaryParams {
return p
}
-// Lists balance and quota usage for all accounts
+// Lists balance and quota usage for all Accounts
func (s *QuotaService) QuotaSummary(p *QuotaSummaryParams) (*QuotaSummaryResponse, error) {
resp, err := s.cs.newRequest("quotaSummary", p.toURLValues())
if err != nil {
diff --git a/cloudstack/ResourceIconService.go b/cloudstack/ResourceIconService.go
index 45e1e12..1af9a52 100644
--- a/cloudstack/ResourceIconService.go
+++ b/cloudstack/ResourceIconService.go
@@ -106,7 +106,7 @@ func (s *ResourceIconService) NewDeleteResourceIconParams(resourceids []string,
return p
}
-// deletes the resource icon from the specified resource(s)
+// Deletes the resource icon from the specified resource(s)
func (s *ResourceIconService) DeleteResourceIcon(p *DeleteResourceIconParams) (*DeleteResourceIconResponse, error) {
resp, err := s.cs.newPostRequest("deleteResourceIcon", p.toURLValues())
if err != nil {
diff --git a/cloudstack/ResourcemetadataService.go b/cloudstack/ResourcemetadataService.go
index 28f35b0..df2db58 100644
--- a/cloudstack/ResourcemetadataService.go
+++ b/cloudstack/ResourcemetadataService.go
@@ -269,7 +269,7 @@ func (s *ResourcemetadataService) NewListDetailOptionsParams(resourcetype string
return p
}
-// Lists all possible details and their options for a resource type such as a VM or a template
+// Lists all possible details and their options for a resource type such as an Instance or a Template
func (s *ResourcemetadataService) ListDetailOptions(p *ListDetailOptionsParams) (*ListDetailOptionsResponse, error) {
resp, err := s.cs.newRequest("listDetailOptions", p.toURLValues())
if err != nil {
diff --git a/cloudstack/SSHService.go b/cloudstack/SSHService.go
index 30038d4..9c583d8 100644
--- a/cloudstack/SSHService.go
+++ b/cloudstack/SSHService.go
@@ -1106,7 +1106,7 @@ func (s *SSHService) NewResetSSHKeyForVirtualMachineParams(id string) *ResetSSHK
return p
}
-// Resets the SSH Key for virtual machine. The virtual machine must be in a "Stopped" state. [async]
+// Resets the SSH Key for Instance. The Instance must be in a "Stopped" state. [async]
func (s *SSHService) ResetSSHKeyForVirtualMachine(p *ResetSSHKeyForVirtualMachineParams) (*ResetSSHKeyForVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("resetSSHKeyForVirtualMachine", p.toURLValues())
if err != nil {
@@ -1144,6 +1144,7 @@ func (s *SSHService) ResetSSHKeyForVirtualMachine(p *ResetSSHKeyForVirtualMachin
type ResetSSHKeyForVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []ResetSSHKeyForVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
diff --git a/cloudstack/SnapshotService.go b/cloudstack/SnapshotService.go
index ab11f36..6f497b9 100644
--- a/cloudstack/SnapshotService.go
+++ b/cloudstack/SnapshotService.go
@@ -112,7 +112,7 @@ func (s *SnapshotService) NewArchiveSnapshotParams(id string) *ArchiveSnapshotPa
return p
}
-// Archives (moves) a snapshot on primary storage to secondary storage
+// Archives (moves) a Snapshot on primary storage to secondary storage
func (s *SnapshotService) ArchiveSnapshot(p *ArchiveSnapshotParams) (*ArchiveSnapshotResponse, error) {
resp, err := s.cs.newPostRequest("archiveSnapshot", p.toURLValues())
if err != nil {
@@ -168,6 +168,8 @@ type ArchiveSnapshotResponse struct {
Name string `json:"name"`
Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
+ Parent string `json:"parent"`
+ Parentname string `json:"parentname"`
Physicalsize int64 `json:"physicalsize"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -436,6 +438,8 @@ type CopySnapshotResponse struct {
Name string `json:"name"`
Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
+ Parent string `json:"parent"`
+ Parentname string `json:"parentname"`
Physicalsize int64 `json:"physicalsize"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -798,7 +802,7 @@ func (s *SnapshotService) NewCreateSnapshotParams(volumeid string) *CreateSnapsh
return p
}
-// Creates an instant snapshot of a volume.
+// Creates an instant Snapshot of a volume.
func (s *SnapshotService) CreateSnapshot(p *CreateSnapshotParams) (*CreateSnapshotResponse, error) {
resp, err := s.cs.newPostRequest("createSnapshot", p.toURLValues())
if err != nil {
@@ -854,6 +858,8 @@ type CreateSnapshotResponse struct {
Name string `json:"name"`
Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
+ Parent string `json:"parent"`
+ Parentname string `json:"parentname"`
Physicalsize int64 `json:"physicalsize"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -992,7 +998,7 @@ func (s *SnapshotService) NewCreateSnapshotFromVMSnapshotParams(vmsnapshotid str
return p
}
-// Creates an instant snapshot of a volume from existing vm snapshot.
+// Creates an instant Snapshot of a volume from existing Instance Snapshot.
func (s *SnapshotService) CreateSnapshotFromVMSnapshot(p *CreateSnapshotFromVMSnapshotParams) (*CreateSnapshotFromVMSnapshotResponse, error) {
resp, err := s.cs.newPostRequest("createSnapshotFromVMSnapshot", p.toURLValues())
if err != nil {
@@ -1048,6 +1054,8 @@ type CreateSnapshotFromVMSnapshotResponse struct {
Name string `json:"name"`
Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
+ Parent string `json:"parent"`
+ Parentname string `json:"parentname"`
Physicalsize int64 `json:"physicalsize"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -1366,7 +1374,7 @@ func (s *SnapshotService) NewCreateSnapshotPolicyParams(intervaltype string, max
return p
}
-// Creates a snapshot policy for the account.
+// Creates a Snapshot policy for the account.
func (s *SnapshotService) CreateSnapshotPolicy(p *CreateSnapshotPolicyParams) (*CreateSnapshotPolicyResponse, error) {
resp, err := s.cs.newPostRequest("createSnapshotPolicy", p.toURLValues())
if err != nil {
@@ -1541,7 +1549,7 @@ func (s *SnapshotService) NewCreateVMSnapshotParams(virtualmachineid string) *Cr
return p
}
-// Creates snapshot for a vm.
+// Creates Snapshot for an Instance.
func (s *SnapshotService) CreateVMSnapshot(p *CreateVMSnapshotParams) (*CreateVMSnapshotResponse, error) {
resp, err := s.cs.newPostRequest("createVMSnapshot", p.toURLValues())
if err != nil {
@@ -1673,7 +1681,7 @@ func (s *SnapshotService) NewDeleteSnapshotParams(id string) *DeleteSnapshotPara
return p
}
-// Deletes a snapshot of a disk volume.
+// Deletes a Snapshot of a disk volume.
func (s *SnapshotService) DeleteSnapshot(p *DeleteSnapshotParams) (*DeleteSnapshotResponse, error) {
resp, err := s.cs.newPostRequest("deleteSnapshot", p.toURLValues())
if err != nil {
@@ -1779,7 +1787,7 @@ func (s *SnapshotService) NewDeleteSnapshotPoliciesParams() *DeleteSnapshotPolic
return p
}
-// Deletes snapshot policies for the account.
+// Deletes Snapshot policies for the account.
func (s *SnapshotService) DeleteSnapshotPolicies(p *DeleteSnapshotPoliciesParams) (*DeleteSnapshotPoliciesResponse, error) {
resp, err := s.cs.newPostRequest("deleteSnapshotPolicies", p.toURLValues())
if err != nil {
@@ -1873,7 +1881,7 @@ func (s *SnapshotService) NewDeleteVMSnapshotParams(vmsnapshotid string) *Delete
return p
}
-// Deletes a vmsnapshot.
+// Deletes an Instance Snapshot.
func (s *SnapshotService) DeleteVMSnapshot(p *DeleteVMSnapshotParams) (*DeleteVMSnapshotResponse, error) {
resp, err := s.cs.newPostRequest("deleteVMSnapshot", p.toURLValues())
if err != nil {
@@ -2356,7 +2364,7 @@ func (s *SnapshotService) GetSnapshotPolicyByID(id string, opts ...OptionFunc) (
return nil, l.Count, fmt.Errorf("There is more then one result for SnapshotPolicy UUID: %s!", id)
}
-// Lists snapshot policies.
+// Lists Snapshot policies.
func (s *SnapshotService) ListSnapshotPolicies(p *ListSnapshotPoliciesParams) (*ListSnapshotPoliciesResponse, error) {
resp, err := s.cs.newRequest("listSnapshotPolicies", p.toURLValues())
if err != nil {
@@ -3027,6 +3035,8 @@ type Snapshot struct {
Name string `json:"name"`
Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
+ Parent string `json:"parent"`
+ Parentname string `json:"parentname"`
Physicalsize int64 `json:"physicalsize"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -3472,7 +3482,7 @@ func (s *SnapshotService) GetVMSnapshotID(name string, opts ...OptionFunc) (stri
return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", name, l)
}
-// List virtual machine snapshot by conditions
+// List Instance Snapshot by conditions
func (s *SnapshotService) ListVMSnapshot(p *ListVMSnapshotParams) (*ListVMSnapshotResponse, error) {
resp, err := s.cs.newRequest("listVMSnapshot", p.toURLValues())
if err != nil {
@@ -3565,7 +3575,7 @@ func (s *SnapshotService) NewRevertSnapshotParams(id string) *RevertSnapshotPara
return p
}
-// This is supposed to revert a volume snapshot. This command is only supported with KVM so far
+// This is supposed to revert a volume Snapshot. This command is only supported with KVM so far
func (s *SnapshotService) RevertSnapshot(p *RevertSnapshotParams) (*RevertSnapshotResponse, error) {
resp, err := s.cs.newPostRequest("revertSnapshot", p.toURLValues())
if err != nil {
@@ -3621,6 +3631,8 @@ type RevertSnapshotResponse struct {
Name string `json:"name"`
Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
+ Parent string `json:"parent"`
+ Parentname string `json:"parentname"`
Physicalsize int64 `json:"physicalsize"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -3710,7 +3722,7 @@ func (s *SnapshotService) NewRevertToVMSnapshotParams(vmsnapshotid string) *Reve
return p
}
-// Revert VM from a vmsnapshot.
+// Revert Instance from a vmsnapshot.
func (s *SnapshotService) RevertToVMSnapshot(p *RevertToVMSnapshotParams) (*RevertToVMSnapshotResponse, error) {
resp, err := s.cs.newPostRequest("revertToVMSnapshot", p.toURLValues())
if err != nil {
@@ -3748,6 +3760,7 @@ func (s *SnapshotService) RevertToVMSnapshot(p *RevertToVMSnapshotParams) (*Reve
type RevertToVMSnapshotResponse struct {
Account string `json:"account"`
Affinitygroup []RevertToVMSnapshotResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -4019,7 +4032,7 @@ func (s *SnapshotService) NewUpdateSnapshotPolicyParams() *UpdateSnapshotPolicyP
return p
}
-// Updates the snapshot policy.
+// Updates the Snapshot policy.
func (s *SnapshotService) UpdateSnapshotPolicy(p *UpdateSnapshotPolicyParams) (*UpdateSnapshotPolicyResponse, error) {
resp, err := s.cs.newPostRequest("updateSnapshotPolicy", p.toURLValues())
if err != nil {
diff --git a/cloudstack/SystemVMService.go b/cloudstack/SystemVMService.go
index f024d06..c9e573b 100644
--- a/cloudstack/SystemVMService.go
+++ b/cloudstack/SystemVMService.go
@@ -257,7 +257,7 @@ func (s *SystemVMService) NewDestroySystemVmParams(id string) *DestroySystemVmPa
return p
}
-// Destroys a system virtual machine.
+// Destroys a System VM.
func (s *SystemVMService) DestroySystemVm(p *DestroySystemVmParams) (*DestroySystemVmResponse, error) {
resp, err := s.cs.newPostRequest("destroySystemVm", p.toURLValues())
if err != nil {
@@ -729,7 +729,7 @@ func (s *SystemVMService) GetSystemVmByID(id string, opts ...OptionFunc) (*Syste
return nil, l.Count, fmt.Errorf("There is more then one result for SystemVm UUID: %s!", id)
}
-// List system virtual machines.
+// List System VMs.
func (s *SystemVMService) ListSystemVms(p *ListSystemVmsParams) (*ListSystemVmsResponse, error) {
resp, err := s.cs.newRequest("listSystemVms", p.toURLValues())
if err != nil {
@@ -1255,7 +1255,7 @@ func (s *SystemVMService) NewMigrateSystemVmParams(virtualmachineid string) *Mig
return p
}
-// Attempts Migration of a system virtual machine to the host specified.
+// Attempts Migration of a System VM to the host specified.
func (s *SystemVMService) MigrateSystemVm(p *MigrateSystemVmParams) (*MigrateSystemVmResponse, error) {
resp, err := s.cs.newPostRequest("migrateSystemVm", p.toURLValues())
if err != nil {
@@ -1704,7 +1704,7 @@ func (s *SystemVMService) NewStartSystemVmParams(id string) *StartSystemVmParams
return p
}
-// Starts a system virtual machine.
+// Starts a System VM.
func (s *SystemVMService) StartSystemVm(p *StartSystemVmParams) (*StartSystemVmResponse, error) {
resp, err := s.cs.newPostRequest("startSystemVm", p.toURLValues())
if err != nil {
diff --git a/cloudstack/TemplateService.go b/cloudstack/TemplateService.go
index dd7f68e..08f5607 100644
--- a/cloudstack/TemplateService.go
+++ b/cloudstack/TemplateService.go
@@ -178,7 +178,7 @@ func (s *TemplateService) NewCopyTemplateParams(id string) *CopyTemplateParams {
return p
}
-// Copies a template from one zone to another.
+// Copies a Template from one zone to another.
func (s *TemplateService) CopyTemplate(p *CopyTemplateParams) (*CopyTemplateResponse, error) {
resp, err := s.cs.newPostRequest("copyTemplate", p.toURLValues())
if err != nil {
@@ -839,7 +839,7 @@ func (s *TemplateService) NewCreateTemplateParams(displaytext string, name strin
return p
}
-// Creates a template of a virtual machine. The virtual machine must be in a STOPPED state. A template created from this command is automatically designated as a private template visible to the account that created it.
+// Creates a Template of an Instance. The Instance must be in a STOPPED state. A Template created from this command is automatically designated as a private Template visible to the account that created it.
func (s *TemplateService) CreateTemplate(p *CreateTemplateParams) (*CreateTemplateResponse, error) {
resp, err := s.cs.newPostRequest("createTemplate", p.toURLValues())
if err != nil {
@@ -1082,7 +1082,7 @@ func (s *TemplateService) NewDeleteTemplateParams(id string) *DeleteTemplatePara
return p
}
-// Deletes a template from the system. All virtual machines using the deleted template will not be affected.
+// Deletes a Template from the system. All Instances using the deleted Template will not be affected.
func (s *TemplateService) DeleteTemplate(p *DeleteTemplateParams) (*DeleteTemplateResponse, error) {
resp, err := s.cs.newPostRequest("deleteTemplate", p.toURLValues())
if err != nil {
@@ -1237,7 +1237,7 @@ func (s *TemplateService) NewExtractTemplateParams(id string, mode string) *Extr
return p
}
-// Extracts a template
+// Extracts a Template
func (s *TemplateService) ExtractTemplate(p *ExtractTemplateParams) (*ExtractTemplateResponse, error) {
resp, err := s.cs.newPostRequest("extractTemplate", p.toURLValues())
if err != nil {
@@ -1930,7 +1930,7 @@ func (s *TemplateService) NewGetUploadParamsForTemplateParams(displaytext string
return p
}
-// upload an existing template into the CloudStack cloud.
+// Upload an existing Template into the CloudStack cloud.
func (s *TemplateService) GetUploadParamsForTemplate(p *GetUploadParamsForTemplateParams) (*GetUploadParamsForTemplateResponse, error) {
resp, err := s.cs.newRequest("getUploadParamsForTemplate", p.toURLValues())
if err != nil {
@@ -2036,7 +2036,7 @@ func (s *TemplateService) GetTemplatePermissionByID(id string, opts ...OptionFun
return nil, l.Count, fmt.Errorf("There is more then one result for TemplatePermission UUID: %s!", id)
}
-// List template visibility and all accounts that have permissions to view this template.
+// List Template visibility and all accounts that have permissions to view this Template.
func (s *TemplateService) ListTemplatePermissions(p *ListTemplatePermissionsParams) (*ListTemplatePermissionsResponse, error) {
resp, err := s.cs.newRequest("listTemplatePermissions", p.toURLValues())
if err != nil {
@@ -2885,7 +2885,7 @@ func (s *TemplateService) GetTemplateByID(id string, templatefilter string, opts
return nil, l.Count, fmt.Errorf("There is more then one result for Template UUID: %s!", id)
}
-// List all public, private, and privileged templates.
+// List all public, private, and privileged Templates.
func (s *TemplateService) ListTemplates(p *ListTemplatesParams) (*ListTemplatesResponse, error) {
resp, err := s.cs.newRequest("listTemplates", p.toURLValues())
if err != nil {
@@ -3088,7 +3088,7 @@ func (s *TemplateService) NewPrepareTemplateParams(templateid string, zoneid str
return p
}
-// load template into primary storage
+// Load Template into primary storage
func (s *TemplateService) PrepareTemplate(p *PrepareTemplateParams) (*PrepareTemplateResponse, error) {
resp, err := s.cs.newPostRequest("prepareTemplate", p.toURLValues())
if err != nil {
@@ -3956,7 +3956,7 @@ func (s *TemplateService) NewRegisterTemplateParams(displaytext string, format s
return p
}
-// Registers an existing template into the CloudStack cloud.
+// Registers an existing Template into the CloudStack cloud.
func (s *TemplateService) RegisterTemplate(p *RegisterTemplateParams) (*RegisterTemplateResponse, error) {
resp, err := s.cs.newPostRequest("registerTemplate", p.toURLValues())
if err != nil {
@@ -4555,7 +4555,7 @@ func (s *TemplateService) NewUpdateTemplateParams(id string) *UpdateTemplatePara
return p
}
-// Updates attributes of a template.
+// Updates attributes of a Template.
func (s *TemplateService) UpdateTemplate(p *UpdateTemplateParams) (*UpdateTemplateResponse, error) {
resp, err := s.cs.newPostRequest("updateTemplate", p.toURLValues())
if err != nil {
@@ -4853,7 +4853,7 @@ func (s *TemplateService) NewUpdateTemplatePermissionsParams(id string) *UpdateT
return p
}
-// Updates a template visibility permissions. A public template is visible to all accounts within the same domain. A private template is visible only to the owner of the template. A privileged template is a private template with account permissions added. Only accounts specified under the template permissions are visible to them.
+// Updates a Template visibility permissions. A public Template is visible to all accounts within the same domain. A private Template is visible only to the owner of the Template. A privileged Template is a private Template with account permissions added. Only accounts specified under the Template permissions are visible to them.
func (s *TemplateService) UpdateTemplatePermissions(p *UpdateTemplatePermissionsParams) (*UpdateTemplatePermissionsResponse, error) {
resp, err := s.cs.newPostRequest("updateTemplatePermissions", p.toURLValues())
if err != nil {
@@ -5066,7 +5066,7 @@ func (s *TemplateService) NewUpgradeRouterTemplateParams() *UpgradeRouterTemplat
return p
}
-// Upgrades router to use newer template
+// Upgrades router to use newer Template
func (s *TemplateService) UpgradeRouterTemplate(p *UpgradeRouterTemplateParams) (*UpgradeRouterTemplateResponse, error) {
resp, err := s.cs.newPostRequest("upgradeRouterTemplate", p.toURLValues())
if err != nil {
@@ -5202,7 +5202,7 @@ func (s *TemplateService) NewLinkUserDataToTemplateParams() *LinkUserDataToTempl
return p
}
-// Link or unlink a userdata to a template.
+// Link or unlink a userdata to a Template.
func (s *TemplateService) LinkUserDataToTemplate(p *LinkUserDataToTemplateParams) (*LinkUserDataToTemplateResponse, error) {
resp, err := s.cs.newPostRequest("linkUserDataToTemplate", p.toURLValues())
if err != nil {
diff --git a/cloudstack/UCSService.go b/cloudstack/UCSService.go
index 0cbbd3d..65896d2 100644
--- a/cloudstack/UCSService.go
+++ b/cloudstack/UCSService.go
@@ -308,7 +308,7 @@ func (s *UCSService) NewAssociateUcsProfileToBladeParams(bladeid string, profile
return p
}
-// associate a profile to a blade
+// Associate a profile to a blade
func (s *UCSService) AssociateUcsProfileToBlade(p *AssociateUcsProfileToBladeParams) (*AssociateUcsProfileToBladeResponse, error) {
resp, err := s.cs.newPostRequest("associateUcsProfileToBlade", p.toURLValues())
if err != nil {
diff --git a/cloudstack/UserService.go b/cloudstack/UserService.go
index 1b46c0b..10fc217 100644
--- a/cloudstack/UserService.go
+++ b/cloudstack/UserService.go
@@ -868,7 +868,7 @@ func (s *UserService) NewGetVirtualMachineUserDataParams(virtualmachineid string
return p
}
-// Returns user data associated with the VM
+// Returns user data associated with the Instance
func (s *UserService) GetVirtualMachineUserData(p *GetVirtualMachineUserDataParams) (*GetVirtualMachineUserDataResponse, error) {
resp, err := s.cs.newRequest("getVirtualMachineUserData", p.toURLValues())
if err != nil {
diff --git a/cloudstack/VMGroupService.go b/cloudstack/VMGroupService.go
index c64a179..0f5e74c 100644
--- a/cloudstack/VMGroupService.go
+++ b/cloudstack/VMGroupService.go
@@ -158,7 +158,7 @@ func (s *VMGroupService) NewCreateInstanceGroupParams(name string) *CreateInstan
return p
}
-// Creates a vm group
+// Creates an Instance group
func (s *VMGroupService) CreateInstanceGroup(p *CreateInstanceGroupParams) (*CreateInstanceGroupResponse, error) {
resp, err := s.cs.newPostRequest("createInstanceGroup", p.toURLValues())
if err != nil {
@@ -233,7 +233,7 @@ func (s *VMGroupService) NewDeleteInstanceGroupParams(id string) *DeleteInstance
return p
}
-// Deletes a vm group
+// Deletes an Instance group
func (s *VMGroupService) DeleteInstanceGroup(p *DeleteInstanceGroupParams) (*DeleteInstanceGroupResponse, error) {
resp, err := s.cs.newPostRequest("deleteInstanceGroup", p.toURLValues())
if err != nil {
@@ -629,7 +629,7 @@ func (s *VMGroupService) GetInstanceGroupByID(id string, opts ...OptionFunc) (*I
return nil, l.Count, fmt.Errorf("There is more then one result for InstanceGroup UUID: %s!", id)
}
-// Lists vm groups
+// Lists Instance groups
func (s *VMGroupService) ListInstanceGroups(p *ListInstanceGroupsParams) (*ListInstanceGroupsResponse, error) {
resp, err := s.cs.newRequest("listInstanceGroups", p.toURLValues())
if err != nil {
@@ -733,7 +733,7 @@ func (s *VMGroupService) NewUpdateInstanceGroupParams(id string) *UpdateInstance
return p
}
-// Updates a vm group
+// Updates an Instance group
func (s *VMGroupService) UpdateInstanceGroup(p *UpdateInstanceGroupParams) (*UpdateInstanceGroupResponse, error) {
resp, err := s.cs.newPostRequest("updateInstanceGroup", p.toURLValues())
if err != nil {
diff --git a/cloudstack/VPCService.go b/cloudstack/VPCService.go
index d5f67d0..59fe105 100644
--- a/cloudstack/VPCService.go
+++ b/cloudstack/VPCService.go
@@ -4127,7 +4127,7 @@ func (s *VPCService) NewMigrateVPCParams(vpcid string, vpcofferingid string) *Mi
return p
}
-// moves a vpc to another physical network
+// Moves a VPC to another physical network
func (s *VPCService) MigrateVPC(p *MigrateVPCParams) (*MigrateVPCResponse, error) {
resp, err := s.cs.newPostRequest("migrateVPC", p.toURLValues())
if err != nil {
diff --git a/cloudstack/VPNService.go b/cloudstack/VPNService.go
index 785c1cd..056b594 100644
--- a/cloudstack/VPNService.go
+++ b/cloudstack/VPNService.go
@@ -219,7 +219,7 @@ func (s *VPNService) NewAddVpnUserParams(password string, username string) *AddV
return p
}
-// Adds vpn users
+// Adds VPN Users
func (s *VPNService) AddVpnUser(p *AddVpnUserParams) (*AddVpnUserResponse, error) {
resp, err := s.cs.newPostRequest("addVpnUser", p.toURLValues())
if err != nil {
@@ -435,7 +435,7 @@ func (s *VPNService) NewCreateRemoteAccessVpnParams(publicipid string) *CreateRe
return p
}
-// Creates a l2tp/ipsec remote access vpn
+// Creates a l2tp/ipsec remote access VPN
func (s *VPNService) CreateRemoteAccessVpn(p *CreateRemoteAccessVpnParams) (*CreateRemoteAccessVpnResponse, error) {
resp, err := s.cs.newPostRequest("createRemoteAccessVpn", p.toURLValues())
if err != nil {
@@ -608,7 +608,7 @@ func (s *VPNService) NewCreateVpnConnectionParams(s2scustomergatewayid string, s
return p
}
-// Create site to site vpn connection
+// Create site to site VPN connection
func (s *VPNService) CreateVpnConnection(p *CreateVpnConnectionParams) (*CreateVpnConnectionResponse, error) {
resp, err := s.cs.newPostRequest("createVpnConnection", p.toURLValues())
if err != nil {
@@ -1064,7 +1064,7 @@ func (s *VPNService) NewCreateVpnCustomerGatewayParams(cidrlist string, esppolic
return p
}
-// Creates site to site vpn customer gateway
+// Creates site to site VPN customer gateway
func (s *VPNService) CreateVpnCustomerGateway(p *CreateVpnCustomerGatewayParams) (*CreateVpnCustomerGatewayResponse, error) {
resp, err := s.cs.newPostRequest("createVpnCustomerGateway", p.toURLValues())
if err != nil {
@@ -1220,7 +1220,7 @@ func (s *VPNService) NewCreateVpnGatewayParams(vpcid string) *CreateVpnGatewayPa
return p
}
-// Creates site to site vpn local gateway
+// Creates site to site VPN local gateway
func (s *VPNService) CreateVpnGateway(p *CreateVpnGatewayParams) (*CreateVpnGatewayResponse, error) {
resp, err := s.cs.newPostRequest("createVpnGateway", p.toURLValues())
if err != nil {
@@ -1317,7 +1317,7 @@ func (s *VPNService) NewDeleteRemoteAccessVpnParams(publicipid string) *DeleteRe
return p
}
-// Destroys a l2tp/ipsec remote access vpn
+// Destroys a l2tp/ipsec remote access VPN
func (s *VPNService) DeleteRemoteAccessVpn(p *DeleteRemoteAccessVpnParams) (*DeleteRemoteAccessVpnResponse, error) {
resp, err := s.cs.newPostRequest("deleteRemoteAccessVpn", p.toURLValues())
if err != nil {
@@ -1399,7 +1399,7 @@ func (s *VPNService) NewDeleteVpnConnectionParams(id string) *DeleteVpnConnectio
return p
}
-// Delete site to site vpn connection
+// Delete site to site VPN connection
func (s *VPNService) DeleteVpnConnection(p *DeleteVpnConnectionParams) (*DeleteVpnConnectionResponse, error) {
resp, err := s.cs.newPostRequest("deleteVpnConnection", p.toURLValues())
if err != nil {
@@ -1481,7 +1481,7 @@ func (s *VPNService) NewDeleteVpnCustomerGatewayParams(id string) *DeleteVpnCust
return p
}
-// Delete site to site vpn customer gateway
+// Delete site to site VPN customer gateway
func (s *VPNService) DeleteVpnCustomerGateway(p *DeleteVpnCustomerGatewayParams) (*DeleteVpnCustomerGatewayResponse, error) {
resp, err := s.cs.newPostRequest("deleteVpnCustomerGateway", p.toURLValues())
if err != nil {
@@ -1563,7 +1563,7 @@ func (s *VPNService) NewDeleteVpnGatewayParams(id string) *DeleteVpnGatewayParam
return p
}
-// Delete site to site vpn gateway
+// Delete site to site VPN gateway
func (s *VPNService) DeleteVpnGateway(p *DeleteVpnGatewayParams) (*DeleteVpnGatewayResponse, error) {
resp, err := s.cs.newPostRequest("deleteVpnGateway", p.toURLValues())
if err != nil {
@@ -1946,7 +1946,7 @@ func (s *VPNService) GetRemoteAccessVpnByID(id string, opts ...OptionFunc) (*Rem
return nil, l.Count, fmt.Errorf("There is more then one result for RemoteAccessVpn UUID: %s!", id)
}
-// Lists remote access vpns
+// Lists remote access VPNs
func (s *VPNService) ListRemoteAccessVpns(p *ListRemoteAccessVpnsParams) (*ListRemoteAccessVpnsResponse, error) {
resp, err := s.cs.newRequest("listRemoteAccessVpns", p.toURLValues())
if err != nil {
@@ -2306,7 +2306,7 @@ func (s *VPNService) GetVpnConnectionByID(id string, opts ...OptionFunc) (*VpnCo
return nil, l.Count, fmt.Errorf("There is more then one result for VpnConnection UUID: %s!", id)
}
-// Lists site to site vpn connection gateways
+// Lists site to site VPN connection gateways
func (s *VPNService) ListVpnConnections(p *ListVpnConnectionsParams) (*ListVpnConnectionsResponse, error) {
resp, err := s.cs.newRequest("listVpnConnections", p.toURLValues())
if err != nil {
@@ -2680,7 +2680,7 @@ func (s *VPNService) GetVpnCustomerGatewayByID(id string, opts ...OptionFunc) (*
return nil, l.Count, fmt.Errorf("There is more then one result for VpnCustomerGateway UUID: %s!", id)
}
-// Lists site to site vpn customer gateways
+// Lists site to site VPN customer gateways
func (s *VPNService) ListVpnCustomerGateways(p *ListVpnCustomerGatewaysParams) (*ListVpnCustomerGatewaysResponse, error) {
resp, err := s.cs.newRequest("listVpnCustomerGateways", p.toURLValues())
if err != nil {
@@ -3049,7 +3049,7 @@ func (s *VPNService) GetVpnGatewayByID(id string, opts ...OptionFunc) (*VpnGatew
return nil, l.Count, fmt.Errorf("There is more then one result for VpnGateway UUID: %s!", id)
}
-// Lists site 2 site vpn gateways
+// Lists site 2 site VPN gateways
func (s *VPNService) ListVpnGateways(p *ListVpnGatewaysParams) (*ListVpnGatewaysResponse, error) {
resp, err := s.cs.newRequest("listVpnGateways", p.toURLValues())
if err != nil {
@@ -3383,7 +3383,7 @@ func (s *VPNService) GetVpnUserByID(id string, opts ...OptionFunc) (*VpnUser, in
return nil, l.Count, fmt.Errorf("There is more then one result for VpnUser UUID: %s!", id)
}
-// Lists vpn users
+// Lists VPN Users
func (s *VPNService) ListVpnUsers(p *ListVpnUsersParams) (*ListVpnUsersResponse, error) {
resp, err := s.cs.newRequest("listVpnUsers", p.toURLValues())
if err != nil {
@@ -3534,7 +3534,7 @@ func (s *VPNService) NewRemoveVpnUserParams(username string) *RemoveVpnUserParam
return p
}
-// Removes vpn user
+// Removes VPN User
func (s *VPNService) RemoveVpnUser(p *RemoveVpnUserParams) (*RemoveVpnUserResponse, error) {
resp, err := s.cs.newPostRequest("removeVpnUser", p.toURLValues())
if err != nil {
@@ -3664,7 +3664,7 @@ func (s *VPNService) NewResetVpnConnectionParams(id string) *ResetVpnConnectionP
return p
}
-// Reset site to site vpn connection
+// Reset site to site VPN connection
func (s *VPNService) ResetVpnConnection(p *ResetVpnConnectionParams) (*ResetVpnConnectionResponse, error) {
resp, err := s.cs.newPostRequest("resetVpnConnection", p.toURLValues())
if err != nil {
@@ -3824,7 +3824,7 @@ func (s *VPNService) NewUpdateRemoteAccessVpnParams(id string) *UpdateRemoteAcce
return p
}
-// Updates remote access vpn
+// Updates remote access VPN
func (s *VPNService) UpdateRemoteAccessVpn(p *UpdateRemoteAccessVpnParams) (*UpdateRemoteAccessVpnResponse, error) {
resp, err := s.cs.newPostRequest("updateRemoteAccessVpn", p.toURLValues())
if err != nil {
@@ -3971,7 +3971,7 @@ func (s *VPNService) NewUpdateVpnConnectionParams(id string) *UpdateVpnConnectio
return p
}
-// Updates site to site vpn connection
+// Updates site to site VPN connection
func (s *VPNService) UpdateVpnConnection(p *UpdateVpnConnectionParams) (*UpdateVpnConnectionResponse, error) {
resp, err := s.cs.newPostRequest("updateVpnConnection", p.toURLValues())
if err != nil {
@@ -4428,7 +4428,7 @@ func (s *VPNService) NewUpdateVpnCustomerGatewayParams(cidrlist string, esppolic
return p
}
-// Update site to site vpn customer gateway
+// Update site to site VPN customer gateway
func (s *VPNService) UpdateVpnCustomerGateway(p *UpdateVpnCustomerGatewayParams) (*UpdateVpnCustomerGatewayResponse, error) {
resp, err := s.cs.newPostRequest("updateVpnCustomerGateway", p.toURLValues())
if err != nil {
@@ -4584,7 +4584,7 @@ func (s *VPNService) NewUpdateVpnGatewayParams(id string) *UpdateVpnGatewayParam
return p
}
-// Updates site to site vpn local gateway
+// Updates site to site VPN local gateway
func (s *VPNService) UpdateVpnGateway(p *UpdateVpnGatewayParams) (*UpdateVpnGatewayResponse, error) {
resp, err := s.cs.newPostRequest("updateVpnGateway", p.toURLValues())
if err != nil {
diff --git a/cloudstack/VirtualMachineService.go b/cloudstack/VirtualMachineService.go
index c235101..4f9bab6 100644
--- a/cloudstack/VirtualMachineService.go
+++ b/cloudstack/VirtualMachineService.go
@@ -258,7 +258,7 @@ func (s *VirtualMachineService) NewAddNicToVirtualMachineParams(networkid string
return p
}
-// Adds VM to specified network by creating a NIC
+// Adds Instance to specified network by creating a NIC
func (s *VirtualMachineService) AddNicToVirtualMachine(p *AddNicToVirtualMachineParams) (*AddNicToVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("addNicToVirtualMachine", p.toURLValues())
if err != nil {
@@ -296,6 +296,7 @@ func (s *VirtualMachineService) AddNicToVirtualMachine(p *AddNicToVirtualMachine
type AddNicToVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []AddNicToVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -641,7 +642,7 @@ func (s *VirtualMachineService) NewAssignVirtualMachineParams(virtualmachineid s
return p
}
-// Change ownership of a VM from one account to another. This API is available for Basic zones with security groups and Advanced zones with guest networks. A root administrator can reassign a VM from any account to any other account in any domain. A domain administrator can reassign a VM to any account in the same domain.
+// Change ownership of an Instance from one account to another. This API is available for Basic zones with security groups and Advanced zones with guest networks. A root administrator can reassign an Instance from any account to any other account in any domain. A domain administrator can reassign an Instance to any account in the same domain.
func (s *VirtualMachineService) AssignVirtualMachine(p *AssignVirtualMachineParams) (*AssignVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("assignVirtualMachine", p.toURLValues())
if err != nil {
@@ -659,6 +660,7 @@ func (s *VirtualMachineService) AssignVirtualMachine(p *AssignVirtualMachinePara
type AssignVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []AssignVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -1034,7 +1036,7 @@ func (s *VirtualMachineService) NewChangeServiceForVirtualMachineParams(id strin
return p
}
-// (This API is deprecated, use scaleVirtualMachine API)Changes the service offering for a virtual machine. The virtual machine must be in a "Stopped" state for this command to take effect.
+// (This API is deprecated, use scaleVirtualMachine API)Changes the service offering for an Instance. The Instance must be in a "Stopped" state for this command to take effect.
func (s *VirtualMachineService) ChangeServiceForVirtualMachine(p *ChangeServiceForVirtualMachineParams) (*ChangeServiceForVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("changeServiceForVirtualMachine", p.toURLValues())
if err != nil {
@@ -1052,6 +1054,7 @@ func (s *VirtualMachineService) ChangeServiceForVirtualMachine(p *ChangeServiceF
type ChangeServiceForVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []ChangeServiceForVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -1250,7 +1253,7 @@ func (s *VirtualMachineService) NewCleanVMReservationsParams() *CleanVMReservati
return p
}
-// Cleanups VM reservations in the database.
+// Cleanups Instance reservations in the database.
func (s *VirtualMachineService) CleanVMReservations(p *CleanVMReservationsParams) (*CleanVMReservationsResponse, error) {
resp, err := s.cs.newPostRequest("cleanVMReservations", p.toURLValues())
if err != nil {
@@ -2813,7 +2816,7 @@ func (s *VirtualMachineService) NewDeployVirtualMachineParams(serviceofferingid
return p
}
-// Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
+// Creates and automatically starts an Instance based on a service offering, disk offering, and Template.
func (s *VirtualMachineService) DeployVirtualMachine(p *DeployVirtualMachineParams) (*DeployVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("deployVirtualMachine", p.toURLValues())
if err != nil {
@@ -2851,6 +2854,7 @@ func (s *VirtualMachineService) DeployVirtualMachine(p *DeployVirtualMachinePara
type DeployVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []DeployVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -3124,7 +3128,7 @@ func (s *VirtualMachineService) NewDestroyVirtualMachineParams(id string) *Destr
return p
}
-// Destroys a virtual machine. Once destroyed, only the administrator can recover it.
+// Destroys an Instance. Once destroyed, only the administrator can recover it.
func (s *VirtualMachineService) DestroyVirtualMachine(p *DestroyVirtualMachineParams) (*DestroyVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("destroyVirtualMachine", p.toURLValues())
if err != nil {
@@ -3162,6 +3166,7 @@ func (s *VirtualMachineService) DestroyVirtualMachine(p *DestroyVirtualMachinePa
type DestroyVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []DestroyVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -3385,7 +3390,7 @@ func (s *VirtualMachineService) NewExpungeVirtualMachineParams(id string) *Expun
return p
}
-// Expunge a virtual machine. Once expunged, it cannot be recoverd.
+// Expunge an Instance. Once expunged, it cannot be recovered.
func (s *VirtualMachineService) ExpungeVirtualMachine(p *ExpungeVirtualMachineParams) (*ExpungeVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("expungeVirtualMachine", p.toURLValues())
if err != nil {
@@ -3467,7 +3472,7 @@ func (s *VirtualMachineService) NewGetVMPasswordParams(id string) *GetVMPassword
return p
}
-// Returns an encrypted password for the VM
+// Returns an encrypted password for the Instance
func (s *VirtualMachineService) GetVMPassword(p *GetVMPasswordParams) (*GetVMPasswordResponse, error) {
resp, err := s.cs.newRequest("getVMPassword", p.toURLValues())
if err != nil {
@@ -4691,7 +4696,7 @@ func (s *VirtualMachineService) GetVirtualMachineByID(id string, opts ...OptionF
return nil, l.Count, fmt.Errorf("There is more then one result for VirtualMachine UUID: %s!", id)
}
-// List the virtual machines owned by the account.
+// List the Instances owned by the account.
func (s *VirtualMachineService) ListVirtualMachines(p *ListVirtualMachinesParams) (*ListVirtualMachinesResponse, error) {
resp, err := s.cs.newRequest("listVirtualMachines", p.toURLValues())
if err != nil {
@@ -4714,6 +4719,7 @@ type ListVirtualMachinesResponse struct {
type VirtualMachine struct {
Account string `json:"account"`
Affinitygroup []VirtualMachineAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -6118,6 +6124,7 @@ type ListVirtualMachinesMetricsResponse struct {
type VirtualMachinesMetric struct {
Account string `json:"account"`
Affinitygroup []VirtualMachinesMetricAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -6541,24 +6548,26 @@ type ListVmsForImportResponse struct {
}
type VmsForImport struct {
- Bootmode string `json:"bootmode"`
- Boottype string `json:"boottype"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Cpucorepersocket int `json:"cpucorepersocket"`
- Cpunumber int `json:"cpunumber"`
- Cpuspeed int `json:"cpuspeed"`
- Disk []VmsForImportDisk `json:"disk"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Memory int `json:"memory"`
- Name string `json:"name"`
- Nic []Nic `json:"nic"`
- Osdisplayname string `json:"osdisplayname"`
- Osid string `json:"osid"`
- Powerstate string `json:"powerstate"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Cpucorepersocket int `json:"cpucorepersocket"`
+ Cpunumber int `json:"cpunumber"`
+ Cpuspeed int `json:"cpuspeed"`
+ Disk []VmsForImportDisk `json:"disk"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Memory int `json:"memory"`
+ Name string `json:"name"`
+ Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
+ Osid string `json:"osid"`
+ Powerstate string `json:"powerstate"`
}
type VmsForImportDisk struct {
@@ -6693,7 +6702,7 @@ func (s *VirtualMachineService) NewMigrateVirtualMachineParams(virtualmachineid
return p
}
-// Attempts Migration of a VM to a different host or Root volume of the vm to a different storage pool
+// Attempts Migration of an Instance to a different host or Root volume of the Instance to a different storage pool
func (s *VirtualMachineService) MigrateVirtualMachine(p *MigrateVirtualMachineParams) (*MigrateVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("migrateVirtualMachine", p.toURLValues())
if err != nil {
@@ -6731,6 +6740,7 @@ func (s *VirtualMachineService) MigrateVirtualMachine(p *MigrateVirtualMachinePa
type MigrateVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []MigrateVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -7046,7 +7056,7 @@ func (s *VirtualMachineService) NewMigrateVirtualMachineWithVolumeParams(virtual
return p
}
-// Attempts Migration of a VM with its volumes to a different host
+// Attempts Migration of an Instance with its volumes to a different host
func (s *VirtualMachineService) MigrateVirtualMachineWithVolume(p *MigrateVirtualMachineWithVolumeParams) (*MigrateVirtualMachineWithVolumeResponse, error) {
resp, err := s.cs.newPostRequest("migrateVirtualMachineWithVolume", p.toURLValues())
if err != nil {
@@ -7084,6 +7094,7 @@ func (s *VirtualMachineService) MigrateVirtualMachineWithVolume(p *MigrateVirtua
type MigrateVirtualMachineWithVolumeResponse struct {
Account string `json:"account"`
Affinitygroup []MigrateVirtualMachineWithVolumeResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -7357,7 +7368,7 @@ func (s *VirtualMachineService) NewRebootVirtualMachineParams(id string) *Reboot
return p
}
-// Reboots a virtual machine.
+// Reboots an Instance.
func (s *VirtualMachineService) RebootVirtualMachine(p *RebootVirtualMachineParams) (*RebootVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("rebootVirtualMachine", p.toURLValues())
if err != nil {
@@ -7395,6 +7406,7 @@ func (s *VirtualMachineService) RebootVirtualMachine(p *RebootVirtualMachinePara
type RebootVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []RebootVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -7618,7 +7630,7 @@ func (s *VirtualMachineService) NewRecoverVirtualMachineParams(id string) *Recov
return p
}
-// Recovers a virtual machine.
+// Recovers an Instance.
func (s *VirtualMachineService) RecoverVirtualMachine(p *RecoverVirtualMachineParams) (*RecoverVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("recoverVirtualMachine", p.toURLValues())
if err != nil {
@@ -7636,6 +7648,7 @@ func (s *VirtualMachineService) RecoverVirtualMachine(p *RecoverVirtualMachinePa
type RecoverVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []RecoverVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -7884,7 +7897,7 @@ func (s *VirtualMachineService) NewRemoveNicFromVirtualMachineParams(nicid strin
return p
}
-// Removes VM from specified network by deleting a NIC
+// Removes Instance from specified network by deleting a NIC
func (s *VirtualMachineService) RemoveNicFromVirtualMachine(p *RemoveNicFromVirtualMachineParams) (*RemoveNicFromVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("removeNicFromVirtualMachine", p.toURLValues())
if err != nil {
@@ -7922,6 +7935,7 @@ func (s *VirtualMachineService) RemoveNicFromVirtualMachine(p *RemoveNicFromVirt
type RemoveNicFromVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []RemoveNicFromVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -8169,7 +8183,7 @@ func (s *VirtualMachineService) NewResetPasswordForVirtualMachineParams(id strin
return p
}
-// Resets the password for virtual machine. The virtual machine must be in a "Stopped" state and the template must already support this feature for this command to take effect. [async]
+// Resets the password for Instance. The Instance must be in a "Stopped" state and the Template must already support this feature for this command to take effect. [async]
func (s *VirtualMachineService) ResetPasswordForVirtualMachine(p *ResetPasswordForVirtualMachineParams) (*ResetPasswordForVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("resetPasswordForVirtualMachine", p.toURLValues())
if err != nil {
@@ -8207,6 +8221,7 @@ func (s *VirtualMachineService) ResetPasswordForVirtualMachine(p *ResetPasswordF
type ResetPasswordForVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []ResetPasswordForVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -8577,7 +8592,7 @@ func (s *VirtualMachineService) NewResetUserDataForVirtualMachineParams(id strin
return p
}
-// Resets the UserData for virtual machine. The virtual machine must be in a "Stopped" state.
+// Resets the UserData for Instance. The Instance must be in a "Stopped" state.
func (s *VirtualMachineService) ResetUserDataForVirtualMachine(p *ResetUserDataForVirtualMachineParams) (*ResetUserDataForVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("resetUserDataForVirtualMachine", p.toURLValues())
if err != nil {
@@ -8595,6 +8610,7 @@ func (s *VirtualMachineService) ResetUserDataForVirtualMachine(p *ResetUserDataF
type ResetUserDataForVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []ResetUserDataForVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -8943,7 +8959,7 @@ func (s *VirtualMachineService) NewRestoreVirtualMachineParams(virtualmachineid
return p
}
-// Restore a VM to original template/ISO or new template/ISO
+// Restore an Instance to original Template/ISO or new Template/ISO
func (s *VirtualMachineService) RestoreVirtualMachine(p *RestoreVirtualMachineParams) (*RestoreVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("restoreVirtualMachine", p.toURLValues())
if err != nil {
@@ -8981,6 +8997,7 @@ func (s *VirtualMachineService) RestoreVirtualMachine(p *RestoreVirtualMachinePa
type RestoreVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []RestoreVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -9356,7 +9373,7 @@ func (s *VirtualMachineService) NewScaleVirtualMachineParams(id string, serviceo
return p
}
-// Scales the virtual machine to a new service offering. This command also considers the volume size in the service offering or disk offering linked to the new service offering and apply all characteristics to the root volume.
+// Scales the Instance to a new service offering. This command also considers the volume size in the service offering or disk offering linked to the new service offering and apply all characteristics to the root volume.
func (s *VirtualMachineService) ScaleVirtualMachine(p *ScaleVirtualMachineParams) (*ScaleVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("scaleVirtualMachine", p.toURLValues())
if err != nil {
@@ -9584,7 +9601,7 @@ func (s *VirtualMachineService) NewStartVirtualMachineParams(id string) *StartVi
return p
}
-// Starts a virtual machine.
+// Starts an Instance.
func (s *VirtualMachineService) StartVirtualMachine(p *StartVirtualMachineParams) (*StartVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("startVirtualMachine", p.toURLValues())
if err != nil {
@@ -9622,6 +9639,7 @@ func (s *VirtualMachineService) StartVirtualMachine(p *StartVirtualMachineParams
type StartVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []StartVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -9870,7 +9888,7 @@ func (s *VirtualMachineService) NewStopVirtualMachineParams(id string) *StopVirt
return p
}
-// Stops a virtual machine.
+// Stops an Instance.
func (s *VirtualMachineService) StopVirtualMachine(p *StopVirtualMachineParams) (*StopVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("stopVirtualMachine", p.toURLValues())
if err != nil {
@@ -9908,6 +9926,7 @@ func (s *VirtualMachineService) StopVirtualMachine(p *StopVirtualMachineParams)
type StopVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []StopVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -10156,7 +10175,7 @@ func (s *VirtualMachineService) NewUpdateDefaultNicForVirtualMachineParams(nicid
return p
}
-// Changes the default NIC on a VM
+// Changes the default NIC on an Instance
func (s *VirtualMachineService) UpdateDefaultNicForVirtualMachine(p *UpdateDefaultNicForVirtualMachineParams) (*UpdateDefaultNicForVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("updateDefaultNicForVirtualMachine", p.toURLValues())
if err != nil {
@@ -10194,6 +10213,7 @@ func (s *VirtualMachineService) UpdateDefaultNicForVirtualMachine(p *UpdateDefau
type UpdateDefaultNicForVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []UpdateDefaultNicForVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -10954,7 +10974,7 @@ func (s *VirtualMachineService) NewUpdateVirtualMachineParams(id string) *Update
return p
}
-// Updates properties of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect. UpdateVirtualMachine does not first check whether the VM is stopped. Therefore, stop the VM manually before issuing this call.
+// Updates properties of an Instance. The Instance has to be stopped and restarted for the new properties to take effect. UpdateVirtualMachine does not first check whether the Instance is stopped. Therefore, stop the Instance manually before issuing this call.
func (s *VirtualMachineService) UpdateVirtualMachine(p *UpdateVirtualMachineParams) (*UpdateVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("updateVirtualMachine", p.toURLValues())
if err != nil {
@@ -10972,6 +10992,7 @@ func (s *VirtualMachineService) UpdateVirtualMachine(p *UpdateVirtualMachinePara
type UpdateVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []UpdateVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -11608,6 +11629,9 @@ func (p *ImportVmParams) toURLValues() url.Values {
u.Set(fmt.Sprintf("nicnetworklist[%d].network", i), m[k])
}
}
+ if v, found := p.p["osid"]; found {
+ u.Set("osid", v.(string))
+ }
if v, found := p.p["password"]; found {
u.Set("password", v.(string))
}
@@ -11629,6 +11653,10 @@ func (p *ImportVmParams) toURLValues() url.Values {
if v, found := p.p["username"]; found {
u.Set("username", v.(string))
}
+ if v, found := p.p["usevddk"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("usevddk", vv)
+ }
if v, found := p.p["vcenter"]; found {
u.Set("vcenter", v.(string))
}
@@ -12254,6 +12282,27 @@ func (p *ImportVmParams) GetNicnetworklist() (map[string]string, bool) {
return value, ok
}
+func (p *ImportVmParams) SetOsid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["osid"] = v
+}
+
+func (p *ImportVmParams) ResetOsid() {
+ if p.p != nil && p.p["osid"] != nil {
+ delete(p.p, "osid")
+ }
+}
+
+func (p *ImportVmParams) GetOsid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["osid"].(string)
+ return value, ok
+}
+
func (p *ImportVmParams) SetPassword(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -12401,6 +12450,27 @@ func (p *ImportVmParams) GetUsername() (string, bool) {
return value, ok
}
+func (p *ImportVmParams) SetUsevddk(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["usevddk"] = v
+}
+
+func (p *ImportVmParams) ResetUsevddk() {
+ if p.p != nil && p.p["usevddk"] != nil {
+ delete(p.p, "usevddk")
+ }
+}
+
+func (p *ImportVmParams) GetUsevddk() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["usevddk"].(bool)
+ return value, ok
+}
+
func (p *ImportVmParams) SetVcenter(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -12495,6 +12565,7 @@ func (s *VirtualMachineService) ImportVm(p *ImportVmParams) (*ImportVmResponse,
type ImportVmResponse struct {
Account string `json:"account"`
Affinitygroup []ImportVmResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -12767,7 +12838,7 @@ func (s *VirtualMachineService) NewUnmanageVirtualMachineParams(id string) *Unma
return p
}
-// Unmanage a guest virtual machine.
+// Unmanage a Guest Instance.
func (s *VirtualMachineService) UnmanageVirtualMachine(p *UnmanageVirtualMachineParams) (*UnmanageVirtualMachineResponse, error) {
resp, err := s.cs.newPostRequest("unmanageVirtualMachine", p.toURLValues())
if err != nil {
@@ -12953,7 +13024,7 @@ func (s *VirtualMachineService) NewListUnmanagedInstancesParams(clusterid string
return p
}
-// Lists unmanaged virtual machines for a given cluster.
+// Lists unmanaged Instances for a given cluster.
func (s *VirtualMachineService) ListUnmanagedInstances(p *ListUnmanagedInstancesParams) (*ListUnmanagedInstancesResponse, error) {
resp, err := s.cs.newRequest("listUnmanagedInstances", p.toURLValues())
if err != nil {
@@ -12974,24 +13045,26 @@ type ListUnmanagedInstancesResponse struct {
}
type UnmanagedInstance struct {
- Bootmode string `json:"bootmode"`
- Boottype string `json:"boottype"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Cpucorepersocket int `json:"cpucorepersocket"`
- Cpunumber int `json:"cpunumber"`
- Cpuspeed int `json:"cpuspeed"`
- Disk []UnmanagedInstanceDisk `json:"disk"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Memory int `json:"memory"`
- Name string `json:"name"`
- Nic []Nic `json:"nic"`
- Osdisplayname string `json:"osdisplayname"`
- Osid string `json:"osid"`
- Powerstate string `json:"powerstate"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Cpucorepersocket int `json:"cpucorepersocket"`
+ Cpunumber int `json:"cpunumber"`
+ Cpuspeed int `json:"cpuspeed"`
+ Disk []UnmanagedInstanceDisk `json:"disk"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Memory int `json:"memory"`
+ Name string `json:"name"`
+ Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
+ Osid string `json:"osid"`
+ Powerstate string `json:"powerstate"`
}
type UnmanagedInstanceDisk struct {
@@ -13408,7 +13481,7 @@ func (s *VirtualMachineService) NewImportUnmanagedInstanceParams(clusterid strin
return p
}
-// Import unmanaged virtual machine from a given cluster.
+// Import unmanaged Instance from a given cluster.
func (s *VirtualMachineService) ImportUnmanagedInstance(p *ImportUnmanagedInstanceParams) (*ImportUnmanagedInstanceResponse, error) {
resp, err := s.cs.newPostRequest("importUnmanagedInstance", p.toURLValues())
if err != nil {
@@ -13446,6 +13519,7 @@ func (s *VirtualMachineService) ImportUnmanagedInstance(p *ImportUnmanagedInstan
type ImportUnmanagedInstanceResponse struct {
Account string `json:"account"`
Affinitygroup []ImportUnmanagedInstanceResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -14100,7 +14174,7 @@ func (s *VirtualMachineService) NewCreateVMScheduleParams(action string, schedul
return p
}
-// Create VM Schedule
+// Create Instance Schedule
func (s *VirtualMachineService) CreateVMSchedule(p *CreateVMScheduleParams) (*CreateVMScheduleResponse, error) {
resp, err := s.cs.newPostRequest("createVMSchedule", p.toURLValues())
if err != nil {
@@ -14323,7 +14397,7 @@ func (s *VirtualMachineService) NewUpdateVMScheduleParams(id string) *UpdateVMSc
return p
}
-// Update VM Schedule.
+// Update Instance Schedule.
func (s *VirtualMachineService) UpdateVMSchedule(p *UpdateVMScheduleParams) (*UpdateVMScheduleResponse, error) {
resp, err := s.cs.newPostRequest("updateVMSchedule", p.toURLValues())
if err != nil {
@@ -14582,7 +14656,7 @@ func (s *VirtualMachineService) GetVMScheduleByID(id string, virtualmachineid st
return nil, l.Count, fmt.Errorf("There is more then one result for VMSchedule UUID: %s!", id)
}
-// List VM Schedules.
+// List Instance Schedules.
func (s *VirtualMachineService) ListVMSchedule(p *ListVMScheduleParams) (*ListVMScheduleResponse, error) {
resp, err := s.cs.newRequest("listVMSchedule", p.toURLValues())
if err != nil {
@@ -14711,7 +14785,7 @@ func (s *VirtualMachineService) NewDeleteVMScheduleParams(virtualmachineid strin
return p
}
-// Delete VM Schedule.
+// Delete Instance Schedule.
func (s *VirtualMachineService) DeleteVMSchedule(p *DeleteVMScheduleParams) (*DeleteVMScheduleResponse, error) {
resp, err := s.cs.newPostRequest("deleteVMSchedule", p.toURLValues())
if err != nil {
@@ -14830,7 +14904,7 @@ func (s *VirtualMachineService) NewAssignVirtualMachineToBackupOfferingParams(ba
return p
}
-// Assigns a VM to a backup offering
+// Assigns an Instance to a backup offering
func (s *VirtualMachineService) AssignVirtualMachineToBackupOffering(p *AssignVirtualMachineToBackupOfferingParams) (*AssignVirtualMachineToBackupOfferingResponse, error) {
resp, err := s.cs.newPostRequest("assignVirtualMachineToBackupOffering", p.toURLValues())
if err != nil {
@@ -14937,7 +15011,7 @@ func (s *VirtualMachineService) NewRemoveVirtualMachineFromBackupOfferingParams(
return p
}
-// Removes a VM from any existing backup offering
+// Removes an Instance from any existing backup offering
func (s *VirtualMachineService) RemoveVirtualMachineFromBackupOffering(p *RemoveVirtualMachineFromBackupOfferingParams) (*RemoveVirtualMachineFromBackupOfferingResponse, error) {
resp, err := s.cs.newPostRequest("removeVirtualMachineFromBackupOffering", p.toURLValues())
if err != nil {
diff --git a/cloudstack/VirtualNetworkFunctionsService.go b/cloudstack/VirtualNetworkFunctionsService.go
index 04dfa1d..79313e2 100644
--- a/cloudstack/VirtualNetworkFunctionsService.go
+++ b/cloudstack/VirtualNetworkFunctionsService.go
@@ -1769,6 +1769,7 @@ func (s *VirtualNetworkFunctionsService) DeployVnfAppliance(p *DeployVnfApplianc
type DeployVnfApplianceResponse struct {
Account string `json:"account"`
Affinitygroup []DeployVnfApplianceResponseAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
@@ -3077,6 +3078,7 @@ type ListVnfAppliancesResponse struct {
type VnfAppliance struct {
Account string `json:"account"`
Affinitygroup []VnfApplianceAffinitygroup `json:"affinitygroup"`
+ Alloweddetails string `json:"alloweddetails"`
Arch string `json:"arch"`
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
diff --git a/cloudstack/VolumeService.go b/cloudstack/VolumeService.go
index c9158aa..386c72e 100644
--- a/cloudstack/VolumeService.go
+++ b/cloudstack/VolumeService.go
@@ -185,7 +185,7 @@ func (s *VolumeService) NewAttachVolumeParams(id string, virtualmachineid string
return p
}
-// Attaches a disk volume to a virtual machine.
+// Attaches a disk volume to an Instance.
func (s *VolumeService) AttachVolume(p *AttachVolumeParams) (*AttachVolumeResponse, error) {
resp, err := s.cs.newPostRequest("attachVolume", p.toURLValues())
if err != nil {
@@ -828,6 +828,9 @@ func (p *CreateVolumeParams) toURLValues() url.Values {
if v, found := p.p["snapshotid"]; found {
u.Set("snapshotid", v.(string))
}
+ if v, found := p.p["storageid"]; found {
+ u.Set("storageid", v.(string))
+ }
if v, found := p.p["virtualmachineid"]; found {
u.Set("virtualmachineid", v.(string))
}
@@ -1068,6 +1071,27 @@ func (p *CreateVolumeParams) GetSnapshotid() (string, bool) {
return value, ok
}
+func (p *CreateVolumeParams) SetStorageid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["storageid"] = v
+}
+
+func (p *CreateVolumeParams) ResetStorageid() {
+ if p.p != nil && p.p["storageid"] != nil {
+ delete(p.p, "storageid")
+ }
+}
+
+func (p *CreateVolumeParams) GetStorageid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["storageid"].(string)
+ return value, ok
+}
+
func (p *CreateVolumeParams) SetVirtualmachineid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1118,7 +1142,7 @@ func (s *VolumeService) NewCreateVolumeParams() *CreateVolumeParams {
return p
}
-// Creates a disk volume from a disk offering. This disk volume must still be attached to a virtual machine to make use of it.
+// Creates a disk volume from a disk offering. This disk volume must still be attached to an Instance to make use of it.
func (s *VolumeService) CreateVolume(p *CreateVolumeParams) (*CreateVolumeResponse, error) {
resp, err := s.cs.newPostRequest("createVolume", p.toURLValues())
if err != nil {
@@ -1597,7 +1621,7 @@ func (s *VolumeService) NewDetachVolumeParams() *DetachVolumeParams {
return p
}
-// Detaches a disk volume from a virtual machine.
+// Detaches a disk volume from an Instance.
func (s *VolumeService) DetachVolume(p *DetachVolumeParams) (*DetachVolumeResponse, error) {
resp, err := s.cs.newPostRequest("detachVolume", p.toURLValues())
if err != nil {
@@ -6443,7 +6467,7 @@ func (s *VolumeService) NewAssignVolumeParams(volumeid string) *AssignVolumePara
return p
}
-// Changes ownership of a Volume from one account to another.
+// Changes ownership of a Volume from one Account to another.
func (s *VolumeService) AssignVolume(p *AssignVolumeParams) (*AssignVolumeResponse, error) {
resp, err := s.cs.newPostRequest("assignVolume", p.toURLValues())
if err != nil {
@@ -6632,7 +6656,7 @@ func (s *VolumeService) NewRestoreVolumeFromBackupAndAttachToVMParams(backupid s
return p
}
-// Restore and attach a backed up volume to VM
+// Restore and attach a backed up volume to Instance
func (s *VolumeService) RestoreVolumeFromBackupAndAttachToVM(p *RestoreVolumeFromBackupAndAttachToVMParams) (*RestoreVolumeFromBackupAndAttachToVMResponse, error) {
resp, err := s.cs.newPostRequest("restoreVolumeFromBackupAndAttachToVM", p.toURLValues())
if err != nil {
diff --git a/cloudstack/ZoneService.go b/cloudstack/ZoneService.go
index 8ae1e10..a9f0329 100644
--- a/cloudstack/ZoneService.go
+++ b/cloudstack/ZoneService.go
@@ -4129,24 +4129,26 @@ type ListVmwareDcVmsResponse struct {
}
type VmwareDcVm struct {
- Bootmode string `json:"bootmode"`
- Boottype string `json:"boottype"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Cpucorepersocket int `json:"cpucorepersocket"`
- Cpunumber int `json:"cpunumber"`
- Cpuspeed int `json:"cpuspeed"`
- Disk []VmwareDcVmDisk `json:"disk"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Memory int `json:"memory"`
- Name string `json:"name"`
- Nic []Nic `json:"nic"`
- Osdisplayname string `json:"osdisplayname"`
- Osid string `json:"osid"`
- Powerstate string `json:"powerstate"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Cpucorepersocket int `json:"cpucorepersocket"`
+ Cpunumber int `json:"cpunumber"`
+ Cpuspeed int `json:"cpuspeed"`
+ Disk []VmwareDcVmDisk `json:"disk"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Memory int `json:"memory"`
+ Name string `json:"name"`
+ Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
+ Osid string `json:"osid"`
+ Powerstate string `json:"powerstate"`
}
type VmwareDcVmDisk struct {
diff --git a/cloudstack/cloudstack.go b/cloudstack/cloudstack.go
index 240174e..6cac592 100644
--- a/cloudstack/cloudstack.go
+++ b/cloudstack/cloudstack.go
@@ -489,7 +489,9 @@ func (cs *CloudStackClient) GetAsyncJobResult(jobid string, timeout int64) (json
currentTime := time.Now().Unix()
for {
- p := cs.Asyncjob.NewQueryAsyncJobResultParams(jobid)
+ p := &QueryAsyncJobResultParams{}
+ p.p = make(map[string]interface{})
+ p.SetJobID(jobid)
r, err := cs.Asyncjob.QueryAsyncJobResult(p)
if err != nil {
return nil, err
diff --git a/generate/generate.go b/generate/generate.go
index 2292d80..3eb6567 100644
--- a/generate/generate.go
+++ b/generate/generate.go
@@ -128,32 +128,35 @@ var mapRequireList = map[string]map[string]bool{
// that responses fields are nested in a parent object. The map value
// gives the object field name.
var nestedResponse = map[string]string{
- "getUploadParamsForTemplate": "getuploadparams",
- "getUploadParamsForVolume": "getuploadparams",
- "createRole": "role",
- "createRolePermission": "rolepermission",
- "getCloudIdentifier": "cloudidentifier",
- "getKubernetesClusterConfig": "clusterconfig",
- "getPathForVolume": "apipathforvolume",
- "createConsoleEndpoint": "consoleendpoint",
- "addVmwareDc": "vmwaredc",
- "updateVmwareDc": "vmwaredc",
- "createProjectRole": "projectrole",
- "updateProjectRole": "projectrole",
- "registerUserData": "userdata",
- "updateSecurityGroup": "securitygroup",
- "updateOauthProvider": "oauthprovider",
- "readyForShutdown": "readyforshutdown",
- "updateObjectStoragePool": "objectstore",
- "addObjectStoragePool": "objectstore",
- "updateImageStore": "imagestore",
- "linkUserDataToTemplate": "template",
- "assignVolume": "volume",
- "createVMSchedule": "vmschedule",
- "updateVMSchedule": "vmschedule",
- "setupUserTwoFactorAuthentication": "setup2fa",
- "updateSecondaryStorageSelector": "heuristics",
- "createSecondaryStorageSelector": "heuristics",
+ "getUploadParamsForTemplate": "getuploadparams",
+ "getUploadParamsForVolume": "getuploadparams",
+ "createRole": "role",
+ "createRolePermission": "rolepermission",
+ "getCloudIdentifier": "cloudidentifier",
+ "getKubernetesClusterConfig": "clusterconfig",
+ "getPathForVolume": "apipathforvolume",
+ "createConsoleEndpoint": "consoleendpoint",
+ "addVmwareDc": "vmwaredc",
+ "updateVmwareDc": "vmwaredc",
+ "createProjectRole": "projectrole",
+ "updateProjectRole": "projectrole",
+ "registerUserData": "userdata",
+ "updateSecurityGroup": "securitygroup",
+ "updateOauthProvider": "oauthprovider",
+ "readyForShutdown": "readyforshutdown",
+ "updateObjectStoragePool": "objectstore",
+ "addObjectStoragePool": "objectstore",
+ "updateImageStore": "imagestore",
+ "linkUserDataToTemplate": "template",
+ "assignVolume": "volume",
+ "createVMSchedule": "vmschedule",
+ "updateVMSchedule": "vmschedule",
+ "setupUserTwoFactorAuthentication": "setup2fa",
+ "updateSecondaryStorageSelector": "heuristics",
+ "createSecondaryStorageSelector": "heuristics",
+ "getUploadParamsForKubernetesSupportedVersion": "getuploadparams",
+ "addOsCategory": "oscategory",
+ "updateOsCategory": "oscategory",
}
// longToStringConvertedParams is a prefilled map with the list of
@@ -551,7 +554,9 @@ func (as *allServices) GeneralCode() ([]byte, error) {
pn(" currentTime := time.Now().Unix()")
pn("")
pn(" for {")
- pn(" p := cs.Asyncjob.NewQueryAsyncJobResultParams(jobid)")
+ pn(" p := &QueryAsyncJobResultParams{}")
+ pn(" p.p = make(map[string]interface{})")
+ pn(" p.SetJobID(jobid)")
pn(" r, err := cs.Asyncjob.QueryAsyncJobResult(p)")
pn(" if err != nil {")
pn(" return nil, err")
@@ -1984,6 +1989,19 @@ func (s *service) generateResponseType(a *API) {
tn := capitalize(strings.TrimPrefix(a.Name, "configure") + "Response")
// add custom response types for some specific API calls
+ if a.Name == "getUploadParamsForKubernetesSupportedVersion" {
+ pn("type GetUploadParamsForKubernetesSupportedVersionResponse struct {")
+ pn(" Expires string `json:\"expires\"`")
+ pn(" Id string `json:\"id\"`")
+ pn(" JobID string `json:\"jobid\"`")
+ pn(" Jobstatus int `json:\"jobstatus\"`")
+ pn(" Metadata string `json:\"metadata\"`")
+ pn(" PostURL string `json:\"postURL\"`")
+ pn(" Signature string `json:\"signature\"`")
+ pn("}")
+ pn("")
+ return
+ }
if a.Name == "quotaBalance" {
pn("type QuotaBalanceResponse struct {")
pn(" Statement QuotaBalanceResponseType `json:\"balance\"`")
diff --git a/generate/layout.go b/generate/layout.go
index 406178b..6ff3cec 100644
--- a/generate/layout.go
+++ b/generate/layout.go
@@ -504,6 +504,8 @@ var layout = apiInfo{
"listStoragePools",
"syncStoragePool",
"updateStoragePool",
+ "configureStorageAccess",
+ "listStorageAccessGroups",
},
"NetworkACLService": {
"createNetworkACL",
@@ -528,6 +530,9 @@ var layout = apiInfo{
"updateGuestOs",
"updateGuestOsMapping",
"getHypervisorGuestOsNames",
+ "addOsCategory",
+ "deleteOsCategory",
+ "updateOsCategory",
},
"ClusterService": {
"addCluster",
@@ -912,6 +917,7 @@ var layout = apiInfo{
"removeVirtualMachinesFromKubernetesCluster",
"addNodesToKubernetesCluster",
"removeNodesFromKubernetesCluster",
+ "getUploadParamsForKubernetesSupportedVersion",
},
"InfrastructureUsageService": {
"listDbMetrics",
diff --git a/generate/listApis.json b/generate/listApis.json
index a8c045f..a7652ec 100644
--- a/generate/listApis.json
+++ b/generate/listApis.json
@@ -6,74 +6,76 @@
"name": "createVPCOffering",
"params": [
{
- "description": "services supported by the vpc offering",
+ "description": "The internet protocol of the offering. Options are IPv4 and dualstack. Default is IPv4. dualstack will create an offering that supports both IPv4 and IPv6",
"length": 255,
- "name": "supportedservices",
+ "name": "internetprotocol",
"required": false,
- "type": "list"
+ "since": "4.17.0",
+ "type": "string"
},
{
- "description": "desired service capabilities as part of vpc offering",
+ "description": "The ID of the containing domain(s), null for public offerings",
"length": 255,
- "name": "servicecapabilitylist",
+ "name": "domainid",
+ "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
"required": false,
- "since": "4.4",
- "type": "map"
+ "type": "list"
},
{
- "description": "the name of the vpc offering",
+ "description": "The ID of the containing zone(s), null for public offerings",
"length": 255,
- "name": "name",
- "required": true,
- "type": "string"
+ "name": "zoneid",
+ "related": "createZone,updateZone,listZones,listZones",
+ "required": false,
+ "since": "4.13",
+ "type": "list"
},
{
- "description": "true if the VPC offering supports choosing AS number",
+ "description": "the routing mode for the VPC offering. Supported types are: Static or Dynamic.",
"length": 255,
- "name": "specifyasnumber",
+ "name": "routingmode",
"required": false,
"since": "4.20.0",
- "type": "boolean"
+ "type": "string"
},
{
- "description": "true if network offering for NSX VPC offering supports Load balancer service.",
+ "description": "The ID of the service offering for the VPC router appliance",
"length": 255,
- "name": "nsxsupportlb",
+ "name": "serviceofferingid",
+ "related": "createServiceOffering,updateServiceOffering,listServiceOfferings",
"required": false,
- "since": "4.20.0",
- "type": "boolean"
+ "type": "uuid"
},
{
- "description": "set to true if the offering is to be enabled during creation. Default is false",
+ "description": "Indicates the mode with which the network will operate. Valid option: NATTED or ROUTED",
"length": 255,
- "name": "enable",
+ "name": "networkmode",
"required": false,
- "since": "4.16",
- "type": "boolean"
+ "since": "4.20.0",
+ "type": "string"
},
{
- "description": "the ID of the service offering for the VPC router appliance",
+ "description": "Desired service capabilities as part of VPC offering",
"length": 255,
- "name": "serviceofferingid",
- "related": "createServiceOffering,updateServiceOffering,listServiceOfferings",
+ "name": "servicecapabilitylist",
"required": false,
- "type": "uuid"
+ "since": "4.4",
+ "type": "map"
},
{
- "description": "The internet protocol of the offering. Options are ipv4 and dualstack. Default is ipv4. dualstack will create an offering that supports both IPv4 and IPv6",
+ "description": "Services supported by the VPC offering",
"length": 255,
- "name": "internetprotocol",
+ "name": "supportedservices",
"required": false,
- "since": "4.17.0",
- "type": "string"
+ "type": "list"
},
{
- "description": "the ID of the containing domain(s), null for public offerings",
+ "description": "true if network offering for NSX VPC offering supports Load balancer service.",
"length": 255,
- "name": "domainid",
- "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
+ "name": "nsxsupportlb",
"required": false,
- "type": "list"
+ "since": "4.20.0",
+ "type": "boolean"
},
{
"description": "Name of the provider providing the service",
@@ -92,219 +94,217 @@
"type": "boolean"
},
{
- "description": "the ID of the containing zone(s), null for public offerings",
- "length": 255,
- "name": "zoneid",
- "related": "createZone,updateZone,listZones,listZones",
- "required": false,
- "since": "4.13",
- "type": "list"
- },
- {
- "description": "Indicates the mode with which the network will operate. Valid option: NATTED or ROUTED",
+ "description": "Provider to service mapping. If not specified, the provider for the service will be mapped to the default provider on the physical network",
"length": 255,
- "name": "networkmode",
+ "name": "serviceproviderlist",
"required": false,
- "since": "4.20.0",
- "type": "string"
+ "type": "map"
},
{
- "description": "provider to service mapping. If not specified, the provider for the service will be mapped to the default provider on the physical network",
+ "description": "Set to true if the offering is to be enabled during creation. Default is false",
"length": 255,
- "name": "serviceproviderlist",
+ "name": "enable",
"required": false,
- "type": "map"
+ "since": "4.16",
+ "type": "boolean"
},
{
- "description": "the display text of the vpc offering, defaults to the 'name'",
+ "description": "The display text of the VPC offering, defaults to the 'name'",
"length": 255,
"name": "displaytext",
"required": false,
"type": "string"
},
{
- "description": "the routing mode for the VPC offering. Supported types are: Static or Dynamic.",
+ "description": "true if the VPC offering supports choosing AS number",
"length": 255,
- "name": "routingmode",
+ "name": "specifyasnumber",
"required": false,
"since": "4.20.0",
+ "type": "boolean"
+ },
+ {
+ "description": "The name of the VPC offering",
+ "length": 255,
+ "name": "name",
+ "required": true,
"type": "string"
}
],
"related": "updateVPCOffering,listVPCOfferings",
"response": [
{
- "description": "the list of supported services",
- "name": "service",
- "response": [
- {
- "description": "the service provider name",
- "name": "provider",
- "response": [
- {
- "description": "the physical network this belongs to",
- "name": "physicalnetworkid",
- "type": "string"
- },
- {
- "description": "uuid of the network provider",
- "name": "id",
- "type": "string"
- },
- {
- "description": "services for this provider",
- "name": "servicelist",
- "type": "list"
- },
- {
- "description": "state of the network provider",
- "name": "state",
- "type": "string"
- },
- {
- "description": "true if individual services can be enabled/disabled",
- "name": "canenableindividualservice",
- "type": "boolean"
- },
- {
- "description": "the provider name",
- "name": "name",
- "type": "string"
- },
- {
- "description": "the destination physical network",
- "name": "destinationphysicalnetworkid",
- "type": "string"
- }
- ],
- "type": "list"
- },
- {
- "description": "the list of capabilities",
- "name": "capability",
- "response": [
- {
- "description": "the capability value",
- "name": "value",
- "type": "string"
- },
- {
- "description": "can this service capability value can be choosable while creatine network offerings",
- "name": "canchooseservicecapability",
- "type": "boolean"
- },
- {
- "description": "the capability name",
- "name": "name",
- "type": "string"
- }
- ],
- "type": "list"
- },
- {
- "description": "the service name",
- "name": "name",
- "type": "string"
- }
- ],
- "type": "list"
- },
- {
- "description": "an alternate display text of the vpc offering.",
- "name": "displaytext",
- "type": "string"
- },
- {},
- {
- "description": "the name of the vpc offering",
- "name": "name",
- "type": "string"
- },
- {
- "description": "true if network offering supports choosing AS numbers",
+ "description": "True if network offering supports choosing AS numbers",
"name": "specifyasnumber",
"type": "boolean"
},
{
- "description": "the domain ID(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
- "name": "domainid",
+ "description": "The name of the VPC offering",
+ "name": "name",
"type": "string"
},
{
- "description": "true if vpc offering is default, false otherwise",
- "name": "isdefault",
+ "description": "Indicates if the VPC offering supports distributed router for one-hop forwarding",
+ "name": "distributedvpcrouter",
"type": "boolean"
},
{
- "description": "the zone ID(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
- "name": "zoneid",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
- {
- "description": "the id of the vpc offering",
- "name": "id",
+ "description": "An alternate display text of the VPC offering.",
+ "name": "displaytext",
"type": "string"
},
{
- "description": "the date this vpc offering was created",
+ "description": "The date this VPC offering was created",
"name": "created",
"type": "date"
},
{
- "description": "Mode in which the network will operate. The valid values are NATTED and ROUTED",
- "name": "networkmode",
+ "description": "The zone name(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
+ "name": "zone",
"type": "string"
},
{
- "description": "true if vpc offering can be used by NSX networks only",
+ "description": "True if VPC offering can be used by NSX networks only",
"name": "fornsx",
"type": "boolean"
},
{
- "description": "the domain name(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
- "name": "domain",
+ "description": "True if VPC offering is default, false otherwise",
+ "name": "isdefault",
+ "type": "boolean"
+ },
+ {
+ "description": "The internet protocol of the VPC offering",
+ "name": "internetprotocol",
"type": "string"
},
{
- "description": "state of the vpc offering. Can be Disabled/Enabled",
- "name": "state",
+ "description": "The domain name(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
+ "name": "domain",
"type": "string"
},
- {},
{
- "description": "the zone name(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
- "name": "zone",
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
+ },
+ {
+ "description": "Indicated if the offering can support region level VPC",
+ "name": "supportsregionLevelvpc",
+ "type": "boolean"
+ },
+ {
+ "description": "The domain ID(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
+ "name": "domainid",
"type": "string"
},
{
- "description": "the routing mode for the network offering, supported types are Static or Dynamic.",
+ "description": "The routing mode for the network offering, supported types are Static or Dynamic.",
"name": "routingmode",
"type": "string"
},
+ {},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The zone ID(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
+ "name": "zoneid",
"type": "string"
},
{
- "description": " indicates if the vpc offering supports distributed router for one-hop forwarding",
- "name": "distributedvpcrouter",
- "type": "boolean"
+ "description": "State of the VPC offering. Can be Disabled/Enabled",
+ "name": "state",
+ "type": "string"
},
+ {},
{
- "description": "indicated if the offering can support region level vpc",
- "name": "supportsregionLevelvpc",
- "type": "boolean"
+ "description": "Mode in which the network will operate. The valid values are NATTED and ROUTED",
+ "name": "networkmode",
+ "type": "string"
},
{
- "description": "the internet protocol of the vpc offering",
- "name": "internetprotocol",
+ "description": "The ID of the VPC offering",
+ "name": "id",
"type": "string"
+ },
+ {
+ "description": "The list of supported services",
+ "name": "service",
+ "response": [
+ {
+ "description": "The service name",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "description": "The list of capabilities",
+ "name": "capability",
+ "response": [
+ {
+ "description": "The capability name",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "description": "The capability value",
+ "name": "value",
+ "type": "string"
+ },
+ {
+ "description": "Can this service capability value can be choosable while creatine Network offerings",
+ "name": "canchooseservicecapability",
+ "type": "boolean"
+ }
+ ],
+ "type": "list"
+ },
+ {
+ "description": "The service provider name",
+ "name": "provider",
+ "response": [
+ {
+ "description": "Services for this provider",
+ "name": "servicelist",
+ "type": "list"
+ },
+ {
+ "description": "State of the Network provider",
+ "name": "state",
+ "type": "string"
+ },
+ {
+ "description": "The physical Network this belongs to",
+ "name": "physicalnetworkid",
+ "type": "string"
+ },
+ {
+ "description": "The destination physical Network",
+ "name": "destinationphysicalnetworkid",
+ "type": "string"
+ },
+ {
+ "description": "The provider name",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "description": "True if individual services can be enabled/disabled",
+ "name": "canenableindividualservice",
+ "type": "boolean"
+ },
+ {
+ "description": "UUID of the Network provider",
+ "name": "id",
+ "type": "string"
+ }
+ ],
+ "type": "list"
+ }
+ ],
+ "type": "list"
}
]
},
@@ -313,6 +313,13 @@
"isasync": false,
"name": "ldapCreateAccount",
"params": [
+ {
+ "description": "Details for account used to store specific parameters",
+ "length": 255,
+ "name": "accountdetails",
+ "required": false,
+ "type": "map"
+ },
{
"description": "Creates the user under the specified domain.",
"length": 255,
@@ -322,18 +329,19 @@
"type": "uuid"
},
{
- "description": "Type of the account. Specify 0 for user, 1 for root admin, and 2 for domain admin",
+ "description": "Creates the account under the specified role.",
"length": 255,
- "name": "accounttype",
+ "name": "roleid",
+ "related": "createRole,importRole,listRoles,updateRole",
"required": false,
- "type": "integer"
+ "type": "uuid"
},
{
- "description": "details for account used to store specific parameters",
+ "description": "Type of the account. Specify 0 for user, 1 for root admin, and 2 for domain admin",
"length": 255,
- "name": "accountdetails",
+ "name": "accounttype",
"required": false,
- "type": "map"
+ "type": "integer"
},
{
"description": "Network domain for the account's networks",
@@ -342,13 +350,6 @@
"required": false,
"type": "string"
},
- {
- "description": "Creates the user under the specified account. If no account is specified, the username will be used as the account name.",
- "length": 255,
- "name": "account",
- "required": false,
- "type": "string"
- },
{
"description": "Account UUID, required for adding account from external provisioning system",
"length": 255,
@@ -357,31 +358,30 @@
"type": "string"
},
{
- "description": "Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.",
+ "description": "Unique username.",
"length": 255,
- "name": "timezone",
- "required": false,
+ "name": "username",
+ "required": true,
"type": "string"
},
{
- "description": "Creates the account under the specified role.",
+ "description": "Creates the user under the specified account. If no account is specified, the username will be used as the account name.",
"length": 255,
- "name": "roleid",
- "related": "createRole,importRole,listRoles,updateRole",
+ "name": "account",
"required": false,
- "type": "uuid"
+ "type": "string"
},
{
- "description": "Unique username.",
+ "description": "User UUID, required for adding account from external provisioning system",
"length": 255,
- "name": "username",
- "required": true,
+ "name": "userid",
+ "required": false,
"type": "string"
},
{
- "description": "User UUID, required for adding account from external provisioning system",
+ "description": "Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.",
"length": 255,
- "name": "userid",
+ "name": "timezone",
"required": false,
"type": "string"
}
@@ -389,529 +389,529 @@
"related": "createAccount,disableAccount,enableAccount,lockAccount,updateAccount,markDefaultZoneForAccount,listAccounts,listAccounts",
"response": [
{
- "description": "the total number of virtual machines stopped for this account",
- "name": "vmstopped",
- "type": "integer"
- },
- {
- "description": "the total number of buckets available to this account",
- "name": "bucketavailable",
- "type": "string"
- },
- {
- "description": "the total memory (in MB) available to be created for this account",
- "name": "memoryavailable",
+ "description": "The total number of Snapshots available for this Account",
+ "name": "snapshotavailable",
"type": "string"
},
{
- "description": "the total object storage space (in GiB) owned by the account",
- "name": "objectstoragetotal",
- "type": "long"
+ "description": "The list of users associated with account",
+ "name": "user",
+ "response": [
+ {
+ "description": "The Account type of the user",
+ "name": "accounttype",
+ "type": "integer"
+ },
+ {
+ "description": "The type of the role",
+ "name": "roletype",
+ "type": "string"
+ },
+ {
+ "description": "The API key of the user",
+ "name": "apikey",
+ "type": "string"
+ },
+ {
+ "description": "True if user has two factor authentication enabled",
+ "name": "is2faenabled",
+ "type": "boolean"
+ },
+ {
+ "description": "The date and time the user Account was created",
+ "name": "created",
+ "type": "date"
+ },
+ {
+ "description": "The name of the role",
+ "name": "rolename",
+ "type": "string"
+ },
+ {
+ "description": "The user firstname",
+ "name": "firstname",
+ "type": "string"
+ },
+ {
+ "description": "The user lastname",
+ "name": "lastname",
+ "type": "string"
+ },
+ {
+ "description": "The ID of the role",
+ "name": "roleid",
+ "type": "string"
+ },
+ {
+ "description": "The domain ID of the user",
+ "name": "domainid",
+ "type": "string"
+ },
+ {
+ "description": "The secret key of the user",
+ "name": "secretkey",
+ "type": "string"
+ },
+ {
+ "description": "Whether api key access is Enabled, Disabled or set to Inherit (it inherits the value from the parent)",
+ "name": "apikeyaccess",
+ "type": "apikeyaccess"
+ },
+ {
+ "description": "True if user has two factor authentication is mandated",
+ "name": "is2famandated",
+ "type": "boolean"
+ },
+ {
+ "description": "True if user is default, false otherwise",
+ "name": "isdefault",
+ "type": "boolean"
+ },
+ {
+ "description": "The user email address",
+ "name": "email",
+ "type": "string"
+ },
+ {
+ "description": "The user name",
+ "name": "username",
+ "type": "string"
+ },
+ {
+ "description": "Base64 string representation of the resource icon",
+ "name": "icon",
+ "type": "resourceiconresponse"
+ },
+ {
+ "description": "The user ID",
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "description": "The boolean value representing if the updating target is in caller's child domain",
+ "name": "iscallerchilddomain",
+ "type": "boolean"
+ },
+ {
+ "description": "The timezone user was created in",
+ "name": "timezone",
+ "type": "string"
+ },
+ {
+ "description": "The Account ID of the user",
+ "name": "accountid",
+ "type": "string"
+ },
+ {
+ "description": "The user state",
+ "name": "state",
+ "type": "string"
+ },
+ {
+ "description": "The source type of the user in lowercase, such as native, ldap, saml2",
+ "name": "usersource",
+ "type": "string"
+ },
+ {
+ "description": "The domain name of the user",
+ "name": "domain",
+ "type": "string"
+ },
+ {
+ "description": "The Account name of the user",
+ "name": "account",
+ "type": "string"
+ }
+ ],
+ "type": "list"
},
{
- "description": "the total number of gpus owned by account",
- "name": "gputotal",
+ "description": "The total number of Networks owned by Account",
+ "name": "networktotal",
"type": "long"
},
{
- "description": "the total number of cpu cores owned by account",
- "name": "cputotal",
+ "description": "The total volume being used by this Account",
+ "name": "volumetotal",
"type": "long"
},
{
- "description": "the default zone of the account",
- "name": "defaultzoneid",
+ "description": "the total number of gpus the account can own",
+ "name": "gpulimit",
"type": "string"
},
{
- "description": "the total number of backups which can be stored by this account",
- "name": "backuplimit",
+ "description": "Path of the Domain the Account belongs to",
+ "name": "domainpath",
"type": "string"
},
{
- "description": "the total number of templates which can be created by this account",
- "name": "templatelimit",
+ "description": "The total volume which can be used by this Account",
+ "name": "volumelimit",
"type": "string"
},
- {
- "description": "the total secondary storage space (in GiB) owned by account",
- "name": "secondarystoragetotal",
- "type": "float"
- },
{
"description": "the total backup storage space (in GiB) available to the account",
"name": "backupstorageavailable",
"type": "string"
},
{
- "description": "the total number of gpus available to be created for this account",
- "name": "gpuavailable",
+ "description": "The total number of VPCs the Account can own",
+ "name": "vpclimit",
"type": "string"
},
{
- "description": "the total volume being used by this account",
- "name": "volumetotal",
- "type": "long"
+ "description": "The state of the account",
+ "name": "state",
+ "type": "string"
},
{
- "description": "the total primary storage space (in GiB) available to be used for this account",
- "name": "primarystorageavailable",
- "type": "string"
+ "description": "The total secondary storage space (in GiB) owned by account",
+ "name": "secondarystoragetotal",
+ "type": "float"
},
{
- "description": "account type (admin, domain-admin, user)",
+ "description": "Account type (admin, domain-admin, user)",
"name": "accounttype",
"type": "integer"
},
{
- "description": "the total number of network traffic bytes sent",
- "name": "sentbytes",
+ "description": "the total backup storage space (in GiB) the account can own",
+ "name": "backupstoragelimit",
+ "type": "string"
+ },
+ {
+ "description": "the total number of backups stored by this account",
+ "name": "backuptotal",
"type": "long"
},
{
- "description": "the total number of projects the account can own",
- "name": "projectlimit",
- "type": "string"
+ "description": "the total number of buckets stored by this account",
+ "name": "buckettotal",
+ "type": "long"
},
{
- "description": "the total number of public ip addresses available for this account to acquire",
- "name": "ipavailable",
+ "description": "The name of the Account",
+ "name": "name",
"type": "string"
},
{
- "description": "the total number of snapshots stored by this account",
- "name": "snapshottotal",
+ "description": "the total backup storage space (in GiB) owned by the account",
+ "name": "backupstoragetotal",
"type": "long"
},
{
- "description": "the total backup storage space (in GiB) owned by the account",
- "name": "backupstoragetotal",
+ "description": "The total number of projects being administrated by this Account",
+ "name": "projecttotal",
"type": "long"
},
{
- "description": "the total number of virtual machines running for this account",
- "name": "vmrunning",
- "type": "integer"
+ "description": "The tagged resource limit and count for the account",
+ "name": "taggedresources",
+ "type": "list"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The list of ACL groups that account belongs to",
+ "name": "groups",
+ "type": "list"
+ },
+ {
+ "description": "Name of the Domain the Account belongs to",
+ "name": "domain",
"type": "string"
},
{
- "description": "the total number of networks owned by account",
- "name": "networktotal",
+ "description": "the total number of gpus owned by account",
+ "name": "gputotal",
"type": "long"
},
{
- "description": "The tagged resource limit and count for the account",
- "name": "taggedresources",
- "type": "list"
+ "description": "The total number of Instances deployed by this Account",
+ "name": "vmtotal",
+ "type": "long"
},
{
- "description": "the total number of networks available to be created for this account",
- "name": "networkavailable",
+ "description": "The name of the role",
+ "name": "rolename",
"type": "string"
},
{
- "description": "the total number of virtual machines available for this account to acquire",
- "name": "vmavailable",
- "type": "string"
+ "description": "The total number of Instances stopped for this Account",
+ "name": "vmstopped",
+ "type": "integer"
},
{
- "description": "the total number of templates available to be created by this account",
- "name": "templateavailable",
+ "description": "The total number of Networks the Account can own",
+ "name": "networklimit",
"type": "string"
},
{
- "description": "the total number of networks the account can own",
- "name": "networklimit",
- "type": "string"
+ "description": "The total number of CPU cores owned by account",
+ "name": "cputotal",
+ "type": "long"
},
{
- "description": "the total volume available for this account",
- "name": "volumeavailable",
+ "description": "The total number of Networks available to be created for this Account",
+ "name": "networkavailable",
"type": "string"
},
{
- "description": "the date when this account was created",
+ "description": "The total number of Snapshots stored by this Account",
+ "name": "snapshottotal",
+ "type": "long"
+ },
+ {
+ "description": "The date when this account was created",
"name": "created",
"type": "date"
},
{
- "description": "path of the Domain the account belongs to",
- "name": "domainpath",
- "type": "string"
+ "description": "The total number of public IP addresses allocated for this Account",
+ "name": "iptotal",
+ "type": "long"
},
{
- "description": "the total number of buckets which can be stored by this account",
- "name": "bucketlimit",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the id of the account",
- "name": "id",
+ "description": "The type of the role (Admin, ResourceAdmin, DomainAdmin, User)",
+ "name": "roletype",
"type": "string"
},
{
- "description": "the total number of snapshots available for this account",
- "name": "snapshotavailable",
+ "description": "The total number of Instances available for this Account to acquire",
+ "name": "vmavailable",
"type": "string"
},
{
- "description": "the total number of vpcs the account can own",
- "name": "vpclimit",
+ "description": "The total number of Templates available to be created by this Account",
+ "name": "templateavailable",
"type": "string"
},
{
- "description": "Base64 string representation of the resource icon",
- "name": "icon",
- "type": "resourceiconresponse"
+ "description": "The total memory (in MB) available to be created for this account",
+ "name": "memoryavailable",
+ "type": "string"
},
{
- "description": "the total number of templates which have been created by this account",
- "name": "templatetotal",
- "type": "long"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "description": "the total number of snapshots which can be stored by this account",
- "name": "snapshotlimit",
+ "description": "ID of the Domain the Account belongs to",
+ "name": "domainid",
"type": "string"
},
{
- "description": "the total backup storage space (in GiB) the account can own",
- "name": "backupstoragelimit",
+ "description": "The total number of Instances that can be deployed by this Account",
+ "name": "vmlimit",
"type": "string"
},
{
- "description": "the total number of gpus the account can own",
- "name": "gpulimit",
+ "description": "The total memory (in MB) the account can own",
+ "name": "memorylimit",
"type": "string"
},
{
- "description": "the total memory (in MB) owned by account",
- "name": "memorytotal",
- "type": "long"
- },
- {
- "description": "the total secondary storage space (in GiB) available to be used for this account",
- "name": "secondarystorageavailable",
+ "description": "The total number of projects available for administration by this Account",
+ "name": "projectavailable",
"type": "string"
},
{
- "description": "the total number of backups available to this account",
- "name": "backupavailable",
+ "description": "The total secondary storage space (in GiB) the account can own",
+ "name": "secondarystoragelimit",
"type": "string"
},
{
- "description": "the name of the account",
- "name": "name",
+ "description": "The total number of public IP addresses available for this Account to acquire",
+ "name": "ipavailable",
"type": "string"
},
- {
- "description": "details for the account",
- "name": "accountdetails",
- "type": "map"
- },
- {
- "description": "whether api key access is Enabled, Disabled or set to Inherit (it inherits the value from the parent)",
- "name": "apikeyaccess",
- "type": "apikeyaccess"
- },
{
"description": "the total object storage space (in GiB) available to the account",
"name": "objectstorageavailable",
"type": "string"
},
{
- "description": "the network domain",
- "name": "networkdomain",
+ "description": "The total number of CPU cores the account can own",
+ "name": "cpulimit",
"type": "string"
},
{
- "description": "the ID of the role",
- "name": "roleid",
- "type": "string"
+ "description": "The total primary storage space (in GiB) owned by account",
+ "name": "primarystoragetotal",
+ "type": "long"
},
{
- "description": "the total number of vpcs owned by account",
- "name": "vpctotal",
- "type": "long"
+ "description": "The ID of the Account",
+ "name": "id",
+ "type": "string"
},
+ {},
{
- "description": "the list of users associated with account",
- "name": "user",
- "response": [
- {
- "description": "the source type of the user in lowercase, such as native, ldap, saml2",
- "name": "usersource",
- "type": "string"
- },
- {
- "description": "the user ID",
- "name": "id",
- "type": "string"
- },
- {
- "description": "the user lastname",
- "name": "lastname",
- "type": "string"
- },
- {
- "description": "the account type of the user",
- "name": "accounttype",
- "type": "integer"
- },
- {
- "description": "whether api key access is Enabled, Disabled or set to Inherit (it inherits the value from the parent)",
- "name": "apikeyaccess",
- "type": "apikeyaccess"
- },
- {
- "description": "true if user has two factor authentication is mandated",
- "name": "is2famandated",
- "type": "boolean"
- },
- {
- "description": "true if user has two factor authentication enabled",
- "name": "is2faenabled",
- "type": "boolean"
- },
- {
- "description": "the name of the role",
- "name": "rolename",
- "type": "string"
- },
- {
- "description": "the account ID of the user",
- "name": "accountid",
- "type": "string"
- },
- {
- "description": "the ID of the role",
- "name": "roleid",
- "type": "string"
- },
- {
- "description": "the domain ID of the user",
- "name": "domainid",
- "type": "string"
- },
- {
- "description": "the user state",
- "name": "state",
- "type": "string"
- },
- {
- "description": "the user firstname",
- "name": "firstname",
- "type": "string"
- },
- {
- "description": "the domain name of the user",
- "name": "domain",
- "type": "string"
- },
- {
- "description": "the date and time the user account was created",
- "name": "created",
- "type": "date"
- },
- {
- "description": "the timezone user was created in",
- "name": "timezone",
- "type": "string"
- },
- {
- "description": "the type of the role",
- "name": "roletype",
- "type": "string"
- },
- {
- "description": "Base64 string representation of the resource icon",
- "name": "icon",
- "type": "resourceiconresponse"
- },
- {
- "description": "the api key of the user",
- "name": "apikey",
- "type": "string"
- },
- {
- "description": "true if user is default, false otherwise",
- "name": "isdefault",
- "type": "boolean"
- },
- {
- "description": "the user email address",
- "name": "email",
- "type": "string"
- },
- {
- "description": "the user name",
- "name": "username",
- "type": "string"
- },
- {
- "description": "the secret key of the user",
- "name": "secretkey",
- "type": "string"
- },
- {
- "description": "the account name of the user",
- "name": "account",
- "type": "string"
- },
- {
- "description": "the boolean value representing if the updating target is in caller's child domain",
- "name": "iscallerchilddomain",
- "type": "boolean"
- }
- ],
- "type": "list"
+ "description": "The default zone of the Account",
+ "name": "defaultzoneid",
+ "type": "string"
},
{
- "description": "the total number of backups stored by this account",
- "name": "backuptotal",
+ "description": "The total number of Templates which have been created by this Account",
+ "name": "templatetotal",
"type": "long"
},
{
- "description": "the total object storage space (in GiB) the account can own",
- "name": "objectstoragelimit",
+ "description": "The total number of public IP addresses this Account can acquire",
+ "name": "iplimit",
"type": "string"
},
{
- "description": "the total volume which can be used by this account",
- "name": "volumelimit",
- "type": "string"
+ "description": "The total number of Instances running for this Account",
+ "name": "vmrunning",
+ "type": "integer"
},
+ {},
{
- "description": "the total primary storage space (in GiB) the account can own",
- "name": "primarystoragelimit",
+ "description": "The ID of the role",
+ "name": "roleid",
"type": "string"
},
{
- "description": "the total number of buckets stored by this account",
- "name": "buckettotal",
+ "description": "The total number of Network traffic bytes received",
+ "name": "receivedbytes",
"type": "long"
},
{
- "description": "the total memory (in MB) the account can own",
- "name": "memorylimit",
+ "description": "The total number of VPCs available to be created for this account",
+ "name": "vpcavailable",
"type": "string"
},
{
- "description": "the total primary storage space (in GiB) owned by account",
- "name": "primarystoragetotal",
- "type": "long"
+ "description": "The total primary storage space (in GiB) the account can own",
+ "name": "primarystoragelimit",
+ "type": "string"
},
- {},
{
- "description": "the total number of projects available for administration by this account",
- "name": "projectavailable",
- "type": "string"
+ "description": "The total number of VPCs owned by account",
+ "name": "vpctotal",
+ "type": "long"
},
- {},
{
- "description": "true if the account requires cleanup",
- "name": "iscleanuprequired",
- "type": "boolean"
+ "description": "The total number of Templates which can be created by this Account",
+ "name": "templatelimit",
+ "type": "string"
},
{
- "description": "the total number of projects being administrated by this account",
- "name": "projecttotal",
+ "description": "The total memory (in MB) owned by account",
+ "name": "memorytotal",
"type": "long"
},
{
- "description": "the total number of cpu cores the account can own",
- "name": "cpulimit",
+ "description": "the total number of buckets available to this account",
+ "name": "bucketavailable",
"type": "string"
},
{
- "description": "the total number of public ip addresses allocated for this account",
- "name": "iptotal",
- "type": "long"
+ "description": "the total number of backups available to this account",
+ "name": "backupavailable",
+ "type": "string"
},
{
- "description": "the state of the account",
- "name": "state",
+ "description": "The total secondary storage space (in GiB) available to be used for this account",
+ "name": "secondarystorageavailable",
"type": "string"
},
{
- "description": "id of the Domain the account belongs to",
- "name": "domainid",
+ "description": "True if account is default, false otherwise",
+ "name": "isdefault",
+ "type": "boolean"
+ },
+ {
+ "description": "The total number of CPU cores available to be created for this account",
+ "name": "cpuavailable",
"type": "string"
},
{
- "description": "the total number of vpcs available to be created for this account",
- "name": "vpcavailable",
+ "description": "the total object storage space (in GiB) the account can own",
+ "name": "objectstoragelimit",
"type": "string"
},
{
- "description": "the total number of network traffic bytes received",
- "name": "receivedbytes",
+ "description": "The total number of Network traffic bytes sent",
+ "name": "sentbytes",
"type": "long"
},
{
- "description": "the name of the role",
- "name": "rolename",
+ "description": "The total primary storage space (in GiB) available to be used for this account",
+ "name": "primarystorageavailable",
"type": "string"
},
{
- "description": "true if account is default, false otherwise",
- "name": "isdefault",
- "type": "boolean"
+ "description": "Base64 string representation of the resource icon",
+ "name": "icon",
+ "type": "resourceiconresponse"
},
{
- "description": "the list of acl groups that account belongs to",
- "name": "groups",
- "type": "list"
+ "description": "The total number of projects the Account can own",
+ "name": "projectlimit",
+ "type": "string"
},
{
- "description": "the type of the role (Admin, ResourceAdmin, DomainAdmin, User)",
- "name": "roletype",
+ "description": "The Network domain",
+ "name": "networkdomain",
"type": "string"
},
{
- "description": "name of the Domain the account belongs to",
- "name": "domain",
+ "description": "the total number of gpus available to be created for this account",
+ "name": "gpuavailable",
"type": "string"
},
{
- "description": "the total number of cpu cores available to be created for this account",
- "name": "cpuavailable",
+ "description": "the total object storage space (in GiB) owned by the account",
+ "name": "objectstoragetotal",
+ "type": "long"
+ },
+ {
+ "description": "The total volume available for this Account",
+ "name": "volumeavailable",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "whether api key access is Enabled, Disabled or set to Inherit (it inherits the value from the parent)",
+ "name": "apikeyaccess",
+ "type": "apikeyaccess"
},
{
- "description": "the total number of virtual machines that can be deployed by this account",
- "name": "vmlimit",
+ "description": "Details for the account",
+ "name": "accountdetails",
+ "type": "map"
+ },
+ {
+ "description": "The total number of Snapshots which can be stored by this Account",
+ "name": "snapshotlimit",
"type": "string"
},
{
- "description": "the total secondary storage space (in GiB) the account can own",
- "name": "secondarystoragelimit",
+ "description": "the total number of backups which can be stored by this account",
+ "name": "backuplimit",
"type": "string"
},
{
- "description": "the total number of public ip addresses this account can acquire",
- "name": "iplimit",
+ "description": "the total number of buckets which can be stored by this account",
+ "name": "bucketlimit",
"type": "string"
},
{
- "description": "the total number of virtual machines deployed by this account",
- "name": "vmtotal",
- "type": "long"
+ "description": "True if the account requires cleanup",
+ "name": "iscleanuprequired",
+ "type": "boolean"
}
],
"since": "4.2.0"
},
{
- "description": "Copies an iso from one zone to another.",
+ "description": "Copies an ISO from one zone to another.",
"isasync": true,
"name": "copyIso",
"params": [
@@ -924,7 +924,7 @@
"type": "uuid"
},
{
- "description": "ID of the zone the template is currently hosted on. If not specified and template is cross-zone, then we will sync this template to region wide image store.",
+ "description": "ID of the zone the Template is currently hosted on. If not specified and Template is cross-zone, then we will sync this Template to region wide image store.",
"length": 255,
"name": "sourcezoneid",
"related": "createZone,updateZone,listZones,listZones",
@@ -932,7 +932,7 @@
"type": "uuid"
},
{
- "description": "A list of IDs of the zones that the template needs to be copied to.Specify this list if the template needs to copied to multiple zones in one go. Do not specify destzoneid and destzoneids together, however one of them is required.",
+ "description": "A list of IDs of the zones that the Template needs to be copied to.Specify this list if the Template needs to copied to multiple zones in one go. Do not specify destzoneid and destzoneids together, however one of them is required.",
"length": 255,
"name": "destzoneids",
"related": "createZone,updateZone,listZones,listZones",
@@ -940,7 +940,7 @@
"type": "list"
},
{
- "description": "ID of the zone the template is being copied to.",
+ "description": "ID of the zone the Template is being copied to.",
"length": 255,
"name": "destzoneid",
"related": "createZone,updateZone,listZones,listZones",
@@ -951,369 +951,369 @@
"related": "registerVnfTemplate,registerVnfTemplate,listVnfTemplates,listVnfTemplates,updateVnfTemplate,updateVnfTemplate,prepareTemplate,listIsos,registerIso,updateIso,copyTemplate,createTemplate,listTemplates,registerTemplate,updateTemplate,listTemplates,createTemplate,copyTemplate,registerTemplate,registerIso,copyIso,listIsos,linkUserDataToTemplate",
"response": [
{
- "description": "true if this template is a featured template, false otherwise",
- "name": "isfeatured",
- "type": "boolean"
+ "description": "Base64 string representation of the resource icon",
+ "name": "icon",
+ "type": "resourceiconresponse"
},
{
- "description": "additional key/value details tied with template",
- "name": "details",
- "type": "map"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
+ },
+ {
+ "description": "The format of the Template.",
+ "name": "format",
+ "type": "imageformat"
+ },
+ {
+ "description": "True if the reset password feature is enabled, false otherwise",
+ "name": "passwordenabled",
+ "type": "boolean"
},
{
- "description": "the processor bit size",
+ "description": "The processor bit size",
"name": "bits",
"type": "int"
},
{
- "description": "the type of the template",
- "name": "templatetype",
+ "description": "Checksum of the Template",
+ "name": "checksum",
"type": "string"
},
{
- "description": "true if the template is managed across all Zones, false otherwise",
- "name": "crossZones",
- "type": "boolean"
+ "description": "The list of resource tags associated",
+ "name": "tags",
+ "response": [
+ {
+ "description": "The project name where tag belongs to",
+ "name": "project",
+ "type": "string"
+ },
+ {
+ "description": "Path of the Domain associated with the tag",
+ "name": "domainpath",
+ "type": "string"
+ },
+ {
+ "description": "The domain associated with the tag",
+ "name": "domain",
+ "type": "string"
+ },
+ {
+ "description": "Tag value",
+ "name": "value",
+ "type": "string"
+ },
+ {
+ "description": "ID of the resource",
+ "name": "resourceid",
+ "type": "string"
+ },
+ {
+ "description": "Tag key name",
+ "name": "key",
+ "type": "string"
+ },
+ {
+ "description": "The Account associated with the tag",
+ "name": "account",
+ "type": "string"
+ },
+ {
+ "description": "Resource type",
+ "name": "resourcetype",
+ "type": "string"
+ },
+ {
+ "description": "The project ID the tag belongs to",
+ "name": "projectid",
+ "type": "string"
+ },
+ {
+ "description": "Customer associated with the tag",
+ "name": "customer",
+ "type": "string"
+ },
+ {
+ "description": "The ID of the domain associated with the tag",
+ "name": "domainid",
+ "type": "string"
+ }
+ ],
+ "type": "set"
},
{
- "description": "true if the template is ready to be deployed from, false otherwise.",
- "name": "isready",
- "type": "boolean"
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
},
{
- "description": "KVM Only: true if template is directly downloaded to Primary Storage bypassing Secondary Storage",
- "name": "directdownload",
+ "description": "The tag of this Template",
+ "name": "templatetag",
+ "type": "string"
+ },
+ {
+ "description": "The name of userdata linked to this Template",
+ "name": "userdataname",
+ "type": "string"
+ },
+ {
+ "description": "CPU Arch of the template",
+ "name": "arch",
+ "type": "string"
+ },
+ {
+ "description": "If true it indicates that the template can be used for CKS cluster deployments",
+ "name": "forcks",
"type": "boolean"
},
{
- "description": "VMware only: true if template is deployed without orchestrating disks and networks but \"as-is\" defined in the template.",
+ "description": "The Account name to which the Template belongs",
+ "name": "account",
+ "type": "string"
+ },
+ {
+ "description": "VMware only: true if Template is deployed without orchestrating disks and Networks but \"as-is\" defined in the Template.",
"name": "deployasis",
"type": "boolean"
},
{
- "description": "the id of userdata linked to this template",
- "name": "userdataid",
+ "description": "The Template ID",
+ "name": "id",
"type": "string"
},
{
- "description": "true if the ISO is bootable, false otherwise",
- "name": "bootable",
+ "description": "The date this Template was created",
+ "name": "created",
+ "type": "date"
+ },
+ {
+ "description": "True if Template contains XS/VMWare tools in order to support dynamic scaling of Instance CPU/memory",
+ "name": "isdynamicallyscalable",
"type": "boolean"
},
{
- "description": "the userdata override policy with the userdata provided while deploying VM",
- "name": "userdatapolicy",
- "type": "string"
+ "description": "If root disk Template, then IDs of the datas disk Templates this Template owns",
+ "name": "childtemplates",
+ "type": "set"
},
{
- "description": "CPU Arch of the template",
- "name": "arch",
- "type": "string"
+ "description": "True if Template requires HVM enabled, false otherwise",
+ "name": "requireshvm",
+ "type": "boolean"
+ },
+ {
+ "description": "KVM Only: true if Template is directly downloaded to Primary Storage bypassing Secondary Storage",
+ "name": "directdownload",
+ "type": "boolean"
},
{
- "description": "the size of the template",
+ "description": "The size of the Template",
"name": "size",
"type": "long"
},
{
- "description": "Base64 string representation of the resource icon",
- "name": "icon",
- "type": "resourceiconresponse"
+ "description": "The name of the secondary storage host for the Template",
+ "name": "hostname",
+ "type": "string"
},
{
- "description": "The ID of extension linked to this template",
- "name": "extensionid",
+ "description": "The Template name",
+ "name": "name",
"type": "string"
},
- {},
{
- "description": "If true it indicates that the template can be used for CKS cluster deployments",
- "name": "forcks",
- "type": "boolean"
+ "description": "The project ID of the Template",
+ "name": "projectid",
+ "type": "string"
},
- {},
{
- "description": "true if the template is extractable, false otherwise",
- "name": "isextractable",
+ "description": "True if this Template is a featured Template, false otherwise",
+ "name": "isfeatured",
"type": "boolean"
},
{
- "description": "path of the Domain the template belongs to",
- "name": "domainpath",
+ "description": "The project name of the Template",
+ "name": "project",
"type": "string"
},
{
- "description": "the URL which the template/iso is registered from",
- "name": "url",
+ "description": "VMware only: additional key/value details tied with deploy-as-is Template",
+ "name": "deployasisdetails",
+ "type": "map"
+ },
+ {
+ "description": "The hypervisor on which the Template runs",
+ "name": "hypervisor",
"type": "string"
},
{
- "description": "the ID of the OS type for this template.",
- "name": "ostypeid",
+ "description": "True if the Template is extractable, false otherwise",
+ "name": "isextractable",
+ "type": "boolean"
+ },
+ {
+ "description": "The id of userdata linked to this Template",
+ "name": "userdataid",
"type": "string"
},
{
- "description": "the ID of the domain to which the template belongs",
- "name": "domainid",
+ "description": "The userdata override policy with the userdata provided while deploying Instance",
+ "name": "userdatapolicy",
"type": "string"
},
{
- "description": "if Datadisk template, then id of the root disk template this template belongs to",
- "name": "parenttemplateid",
+ "description": "True if Template is sshkey enabled, false otherwise",
+ "name": "sshkeyenabled",
+ "type": "boolean"
+ },
+ {},
+ {
+ "description": "The date this Template was removed",
+ "name": "removed",
+ "type": "date"
+ },
+ {
+ "description": "True if the Template is ready to be deployed from, false otherwise.",
+ "name": "isready",
+ "type": "boolean"
+ },
+ {
+ "description": "The URL which the Template/ISO is registered from",
+ "name": "url",
"type": "string"
},
{
- "description": "true if template requires HVM enabled, false otherwise",
- "name": "requireshvm",
+ "description": "True if the ISO is bootable, false otherwise",
+ "name": "bootable",
"type": "boolean"
},
{
- "description": "checksum of the template",
- "name": "checksum",
+ "description": "The ID of the OS type for this Template.",
+ "name": "ostypeid",
"type": "string"
},
{
- "description": "the hypervisor on which the template runs",
- "name": "hypervisor",
+ "description": "The name of the domain to which the Template belongs",
+ "name": "domain",
"type": "string"
},
{
- "description": "the account id to which the template belongs",
- "name": "accountid",
+ "description": "The physical size of the Template",
+ "name": "physicalsize",
+ "type": "long"
+ },
+ {
+ "description": "Path of the Domain the template belongs to",
+ "name": "domainpath",
"type": "string"
},
{
- "description": "the account name to which the template belongs",
- "name": "account",
+ "description": "The status of the Template",
+ "name": "status",
"type": "string"
},
{
- "description": "true if the entity/resource has annotations",
+ "description": "The name of the zone for this Template",
+ "name": "zonename",
+ "type": "string"
+ },
+ {
+ "description": "Lists the download progress of a Template across all secondary storages",
+ "name": "downloaddetails",
+ "type": "list"
+ },
+ {
+ "description": "True if the entity/resource has annotations",
"name": "hasannotations",
"type": "boolean"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The ID of the zone for this Template",
+ "name": "zoneid",
"type": "string"
},
{
- "description": "the template ID of the parent template if present",
- "name": "sourcetemplateid",
+ "description": "The Template display text",
+ "name": "displaytext",
"type": "string"
},
{
- "description": "the name of the secondary storage host for the template",
- "name": "hostname",
+ "description": "The type of the Template",
+ "name": "templatetype",
"type": "string"
},
{
- "description": "the ID of the secondary storage host for the template",
- "name": "hostid",
+ "description": "The ID of the domain to which the Template belongs",
+ "name": "domainid",
"type": "string"
},
- {},
{
- "description": "the format of the template.",
- "name": "format",
- "type": "imageformat"
+ "description": "The Account id to which the Template belongs",
+ "name": "accountid",
+ "type": "string"
},
{
- "description": "the project name of the template",
- "name": "project",
+ "description": "If Datadisk Template, then id of the root disk Template this Template belongs to",
+ "name": "parenttemplateid",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "The ID of the secondary storage host for the Template",
+ "name": "hostid",
+ "type": "string"
},
{
- "description": "true if the reset password feature is enabled, false otherwise",
- "name": "passwordenabled",
- "type": "boolean"
+ "description": "Additional key/value details tied with Template",
+ "name": "details",
+ "type": "map"
},
{
- "description": "the name of userdata linked to this template",
- "name": "userdataname",
+ "description": "List of parameters which contains the list of keys or string parameters that are needed to be passed for any variables declared in userdata",
+ "name": "userdataparams",
"type": "string"
},
+ {},
{
- "description": "the date this template was created",
- "name": "created",
- "type": "date"
- },
- {
- "description": "the project id of the template",
- "name": "projectid",
+ "description": "The Template ID of the parent Template if present",
+ "name": "sourcetemplateid",
"type": "string"
},
{
- "description": "the name of the zone for this template",
- "name": "zonename",
+ "description": "The ID of extension linked to this template",
+ "name": "extensionid",
"type": "string"
},
{
- "description": "the tag of this template",
- "name": "templatetag",
+ "description": "The name of the OS type for this Template.",
+ "name": "ostypename",
"type": "string"
},
{
- "description": "the ID of the zone for this template",
- "name": "zoneid",
- "type": "string"
+ "description": "True if the Template is managed across all Zones, false otherwise",
+ "name": "crossZones",
+ "type": "boolean"
},
{
- "description": "the name of the domain to which the template belongs",
- "name": "domain",
+ "description": "The name of extension linked to this template",
+ "name": "extensionname",
"type": "string"
},
+ {},
{
- "description": "the list of resource tags associated",
- "name": "tags",
- "response": [
- {
- "description": "tag value",
- "name": "value",
- "type": "string"
- },
- {
- "description": "the domain associated with the tag",
- "name": "domain",
- "type": "string"
- },
- {
- "description": "customer associated with the tag",
- "name": "customer",
- "type": "string"
- },
- {
- "description": "the account associated with the tag",
- "name": "account",
- "type": "string"
- },
- {
- "description": "tag key name",
- "name": "key",
- "type": "string"
- },
- {
- "description": "the project id the tag belongs to",
- "name": "projectid",
- "type": "string"
- },
- {
- "description": "resource type",
- "name": "resourcetype",
- "type": "string"
- },
- {
- "description": "the project name where tag belongs to",
- "name": "project",
- "type": "string"
- },
- {
- "description": "path of the Domain associated with the tag",
- "name": "domainpath",
- "type": "string"
- },
- {
- "description": "id of the resource",
- "name": "resourceid",
- "type": "string"
- },
- {
- "description": "the ID of the domain associated with the tag",
- "name": "domainid",
- "type": "string"
- }
- ],
- "type": "set"
- },
- {
- "description": "the physical size of the template",
- "name": "physicalsize",
- "type": "long"
- },
- {
- "description": "the template name",
- "name": "name",
- "type": "string"
- },
- {
- "description": "VMware only: additional key/value details tied with deploy-as-is template",
- "name": "deployasisdetails",
- "type": "map"
- },
- {
- "description": "the template ID",
- "name": "id",
- "type": "string"
- },
- {
- "description": "list of parameters which contains the list of keys or string parameters that are needed to be passed for any variables declared in userdata",
- "name": "userdataparams",
- "type": "string"
- },
- {
- "description": "the date this template was removed",
- "name": "removed",
- "type": "date"
- },
- {
- "description": "the status of the template",
- "name": "status",
- "type": "string"
- },
- {
- "description": "true if template contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory",
- "name": "isdynamicallyscalable",
- "type": "boolean"
- },
- {
- "description": "true if this template is a public template, false otherwise",
+ "description": "True if this Template is a public Template, false otherwise",
"name": "ispublic",
"type": "boolean"
- },
- {
- "description": "if root disk template, then ids of the datas disk templates this template owns",
- "name": "childtemplates",
- "type": "set"
- },
- {
- "description": "The name of extension linked to this template",
- "name": "extensionname",
- "type": "string"
- },
- {
- "description": "the name of the OS type for this template.",
- "name": "ostypename",
- "type": "string"
- },
- {
- "description": "true if template is sshkey enabled, false otherwise",
- "name": "sshkeyenabled",
- "type": "boolean"
- },
- {
- "description": "the template display text",
- "name": "displaytext",
- "type": "string"
- },
- {
- "description": "Lists the download progress of a template across all secondary storages",
- "name": "downloaddetails",
- "type": "list"
}
]
},
{
- "description": "Deletes a autoscale vm profile.",
+ "description": "Deletes a autoscale Instance profile.",
"isasync": true,
"name": "deleteAutoScaleVmProfile",
"params": [
{
- "description": "the ID of the autoscale profile",
+ "description": "The ID of the autoscale profile",
"length": 255,
"name": "id",
"related": "createAutoScaleVmProfile,listAutoScaleVmProfiles,updateAutoScaleVmProfile",
@@ -1324,24 +1324,24 @@
"response": [
{},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "description": "true if operation is executed successfully",
- "name": "success",
- "type": "boolean"
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
},
{
- "description": "any text associated with the success or failure",
+ "description": "Any text associated with the success or failure",
"name": "displaytext",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "True if operation is executed successfully",
+ "name": "success",
+ "type": "boolean"
},
{}
]
@@ -1352,19 +1352,19 @@
"name": "listVsphereStoragePolicyCompatiblePools",
"params": [
{
- "description": "ID of the storage policy",
+ "description": "",
"length": 255,
- "name": "policyid",
- "related": "importVsphereStoragePolicies,listVsphereStoragePolicies",
+ "name": "pagesize",
"required": false,
- "type": "uuid"
+ "type": "integer"
},
{
- "description": "",
+ "description": "ID of the storage policy",
"length": 255,
- "name": "pagesize",
+ "name": "policyid",
+ "related": "importVsphereStoragePolicies,listVsphereStoragePolicies",
"required": false,
- "type": "integer"
+ "type": "uuid"
},
{
"description": "ID of the zone",
@@ -1392,19 +1392,14 @@
"related": "cancelStorageMaintenance,createStoragePool,listStoragePools,findStoragePoolsForMigration,enableStorageMaintenance,updateStoragePool,syncStoragePool,updateStorageCapabilities",
"response": [
{
- "description": "the Zone ID of the storage pool",
- "name": "zoneid",
- "type": "string"
- },
- {
- "description": "the ID of the storage pool",
- "name": "id",
+ "description": "The overprovisionfactor for the storage pool",
+ "name": "overprovisionfactor",
"type": "string"
},
{},
{
- "description": "the total disk size of the storage pool",
- "name": "disksizetotal",
+ "description": "total IOPS currently in use",
+ "name": "usediops",
"type": "long"
},
{
@@ -1413,39 +1408,45 @@
"type": "boolean"
},
{
- "description": "the name of the storage pool",
- "name": "name",
+ "description": "The IP address of the storage pool",
+ "name": "ipaddress",
"type": "string"
},
{
- "description": "the Zone name of the storage pool",
- "name": "zonename",
- "type": "string"
+ "description": "True if the entity/resource has annotations",
+ "name": "hasannotations",
+ "type": "boolean"
},
{
- "description": "the tags for the storage pool",
- "name": "tags",
+ "description": "The Zone ID of the storage pool",
+ "name": "zoneid",
"type": "string"
},
{
- "description": "the overprovisionfactor for the storage pool",
- "name": "overprovisionfactor",
+ "description": "The hypervisor type of the storage pool",
+ "name": "hypervisor",
"type": "string"
},
+ {},
{
- "description": "the storage pool path",
- "name": "path",
- "type": "string"
+ "description": "The total disk size of the storage pool",
+ "name": "disksizetotal",
+ "type": "long"
},
{
- "description": "the storage pool type",
- "name": "type",
+ "description": "Whether the informed tag is a JS interpretable rule or not.",
+ "name": "istagarule",
+ "type": "boolean"
+ },
+ {
+ "description": "The Zone name of the storage pool",
+ "name": "zonename",
"type": "string"
},
{
- "description": "true if this pool is suitable to migrate a volume, false otherwise",
- "name": "suitableformigration",
- "type": "boolean"
+ "description": "The Pod ID of the storage pool",
+ "name": "podid",
+ "type": "string"
},
{
"description": "the storage pool details",
@@ -1453,90 +1454,69 @@
"type": "map"
},
{
- "description": "the nfs mount options for the storage pool",
- "name": "nfsmountopts",
- "type": "string"
- },
- {
- "description": "the Pod ID of the storage pool",
- "name": "podid",
+ "description": "The ID of the storage pool",
+ "name": "id",
"type": "string"
},
{
- "description": "bytes CloudStack can provision from this storage pool",
- "name": "capacitybytes",
- "type": "long"
+ "description": "the storage pool custom stats",
+ "name": "storagecustomstats",
+ "type": "map"
},
{
- "description": "Whether the informed tag is a JS interpretable rule or not.",
- "name": "istagarule",
+ "description": "True if this pool is suitable to migrate a volume, false otherwise",
+ "name": "suitableformigration",
"type": "boolean"
},
{
- "description": "the scope of the storage pool",
- "name": "scope",
- "type": "string"
- },
- {
- "description": "the pool's currently allocated disk size",
+ "description": "The pool's currently allocated disk size",
"name": "disksizeallocated",
"type": "long"
},
- {},
{
- "description": "the IP address of the storage pool",
- "name": "ipaddress",
+ "description": "the nfs mount options for the storage pool",
+ "name": "nfsmountopts",
"type": "string"
},
{
- "description": "the hypervisor type of the storage pool",
- "name": "hypervisor",
+ "description": "Storage provider for this pool",
+ "name": "provider",
"type": "string"
},
{
- "description": "the pool's currently used disk size",
- "name": "disksizeused",
- "type": "long"
- },
- {
- "description": "IOPS CloudStack can provision from this storage pool",
- "name": "capacityiops",
- "type": "long"
- },
- {
- "description": "the date and time the storage pool was created",
- "name": "created",
- "type": "date"
+ "description": "The name of the cluster for the storage pool",
+ "name": "clustername",
+ "type": "string"
},
{
- "description": "the ID of the cluster for the storage pool",
- "name": "clusterid",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
+ "description": "The current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
},
{
- "description": "the Pod name of the storage pool",
- "name": "podname",
- "type": "string"
+ "description": "bytes CloudStack can provision from this storage pool",
+ "name": "capacitybytes",
+ "type": "long"
},
{
- "description": "the storage pool capabilities",
- "name": "storagecapabilities",
- "type": "map"
+ "description": "The storage pool path",
+ "name": "path",
+ "type": "string"
},
{
- "description": "the storage pool custom stats",
- "name": "storagecustomstats",
- "type": "map"
+ "description": "Total min IOPS currently in use by volumes",
+ "name": "allocatediops",
+ "type": "long"
},
{
- "description": "total IOPS currently in use",
- "name": "usediops",
- "type": "long"
+ "description": "The name of the storage pool",
+ "name": "name",
+ "type": "string"
},
{
"description": "the storage access groups for the storage pool",
@@ -1544,34 +1524,54 @@
"type": "string"
},
{
- "description": "true if the entity/resource has annotations",
- "name": "hasannotations",
- "type": "boolean"
+ "description": "The tags for the storage pool",
+ "name": "tags",
+ "type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The scope of the storage pool",
+ "name": "scope",
"type": "string"
},
{
- "description": "Storage provider for this pool",
- "name": "provider",
+ "description": "The ID of the cluster for the storage pool",
+ "name": "clusterid",
"type": "string"
},
{
- "description": "the name of the cluster for the storage pool",
- "name": "clustername",
+ "description": "The state of the storage pool",
+ "name": "state",
+ "type": "storagepoolstatus"
+ },
+ {
+ "description": "The Pod name of the storage pool",
+ "name": "podname",
"type": "string"
},
{
- "description": "total min IOPS currently in use by volumes",
- "name": "allocatediops",
+ "description": "IOPS CloudStack can provision from this storage pool",
+ "name": "capacityiops",
"type": "long"
},
{
- "description": "the state of the storage pool",
- "name": "state",
- "type": "storagepoolstatus"
+ "description": "The date and time the storage pool was created",
+ "name": "created",
+ "type": "date"
+ },
+ {
+ "description": "The storage pool type",
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "description": "The storage pool capabilities",
+ "name": "storagecapabilities",
+ "type": "map"
+ },
+ {
+ "description": "The pool's currently used disk size",
+ "name": "disksizeused",
+ "type": "long"
}
]
},
@@ -1581,37 +1581,38 @@
"name": "rebootSystemVm",
"params": [
{
- "description": "Force reboot the system VM (System VM is Stopped and then Started)",
- "length": 255,
- "name": "forced",
- "required": false,
- "since": "4.16.0",
- "type": "boolean"
- },
- {
- "description": "The ID of the system virtual machine",
+ "description": "The ID of the System VM",
"length": 255,
"name": "id",
"related": "destroySystemVm,listSystemVms,migrateSystemVm,rebootSystemVm,startSystemVm,stopSystemVm,changeServiceForSystemVm,scaleSystemVm",
"required": true,
"type": "uuid"
+ },
+ {
+ "description": "Force reboot the System VM (System VM is Stopped and then Started)",
+ "length": 255,
+ "name": "forced",
+ "required": false,
+ "since": "4.16.0",
+ "type": "boolean"
}
],
"related": "destroySystemVm,listSystemVms,migrateSystemVm,startSystemVm,stopSystemVm,changeServiceForSystemVm,scaleSystemVm",
"response": [
{
- "description": "the link local MAC address for the system vm",
- "name": "linklocalmacaddress",
+ "description": "The Pod name for the System VM",
+ "name": "podname",
"type": "string"
},
+ {},
{
- "description": "the public MAC address for the system VM",
- "name": "publicmacaddress",
+ "description": "The Template ID for the System VM",
+ "name": "templateid",
"type": "string"
},
{
- "description": "the system VM type",
- "name": "systemvmtype",
+ "description": "the ID of the service offering of the system virtual machine.",
+ "name": "serviceofferingid",
"type": "string"
},
{
@@ -1620,192 +1621,191 @@
"type": "string"
},
{
- "description": "the date and time the system VM was created",
- "name": "created",
- "type": "date"
- },
- {
- "description": "the gateway for the system VM",
- "name": "gateway",
+ "description": "The System VM type",
+ "name": "systemvmtype",
"type": "string"
},
- {},
{
- "description": "the state of the system VM",
- "name": "state",
+ "description": "The host ID for the System VM",
+ "name": "hostid",
"type": "string"
},
{
- "description": "the Zone ID for the system VM",
- "name": "zoneid",
+ "description": "CPU arch of the system VM",
+ "name": "arch",
"type": "string"
},
{
- "description": "the systemvm agent version",
- "name": "version",
+ "description": "The private IP address for the System VM",
+ "name": "privateip",
"type": "string"
},
{
- "description": "the name of the system VM",
- "name": "name",
- "type": "string"
+ "description": "Public VLAN range",
+ "name": "publicvlan",
+ "type": "list"
},
{
- "description": "the Pod name for the system VM",
- "name": "podname",
+ "description": "The public MAC address for the System VM",
+ "name": "publicmacaddress",
"type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The control state of the host for the System VM",
+ "name": "hostcontrolstate",
"type": "string"
},
{
- "description": "the network domain for the system VM",
- "name": "networkdomain",
- "type": "string"
+ "description": "The number of active console sessions for the console proxy System VM",
+ "name": "activeviewersessions",
+ "type": "integer"
},
{
- "description": "the control state of the host for the system VM",
- "name": "hostcontrolstate",
+ "description": "The name of the System VM",
+ "name": "name",
"type": "string"
},
{
- "description": "the private MAC address for the system VM",
- "name": "privatemacaddress",
+ "description": "The private netmask for the System VM",
+ "name": "privatenetmask",
"type": "string"
},
{
- "description": "the link local IP address for the system vm",
- "name": "linklocalip",
+ "description": "The public IP address for the System VM",
+ "name": "publicip",
"type": "string"
},
{
- "description": "true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory.",
- "name": "isdynamicallyscalable",
- "type": "boolean"
- },
- {
- "description": "the hostname for the system VM",
- "name": "hostname",
+ "description": "Guest VLAN range",
+ "name": "guestvlan",
"type": "string"
},
{
- "description": "the private netmask for the system VM",
- "name": "privatenetmask",
+ "description": "The systemvm agent version",
+ "name": "version",
"type": "string"
},
{
- "description": "the ID of the service offering of the system virtual machine.",
- "name": "serviceofferingid",
+ "description": "The Template name for the System VM",
+ "name": "templatename",
"type": "string"
},
{
- "description": "the host ID for the system VM",
- "name": "hostid",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the hypervisor on which the template runs",
- "name": "hypervisor",
+ "description": "The Zone ID for the System VM",
+ "name": "zoneid",
"type": "string"
},
+ {},
{
- "description": "guest vlan range",
- "name": "guestvlan",
+ "description": "The state of the System VM",
+ "name": "state",
"type": "string"
},
{
- "description": "the link local netmask for the system vm",
- "name": "linklocalnetmask",
+ "description": "The public netmask for the System VM",
+ "name": "publicnetmask",
"type": "string"
},
{
- "description": "the Zone name for the system VM",
- "name": "zonename",
+ "description": "The Control IP address for the System VM",
+ "name": "linklocalip",
"type": "string"
},
{
- "description": "the second DNS for the system VM",
- "name": "dns2",
+ "description": "The private MAC address for the System VM",
+ "name": "privatemacaddress",
"type": "string"
},
{
- "description": "the public IP address for the system VM",
- "name": "publicip",
+ "description": "The gateway for the System VM",
+ "name": "gateway",
"type": "string"
},
{
- "description": "true if the entity/resource has annotations",
+ "description": "True if the entity/resource has annotations",
"name": "hasannotations",
"type": "boolean"
},
{
- "description": "the template name for the system VM",
- "name": "templatename",
+ "description": "The hypervisor on which the Template runs",
+ "name": "hypervisor",
"type": "string"
},
{
- "description": "the last disconnected date of host",
- "name": "disconnected",
- "type": "date"
+ "description": "The Zone name for the System VM",
+ "name": "zonename",
+ "type": "string"
},
{
- "description": "the Pod ID for the system VM",
- "name": "podid",
+ "description": "The agent state of the System VM",
+ "name": "agentstate",
"type": "string"
},
{
- "description": "the template ID for the system VM",
- "name": "templateid",
+ "description": "The first DNS for the System VM",
+ "name": "dns1",
"type": "string"
},
{
- "description": "the agent state of the system VM",
- "name": "agentstate",
+ "description": "The Pod ID for the System VM",
+ "name": "podid",
"type": "string"
},
{
- "description": "the private IP address for the system VM",
- "name": "privateip",
- "type": "string"
+ "description": "The date and time the System VM was created",
+ "name": "created",
+ "type": "date"
},
{
- "description": "the public netmask for the system VM",
- "name": "publicnetmask",
+ "description": "The second DNS for the System VM",
+ "name": "dns2",
"type": "string"
},
{
- "description": "the number of active console sessions for the console proxy system vm",
- "name": "activeviewersessions",
- "type": "integer"
+ "description": "True if the Instance contains XS/VMWare tools in order to support dynamic scaling of Instance CPU/memory.",
+ "name": "isdynamicallyscalable",
+ "type": "boolean"
},
{
- "description": "CPU arch of the system VM",
- "name": "arch",
+ "description": "The Network domain for the System VM",
+ "name": "networkdomain",
"type": "string"
},
{
- "description": "public vlan range",
- "name": "publicvlan",
- "type": "list"
- },
- {
- "description": "the ID of the system VM",
- "name": "id",
+ "description": "The hostname for the System VM",
+ "name": "hostname",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
+ "description": "The current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
},
{
- "description": "the first DNS for the system VM",
- "name": "dns1",
+ "description": "The link local MAC address for the System VM",
+ "name": "linklocalmacaddress",
"type": "string"
},
- {}
+ {
+ "description": "The ID of the System VM",
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "description": "The link local netmask for the System VM",
+ "name": "linklocalnetmask",
+ "type": "string"
+ },
+ {
+ "description": "The last disconnected date of host",
+ "name": "disconnected",
+ "type": "date"
+ }
]
},
{
@@ -1814,22 +1814,22 @@
"name": "listDedicatedZones",
"params": [
{
- "description": "the ID of the Zone",
+ "description": "",
"length": 255,
- "name": "zoneid",
- "related": "createZone,updateZone,listZones,listZones",
+ "name": "pagesize",
"required": false,
- "type": "uuid"
+ "type": "integer"
},
{
- "description": "List by keyword",
+ "description": "The ID of the domain associated with the zone",
"length": 255,
- "name": "keyword",
+ "name": "domainid",
+ "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
"required": false,
- "type": "string"
+ "type": "uuid"
},
{
- "description": "list dedicated zones by affinity group",
+ "description": "List dedicated zones by affinity group",
"length": 255,
"name": "affinitygroupid",
"related": "createAffinityGroup,listAffinityGroups",
@@ -1837,11 +1837,11 @@
"type": "uuid"
},
{
- "description": "",
+ "description": "The name of the account associated with the zone. Must be used with domainId.",
"length": 255,
- "name": "pagesize",
+ "name": "account",
"required": false,
- "type": "integer"
+ "type": "string"
},
{
"description": "",
@@ -1851,64 +1851,64 @@
"type": "integer"
},
{
- "description": "the ID of the domain associated with the zone",
+ "description": "List by keyword",
"length": 255,
- "name": "domainid",
- "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
+ "name": "keyword",
"required": false,
- "type": "uuid"
+ "type": "string"
},
{
- "description": "the name of the account associated with the zone. Must be used with domainId.",
+ "description": "The ID of the Zone",
"length": 255,
- "name": "account",
+ "name": "zoneid",
+ "related": "createZone,updateZone,listZones,listZones",
"required": false,
- "type": "string"
+ "type": "uuid"
}
],
"related": "dedicateZone",
"response": [
{
- "description": "the Name of the Zone",
+ "description": "The Name of the Zone",
"name": "zonename",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
+ "description": "The Account ID to which the Zone is dedicated",
+ "name": "accountid",
+ "type": "string"
+ },
+ {},
+ {},
+ {
+ "description": "The current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
},
{
- "description": "the ID of the dedicated resource",
+ "description": "The ID of the dedicated resource",
"name": "id",
"type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
+ "description": "The UUID of the latest async job acting on this object",
"name": "jobid",
"type": "string"
},
{
- "description": "the Dedication Affinity Group ID of the zone",
+ "description": "The Dedication Affinity Group ID of the zone",
"name": "affinitygroupid",
"type": "string"
},
- {},
{
- "description": "the Account Id to which the Zone is dedicated",
- "name": "accountid",
+ "description": "The domain ID to which the Zone is dedicated",
+ "name": "domainid",
"type": "string"
},
- {},
{
- "description": "the ID of the Zone",
+ "description": "The ID of the Zone",
"name": "zoneid",
"type": "string"
- },
- {
- "description": "the domain ID to which the Zone is dedicated",
- "name": "domainid",
- "type": "string"
}
]
},
@@ -1918,7 +1918,7 @@
"name": "listElastistorPool",
"params": [
{
- "description": "the ID of the Pool",
+ "description": "The ID of the Pool",
"length": 255,
"name": "id",
"required": false,
@@ -1928,50 +1928,50 @@
"related": "",
"response": [
{
- "description": "controller of the pool",
- "name": "controllerid",
- "type": "string"
- },
- {
- "description": "the current status of the latest async job acting on this object",
+ "description": "The current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
},
{
- "description": "default gateway of the pool",
- "name": "gateway",
+ "description": "The ID of the storage pool",
+ "name": "id",
"type": "string"
},
{
- "description": "the current available space of the pool",
+ "description": "The current available space of the pool",
"name": "size",
"type": "long"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The name of the storage pool",
+ "name": "name",
"type": "string"
},
- {},
- {},
{
- "description": "the state of the storage pool",
+ "description": "The state of the storage pool",
"name": "state",
"type": "string"
},
+ {},
+ {},
{
- "description": "the ID of the storage pool",
- "name": "id",
+ "description": "Available IOPS of the pool",
+ "name": "maxiops",
+ "type": "long"
+ },
+ {
+ "description": "Default gateway of the pool",
+ "name": "gateway",
"type": "string"
},
{
- "description": "available iops of the pool",
- "name": "maxiops",
- "type": "long"
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
},
{
- "description": "the name of the storage pool",
- "name": "name",
+ "description": "Controller of the pool",
+ "name": "controllerid",
"type": "string"
}
]
@@ -1981,14 +1981,6 @@
"isasync": true,
"name": "changeBgpPeersForNetwork",
"params": [
- {
- "description": "UUID of the network which the Bgp Peers are associated to.",
- "length": 255,
- "name": "networkid",
- "related": "createNetwork,listNetworks,updateNetwork,createNetwork,updateNetwork,listNetworks,migrateNetwork,listNetscalerLoadBalancerNetworks,listNiciraNvpDeviceNetworks,listPaloAltoFirewallNetworks,listBrocadeVcsDeviceNetworks",
- "required": true,
- "type": "uuid"
- },
{
"description": "Ids of the Bgp Peer. If it is empty, all BGP peers will be unlinked.",
"length": 255,
@@ -1996,38 +1988,48 @@
"related": "createBgpPeer,listBgpPeers,updateBgpPeer,dedicateBgpPeer,releaseBgpPeer,changeBgpPeersForNetwork,changeBgpPeersForVpc",
"required": false,
"type": "list"
+ },
+ {
+ "description": "UUID of the network which the Bgp Peers are associated to.",
+ "length": 255,
+ "name": "networkid",
+ "related": "createNetwork,listNetworks,updateNetwork,createNetwork,updateNetwork,listNetworks,migrateNetwork,listNetscalerLoadBalancerNetworks,listNiciraNvpDeviceNetworks,listPaloAltoFirewallNetworks,listBrocadeVcsDeviceNetworks",
+ "required": true,
+ "type": "uuid"
}
],
"related": "createBgpPeer,listBgpPeers,updateBgpPeer,dedicateBgpPeer,releaseBgpPeer,changeBgpPeersForVpc",
"response": [
{
- "description": "IPv6 address of bgp peer",
- "name": "ip6address",
+ "description": "id of zone to which the bgp peer belongs to.",
+ "name": "zoneid",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
},
{
- "description": "the project name of the bgp peer",
- "name": "project",
+ "description": "id of the bgp peer",
+ "name": "id",
"type": "string"
},
{
- "description": "the account of the bgp peer",
- "name": "account",
+ "description": "the domain name of the bgp peer",
+ "name": "domain",
"type": "string"
},
+ {},
{
- "description": "name of zone to which the bgp peer belongs to.",
- "name": "zonename",
- "type": "string"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
+ {},
{
- "description": "the domain ID of the bgp peer",
- "name": "domainid",
+ "description": "name of zone to which the bgp peer belongs to.",
+ "name": "zonename",
"type": "string"
},
{
@@ -2036,35 +2038,33 @@
"type": "string"
},
{
- "description": "id of the bgp peer",
- "name": "id",
- "type": "string"
- },
- {
- "description": "id of zone to which the bgp peer belongs to.",
- "name": "zoneid",
+ "description": "the domain ID of the bgp peer",
+ "name": "domainid",
"type": "string"
},
{
- "description": "IPv4 address of bgp peer",
- "name": "ipaddress",
+ "description": "IPv6 address of bgp peer",
+ "name": "ip6address",
"type": "string"
},
- {},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
+ "description": "date when this bgp peer was created.",
+ "name": "created",
+ "type": "date"
},
{
"description": "AS number of bgp peer",
"name": "asnumber",
"type": "long"
},
- {},
{
- "description": "the domain name of the bgp peer",
- "name": "domain",
+ "description": "the account of the bgp peer",
+ "name": "account",
+ "type": "string"
+ },
+ {
+ "description": "IPv4 address of bgp peer",
+ "name": "ipaddress",
"type": "string"
},
{
@@ -2078,121 +2078,121 @@
"type": "map"
},
{
- "description": "date when this bgp peer was created.",
- "name": "created",
- "type": "date"
+ "description": "the project name of the bgp peer",
+ "name": "project",
+ "type": "string"
}
],
"since": "4.20.0"
},
{
- "description": "list Tungsten-Fabric LB health monitor",
+ "description": "List Tungsten-Fabric LB health monitor",
"isasync": false,
"name": "listTungstenFabricLBHealthMonitor",
"params": [
{
- "description": "List by keyword",
+ "description": "",
"length": 255,
- "name": "keyword",
+ "name": "pagesize",
"required": false,
- "type": "string"
+ "type": "integer"
},
{
- "description": "the ID of lb rule",
+ "description": "List by keyword",
"length": 255,
- "name": "lbruleid",
- "related": "createIpv6FirewallRule,listIpv6FirewallRules,updateIpv6FirewallRule,createPortForwardingRule,listPortForwardingRules,updatePortForwardingRule,createIpForwardingRule,listIpForwardingRules,createRoutingFirewallRule,listRoutingFirewallRules,updateRoutingFirewallRule",
- "required": true,
- "type": "uuid"
+ "name": "keyword",
+ "required": false,
+ "type": "string"
},
{
"description": "",
"length": 255,
- "name": "pagesize",
+ "name": "page",
"required": false,
"type": "integer"
},
{
- "description": "",
+ "description": "The ID of lb rule",
"length": 255,
- "name": "page",
- "required": false,
- "type": "integer"
+ "name": "lbruleid",
+ "related": "createRoutingFirewallRule,listRoutingFirewallRules,updateRoutingFirewallRule,createPortForwardingRule,listPortForwardingRules,updatePortForwardingRule,createIpForwardingRule,listIpForwardingRules,createIpv6FirewallRule,listIpv6FirewallRules,updateIpv6FirewallRule",
+ "required": true,
+ "type": "uuid"
}
],
"related": "updateTungstenFabricLBHealthMonitor",
"response": [
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The health monitor interval",
+ "name": "interval",
+ "type": "int"
+ },
+ {
+ "description": "The LB rule ID",
+ "name": "lbruleid",
"type": "string"
},
{
- "description": "the health monitor ID",
+ "description": "The health monitor ID",
"name": "id",
"type": "long"
},
- {},
- {
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
{
- "description": "the health monitor type",
- "name": "type",
+ "description": "The health monitor UUID",
+ "name": "uuid",
"type": "string"
},
{
- "description": "the health monitor timeout",
+ "description": "The health monitor timeout",
"name": "timeout",
"type": "int"
},
+ {},
{
- "description": "the health monitor url path",
- "name": "urlpath",
+ "description": "Tungsten-Fabric provider zone name",
+ "name": "zonename",
"type": "string"
},
{
- "description": "the LB rule ID",
- "name": "lbruleid",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
+ },
+ {},
+ {
+ "description": "The health monitor URL path",
+ "name": "urlpath",
"type": "string"
},
{
- "description": "the health monitor expected code",
+ "description": "Tungsten-Fabric provider zone ID",
+ "name": "zoneid",
+ "type": "long"
+ },
+ {
+ "description": "The health monitor expected code",
"name": "expectedcode",
"type": "string"
},
{
- "description": "the health monitor UUID",
- "name": "uuid",
+ "description": "The health monitor type",
+ "name": "type",
"type": "string"
},
{
- "description": "the health monitor retry",
+ "description": "The health monitor retry",
"name": "retry",
"type": "int"
},
{
- "description": "Tungsten-Fabric provider zone name",
- "name": "zonename",
- "type": "string"
- },
- {
- "description": "the health monitor http method",
+ "description": "The health monitor HTTP method",
"name": "httpmethod",
"type": "string"
},
- {},
- {
- "description": "the health monitor interval",
- "name": "interval",
- "type": "int"
- },
{
- "description": "Tungsten-Fabric provider zone id",
- "name": "zoneid",
- "type": "long"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
}
]
},
@@ -2201,14 +2201,6 @@
"isasync": true,
"name": "removeNodesFromKubernetesCluster",
"params": [
- {
- "description": "comma separated list of node (physical or virtual machines) IDs that need to beremoved from the Kubernetes cluster (CKS)",
- "length": 255,
- "name": "nodeids",
- "related": "deployVnfAppliance,deployVnfAppliance,listVnfAppliances,listVnfAppliances,assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMachine,restoreVirtualMachine,startVirtua [...]
- "required": true,
- "type": "list"
- },
{
"description": "the ID of the Kubernetes cluster",
"length": 255,
@@ -2216,75 +2208,83 @@
"related": "createKubernetesCluster,startKubernetesCluster,listKubernetesClusters,scaleKubernetesCluster,upgradeKubernetesCluster,addNodesToKubernetesCluster,removeNodesFromKubernetesCluster",
"required": true,
"type": "uuid"
+ },
+ {
+ "description": "comma separated list of node (physical or virtual machines) IDs that need to beremoved from the Kubernetes cluster (CKS)",
+ "length": 255,
+ "name": "nodeids",
+ "related": "createVMFromBackup,createVMFromBackup,deployVnfAppliance,deployVnfAppliance,listVnfAppliances,listVnfAppliances,assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMac [...]
+ "required": true,
+ "type": "list"
}
],
"related": "createKubernetesCluster,startKubernetesCluster,listKubernetesClusters,scaleKubernetesCluster,upgradeKubernetesCluster,addNodesToKubernetesCluster",
"response": [
{
- "description": "the name of the service offering of the Kubernetes cluster",
- "name": "serviceofferingname",
+ "description": "Name of CNI Configuration associated with the cluster",
+ "name": "cniconfigname",
"type": "string"
},
- {},
{
- "description": "the name of the network of the Kubernetes cluster",
- "name": "associatednetworkname",
+ "description": "The ID of the network of the Kubernetes cluster",
+ "name": "networkid",
"type": "string"
},
{
- "description": "the name of the Kubernetes cluster",
- "name": "name",
+ "description": "The ID of the Kubernetes cluster",
+ "name": "id",
"type": "string"
},
{
- "description": "the cpu cores of the Kubernetes cluster",
- "name": "cpunumber",
+ "description": "the name of the service offering of the worker nodes on the Kubernetes cluster",
+ "name": "workerofferingname",
"type": "string"
},
{
- "description": "the ID of the service offering of the Kubernetes cluster",
- "name": "serviceofferingid",
+ "description": "The name of the zone of the Kubernetes cluster",
+ "name": "zonename",
"type": "string"
},
{
- "description": "the ID of the service offering of the control nodes on the Kubernetes cluster",
- "name": "controlofferingid",
- "type": "string"
+ "description": "Whether autoscaling is enabled for the cluster",
+ "name": "autoscalingenabled",
+ "type": "boolean"
},
{
- "description": "the ID of the domain in which the Kubernetes cluster exists",
- "name": "domainid",
+ "description": "The name of the domain in which the Kubernetes cluster exists",
+ "name": "domain",
"type": "string"
},
{
- "description": "Minimum size of the cluster",
- "name": "minsize",
- "type": "long"
+ "description": "The description of the Kubernetes cluster",
+ "name": "description",
+ "type": "string"
},
+ {},
{
- "description": "true if the entity/resource has annotations",
- "name": "hasannotations",
- "type": "boolean"
+ "description": "The control nodes count for the Kubernetes cluster",
+ "name": "controlnodes",
+ "type": "long"
},
{
- "description": "the name of the service offering of the etcd nodes on the Kubernetes cluster",
- "name": "etcdofferingname",
+ "description": "the ID of the service offering of the control nodes on the Kubernetes cluster",
+ "name": "controlofferingid",
"type": "string"
},
{
- "description": "path of the domain to which the Kubernetes cluster belongs",
+ "description": "Path of the domain to which the Kubernetes cluster belongs",
"name": "domainpath",
"type": "string"
},
{
- "description": "ID of CNI Configuration associated with the cluster",
- "name": "cniconfigurationid",
+ "description": "the name of the service offering of the control nodes on the Kubernetes cluster",
+ "name": "controlofferingname",
"type": "string"
},
{
- "description": "the project id of the Kubernetes cluster",
- "name": "projectid",
- "type": "string"
+ "description": "True if the entity/resource has annotations",
+ "name": "hasannotations",
+ "type": "boolean"
},
{
"description": "URL end point for the Kubernetes cluster",
@@ -2292,43 +2292,43 @@
"type": "string"
},
{
- "description": "Maximum size of the cluster",
- "name": "maxsize",
- "type": "long"
+ "description": "URL end point for the Kubernetes cluster dashboard UI",
+ "name": "consoleendpoint",
+ "type": "string"
},
{
- "description": "Whether autoscaling is enabled for the cluster",
- "name": "autoscalingenabled",
- "type": "boolean"
+ "description": "the ID of the service offering of the etcd nodes on the Kubernetes cluster",
+ "name": "etcdofferingid",
+ "type": "string"
},
{
- "description": "the account associated with the Kubernetes cluster",
- "name": "account",
- "type": "string"
+ "description": "the number of the etcd nodes on the Kubernetes cluster",
+ "name": "etcdnodes",
+ "type": "long"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The ID of the domain in which the Kubernetes cluster exists",
+ "name": "domainid",
"type": "string"
},
{
- "description": "the name of the service offering of the worker nodes on the Kubernetes cluster",
- "name": "workerofferingname",
+ "description": "Public IP Address ID of the cluster",
+ "name": "ipaddressid",
"type": "string"
},
{
- "description": "Public IP Addresses of the etcd nodes",
- "name": "etcdips",
- "type": "map"
+ "description": "Indicates if the CloudStack CSI driver has been setup in the cluster",
+ "name": "csienabled",
+ "type": "boolean"
},
{
- "description": "the project name of the Kubernetes cluster",
- "name": "project",
+ "description": "The project id of the Kubernetes cluster",
+ "name": "projectid",
"type": "string"
},
{
- "description": "the id of the Kubernetes cluster",
- "name": "id",
+ "description": "The memory the Kubernetes cluster",
+ "name": "memory",
"type": "string"
},
{
@@ -2337,151 +2337,151 @@
"type": "string"
},
{
- "description": "Indicates if the CloudStack CSI driver has been setup in the cluster",
- "name": "csienabled",
- "type": "boolean"
- },
- {
- "description": "Name of CNI Configuration associated with the cluster",
- "name": "cniconfigname",
+ "description": "The name of the network of the Kubernetes cluster",
+ "name": "associatednetworkname",
"type": "string"
},
{
- "description": "URL end point for the Kubernetes cluster dashboard UI",
- "name": "consoleendpoint",
+ "description": "The name of the zone of the Kubernetes cluster",
+ "name": "zoneid",
"type": "string"
},
{
- "description": "Public IP Address of the cluster",
- "name": "ipaddress",
+ "description": "The name of the Kubernetes version for the Kubernetes cluster",
+ "name": "kubernetesversionname",
"type": "string"
},
{
- "description": "the memory the Kubernetes cluster",
- "name": "memory",
+ "description": "The name of the service offering of the Kubernetes cluster",
+ "name": "serviceofferingname",
"type": "string"
},
{
- "description": "the control nodes count for the Kubernetes cluster",
- "name": "controlnodes",
- "type": "long"
- },
- {
- "description": "the number of the etcd nodes on the Kubernetes cluster",
- "name": "etcdnodes",
- "type": "long"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "description": "the description of the Kubernetes cluster",
- "name": "description",
+ "description": "the ID of the service offering of the worker nodes on the Kubernetes cluster",
+ "name": "workerofferingid",
"type": "string"
},
{
- "description": "the ID of the template of the Kubernetes cluster",
- "name": "templateid",
+ "description": "The cpu cores of the Kubernetes cluster",
+ "name": "cpunumber",
"type": "string"
},
+ {},
{
- "description": "the state of the Kubernetes cluster",
- "name": "state",
+ "description": "Keypair details",
+ "name": "keypair",
"type": "string"
},
{
- "description": "the type of the cluster",
- "name": "clustertype",
- "type": "clustertype"
+ "description": "The list of virtualmachines associated with this Kubernetes cluster",
+ "name": "virtualmachines",
+ "type": "list"
},
{
- "description": "the date when this Kubernetes cluster was created",
- "name": "created",
- "type": "date"
+ "description": "The size (worker nodes count) of the Kubernetes cluster",
+ "name": "size",
+ "type": "long"
},
{
- "description": "the name of the Kubernetes version for the Kubernetes cluster",
- "name": "kubernetesversionname",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the ID of the Kubernetes version for the Kubernetes cluster",
- "name": "kubernetesversionid",
+ "description": "The project name of the Kubernetes cluster",
+ "name": "project",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "The master nodes count for the Kubernetes cluster. This parameter is deprecated, please use 'controlnodes' parameter.",
+ "name": "masternodes",
+ "type": "long"
},
{
- "description": "the ID of the service offering of the etcd nodes on the Kubernetes cluster",
- "name": "etcdofferingid",
+ "description": "The Account associated with the Kubernetes cluster",
+ "name": "account",
"type": "string"
},
{
- "description": "Public IP Address ID of the cluster",
- "name": "ipaddressid",
+ "description": "ID of CNI Configuration associated with the cluster",
+ "name": "cniconfigurationid",
"type": "string"
},
{
- "description": "the ID of the network of the Kubernetes cluster",
- "name": "networkid",
+ "description": "The ID of the service offering of the Kubernetes cluster",
+ "name": "serviceofferingid",
"type": "string"
},
{
- "description": "the name of the domain in which the Kubernetes cluster exists",
- "name": "domain",
- "type": "string"
+ "description": "The date when this Kubernetes cluster was created",
+ "name": "created",
+ "type": "date"
},
{
- "description": "the name of the zone of the Kubernetes cluster",
- "name": "zoneid",
- "type": "string"
+ "description": "Maximum size of the cluster",
+ "name": "maxsize",
+ "type": "long"
},
{
- "description": "the size (worker nodes count) of the Kubernetes cluster",
- "name": "size",
- "type": "long"
+ "description": "Public IP Addresses of the etcd nodes",
+ "name": "etcdips",
+ "type": "map"
},
- {},
{
- "description": "keypair details",
- "name": "keypair",
+ "description": "The type of the cluster",
+ "name": "clustertype",
+ "type": "clustertype"
+ },
+ {
+ "description": "The ID of the Template of the Kubernetes cluster",
+ "name": "templateid",
"type": "string"
},
{
- "description": "the master nodes count for the Kubernetes cluster. This parameter is deprecated, please use 'controlnodes' parameter.",
- "name": "masternodes",
+ "description": "The state of the Kubernetes cluster",
+ "name": "state",
+ "type": "string"
+ },
+ {
+ "description": "Minimum size of the cluster",
+ "name": "minsize",
"type": "long"
},
{
- "description": "the name of the service offering of the control nodes on the Kubernetes cluster",
- "name": "controlofferingname",
+ "description": "The ID of the Kubernetes version for the Kubernetes cluster",
+ "name": "kubernetesversionid",
"type": "string"
},
{
- "description": "the name of the zone of the Kubernetes cluster",
- "name": "zonename",
+ "description": "The name of the Kubernetes cluster",
+ "name": "name",
"type": "string"
},
{
- "description": "the ID of the service offering of the worker nodes on the Kubernetes cluster",
- "name": "workerofferingid",
+ "description": "Public IP Address of the cluster",
+ "name": "ipaddress",
"type": "string"
},
{
- "description": "the list of virtualmachine associated with this Kubernetes cluster",
- "name": "virtualmachines",
- "type": "list"
+ "description": "the name of the service offering of the etcd nodes on the Kubernetes cluster",
+ "name": "etcdofferingname",
+ "type": "string"
}
],
"since": "4.21.0"
},
{
- "description": "Deletes account from the project",
+ "description": "Deletes Account from the project",
"isasync": true,
"name": "deleteAccountFromProject",
"params": [
{
- "description": "ID of the project to remove the account from",
+ "description": "ID of the project to remove the Account from",
"length": 255,
"name": "projectid",
"related": "listProjectAccounts,activateProject,createProject,listProjects,suspendProject,updateProject",
@@ -2489,7 +2489,7 @@
"type": "uuid"
},
{
- "description": "name of the account to be removed from the project",
+ "description": "Name of the Account to be removed from the project",
"length": 255,
"name": "account",
"required": true,
@@ -2498,27 +2498,27 @@
],
"response": [
{
- "description": "true if operation is executed successfully",
- "name": "success",
- "type": "boolean"
+ "description": "Any text associated with the success or failure",
+ "name": "displaytext",
+ "type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
+ "description": "The current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
},
- {},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
+ "description": "True if operation is executed successfully",
+ "name": "success",
+ "type": "boolean"
},
{},
{
- "description": "any text associated with the success or failure",
- "name": "displaytext",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
- }
+ },
+ {}
],
"since": "3.0.0"
},
@@ -2528,11 +2528,11 @@
"name": "updateGuestOs",
"params": [
{
- "description": "whether this guest OS is available for end users",
+ "description": "Map of (key/value pairs)",
"length": 255,
- "name": "forDisplay",
+ "name": "details",
"required": false,
- "type": "boolean"
+ "type": "map"
},
{
"description": "the ID of the OS category",
@@ -2543,6 +2543,13 @@
"since": "4.21.0",
"type": "uuid"
},
+ {
+ "description": "whether this guest OS is available for end users",
+ "length": 255,
+ "name": "forDisplay",
+ "required": false,
+ "type": "boolean"
+ },
{
"description": "UUID of the Guest OS",
"length": 255,
@@ -2551,13 +2558,6 @@
"required": true,
"type": "uuid"
},
- {
- "description": "Map of (key/value pairs)",
- "length": 255,
- "name": "details",
- "required": false,
- "type": "map"
- },
{
"description": "Unique display name for Guest OS",
"length": 255,
@@ -2569,51 +2569,51 @@
"related": "listOsTypes,addGuestOs",
"response": [
{
- "description": "is the guest OS visible for the users",
- "name": "fordisplay",
- "type": "boolean"
- },
- {
- "description": "the name/description of the OS type",
- "name": "description",
- "type": "string"
- },
- {
- "description": "is the guest OS user defined",
+ "description": "Is the guest OS user defined",
"name": "isuserdefined",
"type": "boolean"
},
{},
+ {},
{
- "description": "the name of the OS category",
- "name": "oscategoryname",
+ "description": "The ID of the OS type",
+ "name": "id",
"type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
+ "description": "The UUID of the latest async job acting on this object",
"name": "jobid",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "Is the guest OS visible for the users",
+ "name": "fordisplay",
+ "type": "boolean"
},
{
- "description": "the ID of the OS type",
- "name": "id",
+ "description": "The name/description of the OS type",
+ "name": "description",
"type": "string"
},
{
- "description": "the ID of the OS category",
+ "description": "The name of the OS type",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "description": "The ID of the OS category",
"name": "oscategoryid",
"type": "string"
},
- {},
{
- "description": "the name of the OS type",
- "name": "name",
+ "description": "The name of the OS category",
+ "name": "oscategoryname",
"type": "string"
+ },
+ {
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
}
],
"since": "4.4.0"
@@ -2624,36 +2624,43 @@
"name": "listGuestVlans",
"params": [
{
- "description": "List by keyword",
+ "description": "List guest VLAN by vnet",
"length": 255,
- "name": "keyword",
+ "name": "vnet",
"required": false,
"type": "string"
},
{
- "description": "limits search results to allocated guest vlan. false by default.",
+ "description": "List guest VLAN by physical network",
+ "length": 255,
+ "name": "physicalnetworkid",
+ "related": "createPhysicalNetwork,listPhysicalNetworks,updatePhysicalNetwork",
+ "required": false,
+ "type": "uuid"
+ },
+ {
+ "description": "Limits search results to allocated guest VLAN. False by default.",
"length": 255,
"name": "allocatedonly",
"required": false,
"type": "boolean"
},
{
- "description": "list guest vlan by vnet",
+ "description": "",
"length": 255,
- "name": "vnet",
+ "name": "page",
"required": false,
- "type": "string"
+ "type": "integer"
},
{
- "description": "list guest vlan by physical network",
+ "description": "",
"length": 255,
- "name": "physicalnetworkid",
- "related": "createPhysicalNetwork,listPhysicalNetworks,updatePhysicalNetwork",
+ "name": "pagesize",
"required": false,
- "type": "uuid"
+ "type": "integer"
},
{
- "description": "list guest vlan by zone",
+ "description": "List guest VLAN by zone",
"length": 255,
"name": "zoneid",
"related": "createZone,updateZone,listZones,listZones",
@@ -2661,74 +2668,65 @@
"type": "uuid"
},
{
- "description": "",
- "length": 255,
- "name": "pagesize",
- "required": false,
- "type": "integer"
- },
- {
- "description": "list guest vlan by id",
+ "description": "List guest VLAN by ID",
"length": 255,
"name": "id",
"required": false,
"type": "long"
},
{
- "description": "",
+ "description": "List by keyword",
"length": 255,
- "name": "page",
+ "name": "keyword",
"required": false,
- "type": "integer"
+ "type": "string"
}
],
"related": "",
"response": [
{
- "description": "the guest VLAN id",
- "name": "id",
- "type": "long"
+ "description": "The zone ID of the guest VLAN range",
+ "name": "zoneid",
+ "type": "string"
},
- {},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The Account of the guest VLAN range",
+ "name": "account",
"type": "string"
},
{
- "description": "the zone name of the guest VLAN range",
- "name": "zonename",
+ "description": "The project ID of the guest VLAN range",
+ "name": "projectid",
"type": "string"
},
{
- "description": "the project id of the guest VLAN range",
- "name": "projectid",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the physical network ID of the guest VLAN range",
- "name": "physicalnetworkid",
+ "description": "The zone name of the guest VLAN range",
+ "name": "zonename",
"type": "string"
},
{
- "description": "date the guest VLAN was taken",
+ "description": "Date the guest VLAN was taken",
"name": "taken",
"type": "date"
},
{
- "description": "the guest VLAN",
- "name": "vlan",
- "type": "string"
+ "description": "The list of Networks who use this guest VLAN",
+ "name": "network",
+ "type": "list"
},
{
- "description": "true if the guest VLAN is dedicated to the account",
- "name": "isdedicated",
- "type": "boolean"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
- {},
{
- "description": "the zone ID of the guest VLAN range",
- "name": "zoneid",
+ "description": "The allocation state of the guest VLAN",
+ "name": "allocationstate",
"type": "string"
},
{
@@ -2737,45 +2735,47 @@
"type": "string"
},
{
- "description": "the list of networks who use this guest VLAN",
- "name": "network",
- "type": "list"
+ "description": "The project name of the guest VLAN range",
+ "name": "project",
+ "type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "The physical Network name of the guest VLAN range",
+ "name": "physicalnetworkname",
+ "type": "string"
},
{
- "description": "the project name of the guest VLAN range",
- "name": "project",
+ "description": "The domain name of the guest VLAN range",
+ "name": "domain",
"type": "string"
},
+ {},
{
- "description": "the account of the guest VLAN range",
- "name": "account",
+ "description": "The guest VLAN",
+ "name": "vlan",
"type": "string"
},
{
- "description": "the allocation state of the guest VLAN",
- "name": "allocationstate",
- "type": "string"
+ "description": "The guest VLAN ID",
+ "name": "id",
+ "type": "long"
},
{
- "description": "the domain ID of the guest VLAN range",
+ "description": "The domain ID of the guest VLAN range",
"name": "domainid",
"type": "string"
},
{
- "description": "the domain name of the guest VLAN range",
- "name": "domain",
+ "description": "The physical Network ID of the guest VLAN range",
+ "name": "physicalnetworkid",
"type": "string"
},
{
- "description": "the physical network name of the guest VLAN range",
- "name": "physicalnetworkname",
- "type": "string"
- }
+ "description": "True if the guest VLAN is dedicated to the Account",
+ "name": "isdedicated",
+ "type": "boolean"
+ },
+ {}
],
"since": "4.17.0"
},
@@ -2785,7 +2785,7 @@
"name": "updateResourceLimit",
"params": [
{
- "description": "Type of resource to update. Values are 0, 1, 2, 3, 4, 6, 7, 8, 9, 10 and 11. 0 - Instance. Number of instances a user can create. 1 - IP. Number of public IP addresses a user can own. 2 - Volume. Number of disk volumes a user can create. 3 - Snapshot. Number of snapshots a user can create. 4 - Template. Number of templates that a user can register/create. 5 - Project. Number of projects a user can create. 6 - Network. Number of guest network a user can create. 7 [...]
+ "description": "Type of resource to update. Values are 0, 1, 2, 3, 4, 6, 7, 8, 9, 10 and 11. 0 - Instance. Number of Instances a user can create. 1 - IP. Number of public IP addresses a user can own. 2 - Volume. Number of disk volumes a user can create. 3 - Snapshot. Number of Snapshots a user can create. 4 - Template. Number of Templates that a user can register/create. 5 - Project. Number of Projects a user can create. 6 - Network. Number of guest Network a user can create. 7 [...]
"length": 255,
"name": "resourcetype",
"required": true,
@@ -2800,19 +2800,18 @@
"type": "uuid"
},
{
- "description": "Update resource limits for all accounts in specified domain. If used with the account parameter, updates resource limits for a specified account in specified domain.",
+ "description": "Update resource for a specified account. Must be used with the domainId parameter.",
"length": 255,
- "name": "domainid",
- "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
+ "name": "account",
"required": false,
- "type": "uuid"
+ "type": "string"
},
{
- "description": "Update resource for a specified account. Must be used with the domainId parameter.",
+ "description": " Maximum resource limit.",
"length": 255,
- "name": "account",
+ "name": "max",
"required": false,
- "type": "string"
+ "type": "long"
},
{
"description": "Tag for the resource type",
@@ -2823,75 +2822,76 @@
"type": "string"
},
{
- "description": " Maximum resource limit.",
+ "description": "Update resource limits for all accounts in specified domain. If used with the account parameter, updates resource limits for a specified account in specified domain.",
"length": 255,
- "name": "max",
+ "name": "domainid",
+ "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
"required": false,
- "type": "long"
+ "type": "uuid"
}
],
"related": "listResourceLimits",
"response": [
{
- "description": "the account of the resource limit",
- "name": "account",
+ "description": "Resource type name. Values include user_vm, public_ip, volume, Snapshot, Template, project, Network, VPC, CPU, memory, primary_storage, secondary_storage.",
+ "name": "resourcetypename",
"type": "string"
},
{
- "description": "the project name of the resource limit",
- "name": "project",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
+ },
+ {
+ "description": "The Account of the resource limit",
+ "name": "account",
"type": "string"
},
{
- "description": "path of the domain to which the resource limit belongs",
+ "description": "Path of the domain to which the resource limit belongs",
"name": "domainpath",
"type": "string"
},
{
- "description": "The tag for the resource limit",
- "name": "tag",
+ "description": "The project name of the resource limit",
+ "name": "project",
"type": "string"
},
- {},
{
- "description": "the domain name of the resource limit",
+ "description": "The domain name of the resource limit",
"name": "domain",
"type": "string"
},
- {},
{
- "description": "resource type. Values include 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11. See the resourceType parameter for more information on these values.",
- "name": "resourcetype",
+ "description": "The project ID of the resource limit",
+ "name": "projectid",
"type": "string"
},
+ {},
{
- "description": "the maximum number of the resource. A -1 means the resource currently has no limit.",
+ "description": "The maximum number of the resource. A -1 means the resource currently has no limit.",
"name": "max",
"type": "long"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
- {
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "The domain ID of the resource limit",
+ "name": "domainid",
"type": "string"
},
{
- "description": "resource type name. Values include user_vm, public_ip, volume, snapshot, template, project, network, vpc, cpu, memory, primary_storage, secondary_storage.",
- "name": "resourcetypename",
+ "description": "The tag for the resource limit",
+ "name": "tag",
"type": "string"
},
{
- "description": "the domain ID of the resource limit",
- "name": "domainid",
- "type": "string"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
+ {},
{
- "description": "the project id of the resource limit",
- "name": "projectid",
+ "description": "Resource type. Values include 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11. See the resourceType parameter for more information on these values.",
+ "name": "resourcetype",
"type": "string"
}
]
@@ -2913,20 +2913,13 @@
"related": "listGuiThemes,updateGuiTheme,createGuiTheme",
"response": [
{
- "description": "A set of domain UUIDs (also known as ID for the end-user) separated by comma that can retrieve the theme.",
- "name": "domainids",
- "type": "string"
- },
- {},
- {},
- {
- "description": "ID of the custom GUI theme.",
- "name": "id",
+ "description": "Name of the GUI theme.",
+ "name": "name",
"type": "string"
},
{
- "description": "A set of account UUIDs (also known as ID for the end-user) separated by comma that can retrieve the theme.",
- "name": "accountids",
+ "description": "The CSS to be retrieved and imported into the GUI when matching the theme access configurations.",
+ "name": "css",
"type": "string"
},
{
@@ -2934,55 +2927,62 @@
"name": "description",
"type": "string"
},
+ {},
{
"description": "Whether to consider the subdomains of the informed domain IDs.",
"name": "recursivedomains",
"type": "boolean"
},
{
- "description": "Name of the GUI theme.",
- "name": "name",
- "type": "string"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
+ },
+ {
+ "description": "Defines whether a theme can be retrieved by anyone when only the `commonNames` is informed. If the `domainIds` or `accountIds` is informed, it is considered as `false`.",
+ "name": "ispublic",
+ "type": "boolean"
},
{
"description": "When the GUI theme was removed.",
"name": "removed",
"type": "date"
},
+ {},
{
- "description": "When the GUI theme was created.",
- "name": "created",
- "type": "date"
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
},
{
- "description": "The CSS to be retrieved and imported into the GUI when matching the theme access configurations.",
- "name": "css",
+ "description": "ID of the custom GUI theme.",
+ "name": "id",
"type": "string"
},
{
- "description": "The JSON with the configurations to be retrieved and imported into the GUI when matching the theme access configurations.",
- "name": "jsonconfiguration",
+ "description": "A set of account UUIDs (also known as ID for the end-user) separated by comma that can retrieve the theme.",
+ "name": "accountids",
"type": "string"
},
{
- "description": "A set of Common Names (CN) (fixed or wildcard) separated by comma that can retrieve the theme; e.g.: *acme.com,acme2.com",
- "name": "commonnames",
+ "description": "The JSON with the configurations to be retrieved and imported into the GUI when matching the theme access configurations.",
+ "name": "jsonconfiguration",
"type": "string"
},
{
- "description": "Defines whether a theme can be retrieved by anyone when only the `commonNames` is informed. If the `domainIds` or `accountIds` is informed, it is considered as `false`.",
- "name": "ispublic",
- "type": "boolean"
+ "description": "When the GUI theme was created.",
+ "name": "created",
+ "type": "date"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "A set of Common Names (CN) (fixed or wildcard) separated by comma that can retrieve the theme; e.g.: *acme.com,acme2.com",
+ "name": "commonnames",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "A set of domain UUIDs (also known as ID for the end-user) separated by comma that can retrieve the theme.",
+ "name": "domainids",
+ "type": "string"
}
],
"since": "4.21.0.0"
@@ -2993,7 +2993,7 @@
"name": "deleteStaticRoute",
"params": [
{
- "description": "the ID of the static route",
+ "description": "The ID of the static route",
"length": 255,
"name": "id",
"related": "createStaticRoute,listStaticRoutes",
@@ -3003,36 +3003,36 @@
],
"response": [
{
- "description": "the UUID of the latest async job acting on this object",
+ "description": "True if operation is executed successfully",
+ "name": "success",
+ "type": "boolean"
+ },
+ {},
+ {},
+ {
+ "description": "The UUID of the latest async job acting on this object",
"name": "jobid",
"type": "string"
},
{
- "description": "any text associated with the success or failure",
+ "description": "Any text associated with the success or failure",
"name": "displaytext",
"type": "string"
},
- {},
- {
- "description": "true if operation is executed successfully",
- "name": "success",
- "type": "boolean"
- },
- {},
{
- "description": "the current status of the latest async job acting on this object",
+ "description": "The current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
}
]
},
{
- "description": "get load balancer certificate",
+ "description": "Get load balancer certificate",
"isasync": false,
"name": "getLoadBalancerSslCertificate",
"params": [
{
- "description": "the ID of Lb",
+ "description": "The ID of Lb",
"length": 255,
"name": "id",
"related": "getLoadBalancerSslCertificate",
@@ -3043,41 +3043,41 @@
"related": "",
"response": [
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "Key",
+ "name": "key",
+ "type": "string"
+ },
+ {
+ "description": "chain",
+ "name": "chain",
+ "type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
+ "description": "The UUID of the latest async job acting on this object",
"name": "jobid",
"type": "string"
},
- {},
{
"description": "crt",
"name": "crt",
"type": "string"
},
- {},
{
- "description": "key",
- "name": "key",
- "type": "string"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
- {
- "description": "chain",
- "name": "chain",
- "type": "string"
- }
+ {},
+ {}
]
},
{
- "description": "Destroys a l2tp/ipsec remote access vpn",
+ "description": "Destroys a l2tp/ipsec remote access VPN",
"isasync": true,
"name": "deleteRemoteAccessVpn",
"params": [
{
- "description": "public ip address id of the vpn server",
+ "description": "Public IP address id of the VPN server",
"length": 255,
"name": "publicipid",
"related": "associateIpAddress,reserveIpAddress,listPublicIpAddresses,updateIpAddress,associateIpAddress,listPublicIpAddresses",
@@ -3087,24 +3087,24 @@
],
"response": [
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "Any text associated with the success or failure",
+ "name": "displaytext",
+ "type": "string"
},
- {},
{
- "description": "true if operation is executed successfully",
+ "description": "True if operation is executed successfully",
"name": "success",
"type": "boolean"
},
- {},
{
- "description": "any text associated with the success or failure",
- "name": "displaytext",
- "type": "string"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
+ {},
+ {},
{
- "description": "the UUID of the latest async job acting on this object",
+ "description": "The UUID of the latest async job acting on this object",
"name": "jobid",
"type": "string"
}
@@ -3116,92 +3116,92 @@
"name": "startRollingMaintenance",
"params": [
{
- "description": "the IDs of the zones to start maintenance on",
+ "description": "The IDs of the hosts to start maintenance on",
"length": 255,
- "name": "zoneids",
- "related": "createZone,updateZone,listZones,listZones",
+ "name": "hostids",
+ "related": "addBaremetalHost,addHost,cancelHostMaintenance,cancelHostAsDegraded,declareHostAsDegraded,listHosts,prepareHostForMaintenance,reconnectHost,updateHost",
"required": false,
"type": "list"
},
{
- "description": "the IDs of the pods to start maintenance on",
+ "description": "The IDs of the zones to start maintenance on",
"length": 255,
- "name": "podids",
- "related": "createPod,listPods,updatePod,createManagementNetworkIpRange",
+ "name": "zoneids",
+ "related": "createZone,updateZone,listZones,listZones",
"required": false,
"type": "list"
},
{
- "description": "the IDs of the clusters to start maintenance on",
+ "description": "Optional operation timeout (in seconds) that overrides the global timeout setting",
"length": 255,
- "name": "clusterids",
- "related": "addCluster,listClusters,updateCluster",
+ "name": "timeout",
"required": false,
- "type": "list"
+ "type": "integer"
},
{
- "description": "if rolling mechanism should continue in case of an error",
+ "description": "The command to execute while hosts are on maintenance",
"length": 255,
- "name": "forced",
+ "name": "payload",
"required": false,
- "type": "boolean"
+ "type": "string"
},
{
- "description": "the IDs of the hosts to start maintenance on",
+ "description": "If rolling mechanism should continue in case of an error",
"length": 255,
- "name": "hostids",
- "related": "addBaremetalHost,addHost,cancelHostMaintenance,cancelHostAsDegraded,declareHostAsDegraded,listHosts,prepareHostForMaintenance,reconnectHost,updateHost",
+ "name": "forced",
"required": false,
- "type": "list"
+ "type": "boolean"
},
{
- "description": "the command to execute while hosts are on maintenance",
+ "description": "The IDs of the pods to start maintenance on",
"length": 255,
- "name": "payload",
+ "name": "podids",
+ "related": "createPod,listPods,updatePod,createManagementNetworkIpRange",
"required": false,
- "type": "string"
+ "type": "list"
},
{
- "description": "optional operation timeout (in seconds) that overrides the global timeout setting",
+ "description": "The IDs of the clusters to start maintenance on",
"length": 255,
- "name": "timeout",
+ "name": "clusterids",
+ "related": "addCluster,listClusters,updateCluster",
"required": false,
- "type": "integer"
+ "type": "list"
}
],
"related": "",
"response": [
{
- "description": "indicates if the rolling maintenance operation was successful",
+ "description": "Indicates if the rolling maintenance operation was successful",
"name": "success",
"type": "boolean"
},
{
- "description": "the hosts updated",
+ "description": "The hosts updated",
"name": "hostsupdated",
"response": [
{
- "description": "end date of the update on the host",
- "name": "enddate",
+ "description": "Start date of the update on the host",
+ "name": "startdate",
"type": "string"
},
{
- "description": "output of the maintenance script on the host",
- "name": "output",
+ "description": "The name of the updated host",
+ "name": "hostname",
"type": "string"
},
{
- "description": "the name of the updated host",
- "name": "hostname",
+ "description": "End date of the update on the host",
+ "name": "enddate",
"type": "string"
},
{
- "description": "start date of the update on the host",
- "name": "startdate",
+ "description": "Output of the maintenance script on the host",
+ "name": "output",
"type": "string"
},
{
- "description": "the ID of the updated host",
+ "description": "The ID of the updated host",
"name": "hostid",
"type": "string"
}
@@ -3209,77 +3209,69 @@
"type": "list"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "description": "in case of failure, details are displayed",
+ "description": "In case of failure, details are displayed",
"name": "details",
"type": "string"
},
{
- "description": "the hosts skipped",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
+ },
+ {
+ "description": "The hosts skipped",
"name": "hostsskipped",
"response": [
{
- "description": "the reason to skip the host",
+ "description": "The reason to skip the host",
"name": "reason",
"type": "string"
},
{
- "description": "the ID of the skipped host",
+ "description": "The ID of the skipped host",
"name": "hostid",
"type": "string"
},
{
- "description": "the name of the skipped host",
+ "description": "The name of the skipped host",
"name": "hostname",
"type": "string"
}
],
"type": "list"
},
- {
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
{},
{}
]
},
{
- "description": "list Tungsten-Fabric application policy set",
+ "description": "List Tungsten-Fabric application policy set",
"isasync": false,
"name": "listTungstenFabricApplicationPolicySet",
"params": [
{
- "description": "the uuid of Tungsten-Fabric application policy set",
+ "description": "The uuid of Tungsten-Fabric application policy set",
"length": 255,
"name": "applicationpolicysetuuid",
"required": false,
"type": "string"
},
- {
- "description": "the ID of zone",
- "length": 255,
- "name": "zoneid",
- "related": "createZone,updateZone,listZones,listZones",
- "required": false,
- "type": "uuid"
- },
{
"description": "",
"length": 255,
- "name": "page",
+ "name": "pagesize",
"required": false,
"type": "integer"
},
{
"description": "",
"length": 255,
- "name": "pagesize",
+ "name": "page",
"required": false,
"type": "integer"
},
@@ -3289,14 +3281,28 @@
"name": "keyword",
"required": false,
"type": "string"
+ },
+ {
+ "description": "The ID of zone",
+ "length": 255,
+ "name": "zoneid",
+ "related": "createZone,updateZone,listZones,listZones",
+ "required": false,
+ "type": "uuid"
}
],
"related": "createTungstenFabricApplicationPolicySet",
"response": [
+ {},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
+ "description": "Tungsten-Fabric provider zone id",
+ "name": "zoneid",
+ "type": "long"
+ },
+ {
+ "description": "List Tungsten-Fabric firewall policy",
+ "name": "firewallpolicy",
+ "type": "list"
},
{
"description": "Tungsten-Fabric application policy uuid",
@@ -3308,57 +3314,59 @@
"name": "name",
"type": "string"
},
- {},
- {
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
{
- "description": "Tungsten-Fabric provider zone id",
- "name": "zoneid",
- "type": "long"
+ "description": "List Tungsten-Fabric tag",
+ "name": "tag",
+ "type": "list"
},
{
"description": "Tungsten-Fabric provider zone name",
"name": "zonename",
"type": "string"
},
- {},
{
- "description": "list Tungsten-Fabric tag",
- "name": "tag",
- "type": "list"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
+ {},
{
- "description": "list Tungsten-Fabric firewall policy",
- "name": "firewallpolicy",
- "type": "list"
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
}
]
},
{
- "description": "Updates network ACL list",
+ "description": "Updates Network ACL list",
"isasync": true,
"name": "updateNetworkACLList",
"params": [
{
- "description": "an optional field, whether to the display the list to the end user or not",
+ "description": "Name of the network ACL list",
"length": 255,
- "name": "fordisplay",
+ "name": "name",
"required": false,
- "since": "4.4",
- "type": "boolean"
+ "type": "string"
},
{
- "description": "Name of the network ACL list",
+ "description": "An optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only",
"length": 255,
- "name": "name",
+ "name": "customid",
"required": false,
+ "since": "4.4",
"type": "string"
},
{
- "description": "the ID of the network ACL",
+ "description": "An optional field, whether to the display the list to the end User or not",
+ "length": 255,
+ "name": "fordisplay",
+ "required": false,
+ "since": "4.4",
+ "type": "boolean"
+ },
+ {
+ "description": "The ID of the network ACL",
"length": 255,
"name": "id",
"related": "createNetworkACLList,listNetworkACLLists",
@@ -3371,55 +3379,39 @@
"name": "description",
"required": false,
"type": "string"
- },
- {
- "description": "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only",
- "length": 255,
- "name": "customid",
- "required": false,
- "since": "4.4",
- "type": "string"
}
],
"response": [
- {},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
+ "description": "True if operation is executed successfully",
+ "name": "success",
+ "type": "boolean"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
},
{
- "description": "any text associated with the success or failure",
+ "description": "Any text associated with the success or failure",
"name": "displaytext",
"type": "string"
},
+ {},
{
- "description": "true if operation is executed successfully",
- "name": "success",
- "type": "boolean"
+ "description": "The current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{}
],
"since": "4.4"
},
{
- "description": "Restore a VM to original template/ISO or new template/ISO",
+ "description": "Restore an Instance to original Template/ISO or new Template/ISO",
"isasync": true,
"name": "restoreVirtualMachine",
"params": [
- {
- "description": "Virtual Machine ID",
- "length": 255,
- "name": "virtualmachineid",
- "related": "deployVnfAppliance,deployVnfAppliance,listVnfAppliances,listVnfAppliances,assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMachine,restoreVirtualMachine,startVirtua [...]
- "required": true,
- "type": "uuid"
- },
{
"description": "Override root volume's size (in GB). Analogous to details[0].rootdisksize, which takes precedence over this parameter if both are provided",
"length": 255,
@@ -3445,6 +3437,14 @@
"since": "4.19.1",
"type": "uuid"
},
+ {
+ "description": "Instance ID",
+ "length": 255,
+ "name": "virtualmachineid",
+ "related": "createVMFromBackup,createVMFromBackup,deployVnfAppliance,deployVnfAppliance,listVnfAppliances,listVnfAppliances,assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMac [...]
+ "required": true,
+ "type": "uuid"
+ },
{
"description": "Optional field to expunge old root volume after restore.",
"length": 255,
@@ -3454,7 +3454,7 @@
"type": "boolean"
},
{
- "description": "an optional template Id to restore vm from the new template. This can be an ISO id in case of restore vm deployed using ISO",
+ "description": "An optional Template Id to restore Instance from the new Template. This can be an ISO id in case of restore Instance deployed using ISO",
"length": 255,
"name": "templateid",
"related": "registerVnfTemplate,registerVnfTemplate,listVnfTemplates,listVnfTemplates,updateVnfTemplate,updateVnfTemplate,prepareTemplate,listIsos,registerIso,updateIso,copyTemplate,createTemplate,listTemplates,registerTemplate,updateTemplate,listTemplates,createTemplate,copyTemplate,registerTemplate,registerIso,copyIso,listIsos,linkUserDataToTemplate",
@@ -3462,1162 +3462,1167 @@
"type": "uuid"
}
],
- "related": "deployVnfAppliance,deployVnfAppliance,listVnfAppliances,listVnfAppliances,assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMachine,startVirtualMachine,stopVirtualMachin [...]
+ "related": "createVMFromBackup,createVMFromBackup,deployVnfAppliance,deployVnfAppliance,listVnfAppliances,listVnfAppliances,assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMachine [...]
"response": [
{
- "description": "the ID of the virtual machine",
- "name": "id",
+ "description": "The target memory in Instance (KiB)",
+ "name": "memorytargetkbs",
+ "type": "long"
+ },
+ {
+ "description": "The name of the service offering of the Instance",
+ "name": "serviceofferingname",
"type": "string"
},
{
- "description": "the name of the gpu card to which service offering is linked",
- "name": "gpucardname",
+ "description": "the maximum X resolution",
+ "name": "maxresolutionx",
+ "type": "long"
+ },
+ {
+ "description": "the maximum number of display heads",
+ "name": "maxheads",
+ "type": "long"
+ },
+ {
+ "description": "ID of AutoScale Instance group",
+ "name": "autoscalevmgroupid",
"type": "string"
},
{
- "description": "the ID of the domain in which the virtual machine exists",
- "name": "domainid",
+ "description": "The UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "list of affinity groups associated with the virtual machine",
- "name": "affinitygroup",
+ "description": "The hypervisor on which the Template runs",
+ "name": "hypervisor",
+ "type": "string"
+ },
+ {
+ "description": "The name of the disk offering of the Instance. This parameter should not be used for retrieving disk offering details of DATA volumes. Use listVolumes API instead",
+ "name": "diskofferingname",
+ "type": "string"
+ },
+ {
+ "description": "The total number of Network traffic bytes received",
+ "name": "receivedbytes",
+ "type": "long"
+ },
+ {
+ "description": "The internal memory (KiB) that's free in Instance or zero if it can not be calculated",
+ "name": "memoryintfreekbs",
+ "type": "long"
+ },
+ {
+ "description": "Public IP address id associated with Instance via Static NAT rule",
+ "name": "publicip",
+ "type": "string"
+ },
+ {
+ "description": "True if high-availability is enabled, false otherwise",
+ "name": "haenable",
+ "type": "boolean"
+ },
+ {
+ "description": "The date when this Instance was created",
+ "name": "created",
+ "type": "date"
+ },
+ {
+ "description": "The pool type of the Instance",
+ "name": "pooltype",
+ "type": "string"
+ },
+ {
+ "description": "An optional field whether to the display the Instance to the end user or not.",
+ "name": "displayvm",
+ "type": "boolean"
+ },
+ {
+ "description": "the video RAM size in MB",
+ "name": "videoram",
+ "type": "long"
+ },
+ {},
+ {
+ "description": "The write (IO) of disk on the Instance",
+ "name": "diskiowrite",
+ "type": "long"
+ },
+ {
+ "description": "NICs of the VNF appliance",
+ "name": "vnfnics",
+ "type": "list"
+ },
+ {
+ "description": "The virtual Network for the service offering",
+ "name": "forvirtualnetwork",
+ "type": "boolean"
+ },
+ {
+ "description": "User generated name. The name of the Instance is returned if no displayname exists.",
+ "name": "displayname",
+ "type": "string"
+ },
+ {
+ "description": "The name of the domain in which the Instance exists",
+ "name": "domain",
+ "type": "string"
+ },
+ {
+ "description": "The number of vCPUs this Instance is using",
+ "name": "cpunumber",
+ "type": "integer"
+ },
+ {
+ "description": "The Instance's disk write in KiB",
+ "name": "diskkbswrite",
+ "type": "long"
+ },
+ {
+ "description": "The ID of the ISO attached to the Instance",
+ "name": "isoid",
+ "type": "string"
+ },
+ {
+ "description": "The ID of the backup offering of the Instance",
+ "name": "backupofferingid",
+ "type": "string"
+ },
+ {
+ "description": "Instance name of the user Instance; this parameter is returned to the ROOT admin only",
+ "name": "instancename",
+ "type": "string"
+ },
+ {
+ "description": "The total number of Network traffic bytes sent",
+ "name": "sentbytes",
+ "type": "long"
+ },
+ {
+ "description": "The User's ID who deployed the Instance",
+ "name": "userid",
+ "type": "string"
+ },
+ {
+ "description": "The name of the host for the Instance",
+ "name": "hostname",
+ "type": "string"
+ },
+ {
+ "description": "The memory used by the Instance in KiB",
+ "name": "memorykbs",
+ "type": "long"
+ },
+ {
+ "description": "State of the Service from LB rule",
+ "name": "servicestate",
+ "type": "string"
+ },
+ {
+ "description": "The ID of the availability zone for the Instance",
+ "name": "zoneid",
+ "type": "string"
+ },
+ {
+ "description": "True if the password rest feature is enabled, false otherwise",
+ "name": "passwordenabled",
+ "type": "boolean"
+ },
+ {
+ "description": "The name of userdata used for the Instance",
+ "name": "userdataname",
+ "type": "string"
... 250174 lines suppressed ...