You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by vi...@apache.org on 2025/11/28 12:17:42 UTC
(cloudstack-go) branch main updated: Updated SDK with 4.22.0 APIs (#130)
This is an automated email from the ASF dual-hosted git repository.
vishesh 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 161e222 Updated SDK with 4.22.0 APIs (#130)
161e222 is described below
commit 161e2227936415bb8af4a27dc6937ec70cbd188c
Author: Suresh Kumar Anaparti <su...@gmail.com>
AuthorDate: Fri Nov 28 17:47:37 2025 +0530
Updated SDK with 4.22.0 APIs (#130)
---
cloudstack/BackupService.go | 599 +-
cloudstack/BackupService_mock.go | 58 +-
cloudstack/ConfigurationService.go | 2 +
cloudstack/HostService.go | 25 +
cloudstack/InternalLBService.go | 3 +
cloudstack/KubernetesService.go | 39 +
cloudstack/LDAPService.go | 91 +-
cloudstack/LDAPService_mock.go | 29 +-
cloudstack/LoadBalancerService.go | 51 +
cloudstack/MetricsService.go | 31 +-
cloudstack/NetworkService.go | 36 +-
cloudstack/NetworkService_mock.go | 8 +-
cloudstack/PoolService.go | 5 +
cloudstack/RouterService.go | 6 +
cloudstack/ServiceOfferingService.go | 25 +
cloudstack/SnapshotService.go | 125 +
cloudstack/StoragePoolService.go | 3 +
cloudstack/SystemVMService.go | 29 +-
cloudstack/TemplateService.go | 24 +
cloudstack/VirtualMachineService.go | 389 +-
cloudstack/VirtualMachineService_mock.go | 29 +
generate/layout.go | 2 +
generate/listApis.json | 164177 ++++++++++++++--------------
test/BackupService_test.go | 17 +-
test/LDAPService_test.go | 12 +-
test/VirtualMachineService_test.go | 12 +
26 files changed, 84413 insertions(+), 81414 deletions(-)
diff --git a/cloudstack/BackupService.go b/cloudstack/BackupService.go
index 454b12e..1a00485 100644
--- a/cloudstack/BackupService.go
+++ b/cloudstack/BackupService.go
@@ -62,7 +62,8 @@ type BackupServiceIface interface {
GetBackupRepositoryByName(name string, opts ...OptionFunc) (*BackupRepository, int, error)
GetBackupRepositoryByID(id string, opts ...OptionFunc) (*BackupRepository, int, error)
ListBackupSchedule(p *ListBackupScheduleParams) (*ListBackupScheduleResponse, error)
- NewListBackupScheduleParams(virtualmachineid string) *ListBackupScheduleParams
+ NewListBackupScheduleParams() *ListBackupScheduleParams
+ GetBackupScheduleByID(id string, opts ...OptionFunc) (*BackupSchedule, int, error)
ListBackups(p *ListBackupsParams) (*ListBackupsResponse, error)
NewListBackupsParams() *ListBackupsParams
GetBackupID(name string, opts ...OptionFunc) (string, int, error)
@@ -70,6 +71,8 @@ type BackupServiceIface interface {
GetBackupByID(id string, opts ...OptionFunc) (*Backup, int, error)
RestoreBackup(p *RestoreBackupParams) (*RestoreBackupResponse, error)
NewRestoreBackupParams(id string) *RestoreBackupParams
+ UpdateBackupRepository(p *UpdateBackupRepositoryParams) (*UpdateBackupRepositoryResponse, error)
+ NewUpdateBackupRepositoryParams(id string) *UpdateBackupRepositoryParams
UpdateBackupOffering(p *UpdateBackupOfferingParams) (*UpdateBackupOfferingResponse, error)
NewUpdateBackupOfferingParams(id string) *UpdateBackupOfferingParams
UpdateBackupSchedule(p *UpdateBackupScheduleParams) (*UpdateBackupScheduleResponse, error)
@@ -92,6 +95,10 @@ func (p *AddBackupRepositoryParams) toURLValues() url.Values {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("capacitybytes", vv)
}
+ if v, found := p.p["crosszoneinstancecreation"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("crosszoneinstancecreation", vv)
+ }
if v, found := p.p["mountopts"]; found {
u.Set("mountopts", v.(string))
}
@@ -152,6 +159,27 @@ func (p *AddBackupRepositoryParams) GetCapacitybytes() (int64, bool) {
return value, ok
}
+func (p *AddBackupRepositoryParams) SetCrosszoneinstancecreation(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["crosszoneinstancecreation"] = v
+}
+
+func (p *AddBackupRepositoryParams) ResetCrosszoneinstancecreation() {
+ if p.p != nil && p.p["crosszoneinstancecreation"] != nil {
+ delete(p.p, "crosszoneinstancecreation")
+ }
+}
+
+func (p *AddBackupRepositoryParams) GetCrosszoneinstancecreation() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["crosszoneinstancecreation"].(bool)
+ return value, ok
+}
+
func (p *AddBackupRepositoryParams) SetMountopts(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -285,17 +313,18 @@ func (s *BackupService) AddBackupRepository(p *AddBackupRepositoryParams) (*AddB
}
type AddBackupRepositoryResponse struct {
- Address string `json:"address"`
- Capacitybytes int64 `json:"capacitybytes"`
- Created string `json:"created"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Provider string `json:"provider"`
- Type string `json:"type"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Address string `json:"address"`
+ Capacitybytes int64 `json:"capacitybytes"`
+ Created string `json:"created"`
+ Crosszoneinstancecreation bool `json:"crosszoneinstancecreation"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Provider string `json:"provider"`
+ Type string `json:"type"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type CreateBackupParams struct {
@@ -650,6 +679,7 @@ type CreateBackupScheduleResponse struct {
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"`
@@ -2943,17 +2973,18 @@ func (s *BackupService) ImportBackupOffering(p *ImportBackupOfferingParams) (*Im
}
type ImportBackupOfferingResponse struct {
- Allowuserdrivenbackups bool `json:"allowuserdrivenbackups"`
- Created string `json:"created"`
- Description string `json:"description"`
- Externalid string `json:"externalid"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Provider string `json:"provider"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Allowuserdrivenbackups bool `json:"allowuserdrivenbackups"`
+ Created string `json:"created"`
+ Crosszoneinstancecreation bool `json:"crosszoneinstancecreation"`
+ Description string `json:"description"`
+ Externalid string `json:"externalid"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Provider string `json:"provider"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type ListBackupOfferingsParams struct {
@@ -3202,17 +3233,18 @@ type ListBackupOfferingsResponse struct {
}
type BackupOffering struct {
- Allowuserdrivenbackups bool `json:"allowuserdrivenbackups"`
- Created string `json:"created"`
- Description string `json:"description"`
- Externalid string `json:"externalid"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Provider string `json:"provider"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Allowuserdrivenbackups bool `json:"allowuserdrivenbackups"`
+ Created string `json:"created"`
+ Crosszoneinstancecreation bool `json:"crosszoneinstancecreation"`
+ Description string `json:"description"`
+ Externalid string `json:"externalid"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Provider string `json:"provider"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type ListBackupProviderOfferingsParams struct {
@@ -3392,17 +3424,18 @@ type ListBackupProviderOfferingsResponse struct {
}
type BackupProviderOffering struct {
- Allowuserdrivenbackups bool `json:"allowuserdrivenbackups"`
- Created string `json:"created"`
- Description string `json:"description"`
- Externalid string `json:"externalid"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Provider string `json:"provider"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Allowuserdrivenbackups bool `json:"allowuserdrivenbackups"`
+ Created string `json:"created"`
+ Crosszoneinstancecreation bool `json:"crosszoneinstancecreation"`
+ Description string `json:"description"`
+ Externalid string `json:"externalid"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Provider string `json:"provider"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type ListBackupProvidersParams struct {
@@ -3770,17 +3803,18 @@ type ListBackupRepositoriesResponse struct {
}
type BackupRepository struct {
- Address string `json:"address"`
- Capacitybytes int64 `json:"capacitybytes"`
- Created string `json:"created"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Provider string `json:"provider"`
- Type string `json:"type"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Address string `json:"address"`
+ Capacitybytes int64 `json:"capacitybytes"`
+ Created string `json:"created"`
+ Crosszoneinstancecreation bool `json:"crosszoneinstancecreation"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Provider string `json:"provider"`
+ Type string `json:"type"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type ListBackupScheduleParams struct {
@@ -3792,12 +3826,232 @@ func (p *ListBackupScheduleParams) toURLValues() 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["domainid"]; found {
+ u.Set("domainid", v.(string))
+ }
+ if v, found := p.p["id"]; found {
+ u.Set("id", v.(string))
+ }
+ if v, found := p.p["isrecursive"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("isrecursive", vv)
+ }
+ if v, found := p.p["keyword"]; found {
+ u.Set("keyword", v.(string))
+ }
+ if v, found := p.p["listall"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("listall", vv)
+ }
+ 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)
+ }
+ if v, found := p.p["projectid"]; found {
+ u.Set("projectid", v.(string))
+ }
if v, found := p.p["virtualmachineid"]; found {
u.Set("virtualmachineid", v.(string))
}
return u
}
+func (p *ListBackupScheduleParams) SetAccount(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["account"] = v
+}
+
+func (p *ListBackupScheduleParams) ResetAccount() {
+ if p.p != nil && p.p["account"] != nil {
+ delete(p.p, "account")
+ }
+}
+
+func (p *ListBackupScheduleParams) GetAccount() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["account"].(string)
+ return value, ok
+}
+
+func (p *ListBackupScheduleParams) SetDomainid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
+func (p *ListBackupScheduleParams) ResetDomainid() {
+ if p.p != nil && p.p["domainid"] != nil {
+ delete(p.p, "domainid")
+ }
+}
+
+func (p *ListBackupScheduleParams) GetDomainid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["domainid"].(string)
+ return value, ok
+}
+
+func (p *ListBackupScheduleParams) SetId(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["id"] = v
+}
+
+func (p *ListBackupScheduleParams) ResetId() {
+ if p.p != nil && p.p["id"] != nil {
+ delete(p.p, "id")
+ }
+}
+
+func (p *ListBackupScheduleParams) GetId() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["id"].(string)
+ return value, ok
+}
+
+func (p *ListBackupScheduleParams) SetIsrecursive(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["isrecursive"] = v
+}
+
+func (p *ListBackupScheduleParams) ResetIsrecursive() {
+ if p.p != nil && p.p["isrecursive"] != nil {
+ delete(p.p, "isrecursive")
+ }
+}
+
+func (p *ListBackupScheduleParams) GetIsrecursive() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["isrecursive"].(bool)
+ return value, ok
+}
+
+func (p *ListBackupScheduleParams) SetKeyword(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["keyword"] = v
+}
+
+func (p *ListBackupScheduleParams) ResetKeyword() {
+ if p.p != nil && p.p["keyword"] != nil {
+ delete(p.p, "keyword")
+ }
+}
+
+func (p *ListBackupScheduleParams) GetKeyword() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["keyword"].(string)
+ return value, ok
+}
+
+func (p *ListBackupScheduleParams) SetListall(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["listall"] = v
+}
+
+func (p *ListBackupScheduleParams) ResetListall() {
+ if p.p != nil && p.p["listall"] != nil {
+ delete(p.p, "listall")
+ }
+}
+
+func (p *ListBackupScheduleParams) GetListall() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["listall"].(bool)
+ return value, ok
+}
+
+func (p *ListBackupScheduleParams) SetPage(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["page"] = v
+}
+
+func (p *ListBackupScheduleParams) ResetPage() {
+ if p.p != nil && p.p["page"] != nil {
+ delete(p.p, "page")
+ }
+}
+
+func (p *ListBackupScheduleParams) GetPage() (int, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["page"].(int)
+ return value, ok
+}
+
+func (p *ListBackupScheduleParams) SetPagesize(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["pagesize"] = v
+}
+
+func (p *ListBackupScheduleParams) ResetPagesize() {
+ if p.p != nil && p.p["pagesize"] != nil {
+ delete(p.p, "pagesize")
+ }
+}
+
+func (p *ListBackupScheduleParams) GetPagesize() (int, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["pagesize"].(int)
+ return value, ok
+}
+
+func (p *ListBackupScheduleParams) SetProjectid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["projectid"] = v
+}
+
+func (p *ListBackupScheduleParams) ResetProjectid() {
+ if p.p != nil && p.p["projectid"] != nil {
+ delete(p.p, "projectid")
+ }
+}
+
+func (p *ListBackupScheduleParams) GetProjectid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["projectid"].(string)
+ return value, ok
+}
+
func (p *ListBackupScheduleParams) SetVirtualmachineid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -3821,13 +4075,45 @@ func (p *ListBackupScheduleParams) GetVirtualmachineid() (string, bool) {
// You should always use this function to get a new ListBackupScheduleParams instance,
// as then you are sure you have configured all required params
-func (s *BackupService) NewListBackupScheduleParams(virtualmachineid string) *ListBackupScheduleParams {
+func (s *BackupService) NewListBackupScheduleParams() *ListBackupScheduleParams {
p := &ListBackupScheduleParams{}
p.p = make(map[string]interface{})
- p.p["virtualmachineid"] = virtualmachineid
return p
}
+// This is a courtesy helper function, which in some cases may not work as expected!
+func (s *BackupService) GetBackupScheduleByID(id string, opts ...OptionFunc) (*BackupSchedule, int, error) {
+ p := &ListBackupScheduleParams{}
+ p.p = make(map[string]interface{})
+
+ p.p["id"] = id
+
+ for _, fn := range append(s.cs.options, opts...) {
+ if err := fn(s.cs, p); err != nil {
+ return nil, -1, err
+ }
+ }
+
+ l, err := s.ListBackupSchedule(p)
+ if err != nil {
+ if strings.Contains(err.Error(), fmt.Sprintf(
+ "Invalid parameter id value=%s due to incorrect long value format, "+
+ "or entity does not exist", id)) {
+ return nil, 0, fmt.Errorf("No match found for %s: %+v", id, l)
+ }
+ return nil, -1, err
+ }
+
+ if l.Count == 0 {
+ return nil, l.Count, fmt.Errorf("No match found for %s: %+v", id, l)
+ }
+
+ if l.Count == 1 {
+ return l.BackupSchedule[0], l.Count, nil
+ }
+ return nil, l.Count, fmt.Errorf("There is more then one result for BackupSchedule UUID: %s!", id)
+}
+
// List backup schedule of a VM
func (s *BackupService) ListBackupSchedule(p *ListBackupScheduleParams) (*ListBackupScheduleResponse, error) {
resp, err := s.cs.newRequest("listBackupSchedule", p.toURLValues())
@@ -4337,6 +4623,7 @@ type Backup struct {
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"`
@@ -4435,6 +4722,178 @@ type RestoreBackupResponse struct {
Success bool `json:"success"`
}
+type UpdateBackupRepositoryParams struct {
+ p map[string]interface{}
+}
+
+func (p *UpdateBackupRepositoryParams) toURLValues() url.Values {
+ u := url.Values{}
+ if p.p == nil {
+ return u
+ }
+ if v, found := p.p["address"]; found {
+ u.Set("address", v.(string))
+ }
+ if v, found := p.p["crosszoneinstancecreation"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("crosszoneinstancecreation", vv)
+ }
+ if v, found := p.p["id"]; found {
+ u.Set("id", v.(string))
+ }
+ if v, found := p.p["mountopts"]; found {
+ u.Set("mountopts", v.(string))
+ }
+ if v, found := p.p["name"]; found {
+ u.Set("name", v.(string))
+ }
+ return u
+}
+
+func (p *UpdateBackupRepositoryParams) SetAddress(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["address"] = v
+}
+
+func (p *UpdateBackupRepositoryParams) ResetAddress() {
+ if p.p != nil && p.p["address"] != nil {
+ delete(p.p, "address")
+ }
+}
+
+func (p *UpdateBackupRepositoryParams) GetAddress() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["address"].(string)
+ return value, ok
+}
+
+func (p *UpdateBackupRepositoryParams) SetCrosszoneinstancecreation(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["crosszoneinstancecreation"] = v
+}
+
+func (p *UpdateBackupRepositoryParams) ResetCrosszoneinstancecreation() {
+ if p.p != nil && p.p["crosszoneinstancecreation"] != nil {
+ delete(p.p, "crosszoneinstancecreation")
+ }
+}
+
+func (p *UpdateBackupRepositoryParams) GetCrosszoneinstancecreation() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["crosszoneinstancecreation"].(bool)
+ return value, ok
+}
+
+func (p *UpdateBackupRepositoryParams) SetId(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["id"] = v
+}
+
+func (p *UpdateBackupRepositoryParams) ResetId() {
+ if p.p != nil && p.p["id"] != nil {
+ delete(p.p, "id")
+ }
+}
+
+func (p *UpdateBackupRepositoryParams) GetId() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["id"].(string)
+ return value, ok
+}
+
+func (p *UpdateBackupRepositoryParams) SetMountopts(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["mountopts"] = v
+}
+
+func (p *UpdateBackupRepositoryParams) ResetMountopts() {
+ if p.p != nil && p.p["mountopts"] != nil {
+ delete(p.p, "mountopts")
+ }
+}
+
+func (p *UpdateBackupRepositoryParams) GetMountopts() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["mountopts"].(string)
+ return value, ok
+}
+
+func (p *UpdateBackupRepositoryParams) SetName(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["name"] = v
+}
+
+func (p *UpdateBackupRepositoryParams) ResetName() {
+ if p.p != nil && p.p["name"] != nil {
+ delete(p.p, "name")
+ }
+}
+
+func (p *UpdateBackupRepositoryParams) 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 UpdateBackupRepositoryParams instance,
+// as then you are sure you have configured all required params
+func (s *BackupService) NewUpdateBackupRepositoryParams(id string) *UpdateBackupRepositoryParams {
+ p := &UpdateBackupRepositoryParams{}
+ p.p = make(map[string]interface{})
+ p.p["id"] = id
+ return p
+}
+
+// Update a backup repository
+func (s *BackupService) UpdateBackupRepository(p *UpdateBackupRepositoryParams) (*UpdateBackupRepositoryResponse, error) {
+ resp, err := s.cs.newPostRequest("updateBackupRepository", p.toURLValues())
+ if err != nil {
+ return nil, err
+ }
+
+ var r UpdateBackupRepositoryResponse
+ if err := json.Unmarshal(resp, &r); err != nil {
+ return nil, err
+ }
+
+ return &r, nil
+}
+
+type UpdateBackupRepositoryResponse struct {
+ Address string `json:"address"`
+ Capacitybytes int64 `json:"capacitybytes"`
+ Created string `json:"created"`
+ Crosszoneinstancecreation bool `json:"crosszoneinstancecreation"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Provider string `json:"provider"`
+ Type string `json:"type"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
type UpdateBackupOfferingParams struct {
p map[string]interface{}
}
@@ -4569,17 +5028,18 @@ func (s *BackupService) UpdateBackupOffering(p *UpdateBackupOfferingParams) (*Up
}
type UpdateBackupOfferingResponse struct {
- Allowuserdrivenbackups bool `json:"allowuserdrivenbackups"`
- Created string `json:"created"`
- Description string `json:"description"`
- Externalid string `json:"externalid"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Provider string `json:"provider"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Allowuserdrivenbackups bool `json:"allowuserdrivenbackups"`
+ Created string `json:"created"`
+ Crosszoneinstancecreation bool `json:"crosszoneinstancecreation"`
+ Description string `json:"description"`
+ Externalid string `json:"externalid"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Provider string `json:"provider"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type UpdateBackupScheduleParams struct {
@@ -4779,6 +5239,7 @@ type UpdateBackupScheduleResponse struct {
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"`
diff --git a/cloudstack/BackupService_mock.go b/cloudstack/BackupService_mock.go
index 66d4e34..f38184c 100644
--- a/cloudstack/BackupService_mock.go
+++ b/cloudstack/BackupService_mock.go
@@ -388,6 +388,27 @@ func (mr *MockBackupServiceIfaceMockRecorder) GetBackupRepositoryID(name any, op
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBackupRepositoryID", reflect.TypeOf((*MockBackupServiceIface)(nil).GetBackupRepositoryID), varargs...)
}
+// GetBackupScheduleByID mocks base method.
+func (m *MockBackupServiceIface) GetBackupScheduleByID(id string, opts ...OptionFunc) (*BackupSchedule, int, error) {
+ m.ctrl.T.Helper()
+ varargs := []any{id}
+ for _, a := range opts {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "GetBackupScheduleByID", varargs...)
+ ret0, _ := ret[0].(*BackupSchedule)
+ ret1, _ := ret[1].(int)
+ ret2, _ := ret[2].(error)
+ return ret0, ret1, ret2
+}
+
+// GetBackupScheduleByID indicates an expected call of GetBackupScheduleByID.
+func (mr *MockBackupServiceIfaceMockRecorder) GetBackupScheduleByID(id any, opts ...any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ varargs := append([]any{id}, opts...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBackupScheduleByID", reflect.TypeOf((*MockBackupServiceIface)(nil).GetBackupScheduleByID), varargs...)
+}
+
// ImportBackupOffering mocks base method.
func (m *MockBackupServiceIface) ImportBackupOffering(p *ImportBackupOfferingParams) (*ImportBackupOfferingResponse, error) {
m.ctrl.T.Helper()
@@ -676,17 +697,17 @@ func (mr *MockBackupServiceIfaceMockRecorder) NewListBackupRepositoriesParams()
}
// NewListBackupScheduleParams mocks base method.
-func (m *MockBackupServiceIface) NewListBackupScheduleParams(virtualmachineid string) *ListBackupScheduleParams {
+func (m *MockBackupServiceIface) NewListBackupScheduleParams() *ListBackupScheduleParams {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "NewListBackupScheduleParams", virtualmachineid)
+ ret := m.ctrl.Call(m, "NewListBackupScheduleParams")
ret0, _ := ret[0].(*ListBackupScheduleParams)
return ret0
}
// NewListBackupScheduleParams indicates an expected call of NewListBackupScheduleParams.
-func (mr *MockBackupServiceIfaceMockRecorder) NewListBackupScheduleParams(virtualmachineid any) *gomock.Call {
+func (mr *MockBackupServiceIfaceMockRecorder) NewListBackupScheduleParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListBackupScheduleParams", reflect.TypeOf((*MockBackupServiceIface)(nil).NewListBackupScheduleParams), virtualmachineid)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListBackupScheduleParams", reflect.TypeOf((*MockBackupServiceIface)(nil).NewListBackupScheduleParams))
}
// NewListBackupsParams mocks base method.
@@ -731,6 +752,20 @@ func (mr *MockBackupServiceIfaceMockRecorder) NewUpdateBackupOfferingParams(id a
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateBackupOfferingParams", reflect.TypeOf((*MockBackupServiceIface)(nil).NewUpdateBackupOfferingParams), id)
}
+// NewUpdateBackupRepositoryParams mocks base method.
+func (m *MockBackupServiceIface) NewUpdateBackupRepositoryParams(id string) *UpdateBackupRepositoryParams {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "NewUpdateBackupRepositoryParams", id)
+ ret0, _ := ret[0].(*UpdateBackupRepositoryParams)
+ return ret0
+}
+
+// NewUpdateBackupRepositoryParams indicates an expected call of NewUpdateBackupRepositoryParams.
+func (mr *MockBackupServiceIfaceMockRecorder) NewUpdateBackupRepositoryParams(id any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateBackupRepositoryParams", reflect.TypeOf((*MockBackupServiceIface)(nil).NewUpdateBackupRepositoryParams), id)
+}
+
// NewUpdateBackupScheduleParams mocks base method.
func (m *MockBackupServiceIface) NewUpdateBackupScheduleParams(intervaltype, schedule, timezone, virtualmachineid string) *UpdateBackupScheduleParams {
m.ctrl.T.Helper()
@@ -775,6 +810,21 @@ func (mr *MockBackupServiceIfaceMockRecorder) UpdateBackupOffering(p any) *gomoc
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBackupOffering", reflect.TypeOf((*MockBackupServiceIface)(nil).UpdateBackupOffering), p)
}
+// UpdateBackupRepository mocks base method.
+func (m *MockBackupServiceIface) UpdateBackupRepository(p *UpdateBackupRepositoryParams) (*UpdateBackupRepositoryResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UpdateBackupRepository", p)
+ ret0, _ := ret[0].(*UpdateBackupRepositoryResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UpdateBackupRepository indicates an expected call of UpdateBackupRepository.
+func (mr *MockBackupServiceIfaceMockRecorder) UpdateBackupRepository(p any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBackupRepository", reflect.TypeOf((*MockBackupServiceIface)(nil).UpdateBackupRepository), p)
+}
+
// UpdateBackupSchedule mocks base method.
func (m *MockBackupServiceIface) UpdateBackupSchedule(p *UpdateBackupScheduleParams) (*UpdateBackupScheduleResponse, error) {
m.ctrl.T.Helper()
diff --git a/cloudstack/ConfigurationService.go b/cloudstack/ConfigurationService.go
index 7e9cfd6..571b85c 100644
--- a/cloudstack/ConfigurationService.go
+++ b/cloudstack/ConfigurationService.go
@@ -93,6 +93,7 @@ type ListCapabilitiesResponse struct {
}
type Capability struct {
+ Additionalconfigenabled bool `json:"additionalconfigenabled"`
Allowusercreateprojects bool `json:"allowusercreateprojects"`
Allowuserexpungerecovervm bool `json:"allowuserexpungerecovervm"`
Allowuserexpungerecovervolume bool `json:"allowuserexpungerecovervolume"`
@@ -1336,6 +1337,7 @@ func (s *ConfigurationService) UpdateStorageCapabilities(p *UpdateStorageCapabil
type UpdateStorageCapabilitiesResponse struct {
Allocatediops int64 `json:"allocatediops"`
+ Capacitybytes int64 `json:"capacitybytes"`
Capacityiops int64 `json:"capacityiops"`
Clusterid string `json:"clusterid"`
Clustername string `json:"clustername"`
diff --git a/cloudstack/HostService.go b/cloudstack/HostService.go
index 78774b2..16f9009 100644
--- a/cloudstack/HostService.go
+++ b/cloudstack/HostService.go
@@ -4767,6 +4767,10 @@ func (p *UpdateHostParams) toURLValues() url.Values {
if v, found := p.p["annotation"]; found {
u.Set("annotation", v.(string))
}
+ if v, found := p.p["cleanupexternaldetails"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("cleanupexternaldetails", vv)
+ }
if v, found := p.p["externaldetails"]; found {
m := v.(map[string]string)
for i, k := range getSortedKeysFromMap(m) {
@@ -4839,6 +4843,27 @@ func (p *UpdateHostParams) GetAnnotation() (string, bool) {
return value, ok
}
+func (p *UpdateHostParams) SetCleanupexternaldetails(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["cleanupexternaldetails"] = v
+}
+
+func (p *UpdateHostParams) ResetCleanupexternaldetails() {
+ if p.p != nil && p.p["cleanupexternaldetails"] != nil {
+ delete(p.p, "cleanupexternaldetails")
+ }
+}
+
+func (p *UpdateHostParams) GetCleanupexternaldetails() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["cleanupexternaldetails"].(bool)
+ return value, ok
+}
+
func (p *UpdateHostParams) SetExternaldetails(v map[string]string) {
if p.p == nil {
p.p = make(map[string]interface{})
diff --git a/cloudstack/InternalLBService.go b/cloudstack/InternalLBService.go
index 3b7c044..1e2c53c 100644
--- a/cloudstack/InternalLBService.go
+++ b/cloudstack/InternalLBService.go
@@ -1102,6 +1102,7 @@ type InternalLoadBalancerVMHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
@@ -1250,6 +1251,7 @@ type StartInternalLoadBalancerVMResponseHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
@@ -1423,5 +1425,6 @@ type StopInternalLoadBalancerVMResponseHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
diff --git a/cloudstack/KubernetesService.go b/cloudstack/KubernetesService.go
index 373ec6c..0ce0afb 100644
--- a/cloudstack/KubernetesService.go
+++ b/cloudstack/KubernetesService.go
@@ -397,6 +397,10 @@ func (p *CreateKubernetesClusterParams) toURLValues() url.Values {
if v, found := p.p["domainid"]; found {
u.Set("domainid", v.(string))
}
+ if v, found := p.p["enablecsi"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("enablecsi", vv)
+ }
if v, found := p.p["etcdnodes"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("etcdnodes", vv)
@@ -688,6 +692,27 @@ func (p *CreateKubernetesClusterParams) GetDomainid() (string, bool) {
return value, ok
}
+func (p *CreateKubernetesClusterParams) SetEnablecsi(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["enablecsi"] = v
+}
+
+func (p *CreateKubernetesClusterParams) ResetEnablecsi() {
+ if p.p != nil && p.p["enablecsi"] != nil {
+ delete(p.p, "enablecsi")
+ }
+}
+
+func (p *CreateKubernetesClusterParams) GetEnablecsi() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["enablecsi"].(bool)
+ return value, ok
+}
+
func (p *CreateKubernetesClusterParams) SetEtcdnodes(v int64) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1065,6 +1090,7 @@ type CreateKubernetesClusterResponse struct {
Controlofferingname string `json:"controlofferingname"`
Cpunumber string `json:"cpunumber"`
Created string `json:"created"`
+ Csienabled bool `json:"csienabled"`
Description string `json:"description"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
@@ -1096,6 +1122,7 @@ type CreateKubernetesClusterResponse struct {
Size int64 `json:"size"`
State string `json:"state"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
Workerofferingid string `json:"workerofferingid"`
Workerofferingname string `json:"workerofferingname"`
@@ -1815,6 +1842,7 @@ type KubernetesCluster struct {
Controlofferingname string `json:"controlofferingname"`
Cpunumber string `json:"cpunumber"`
Created string `json:"created"`
+ Csienabled bool `json:"csienabled"`
Description string `json:"description"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
@@ -1846,6 +1874,7 @@ type KubernetesCluster struct {
Size int64 `json:"size"`
State string `json:"state"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
Workerofferingid string `json:"workerofferingid"`
Workerofferingname string `json:"workerofferingname"`
@@ -2461,6 +2490,7 @@ type ScaleKubernetesClusterResponse struct {
Controlofferingname string `json:"controlofferingname"`
Cpunumber string `json:"cpunumber"`
Created string `json:"created"`
+ Csienabled bool `json:"csienabled"`
Description string `json:"description"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
@@ -2492,6 +2522,7 @@ type ScaleKubernetesClusterResponse struct {
Size int64 `json:"size"`
State string `json:"state"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
Workerofferingid string `json:"workerofferingid"`
Workerofferingname string `json:"workerofferingname"`
@@ -2592,6 +2623,7 @@ type StartKubernetesClusterResponse struct {
Controlofferingname string `json:"controlofferingname"`
Cpunumber string `json:"cpunumber"`
Created string `json:"created"`
+ Csienabled bool `json:"csienabled"`
Description string `json:"description"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
@@ -2623,6 +2655,7 @@ type StartKubernetesClusterResponse struct {
Size int64 `json:"size"`
State string `json:"state"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
Workerofferingid string `json:"workerofferingid"`
Workerofferingname string `json:"workerofferingname"`
@@ -2936,6 +2969,7 @@ type UpgradeKubernetesClusterResponse struct {
Controlofferingname string `json:"controlofferingname"`
Cpunumber string `json:"cpunumber"`
Created string `json:"created"`
+ Csienabled bool `json:"csienabled"`
Description string `json:"description"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
@@ -2967,6 +3001,7 @@ type UpgradeKubernetesClusterResponse struct {
Size int64 `json:"size"`
State string `json:"state"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
Workerofferingid string `json:"workerofferingid"`
Workerofferingname string `json:"workerofferingname"`
@@ -3483,6 +3518,7 @@ type AddNodesToKubernetesClusterResponse struct {
Controlofferingname string `json:"controlofferingname"`
Cpunumber string `json:"cpunumber"`
Created string `json:"created"`
+ Csienabled bool `json:"csienabled"`
Description string `json:"description"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
@@ -3514,6 +3550,7 @@ type AddNodesToKubernetesClusterResponse struct {
Size int64 `json:"size"`
State string `json:"state"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
Workerofferingid string `json:"workerofferingid"`
Workerofferingname string `json:"workerofferingname"`
@@ -3640,6 +3677,7 @@ type RemoveNodesFromKubernetesClusterResponse struct {
Controlofferingname string `json:"controlofferingname"`
Cpunumber string `json:"cpunumber"`
Created string `json:"created"`
+ Csienabled bool `json:"csienabled"`
Description string `json:"description"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
@@ -3671,6 +3709,7 @@ type RemoveNodesFromKubernetesClusterResponse struct {
Size int64 `json:"size"`
State string `json:"state"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
Workerofferingid string `json:"workerofferingid"`
Workerofferingname string `json:"workerofferingname"`
diff --git a/cloudstack/LDAPService.go b/cloudstack/LDAPService.go
index cc8af48..b2ab062 100644
--- a/cloudstack/LDAPService.go
+++ b/cloudstack/LDAPService.go
@@ -24,13 +24,14 @@ import (
"fmt"
"net/url"
"strconv"
+ "strings"
)
type LDAPServiceIface interface {
AddLdapConfiguration(p *AddLdapConfigurationParams) (*AddLdapConfigurationResponse, error)
NewAddLdapConfigurationParams(hostname string, port int) *AddLdapConfigurationParams
DeleteLdapConfiguration(p *DeleteLdapConfigurationParams) (*DeleteLdapConfigurationResponse, error)
- NewDeleteLdapConfigurationParams(hostname string) *DeleteLdapConfigurationParams
+ NewDeleteLdapConfigurationParams() *DeleteLdapConfigurationParams
ImportLdapUsers(p *ImportLdapUsersParams) (*ImportLdapUsersResponse, error)
NewImportLdapUsersParams() *ImportLdapUsersParams
LdapConfig(p *LdapConfigParams) (*LdapConfigResponse, error)
@@ -43,6 +44,7 @@ type LDAPServiceIface interface {
NewLinkDomainToLdapParams(accounttype int, domainid string, lDAPType string) *LinkDomainToLdapParams
ListLdapConfigurations(p *ListLdapConfigurationsParams) (*ListLdapConfigurationsResponse, error)
NewListLdapConfigurationsParams() *ListLdapConfigurationsParams
+ GetLdapConfigurationByID(id string, opts ...OptionFunc) (*LdapConfiguration, int, error)
ListLdapUsers(p *ListLdapUsersParams) (*ListLdapUsersResponse, error)
NewListLdapUsersParams() *ListLdapUsersParams
SearchLdap(p *SearchLdapParams) (*SearchLdapResponse, error)
@@ -162,6 +164,7 @@ func (s *LDAPService) AddLdapConfiguration(p *AddLdapConfigurationParams) (*AddL
type AddLdapConfigurationResponse struct {
Domainid string `json:"domainid"`
Hostname string `json:"hostname"`
+ Id string `json:"id"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Port int `json:"port"`
@@ -182,6 +185,9 @@ func (p *DeleteLdapConfigurationParams) toURLValues() url.Values {
if v, found := p.p["hostname"]; found {
u.Set("hostname", v.(string))
}
+ if v, found := p.p["id"]; found {
+ u.Set("id", v.(string))
+ }
if v, found := p.p["port"]; found {
vv := strconv.Itoa(v.(int))
u.Set("port", vv)
@@ -231,6 +237,27 @@ func (p *DeleteLdapConfigurationParams) GetHostname() (string, bool) {
return value, ok
}
+func (p *DeleteLdapConfigurationParams) SetId(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["id"] = v
+}
+
+func (p *DeleteLdapConfigurationParams) ResetId() {
+ if p.p != nil && p.p["id"] != nil {
+ delete(p.p, "id")
+ }
+}
+
+func (p *DeleteLdapConfigurationParams) GetId() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["id"].(string)
+ return value, ok
+}
+
func (p *DeleteLdapConfigurationParams) SetPort(v int) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -254,10 +281,9 @@ func (p *DeleteLdapConfigurationParams) GetPort() (int, bool) {
// You should always use this function to get a new DeleteLdapConfigurationParams instance,
// as then you are sure you have configured all required params
-func (s *LDAPService) NewDeleteLdapConfigurationParams(hostname string) *DeleteLdapConfigurationParams {
+func (s *LDAPService) NewDeleteLdapConfigurationParams() *DeleteLdapConfigurationParams {
p := &DeleteLdapConfigurationParams{}
p.p = make(map[string]interface{})
- p.p["hostname"] = hostname
return p
}
@@ -279,6 +305,7 @@ func (s *LDAPService) DeleteLdapConfiguration(p *DeleteLdapConfigurationParams)
type DeleteLdapConfigurationResponse struct {
Domainid string `json:"domainid"`
Hostname string `json:"hostname"`
+ Id string `json:"id"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Port int `json:"port"`
@@ -1514,6 +1541,9 @@ func (p *ListLdapConfigurationsParams) toURLValues() url.Values {
if v, found := p.p["hostname"]; found {
u.Set("hostname", v.(string))
}
+ if v, found := p.p["id"]; found {
+ u.Set("id", v.(string))
+ }
if v, found := p.p["keyword"]; found {
u.Set("keyword", v.(string))
}
@@ -1578,6 +1608,27 @@ func (p *ListLdapConfigurationsParams) GetHostname() (string, bool) {
return value, ok
}
+func (p *ListLdapConfigurationsParams) SetId(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["id"] = v
+}
+
+func (p *ListLdapConfigurationsParams) ResetId() {
+ if p.p != nil && p.p["id"] != nil {
+ delete(p.p, "id")
+ }
+}
+
+func (p *ListLdapConfigurationsParams) GetId() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["id"].(string)
+ return value, ok
+}
+
func (p *ListLdapConfigurationsParams) SetKeyword(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1691,6 +1742,39 @@ func (s *LDAPService) NewListLdapConfigurationsParams() *ListLdapConfigurationsP
return p
}
+// This is a courtesy helper function, which in some cases may not work as expected!
+func (s *LDAPService) GetLdapConfigurationByID(id string, opts ...OptionFunc) (*LdapConfiguration, int, error) {
+ p := &ListLdapConfigurationsParams{}
+ p.p = make(map[string]interface{})
+
+ p.p["id"] = id
+
+ for _, fn := range append(s.cs.options, opts...) {
+ if err := fn(s.cs, p); err != nil {
+ return nil, -1, err
+ }
+ }
+
+ l, err := s.ListLdapConfigurations(p)
+ if err != nil {
+ if strings.Contains(err.Error(), fmt.Sprintf(
+ "Invalid parameter id value=%s due to incorrect long value format, "+
+ "or entity does not exist", id)) {
+ return nil, 0, fmt.Errorf("No match found for %s: %+v", id, l)
+ }
+ return nil, -1, err
+ }
+
+ if l.Count == 0 {
+ return nil, l.Count, fmt.Errorf("No match found for %s: %+v", id, l)
+ }
+
+ if l.Count == 1 {
+ return l.LdapConfigurations[0], l.Count, nil
+ }
+ return nil, l.Count, fmt.Errorf("There is more then one result for LdapConfiguration UUID: %s!", id)
+}
+
// Lists all LDAP configurations
func (s *LDAPService) ListLdapConfigurations(p *ListLdapConfigurationsParams) (*ListLdapConfigurationsResponse, error) {
resp, err := s.cs.newRequest("listLdapConfigurations", p.toURLValues())
@@ -1714,6 +1798,7 @@ type ListLdapConfigurationsResponse struct {
type LdapConfiguration struct {
Domainid string `json:"domainid"`
Hostname string `json:"hostname"`
+ Id string `json:"id"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Port int `json:"port"`
diff --git a/cloudstack/LDAPService_mock.go b/cloudstack/LDAPService_mock.go
index 09b77d5..9dadf6a 100644
--- a/cloudstack/LDAPService_mock.go
+++ b/cloudstack/LDAPService_mock.go
@@ -88,6 +88,27 @@ func (mr *MockLDAPServiceIfaceMockRecorder) DeleteLdapConfiguration(p any) *gomo
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLdapConfiguration", reflect.TypeOf((*MockLDAPServiceIface)(nil).DeleteLdapConfiguration), p)
}
+// GetLdapConfigurationByID mocks base method.
+func (m *MockLDAPServiceIface) GetLdapConfigurationByID(id string, opts ...OptionFunc) (*LdapConfiguration, int, error) {
+ m.ctrl.T.Helper()
+ varargs := []any{id}
+ for _, a := range opts {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "GetLdapConfigurationByID", varargs...)
+ ret0, _ := ret[0].(*LdapConfiguration)
+ ret1, _ := ret[1].(int)
+ ret2, _ := ret[2].(error)
+ return ret0, ret1, ret2
+}
+
+// GetLdapConfigurationByID indicates an expected call of GetLdapConfigurationByID.
+func (mr *MockLDAPServiceIfaceMockRecorder) GetLdapConfigurationByID(id any, opts ...any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ varargs := append([]any{id}, opts...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLdapConfigurationByID", reflect.TypeOf((*MockLDAPServiceIface)(nil).GetLdapConfigurationByID), varargs...)
+}
+
// ImportLdapUsers mocks base method.
func (m *MockLDAPServiceIface) ImportLdapUsers(p *ImportLdapUsersParams) (*ImportLdapUsersResponse, error) {
m.ctrl.T.Helper()
@@ -208,17 +229,17 @@ func (mr *MockLDAPServiceIfaceMockRecorder) NewAddLdapConfigurationParams(hostna
}
// NewDeleteLdapConfigurationParams mocks base method.
-func (m *MockLDAPServiceIface) NewDeleteLdapConfigurationParams(hostname string) *DeleteLdapConfigurationParams {
+func (m *MockLDAPServiceIface) NewDeleteLdapConfigurationParams() *DeleteLdapConfigurationParams {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "NewDeleteLdapConfigurationParams", hostname)
+ ret := m.ctrl.Call(m, "NewDeleteLdapConfigurationParams")
ret0, _ := ret[0].(*DeleteLdapConfigurationParams)
return ret0
}
// NewDeleteLdapConfigurationParams indicates an expected call of NewDeleteLdapConfigurationParams.
-func (mr *MockLDAPServiceIfaceMockRecorder) NewDeleteLdapConfigurationParams(hostname any) *gomock.Call {
+func (mr *MockLDAPServiceIfaceMockRecorder) NewDeleteLdapConfigurationParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDeleteLdapConfigurationParams", reflect.TypeOf((*MockLDAPServiceIface)(nil).NewDeleteLdapConfigurationParams), hostname)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDeleteLdapConfigurationParams", reflect.TypeOf((*MockLDAPServiceIface)(nil).NewDeleteLdapConfigurationParams))
}
// NewImportLdapUsersParams mocks base method.
diff --git a/cloudstack/LoadBalancerService.go b/cloudstack/LoadBalancerService.go
index 8452cf0..c66a8c0 100644
--- a/cloudstack/LoadBalancerService.go
+++ b/cloudstack/LoadBalancerService.go
@@ -123,6 +123,10 @@ func (p *AssignCertToLoadBalancerParams) toURLValues() url.Values {
if v, found := p.p["certid"]; found {
u.Set("certid", v.(string))
}
+ if v, found := p.p["forced"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("forced", vv)
+ }
if v, found := p.p["lbruleid"]; found {
u.Set("lbruleid", v.(string))
}
@@ -150,6 +154,27 @@ func (p *AssignCertToLoadBalancerParams) GetCertid() (string, bool) {
return value, ok
}
+func (p *AssignCertToLoadBalancerParams) SetForced(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["forced"] = v
+}
+
+func (p *AssignCertToLoadBalancerParams) ResetForced() {
+ if p.p != nil && p.p["forced"] != nil {
+ delete(p.p, "forced")
+ }
+}
+
+func (p *AssignCertToLoadBalancerParams) GetForced() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["forced"].(bool)
+ return value, ok
+}
+
func (p *AssignCertToLoadBalancerParams) SetLbruleid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -5913,6 +5938,7 @@ type StopNetScalerVpxResponseHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
@@ -6594,6 +6620,10 @@ func (p *UpdateLoadBalancerRuleParams) toURLValues() url.Values {
if v, found := p.p["algorithm"]; found {
u.Set("algorithm", v.(string))
}
+ if v, found := p.p["cidrlist"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("cidrlist", vv)
+ }
if v, found := p.p["customid"]; found {
u.Set("customid", v.(string))
}
@@ -6637,6 +6667,27 @@ func (p *UpdateLoadBalancerRuleParams) GetAlgorithm() (string, bool) {
return value, ok
}
+func (p *UpdateLoadBalancerRuleParams) SetCidrlist(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["cidrlist"] = v
+}
+
+func (p *UpdateLoadBalancerRuleParams) ResetCidrlist() {
+ if p.p != nil && p.p["cidrlist"] != nil {
+ delete(p.p, "cidrlist")
+ }
+}
+
+func (p *UpdateLoadBalancerRuleParams) GetCidrlist() ([]string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["cidrlist"].([]string)
+ return value, ok
+}
+
func (p *UpdateLoadBalancerRuleParams) SetCustomid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
diff --git a/cloudstack/MetricsService.go b/cloudstack/MetricsService.go
index 77c2047..ea4e367 100644
--- a/cloudstack/MetricsService.go
+++ b/cloudstack/MetricsService.go
@@ -70,19 +70,20 @@ type ListInfrastructureResponse struct {
}
type Infrastructure struct {
- Alerts int `json:"alerts"`
- Clusters int `json:"clusters"`
- Cpusockets int `json:"cpusockets"`
- Hosts int `json:"hosts"`
- Ilbvms int `json:"ilbvms"`
- Imagestores int `json:"imagestores"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Managementservers int `json:"managementservers"`
- Objectstores int `json:"objectstores"`
- Pods int `json:"pods"`
- Routers int `json:"routers"`
- Storagepools int `json:"storagepools"`
- Systemvms int `json:"systemvms"`
- Zones int `json:"zones"`
+ Alerts int `json:"alerts"`
+ Backuprepositories int `json:"backuprepositories"`
+ Clusters int `json:"clusters"`
+ Cpusockets int `json:"cpusockets"`
+ Hosts int `json:"hosts"`
+ Ilbvms int `json:"ilbvms"`
+ Imagestores int `json:"imagestores"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Managementservers int `json:"managementservers"`
+ Objectstores int `json:"objectstores"`
+ Pods int `json:"pods"`
+ Routers int `json:"routers"`
+ Storagepools int `json:"storagepools"`
+ Systemvms int `json:"systemvms"`
+ Zones int `json:"zones"`
}
diff --git a/cloudstack/NetworkService.go b/cloudstack/NetworkService.go
index 10b35bf..96f1a2e 100644
--- a/cloudstack/NetworkService.go
+++ b/cloudstack/NetworkService.go
@@ -70,7 +70,7 @@ type NetworkServiceIface interface {
GetNetworkServiceProviderID(name string, opts ...OptionFunc) (string, int, error)
ListNetworks(p *ListNetworksParams) (*ListNetworksResponse, error)
NewListNetworksParams() *ListNetworksParams
- GetNetworkID(keyword string, opts ...OptionFunc) (string, int, error)
+ GetNetworkID(name string, opts ...OptionFunc) (string, int, error)
GetNetworkByName(name string, opts ...OptionFunc) (*Network, int, error)
GetNetworkByID(id string, opts ...OptionFunc) (*Network, int, error)
ListNiciraNvpDeviceNetworks(p *ListNiciraNvpDeviceNetworksParams) (*ListNiciraNvpDeviceNetworksResponse, error)
@@ -4143,6 +4143,9 @@ func (p *ListNetworksParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("listall", vv)
}
+ if v, found := p.p["name"]; found {
+ u.Set("name", v.(string))
+ }
if v, found := p.p["networkfilter"]; found {
u.Set("networkfilter", v.(string))
}
@@ -4460,6 +4463,27 @@ func (p *ListNetworksParams) GetListall() (bool, bool) {
return value, ok
}
+func (p *ListNetworksParams) SetName(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["name"] = v
+}
+
+func (p *ListNetworksParams) ResetName() {
+ if p.p != nil && p.p["name"] != nil {
+ delete(p.p, "name")
+ }
+}
+
+func (p *ListNetworksParams) GetName() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["name"].(string)
+ return value, ok
+}
+
func (p *ListNetworksParams) SetNetworkfilter(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -4826,11 +4850,11 @@ func (s *NetworkService) NewListNetworksParams() *ListNetworksParams {
}
// This is a courtesy helper function, which in some cases may not work as expected!
-func (s *NetworkService) GetNetworkID(keyword string, opts ...OptionFunc) (string, int, error) {
+func (s *NetworkService) GetNetworkID(name string, opts ...OptionFunc) (string, int, error) {
p := &ListNetworksParams{}
p.p = make(map[string]interface{})
- p.p["keyword"] = keyword
+ p.p["name"] = name
for _, fn := range append(s.cs.options, opts...) {
if err := fn(s.cs, p); err != nil {
@@ -4844,7 +4868,7 @@ func (s *NetworkService) GetNetworkID(keyword string, opts ...OptionFunc) (strin
}
if l.Count == 0 {
- return "", l.Count, fmt.Errorf("No match found for %s: %+v", keyword, l)
+ return "", l.Count, fmt.Errorf("No match found for %s: %+v", name, l)
}
if l.Count == 1 {
@@ -4853,12 +4877,12 @@ func (s *NetworkService) GetNetworkID(keyword string, opts ...OptionFunc) (strin
if l.Count > 1 {
for _, v := range l.Networks {
- if v.Name == keyword {
+ if v.Name == name {
return v.Id, l.Count, nil
}
}
}
- return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", keyword, l)
+ return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", name, l)
}
// This is a courtesy helper function, which in some cases may not work as expected!
diff --git a/cloudstack/NetworkService_mock.go b/cloudstack/NetworkService_mock.go
index afad806..fb50127 100644
--- a/cloudstack/NetworkService_mock.go
+++ b/cloudstack/NetworkService_mock.go
@@ -413,9 +413,9 @@ func (mr *MockNetworkServiceIfaceMockRecorder) GetNetworkByName(name any, opts .
}
// GetNetworkID mocks base method.
-func (m *MockNetworkServiceIface) GetNetworkID(keyword string, opts ...OptionFunc) (string, int, error) {
+func (m *MockNetworkServiceIface) GetNetworkID(name string, opts ...OptionFunc) (string, int, error) {
m.ctrl.T.Helper()
- varargs := []any{keyword}
+ varargs := []any{name}
for _, a := range opts {
varargs = append(varargs, a)
}
@@ -427,9 +427,9 @@ func (m *MockNetworkServiceIface) GetNetworkID(keyword string, opts ...OptionFun
}
// GetNetworkID indicates an expected call of GetNetworkID.
-func (mr *MockNetworkServiceIfaceMockRecorder) GetNetworkID(keyword any, opts ...any) *gomock.Call {
+func (mr *MockNetworkServiceIfaceMockRecorder) GetNetworkID(name any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
- varargs := append([]any{keyword}, opts...)
+ varargs := append([]any{name}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNetworkID", reflect.TypeOf((*MockNetworkServiceIface)(nil).GetNetworkID), varargs...)
}
diff --git a/cloudstack/PoolService.go b/cloudstack/PoolService.go
index 885a44c..9ea2f50 100644
--- a/cloudstack/PoolService.go
+++ b/cloudstack/PoolService.go
@@ -458,6 +458,7 @@ func (s *PoolService) CreateStoragePool(p *CreateStoragePoolParams) (*CreateStor
type CreateStoragePoolResponse struct {
Allocatediops int64 `json:"allocatediops"`
+ Capacitybytes int64 `json:"capacitybytes"`
Capacityiops int64 `json:"capacityiops"`
Clusterid string `json:"clusterid"`
Clustername string `json:"clustername"`
@@ -749,6 +750,7 @@ func (s *PoolService) FindStoragePoolsForMigration(p *FindStoragePoolsForMigrati
type FindStoragePoolsForMigrationResponse struct {
Allocatediops int64 `json:"allocatediops"`
+ Capacitybytes int64 `json:"capacitybytes"`
Capacityiops int64 `json:"capacityiops"`
Clusterid string `json:"clusterid"`
Clustername string `json:"clustername"`
@@ -1350,6 +1352,7 @@ type ListStoragePoolsResponse struct {
type StoragePool struct {
Allocatediops int64 `json:"allocatediops"`
+ Capacitybytes int64 `json:"capacitybytes"`
Capacityiops int64 `json:"capacityiops"`
Clusterid string `json:"clusterid"`
Clustername string `json:"clustername"`
@@ -1468,6 +1471,7 @@ func (s *PoolService) SyncStoragePool(p *SyncStoragePoolParams) (*SyncStoragePoo
type SyncStoragePoolResponse struct {
Allocatediops int64 `json:"allocatediops"`
+ Capacitybytes int64 `json:"capacitybytes"`
Capacityiops int64 `json:"capacityiops"`
Clusterid string `json:"clusterid"`
Clustername string `json:"clustername"`
@@ -1766,6 +1770,7 @@ func (s *PoolService) UpdateStoragePool(p *UpdateStoragePoolParams) (*UpdateStor
type UpdateStoragePoolResponse struct {
Allocatediops int64 `json:"allocatediops"`
+ Capacitybytes int64 `json:"capacitybytes"`
Capacityiops int64 `json:"capacityiops"`
Clusterid string `json:"clusterid"`
Clustername string `json:"clustername"`
diff --git a/cloudstack/RouterService.go b/cloudstack/RouterService.go
index 9d47790..ed27a8c 100644
--- a/cloudstack/RouterService.go
+++ b/cloudstack/RouterService.go
@@ -204,6 +204,7 @@ type ChangeServiceForRouterResponseHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
@@ -590,6 +591,7 @@ type DestroyRouterResponseHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
@@ -1408,6 +1410,7 @@ type RouterHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
@@ -1815,6 +1818,7 @@ type RebootRouterResponseHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
@@ -1963,6 +1967,7 @@ type StartRouterResponseHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
@@ -2136,5 +2141,6 @@ type StopRouterResponseHealthcheckresults struct {
Checktype string `json:"checktype"`
Details string `json:"details"`
Lastupdated string `json:"lastupdated"`
+ Status string `json:"status"`
Success bool `json:"success"`
}
diff --git a/cloudstack/ServiceOfferingService.go b/cloudstack/ServiceOfferingService.go
index 61238ab..372b4ed 100644
--- a/cloudstack/ServiceOfferingService.go
+++ b/cloudstack/ServiceOfferingService.go
@@ -2353,6 +2353,10 @@ func (p *UpdateServiceOfferingParams) toURLValues() url.Values {
if p.p == nil {
return u
}
+ if v, found := p.p["cleanupexternaldetails"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("cleanupexternaldetails", vv)
+ }
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", v.(string))
}
@@ -2395,6 +2399,27 @@ func (p *UpdateServiceOfferingParams) toURLValues() url.Values {
return u
}
+func (p *UpdateServiceOfferingParams) SetCleanupexternaldetails(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["cleanupexternaldetails"] = v
+}
+
+func (p *UpdateServiceOfferingParams) ResetCleanupexternaldetails() {
+ if p.p != nil && p.p["cleanupexternaldetails"] != nil {
+ delete(p.p, "cleanupexternaldetails")
+ }
+}
+
+func (p *UpdateServiceOfferingParams) GetCleanupexternaldetails() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["cleanupexternaldetails"].(bool)
+ return value, ok
+}
+
func (p *UpdateServiceOfferingParams) SetDisplaytext(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
diff --git a/cloudstack/SnapshotService.go b/cloudstack/SnapshotService.go
index b1a148a..ab11f36 100644
--- a/cloudstack/SnapshotService.go
+++ b/cloudstack/SnapshotService.go
@@ -1394,6 +1394,7 @@ type CreateSnapshotPolicyResponse struct {
Tags []Tags `json:"tags"`
Timezone string `json:"timezone"`
Volumeid string `json:"volumeid"`
+ Volumename string `json:"volumename"`
Zone []interface{} `json:"zone"`
}
@@ -2042,6 +2043,12 @@ func (p *ListSnapshotPoliciesParams) toURLValues() 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["domainid"]; found {
+ u.Set("domainid", v.(string))
+ }
if v, found := p.p["fordisplay"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("fordisplay", vv)
@@ -2049,9 +2056,17 @@ func (p *ListSnapshotPoliciesParams) toURLValues() url.Values {
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
+ if v, found := p.p["isrecursive"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("isrecursive", vv)
+ }
if v, found := p.p["keyword"]; found {
u.Set("keyword", v.(string))
}
+ if v, found := p.p["listall"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("listall", vv)
+ }
if v, found := p.p["page"]; found {
vv := strconv.Itoa(v.(int))
u.Set("page", vv)
@@ -2060,12 +2075,57 @@ func (p *ListSnapshotPoliciesParams) toURLValues() url.Values {
vv := strconv.Itoa(v.(int))
u.Set("pagesize", vv)
}
+ if v, found := p.p["projectid"]; found {
+ u.Set("projectid", v.(string))
+ }
if v, found := p.p["volumeid"]; found {
u.Set("volumeid", v.(string))
}
return u
}
+func (p *ListSnapshotPoliciesParams) SetAccount(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["account"] = v
+}
+
+func (p *ListSnapshotPoliciesParams) ResetAccount() {
+ if p.p != nil && p.p["account"] != nil {
+ delete(p.p, "account")
+ }
+}
+
+func (p *ListSnapshotPoliciesParams) GetAccount() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["account"].(string)
+ return value, ok
+}
+
+func (p *ListSnapshotPoliciesParams) SetDomainid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
+func (p *ListSnapshotPoliciesParams) ResetDomainid() {
+ if p.p != nil && p.p["domainid"] != nil {
+ delete(p.p, "domainid")
+ }
+}
+
+func (p *ListSnapshotPoliciesParams) GetDomainid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["domainid"].(string)
+ return value, ok
+}
+
func (p *ListSnapshotPoliciesParams) SetFordisplay(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2108,6 +2168,27 @@ func (p *ListSnapshotPoliciesParams) GetId() (string, bool) {
return value, ok
}
+func (p *ListSnapshotPoliciesParams) SetIsrecursive(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["isrecursive"] = v
+}
+
+func (p *ListSnapshotPoliciesParams) ResetIsrecursive() {
+ if p.p != nil && p.p["isrecursive"] != nil {
+ delete(p.p, "isrecursive")
+ }
+}
+
+func (p *ListSnapshotPoliciesParams) GetIsrecursive() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["isrecursive"].(bool)
+ return value, ok
+}
+
func (p *ListSnapshotPoliciesParams) SetKeyword(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2129,6 +2210,27 @@ func (p *ListSnapshotPoliciesParams) GetKeyword() (string, bool) {
return value, ok
}
+func (p *ListSnapshotPoliciesParams) SetListall(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["listall"] = v
+}
+
+func (p *ListSnapshotPoliciesParams) ResetListall() {
+ if p.p != nil && p.p["listall"] != nil {
+ delete(p.p, "listall")
+ }
+}
+
+func (p *ListSnapshotPoliciesParams) GetListall() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["listall"].(bool)
+ return value, ok
+}
+
func (p *ListSnapshotPoliciesParams) SetPage(v int) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2171,6 +2273,27 @@ func (p *ListSnapshotPoliciesParams) GetPagesize() (int, bool) {
return value, ok
}
+func (p *ListSnapshotPoliciesParams) SetProjectid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["projectid"] = v
+}
+
+func (p *ListSnapshotPoliciesParams) ResetProjectid() {
+ if p.p != nil && p.p["projectid"] != nil {
+ delete(p.p, "projectid")
+ }
+}
+
+func (p *ListSnapshotPoliciesParams) GetProjectid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["projectid"].(string)
+ return value, ok
+}
+
func (p *ListSnapshotPoliciesParams) SetVolumeid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2266,6 +2389,7 @@ type SnapshotPolicy struct {
Tags []Tags `json:"tags"`
Timezone string `json:"timezone"`
Volumeid string `json:"volumeid"`
+ Volumename string `json:"volumename"`
Zone []interface{} `json:"zone"`
}
@@ -3943,5 +4067,6 @@ type UpdateSnapshotPolicyResponse struct {
Tags []Tags `json:"tags"`
Timezone string `json:"timezone"`
Volumeid string `json:"volumeid"`
+ Volumename string `json:"volumename"`
Zone []interface{} `json:"zone"`
}
diff --git a/cloudstack/StoragePoolService.go b/cloudstack/StoragePoolService.go
index ea964ad..9a1c0ff 100644
--- a/cloudstack/StoragePoolService.go
+++ b/cloudstack/StoragePoolService.go
@@ -142,6 +142,7 @@ func (s *StoragePoolService) CancelStorageMaintenance(p *CancelStorageMaintenanc
type CancelStorageMaintenanceResponse struct {
Allocatediops int64 `json:"allocatediops"`
+ Capacitybytes int64 `json:"capacitybytes"`
Capacityiops int64 `json:"capacityiops"`
Clusterid string `json:"clusterid"`
Clustername string `json:"clustername"`
@@ -391,6 +392,7 @@ func (s *StoragePoolService) EnableStorageMaintenance(p *EnableStorageMaintenanc
type EnableStorageMaintenanceResponse struct {
Allocatediops int64 `json:"allocatediops"`
+ Capacitybytes int64 `json:"capacitybytes"`
Capacityiops int64 `json:"capacityiops"`
Clusterid string `json:"clusterid"`
Clustername string `json:"clustername"`
@@ -2215,6 +2217,7 @@ type ListStoragePoolsMetricsResponse struct {
type StoragePoolsMetric struct {
Allocatediops int64 `json:"allocatediops"`
+ Capacitybytes int64 `json:"capacitybytes"`
Capacityiops int64 `json:"capacityiops"`
Clusterid string `json:"clusterid"`
Clustername string `json:"clustername"`
diff --git a/cloudstack/SystemVMService.go b/cloudstack/SystemVMService.go
index f5d5ad2..f024d06 100644
--- a/cloudstack/SystemVMService.go
+++ b/cloudstack/SystemVMService.go
@@ -1112,12 +1112,29 @@ type ListSystemVmsUsageHistoryResponse struct {
}
type SystemVmsUsageHistory struct {
- Displayname string `json:"displayname"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Stats []string `json:"stats"`
+ Displayname string `json:"displayname"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Stats []SystemVmsUsageHistoryStats `json:"stats"`
+}
+
+type SystemVmsUsageHistoryStats struct {
+ Cpuused string `json:"cpuused"`
+ Diskiopstotal int64 `json:"diskiopstotal"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
+ Memoryintfreekbs int64 `json:"memoryintfreekbs"`
+ Memorykbs int64 `json:"memorykbs"`
+ Memorytargetkbs int64 `json:"memorytargetkbs"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Networkread string `json:"networkread"`
+ Networkwrite string `json:"networkwrite"`
+ Timestamp string `json:"timestamp"`
}
type MigrateSystemVmParams struct {
diff --git a/cloudstack/TemplateService.go b/cloudstack/TemplateService.go
index 9a1c490..e9f9071 100644
--- a/cloudstack/TemplateService.go
+++ b/cloudstack/TemplateService.go
@@ -1383,6 +1383,9 @@ func (p *GetUploadParamsForTemplateParams) toURLValues() url.Values {
if v, found := p.p["templatetag"]; found {
u.Set("templatetag", v.(string))
}
+ if v, found := p.p["templatetype"]; found {
+ u.Set("templatetype", v.(string))
+ }
if v, found := p.p["zoneid"]; found {
u.Set("zoneid", v.(string))
}
@@ -1872,6 +1875,27 @@ func (p *GetUploadParamsForTemplateParams) GetTemplatetag() (string, bool) {
return value, ok
}
+func (p *GetUploadParamsForTemplateParams) SetTemplatetype(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["templatetype"] = v
+}
+
+func (p *GetUploadParamsForTemplateParams) ResetTemplatetype() {
+ if p.p != nil && p.p["templatetype"] != nil {
+ delete(p.p, "templatetype")
+ }
+}
+
+func (p *GetUploadParamsForTemplateParams) GetTemplatetype() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["templatetype"].(string)
+ return value, ok
+}
+
func (p *GetUploadParamsForTemplateParams) SetZoneid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
diff --git a/cloudstack/VirtualMachineService.go b/cloudstack/VirtualMachineService.go
index 04d3092..45244e1 100644
--- a/cloudstack/VirtualMachineService.go
+++ b/cloudstack/VirtualMachineService.go
@@ -95,6 +95,8 @@ type VirtualMachineServiceIface interface {
NewListUnmanagedInstancesParams(clusterid string) *ListUnmanagedInstancesParams
ImportUnmanagedInstance(p *ImportUnmanagedInstanceParams) (*ImportUnmanagedInstanceResponse, error)
NewImportUnmanagedInstanceParams(clusterid string, name string, serviceofferingid string) *ImportUnmanagedInstanceParams
+ ListImportVmTasks(p *ListImportVmTasksParams) (*ListImportVmTasksResponse, error)
+ NewListImportVmTasksParams(zoneid string) *ListImportVmTasksParams
CreateVMSchedule(p *CreateVMScheduleParams) (*CreateVMScheduleResponse, error)
NewCreateVMScheduleParams(action string, schedule string, timezone string, virtualmachineid string) *CreateVMScheduleParams
UpdateVMSchedule(p *UpdateVMScheduleParams) (*UpdateVMScheduleResponse, error)
@@ -11455,12 +11457,29 @@ type ListVirtualMachinesUsageHistoryResponse struct {
}
type VirtualMachinesUsageHistory struct {
- Displayname string `json:"displayname"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Stats []string `json:"stats"`
+ Displayname string `json:"displayname"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Stats []VirtualMachinesUsageHistoryStats `json:"stats"`
+}
+
+type VirtualMachinesUsageHistoryStats struct {
+ Cpuused string `json:"cpuused"`
+ Diskiopstotal int64 `json:"diskiopstotal"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
+ Memoryintfreekbs int64 `json:"memoryintfreekbs"`
+ Memorykbs int64 `json:"memorykbs"`
+ Memorytargetkbs int64 `json:"memorytargetkbs"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Networkread string `json:"networkread"`
+ Networkwrite string `json:"networkwrite"`
+ Timestamp string `json:"timestamp"`
}
type ImportVmParams struct {
@@ -11516,6 +11535,13 @@ func (p *ImportVmParams) toURLValues() url.Values {
if v, found := p.p["existingvcenterid"]; found {
u.Set("existingvcenterid", v.(string))
}
+ if v, found := p.p["extraparams"]; found {
+ u.Set("extraparams", v.(string))
+ }
+ if v, found := p.p["forceconverttopool"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("forceconverttopool", vv)
+ }
if v, found := p.p["forced"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("forced", vv)
@@ -11866,6 +11892,48 @@ func (p *ImportVmParams) GetExistingvcenterid() (string, bool) {
return value, ok
}
+func (p *ImportVmParams) SetExtraparams(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["extraparams"] = v
+}
+
+func (p *ImportVmParams) ResetExtraparams() {
+ if p.p != nil && p.p["extraparams"] != nil {
+ delete(p.p, "extraparams")
+ }
+}
+
+func (p *ImportVmParams) GetExtraparams() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["extraparams"].(string)
+ return value, ok
+}
+
+func (p *ImportVmParams) SetForceconverttopool(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["forceconverttopool"] = v
+}
+
+func (p *ImportVmParams) ResetForceconverttopool() {
+ if p.p != nil && p.p["forceconverttopool"] != nil {
+ delete(p.p, "forceconverttopool")
+ }
+}
+
+func (p *ImportVmParams) GetForceconverttopool() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["forceconverttopool"].(bool)
+ return value, ok
+}
+
func (p *ImportVmParams) SetForced(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -12602,12 +12670,61 @@ func (p *UnmanageVirtualMachineParams) toURLValues() url.Values {
if p.p == nil {
return u
}
+ if v, found := p.p["forced"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("forced", vv)
+ }
+ if v, found := p.p["hostid"]; found {
+ u.Set("hostid", v.(string))
+ }
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
return u
}
+func (p *UnmanageVirtualMachineParams) SetForced(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["forced"] = v
+}
+
+func (p *UnmanageVirtualMachineParams) ResetForced() {
+ if p.p != nil && p.p["forced"] != nil {
+ delete(p.p, "forced")
+ }
+}
+
+func (p *UnmanageVirtualMachineParams) GetForced() (bool, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["forced"].(bool)
+ return value, ok
+}
+
+func (p *UnmanageVirtualMachineParams) SetHostid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["hostid"] = v
+}
+
+func (p *UnmanageVirtualMachineParams) ResetHostid() {
+ if p.p != nil && p.p["hostid"] != nil {
+ delete(p.p, "hostid")
+ }
+}
+
+func (p *UnmanageVirtualMachineParams) GetHostid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["hostid"].(string)
+ return value, ok
+}
+
func (p *UnmanageVirtualMachineParams) SetId(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -12675,6 +12792,7 @@ func (s *VirtualMachineService) UnmanageVirtualMachine(p *UnmanageVirtualMachine
type UnmanageVirtualMachineResponse struct {
Details string `json:"details"`
+ Hostid string `json:"hostid"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Success bool `json:"success"`
@@ -13494,6 +13612,265 @@ func (r *ImportUnmanagedInstanceResponse) UnmarshalJSON(b []byte) error {
return json.Unmarshal(b, (*alias)(r))
}
+type ListImportVmTasksParams struct {
+ p map[string]interface{}
+}
+
+func (p *ListImportVmTasksParams) toURLValues() url.Values {
+ u := url.Values{}
+ if p.p == nil {
+ return u
+ }
+ if v, found := p.p["accountid"]; found {
+ u.Set("accountid", v.(string))
+ }
+ if v, found := p.p["convertinstancehostid"]; found {
+ u.Set("convertinstancehostid", v.(string))
+ }
+ if v, found := p.p["keyword"]; found {
+ u.Set("keyword", 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)
+ }
+ if v, found := p.p["tasksfilter"]; found {
+ u.Set("tasksfilter", v.(string))
+ }
+ if v, found := p.p["vcenter"]; found {
+ u.Set("vcenter", v.(string))
+ }
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
+ return u
+}
+
+func (p *ListImportVmTasksParams) SetAccountid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["accountid"] = v
+}
+
+func (p *ListImportVmTasksParams) ResetAccountid() {
+ if p.p != nil && p.p["accountid"] != nil {
+ delete(p.p, "accountid")
+ }
+}
+
+func (p *ListImportVmTasksParams) GetAccountid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["accountid"].(string)
+ return value, ok
+}
+
+func (p *ListImportVmTasksParams) SetConvertinstancehostid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["convertinstancehostid"] = v
+}
+
+func (p *ListImportVmTasksParams) ResetConvertinstancehostid() {
+ if p.p != nil && p.p["convertinstancehostid"] != nil {
+ delete(p.p, "convertinstancehostid")
+ }
+}
+
+func (p *ListImportVmTasksParams) GetConvertinstancehostid() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["convertinstancehostid"].(string)
+ return value, ok
+}
+
+func (p *ListImportVmTasksParams) SetKeyword(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["keyword"] = v
+}
+
+func (p *ListImportVmTasksParams) ResetKeyword() {
+ if p.p != nil && p.p["keyword"] != nil {
+ delete(p.p, "keyword")
+ }
+}
+
+func (p *ListImportVmTasksParams) GetKeyword() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["keyword"].(string)
+ return value, ok
+}
+
+func (p *ListImportVmTasksParams) SetPage(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["page"] = v
+}
+
+func (p *ListImportVmTasksParams) ResetPage() {
+ if p.p != nil && p.p["page"] != nil {
+ delete(p.p, "page")
+ }
+}
+
+func (p *ListImportVmTasksParams) GetPage() (int, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["page"].(int)
+ return value, ok
+}
+
+func (p *ListImportVmTasksParams) SetPagesize(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["pagesize"] = v
+}
+
+func (p *ListImportVmTasksParams) ResetPagesize() {
+ if p.p != nil && p.p["pagesize"] != nil {
+ delete(p.p, "pagesize")
+ }
+}
+
+func (p *ListImportVmTasksParams) GetPagesize() (int, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["pagesize"].(int)
+ return value, ok
+}
+
+func (p *ListImportVmTasksParams) SetTasksfilter(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["tasksfilter"] = v
+}
+
+func (p *ListImportVmTasksParams) ResetTasksfilter() {
+ if p.p != nil && p.p["tasksfilter"] != nil {
+ delete(p.p, "tasksfilter")
+ }
+}
+
+func (p *ListImportVmTasksParams) GetTasksfilter() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["tasksfilter"].(string)
+ return value, ok
+}
+
+func (p *ListImportVmTasksParams) SetVcenter(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["vcenter"] = v
+}
+
+func (p *ListImportVmTasksParams) ResetVcenter() {
+ if p.p != nil && p.p["vcenter"] != nil {
+ delete(p.p, "vcenter")
+ }
+}
+
+func (p *ListImportVmTasksParams) GetVcenter() (string, bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ value, ok := p.p["vcenter"].(string)
+ return value, ok
+}
+
+func (p *ListImportVmTasksParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
+func (p *ListImportVmTasksParams) ResetZoneid() {
+ if p.p != nil && p.p["zoneid"] != nil {
+ delete(p.p, "zoneid")
+ }
+}
+
+func (p *ListImportVmTasksParams) 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 ListImportVmTasksParams instance,
+// as then you are sure you have configured all required params
+func (s *VirtualMachineService) NewListImportVmTasksParams(zoneid string) *ListImportVmTasksParams {
+ p := &ListImportVmTasksParams{}
+ p.p = make(map[string]interface{})
+ p.p["zoneid"] = zoneid
+ return p
+}
+
+// List running import virtual machine tasks from a unmanaged hosts into CloudStack
+func (s *VirtualMachineService) ListImportVmTasks(p *ListImportVmTasksParams) (*ListImportVmTasksResponse, error) {
+ resp, err := s.cs.newRequest("listImportVmTasks", p.toURLValues())
+ if err != nil {
+ return nil, err
+ }
+
+ var r ListImportVmTasksResponse
+ if err := json.Unmarshal(resp, &r); err != nil {
+ return nil, err
+ }
+
+ return &r, nil
+}
+
+type ListImportVmTasksResponse struct {
+ Count int `json:"count"`
+ ImportVmTasks []*ImportVmTask `json:"importvmtask"`
+}
+
+type ImportVmTask struct {
+ Account string `json:"account"`
+ Accountid string `json:"accountid"`
+ Convertinstancehostid string `json:"convertinstancehostid"`
+ Convertinstancehostname string `json:"convertinstancehostname"`
+ Created string `json:"created"`
+ Datacentername string `json:"datacentername"`
+ Description string `json:"description"`
+ Displayname string `json:"displayname"`
+ Duration string `json:"duration"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastupdated string `json:"lastupdated"`
+ Sourcevmname string `json:"sourcevmname"`
+ State string `json:"state"`
+ Step string `json:"step"`
+ Stepduration string `json:"stepduration"`
+ Vcenter string `json:"vcenter"`
+ Virtualmachineid string `json:"virtualmachineid"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
type CreateVMScheduleParams struct {
p map[string]interface{}
}
diff --git a/cloudstack/VirtualMachineService_mock.go b/cloudstack/VirtualMachineService_mock.go
index c8c4b02..6c7192c 100644
--- a/cloudstack/VirtualMachineService_mock.go
+++ b/cloudstack/VirtualMachineService_mock.go
@@ -463,6 +463,21 @@ func (mr *MockVirtualMachineServiceIfaceMockRecorder) ImportVm(p any) *gomock.Ca
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportVm", reflect.TypeOf((*MockVirtualMachineServiceIface)(nil).ImportVm), p)
}
+// ListImportVmTasks mocks base method.
+func (m *MockVirtualMachineServiceIface) ListImportVmTasks(p *ListImportVmTasksParams) (*ListImportVmTasksResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "ListImportVmTasks", p)
+ ret0, _ := ret[0].(*ListImportVmTasksResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// ListImportVmTasks indicates an expected call of ListImportVmTasks.
+func (mr *MockVirtualMachineServiceIfaceMockRecorder) ListImportVmTasks(p any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportVmTasks", reflect.TypeOf((*MockVirtualMachineServiceIface)(nil).ListImportVmTasks), p)
+}
+
// ListUnmanagedInstances mocks base method.
func (m *MockVirtualMachineServiceIface) ListUnmanagedInstances(p *ListUnmanagedInstancesParams) (*ListUnmanagedInstancesResponse, error) {
m.ctrl.T.Helper()
@@ -765,6 +780,20 @@ func (mr *MockVirtualMachineServiceIfaceMockRecorder) NewImportVmParams(clusteri
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewImportVmParams", reflect.TypeOf((*MockVirtualMachineServiceIface)(nil).NewImportVmParams), clusterid, hypervisor, importsource, name, serviceofferingid, zoneid)
}
+// NewListImportVmTasksParams mocks base method.
+func (m *MockVirtualMachineServiceIface) NewListImportVmTasksParams(zoneid string) *ListImportVmTasksParams {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "NewListImportVmTasksParams", zoneid)
+ ret0, _ := ret[0].(*ListImportVmTasksParams)
+ return ret0
+}
+
+// NewListImportVmTasksParams indicates an expected call of NewListImportVmTasksParams.
+func (mr *MockVirtualMachineServiceIfaceMockRecorder) NewListImportVmTasksParams(zoneid any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListImportVmTasksParams", reflect.TypeOf((*MockVirtualMachineServiceIface)(nil).NewListImportVmTasksParams), zoneid)
+}
+
// NewListUnmanagedInstancesParams mocks base method.
func (m *MockVirtualMachineServiceIface) NewListUnmanagedInstancesParams(clusterid string) *ListUnmanagedInstancesParams {
m.ctrl.T.Helper()
diff --git a/generate/layout.go b/generate/layout.go
index 584ee58..0a20b96 100644
--- a/generate/layout.go
+++ b/generate/layout.go
@@ -150,6 +150,7 @@ var layout = apiInfo{
"unmanageVirtualMachine",
"listUnmanagedInstances",
"importUnmanagedInstance",
+ "listImportVmTasks",
"createVMSchedule",
"updateVMSchedule",
"listVMSchedule",
@@ -781,6 +782,7 @@ var layout = apiInfo{
"listBackupSchedule",
"listBackups",
"restoreBackup",
+ "updateBackupRepository",
"updateBackupOffering",
"updateBackupSchedule",
},
diff --git a/generate/listApis.json b/generate/listApis.json
index 017bfea..a8c045f 100644
--- a/generate/listApis.json
+++ b/generate/listApis.json
@@ -6,26 +6,25 @@
"name": "createVPCOffering",
"params": [
{
- "description": "desired service capabilities as part of vpc offering",
+ "description": "services supported by the vpc offering",
"length": 255,
- "name": "servicecapabilitylist",
+ "name": "supportedservices",
"required": false,
- "since": "4.4",
- "type": "map"
+ "type": "list"
},
{
- "description": "the routing mode for the VPC offering. Supported types are: Static or Dynamic.",
+ "description": "desired service capabilities as part of vpc offering",
"length": 255,
- "name": "routingmode",
+ "name": "servicecapabilitylist",
"required": false,
- "since": "4.20.0",
- "type": "string"
+ "since": "4.4",
+ "type": "map"
},
{
- "description": "the display text of the vpc offering, defaults to the 'name'",
+ "description": "the name of the vpc offering",
"length": 255,
- "name": "displaytext",
- "required": false,
+ "name": "name",
+ "required": true,
"type": "string"
},
{
@@ -37,26 +36,12 @@
"type": "boolean"
},
{
- "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": "serviceproviderlist",
- "required": false,
- "type": "map"
- },
- {
- "description": "the name of the vpc offering",
- "length": 255,
- "name": "name",
- "required": true,
- "type": "string"
- },
- {
- "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": "true if network offering for NSX VPC offering supports Load balancer service.",
"length": 255,
- "name": "internetprotocol",
+ "name": "nsxsupportlb",
"required": false,
- "since": "4.17.0",
- "type": "string"
+ "since": "4.20.0",
+ "type": "boolean"
},
{
"description": "set to true if the offering is to be enabled during creation. Default is false",
@@ -75,27 +60,19 @@
"type": "uuid"
},
{
- "description": "services supported by the vpc offering",
- "length": 255,
- "name": "supportedservices",
- "required": false,
- "type": "list"
- },
- {
- "description": "Indicates the mode with which the network will operate. Valid option: NATTED or ROUTED",
+ "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": "networkmode",
+ "name": "internetprotocol",
"required": false,
- "since": "4.20.0",
+ "since": "4.17.0",
"type": "string"
},
{
- "description": "the ID of the containing zone(s), null for public offerings",
+ "description": "the ID of the containing domain(s), null for public offerings",
"length": 255,
- "name": "zoneid",
- "related": "createZone,updateZone,listZones,listZones",
+ "name": "domainid",
+ "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
"required": false,
- "since": "4.13",
"type": "list"
},
{
@@ -115,70 +92,47 @@
"type": "boolean"
},
{
- "description": "the ID of the containing domain(s), null for public offerings",
+ "description": "the ID of the containing zone(s), null for public offerings",
"length": 255,
- "name": "domainid",
- "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
+ "name": "zoneid",
+ "related": "createZone,updateZone,listZones,listZones",
"required": false,
+ "since": "4.13",
"type": "list"
},
{
- "description": "true if network offering for NSX VPC offering supports Load balancer service.",
+ "description": "Indicates the mode with which the network will operate. Valid option: NATTED or ROUTED",
"length": 255,
- "name": "nsxsupportlb",
+ "name": "networkmode",
"required": false,
"since": "4.20.0",
- "type": "boolean"
- }
- ],
- "related": "updateVPCOffering,listVPCOfferings",
- "response": [
- {
- "description": "the domain ID(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
- "name": "domainid",
- "type": "string"
- },
- {
- "description": "true if network offering supports choosing AS numbers",
- "name": "specifyasnumber",
- "type": "boolean"
- },
- {
- "description": "the routing mode for the network offering, supported types are Static or Dynamic.",
- "name": "routingmode",
- "type": "string"
- },
- {
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
- {
- "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 name of the vpc offering",
- "name": "name",
- "type": "string"
+ "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": "serviceproviderlist",
+ "required": false,
+ "type": "map"
},
{
- "description": "the zone name(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
- "name": "zone",
+ "description": "the display text of the vpc offering, defaults to the 'name'",
+ "length": 255,
+ "name": "displaytext",
+ "required": false,
"type": "string"
},
{
- "description": "indicated if the offering can support region level vpc",
- "name": "supportsregionLevelvpc",
- "type": "boolean"
- },
- {
- "description": "an alternate display text of the vpc offering.",
- "name": "displaytext",
+ "description": "the routing mode for the VPC offering. Supported types are: Static or Dynamic.",
+ "length": 255,
+ "name": "routingmode",
+ "required": false,
+ "since": "4.20.0",
"type": "string"
- },
+ }
+ ],
+ "related": "updateVPCOffering,listVPCOfferings",
+ "response": [
{
"description": "the list of supported services",
"name": "service",
@@ -188,23 +142,23 @@
"name": "provider",
"response": [
{
- "description": "services for this provider",
- "name": "servicelist",
- "type": "list"
+ "description": "the physical network this belongs to",
+ "name": "physicalnetworkid",
+ "type": "string"
},
{
- "description": "the destination physical network",
- "name": "destinationphysicalnetworkid",
+ "description": "uuid of the network provider",
+ "name": "id",
"type": "string"
},
{
- "description": "the physical network this belongs to",
- "name": "physicalnetworkid",
- "type": "string"
+ "description": "services for this provider",
+ "name": "servicelist",
+ "type": "list"
},
{
- "description": "the provider name",
- "name": "name",
+ "description": "state of the network provider",
+ "name": "state",
"type": "string"
},
{
@@ -213,13 +167,13 @@
"type": "boolean"
},
{
- "description": "state of the network provider",
- "name": "state",
+ "description": "the provider name",
+ "name": "name",
"type": "string"
},
{
- "description": "uuid of the network provider",
- "name": "id",
+ "description": "the destination physical network",
+ "name": "destinationphysicalnetworkid",
"type": "string"
}
],
@@ -229,11 +183,6 @@
"description": "the list of capabilities",
"name": "capability",
"response": [
- {
- "description": "the capability name",
- "name": "name",
- "type": "string"
- },
{
"description": "the capability value",
"name": "value",
@@ -243,6 +192,11 @@
"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"
@@ -256,13 +210,29 @@
"type": "list"
},
{
- "description": "Mode in which the network will operate. The valid values are NATTED and ROUTED",
- "name": "networkmode",
+ "description": "an alternate display text of the vpc offering.",
+ "name": "displaytext",
"type": "string"
},
+ {},
{
- "description": "true if vpc offering can be used by NSX networks only",
- "name": "fornsx",
+ "description": "the name of the vpc offering",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "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",
+ "type": "string"
+ },
+ {
+ "description": "true if vpc offering is default, false otherwise",
+ "name": "isdefault",
"type": "boolean"
},
{
@@ -271,9 +241,14 @@
"type": "string"
},
{
- "description": " indicates if the vpc offering supports distributed router for one-hop forwarding",
- "name": "distributedvpcrouter",
- "type": "boolean"
+ "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",
+ "type": "string"
},
{
"description": "the date this vpc offering was created",
@@ -281,26 +256,51 @@
"type": "date"
},
{
- "description": "true if vpc offering is default, false otherwise",
- "name": "isdefault",
+ "description": "Mode in which the network will operate. The valid values are NATTED and ROUTED",
+ "name": "networkmode",
+ "type": "string"
+ },
+ {
+ "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",
+ "type": "string"
+ },
{
"description": "state of the vpc offering. Can be Disabled/Enabled",
"name": "state",
"type": "string"
},
+ {},
+ {
+ "description": "the zone name(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
+ "name": "zone",
+ "type": "string"
+ },
+ {
+ "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",
"type": "string"
},
{
- "description": "the id of the vpc offering",
- "name": "id",
- "type": "string"
+ "description": " indicates if the vpc offering supports distributed router for one-hop forwarding",
+ "name": "distributedvpcrouter",
+ "type": "boolean"
+ },
+ {
+ "description": "indicated if the offering can support region level vpc",
+ "name": "supportsregionLevelvpc",
+ "type": "boolean"
},
- {},
{
"description": "the internet protocol of the vpc offering",
"name": "internetprotocol",
@@ -314,25 +314,19 @@
"name": "ldapCreateAccount",
"params": [
{
- "description": "Creates the user under the specified account. If no account is specified, the username will be used as the account name.",
+ "description": "Creates the user under the specified domain.",
"length": 255,
- "name": "account",
+ "name": "domainid",
+ "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
"required": false,
- "type": "string"
- },
- {
- "description": "Unique username.",
- "length": 255,
- "name": "username",
- "required": true,
- "type": "string"
+ "type": "uuid"
},
{
- "description": "User UUID, required for adding account from external provisioning system",
+ "description": "Type of the account. Specify 0 for user, 1 for root admin, and 2 for domain admin",
"length": 255,
- "name": "userid",
+ "name": "accounttype",
"required": false,
- "type": "string"
+ "type": "integer"
},
{
"description": "details for account used to store specific parameters",
@@ -341,13 +335,6 @@
"required": false,
"type": "map"
},
- {
- "description": "Type of the account. Specify 0 for user, 1 for root admin, and 2 for domain admin",
- "length": 255,
- "name": "accounttype",
- "required": false,
- "type": "integer"
- },
{
"description": "Network domain for the account's networks",
"length": 255,
@@ -356,24 +343,23 @@
"type": "string"
},
{
- "description": "Creates the user under the specified domain.",
+ "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": "domainid",
- "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain,moveDomain",
+ "name": "account",
"required": false,
- "type": "uuid"
+ "type": "string"
},
{
- "description": "Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.",
+ "description": "Account UUID, required for adding account from external provisioning system",
"length": 255,
- "name": "timezone",
+ "name": "accountid",
"required": false,
"type": "string"
},
{
- "description": "Account 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": "accountid",
+ "name": "timezone",
"required": false,
"type": "string"
},
@@ -384,64 +370,77 @@
"related": "createRole,importRole,listRoles,updateRole",
"required": false,
"type": "uuid"
+ },
+ {
+ "description": "Unique username.",
+ "length": 255,
+ "name": "username",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "description": "User UUID, required for adding account from external provisioning system",
+ "length": 255,
+ "name": "userid",
+ "required": false,
+ "type": "string"
}
],
"related": "createAccount,disableAccount,enableAccount,lockAccount,updateAccount,markDefaultZoneForAccount,listAccounts,listAccounts",
"response": [
- {},
{
- "description": "the total number of backups which can be stored by this account",
- "name": "backuplimit",
- "type": "string"
+ "description": "the total number of virtual machines stopped for this account",
+ "name": "vmstopped",
+ "type": "integer"
},
{
- "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 memory (in MB) the account can own",
- "name": "memorylimit",
+ "description": "the total memory (in MB) available to be created for this account",
+ "name": "memoryavailable",
"type": "string"
},
{
- "description": "the type of the role (Admin, ResourceAdmin, DomainAdmin, User)",
- "name": "roletype",
- "type": "string"
+ "description": "the total object storage space (in GiB) owned by the account",
+ "name": "objectstoragetotal",
+ "type": "long"
},
{
- "description": "the total number of virtual machines available for this account to acquire",
- "name": "vmavailable",
- "type": "string"
+ "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 cpu cores owned by account",
+ "name": "cputotal",
+ "type": "long"
},
{
- "description": "the total number of projects the account can own",
- "name": "projectlimit",
+ "description": "the default zone of the account",
+ "name": "defaultzoneid",
"type": "string"
},
{
- "description": "the total number of buckets stored by this account",
- "name": "buckettotal",
- "type": "long"
+ "description": "the total number of backups which can be stored by this account",
+ "name": "backuplimit",
+ "type": "string"
},
{
- "description": "the total primary storage space (in GiB) available to be used for this account",
- "name": "primarystorageavailable",
+ "description": "the total number of templates which can be created by this account",
+ "name": "templatelimit",
"type": "string"
},
{
- "description": "the total number of backups available to this account",
- "name": "backupavailable",
- "type": "string"
+ "description": "the total secondary storage space (in GiB) owned by account",
+ "name": "secondarystoragetotal",
+ "type": "float"
},
{
- "description": "the total object storage space (in GiB) available to the account",
- "name": "objectstorageavailable",
+ "description": "the total backup storage space (in GiB) available to the account",
+ "name": "backupstorageavailable",
"type": "string"
},
{
@@ -450,68 +449,83 @@
"type": "string"
},
{
- "description": "true if the account requires cleanup",
- "name": "iscleanuprequired",
- "type": "boolean"
+ "description": "the total volume being used by this account",
+ "name": "volumetotal",
+ "type": "long"
},
{
- "description": "the total number of vpcs available to be created for this account",
- "name": "vpcavailable",
+ "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) available to be used for this account",
- "name": "secondarystorageavailable",
- "type": "string"
+ "description": "account type (admin, domain-admin, user)",
+ "name": "accounttype",
+ "type": "integer"
},
{
- "description": "the total number of gpus owned by account",
- "name": "gputotal",
+ "description": "the total number of network traffic bytes sent",
+ "name": "sentbytes",
"type": "long"
},
{
- "description": "the ID of the role",
- "name": "roleid",
+ "description": "the total number of projects the account can own",
+ "name": "projectlimit",
"type": "string"
},
{
- "description": "the total primary storage space (in GiB) the account can own",
- "name": "primarystoragelimit",
+ "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": "the total number of snapshots stored by this account",
+ "name": "snapshottotal",
+ "type": "long"
},
{
- "description": "the total object storage space (in GiB) owned by the account",
- "name": "objectstoragetotal",
+ "description": "the total backup storage space (in GiB) owned by the account",
+ "name": "backupstoragetotal",
"type": "long"
},
{
- "description": "the total number of snapshots which can be stored by this account",
- "name": "snapshotlimit",
+ "description": "the total number of virtual machines running for this account",
+ "name": "vmrunning",
+ "type": "integer"
+ },
+ {
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "name of the Domain the account belongs to",
- "name": "domain",
+ "description": "the total number of networks owned by account",
+ "name": "networktotal",
+ "type": "long"
+ },
+ {
+ "description": "The tagged resource limit and count for the account",
+ "name": "taggedresources",
+ "type": "list"
+ },
+ {
+ "description": "the total number of networks available to be created for this account",
+ "name": "networkavailable",
"type": "string"
},
{
- "description": "the total number of networks the account can own",
- "name": "networklimit",
+ "description": "the total number of virtual machines available for this account to acquire",
+ "name": "vmavailable",
"type": "string"
},
{
- "description": "the total number of gpus the account can own",
- "name": "gpulimit",
+ "description": "the total number of templates available to be created by this account",
+ "name": "templateavailable",
"type": "string"
},
{
- "description": "the total number of vpcs the account can own",
- "name": "vpclimit",
+ "description": "the total number of networks the account can own",
+ "name": "networklimit",
"type": "string"
},
{
@@ -520,19 +534,24 @@
"type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "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 memory (in MB) owned by account",
- "name": "memorytotal",
- "type": "long"
+ "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": "the id of the account",
+ "name": "id",
+ "type": "string"
},
{
"description": "the total number of snapshots available for this account",
@@ -540,60 +559,85 @@
"type": "string"
},
{
- "description": "the total number of templates available to be created by this account",
- "name": "templateavailable",
+ "description": "the total number of vpcs the account can own",
+ "name": "vpclimit",
"type": "string"
},
{
- "description": "the total number of network traffic bytes received",
- "name": "receivedbytes",
+ "description": "Base64 string representation of the resource icon",
+ "name": "icon",
+ "type": "resourceiconresponse"
+ },
+ {
+ "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",
+ "type": "string"
},
{
- "description": "account type (admin, domain-admin, user)",
- "name": "accounttype",
- "type": "integer"
+ "description": "the total backup storage space (in GiB) the account can own",
+ "name": "backupstoragelimit",
+ "type": "string"
},
{
- "description": "the total primary storage space (in GiB) owned by account",
- "name": "primarystoragetotal",
+ "description": "the total number of gpus the account can own",
+ "name": "gpulimit",
+ "type": "string"
+ },
+ {
+ "description": "the total memory (in MB) owned by account",
+ "name": "memorytotal",
"type": "long"
},
{
- "description": "the name of the role",
- "name": "rolename",
+ "description": "the total secondary storage space (in GiB) available to be used for this account",
+ "name": "secondarystorageavailable",
"type": "string"
},
{
- "description": "the total number of cpu cores owned by account",
- "name": "cputotal",
- "type": "long"
+ "description": "the total number of backups available to this account",
+ "name": "backupavailable",
+ "type": "string"
},
{
- "description": "the network domain",
- "name": "networkdomain",
+ "description": "the name of the account",
+ "name": "name",
"type": "string"
},
{
- "description": "the default zone of the account",
- "name": "defaultzoneid",
+ "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 total number of virtual machines stopped for this account",
- "name": "vmstopped",
- "type": "integer"
+ "description": "the network domain",
+ "name": "networkdomain",
+ "type": "string"
},
{
- "description": "the total memory (in MB) available to be created for this account",
- "name": "memoryavailable",
+ "description": "the ID of the role",
+ "name": "roleid",
"type": "string"
},
+ {
+ "description": "the total number of vpcs owned by account",
+ "name": "vpctotal",
+ "type": "long"
+ },
{
"description": "the list of users associated with account",
"name": "user",
@@ -604,79 +648,69 @@
"type": "string"
},
{
- "description": "the user email address",
- "name": "email",
+ "description": "the user ID",
+ "name": "id",
"type": "string"
},
{
- "description": "the account name of the user",
- "name": "account",
+ "description": "the user lastname",
+ "name": "lastname",
"type": "string"
},
{
- "description": "the user state",
- "name": "state",
- "type": "string"
+ "description": "the account type of the user",
+ "name": "accounttype",
+ "type": "integer"
},
{
- "description": "the type of the role",
- "name": "roletype",
- "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": "the user firstname",
- "name": "firstname",
- "type": "string"
+ "description": "true if user has two factor authentication is mandated",
+ "name": "is2famandated",
+ "type": "boolean"
},
{
- "description": "the user lastname",
- "name": "lastname",
- "type": "string"
+ "description": "true if user has two factor authentication enabled",
+ "name": "is2faenabled",
+ "type": "boolean"
},
{
- "description": "the timezone user was created in",
- "name": "timezone",
+ "description": "the name of the role",
+ "name": "rolename",
"type": "string"
},
{
- "description": "the user ID",
- "name": "id",
+ "description": "the account ID of the user",
+ "name": "accountid",
"type": "string"
},
{
- "description": "the boolean value representing if the updating target is in caller's child domain",
- "name": "iscallerchilddomain",
- "type": "boolean"
- },
- {
- "description": "the domain name of the user",
- "name": "domain",
+ "description": "the ID of the role",
+ "name": "roleid",
"type": "string"
},
{
- "description": "true if user is default, false otherwise",
- "name": "isdefault",
- "type": "boolean"
- },
- {
- "description": "Base64 string representation of the resource icon",
- "name": "icon",
- "type": "resourceiconresponse"
+ "description": "the domain ID of the user",
+ "name": "domainid",
+ "type": "string"
},
{
- "description": "the name of the role",
- "name": "rolename",
+ "description": "the user state",
+ "name": "state",
"type": "string"
},
{
- "description": "the user name",
- "name": "username",
+ "description": "the user firstname",
+ "name": "firstname",
"type": "string"
},
{
- "description": "true if user has two factor authentication is mandated",
- "name": "is2famandated",
- "type": "boolean"
+ "description": "the domain name of the user",
+ "name": "domain",
+ "type": "string"
},
{
"description": "the date and time the user account was created",
@@ -684,19 +718,19 @@
"type": "date"
},
{
- "description": "the account ID of the user",
- "name": "accountid",
+ "description": "the timezone user was created in",
+ "name": "timezone",
"type": "string"
},
{
- "description": "true if user has two factor authentication enabled",
- "name": "is2faenabled",
- "type": "boolean"
+ "description": "the type of the role",
+ "name": "roletype",
+ "type": "string"
},
{
- "description": "the secret key of the user",
- "name": "secretkey",
- "type": "string"
+ "description": "Base64 string representation of the resource icon",
+ "name": "icon",
+ "type": "resourceiconresponse"
},
{
"description": "the api key of the user",
@@ -704,91 +738,93 @@
"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 is default, false otherwise",
+ "name": "isdefault",
+ "type": "boolean"
},
{
- "description": "the ID of the role",
- "name": "roleid",
+ "description": "the user email address",
+ "name": "email",
"type": "string"
},
{
- "description": "the domain ID of the user",
- "name": "domainid",
+ "description": "the user name",
+ "name": "username",
"type": "string"
},
{
- "description": "the account type of the user",
- "name": "accounttype",
- "type": "integer"
+ "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 total number of networks available to be created for this account",
- "name": "networkavailable",
- "type": "string"
- },
{
"description": "the total number of backups stored by this account",
"name": "backuptotal",
"type": "long"
},
{
- "description": "the total backup storage space (in GiB) owned by the account",
- "name": "backupstoragetotal",
- "type": "long"
- },
- {
- "description": "the total number of projects available for administration by this account",
- "name": "projectavailable",
+ "description": "the total object storage space (in GiB) the account can own",
+ "name": "objectstoragelimit",
"type": "string"
},
{
- "description": "the total secondary storage space (in GiB) owned by account",
- "name": "secondarystoragetotal",
- "type": "float"
+ "description": "the total volume which can be used by this account",
+ "name": "volumelimit",
+ "type": "string"
},
{
- "description": "the total backup storage space (in GiB) available to the account",
- "name": "backupstorageavailable",
+ "description": "the total primary storage space (in GiB) the account can own",
+ "name": "primarystoragelimit",
"type": "string"
},
{
- "description": "the total number of virtual machines running for this account",
- "name": "vmrunning",
- "type": "integer"
+ "description": "the total number of buckets stored by this account",
+ "name": "buckettotal",
+ "type": "long"
},
{
- "description": "the total backup storage space (in GiB) the account can own",
- "name": "backupstoragelimit",
+ "description": "the total memory (in MB) the account can own",
+ "name": "memorylimit",
"type": "string"
},
{
- "description": "the name of the account",
- "name": "name",
- "type": "string"
+ "description": "the total primary storage space (in GiB) owned by account",
+ "name": "primarystoragetotal",
+ "type": "long"
},
+ {},
{
- "description": "the date when this account was created",
- "name": "created",
- "type": "date"
+ "description": "the total number of projects available for administration by this account",
+ "name": "projectavailable",
+ "type": "string"
},
+ {},
{
- "description": "the total number of public ip addresses this account can acquire",
- "name": "iplimit",
- "type": "string"
+ "description": "true if the account requires cleanup",
+ "name": "iscleanuprequired",
+ "type": "boolean"
},
{
- "description": "Base64 string representation of the resource icon",
- "name": "icon",
- "type": "resourceiconresponse"
+ "description": "the total number of projects being administrated by this account",
+ "name": "projecttotal",
+ "type": "long"
},
{
- "description": "path of the Domain the account belongs to",
- "name": "domainpath",
+ "description": "the total number of cpu cores the account can own",
+ "name": "cpulimit",
"type": "string"
},
{
@@ -797,58 +833,48 @@
"type": "long"
},
{
- "description": "the total volume which can be used by this account",
- "name": "volumelimit",
+ "description": "the state of the account",
+ "name": "state",
"type": "string"
},
{
- "description": "the total number of buckets which can be stored by this account",
- "name": "bucketlimit",
+ "description": "id of the Domain the account belongs to",
+ "name": "domainid",
"type": "string"
},
{
- "description": "the total object storage space (in GiB) the account can own",
- "name": "objectstoragelimit",
+ "description": "the total number of vpcs available to be created for this account",
+ "name": "vpcavailable",
"type": "string"
},
{
- "description": "the list of acl groups that account belongs to",
- "name": "groups",
- "type": "list"
- },
- {
- "description": "the total number of networks owned by account",
- "name": "networktotal",
+ "description": "the total number of network traffic bytes received",
+ "name": "receivedbytes",
"type": "long"
},
{
- "description": "the total secondary storage space (in GiB) the account can own",
- "name": "secondarystoragelimit",
- "type": "string"
- },
- {
- "description": "the total number of public ip addresses available for this account to acquire",
- "name": "ipavailable",
+ "description": "the name of the role",
+ "name": "rolename",
"type": "string"
},
{
- "description": "the total volume being used by this account",
- "name": "volumetotal",
- "type": "long"
+ "description": "true if account is default, false otherwise",
+ "name": "isdefault",
+ "type": "boolean"
},
{
- "description": "the total number of templates which have been created by this account",
- "name": "templatetotal",
- "type": "long"
+ "description": "the list of acl groups that account belongs to",
+ "name": "groups",
+ "type": "list"
},
{
- "description": "the total number of vpcs owned by account",
- "name": "vpctotal",
- "type": "long"
+ "description": "the type of the role (Admin, ResourceAdmin, DomainAdmin, User)",
+ "name": "roletype",
+ "type": "string"
},
{
- "description": "the total number of buckets available to this account",
- "name": "bucketavailable",
+ "description": "name of the Domain the account belongs to",
+ "name": "domain",
"type": "string"
},
{
@@ -857,9 +883,9 @@
"type": "string"
},
{
- "description": "the id of the account",
- "name": "id",
- "type": "string"
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
"description": "the total number of virtual machines that can be deployed by this account",
@@ -867,45 +893,19 @@
"type": "string"
},
{
- "description": "the total number of snapshots stored by this account",
- "name": "snapshottotal",
- "type": "long"
- },
- {},
- {
- "description": "true if account is default, false otherwise",
- "name": "isdefault",
- "type": "boolean"
- },
- {
- "description": "the total number of network traffic bytes sent",
- "name": "sentbytes",
- "type": "long"
- },
- {
- "description": "the state of the account",
- "name": "state",
+ "description": "the total secondary storage space (in GiB) the account can own",
+ "name": "secondarystoragelimit",
"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": "the total number of templates which can be created by this account",
- "name": "templatelimit",
+ "description": "the total number of public ip addresses this account can acquire",
+ "name": "iplimit",
"type": "string"
},
{
- "description": "the total number of projects being administrated by this account",
- "name": "projecttotal",
+ "description": "the total number of virtual machines deployed by this account",
+ "name": "vmtotal",
"type": "long"
- },
- {
- "description": "id of the Domain the account belongs to",
- "name": "domainid",
- "type": "string"
}
],
"since": "4.2.0"
@@ -916,74 +916,93 @@
"name": "copyIso",
"params": [
{
- "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": "Template ID.",
"length": 255,
- "name": "destzoneids",
- "related": "createZone,updateZone,listZones,listZones",
- "required": false,
- "type": "list"
+ "name": "id",
+ "related": "registerVnfTemplate,registerVnfTemplate,listVnfTemplates,listVnfTemplates,updateVnfTemplate,updateVnfTemplate,prepareTemplate,copyIso,listIsos,registerIso,updateIso,copyTemplate,createTemplate,listTemplates,registerTemplate,updateTemplate,listTemplates,createTemplate,copyTemplate,registerTemplate,registerIso,copyIso,listIsos,linkUserDataToTemplate",
+ "required": true,
+ "type": "uuid"
},
{
- "description": "ID of the zone the template is being copied to.",
+ "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": "destzoneid",
+ "name": "sourcezoneid",
"related": "createZone,updateZone,listZones,listZones",
"required": false,
"type": "uuid"
},
{
- "description": "Template ID.",
+ "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": "id",
- "related": "prepareTemplate,copyIso,listIsos,registerIso,updateIso,copyTemplate,createTemplate,listTemplates,registerTemplate,updateTemplate,listTemplates,createTemplate,copyTemplate,registerTemplate,registerIso,copyIso,listIsos,linkUserDataToTemplate,registerVnfTemplate,registerVnfTemplate,listVnfTemplates,listVnfTemplates,updateVnfTemplate,updateVnfTemplate",
- "required": true,
- "type": "uuid"
+ "name": "destzoneids",
+ "related": "createZone,updateZone,listZones,listZones",
+ "required": false,
+ "type": "list"
},
{
- "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 being copied to.",
"length": 255,
- "name": "sourcezoneid",
+ "name": "destzoneid",
"related": "createZone,updateZone,listZones,listZones",
"required": false,
"type": "uuid"
}
],
- "related": "prepareTemplate,listIsos,registerIso,updateIso,copyTemplate,createTemplate,listTemplates,registerTemplate,updateTemplate,listTemplates,createTemplate,copyTemplate,registerTemplate,registerIso,copyIso,listIsos,linkUserDataToTemplate,registerVnfTemplate,registerVnfTemplate,listVnfTemplates,listVnfTemplates,updateVnfTemplate,updateVnfTemplate",
+ "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": "the date this template was created",
- "name": "created",
- "type": "date"
+ "description": "true if this template is a featured template, false otherwise",
+ "name": "isfeatured",
+ "type": "boolean"
},
{
- "description": "true if the ISO is bootable, false otherwise",
- "name": "bootable",
- "type": "boolean"
+ "description": "additional key/value details tied with template",
+ "name": "details",
+ "type": "map"
+ },
+ {
+ "description": "the processor bit size",
+ "name": "bits",
+ "type": "int"
+ },
+ {
+ "description": "the type of the template",
+ "name": "templatetype",
+ "type": "string"
},
{
"description": "true if the template is managed across all Zones, false otherwise",
"name": "crossZones",
"type": "boolean"
},
- {},
{
- "description": "true if the template is extractable, false otherwise",
- "name": "isextractable",
+ "description": "true if the template is ready to be deployed from, false otherwise.",
+ "name": "isready",
"type": "boolean"
},
{
- "description": "the date this template was removed",
- "name": "removed",
- "type": "date"
+ "description": "KVM Only: true if template is directly downloaded to Primary Storage bypassing Secondary Storage",
+ "name": "directdownload",
+ "type": "boolean"
},
{
- "description": "the account id to which the template belongs",
- "name": "accountid",
+ "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",
"type": "string"
},
{
- "description": "the template ID of the parent template if present",
- "name": "sourcetemplateid",
+ "description": "true if the ISO is bootable, false otherwise",
+ "name": "bootable",
+ "type": "boolean"
+ },
+ {
+ "description": "the userdata override policy with the userdata provided while deploying VM",
+ "name": "userdatapolicy",
"type": "string"
},
{
@@ -992,38 +1011,40 @@
"type": "string"
},
{
- "description": "the physical size of the template",
- "name": "physicalsize",
+ "description": "the size of the template",
+ "name": "size",
"type": "long"
},
{
- "description": "true if template is sshkey enabled, false otherwise",
- "name": "sshkeyenabled",
- "type": "boolean"
+ "description": "Base64 string representation of the resource icon",
+ "name": "icon",
+ "type": "resourceiconresponse"
},
{
- "description": "VMware only: additional key/value details tied with deploy-as-is template",
- "name": "deployasisdetails",
- "type": "map"
+ "description": "The ID of extension linked to this template",
+ "name": "extensionid",
+ "type": "string"
},
+ {},
{
- "description": "the ID of the secondary storage host for the template",
- "name": "hostid",
- "type": "string"
+ "description": "If true it indicates that the template can be used for CKS cluster deployments",
+ "name": "forcks",
+ "type": "boolean"
},
+ {},
{
- "description": "Base64 string representation of the resource icon",
- "name": "icon",
- "type": "resourceiconresponse"
+ "description": "true if the template is extractable, false otherwise",
+ "name": "isextractable",
+ "type": "boolean"
},
{
- "description": "the ID of the zone for this template",
- "name": "zoneid",
+ "description": "path of the Domain the template belongs to",
+ "name": "domainpath",
"type": "string"
},
{
- "description": "the name of the secondary storage host for the template",
- "name": "hostname",
+ "description": "the URL which the template/iso is registered from",
+ "name": "url",
"type": "string"
},
{
@@ -1032,54 +1053,85 @@
"type": "string"
},
{
- "description": "the project id of the template",
- "name": "projectid",
+ "description": "the ID of the domain to which the template belongs",
+ "name": "domainid",
"type": "string"
},
{
- "description": "the template ID",
- "name": "id",
+ "description": "if Datadisk template, then id of the root disk template this template belongs to",
+ "name": "parenttemplateid",
"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",
+ "description": "true if template requires HVM enabled, false otherwise",
+ "name": "requireshvm",
+ "type": "boolean"
+ },
+ {
+ "description": "checksum of the template",
+ "name": "checksum",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "the hypervisor on which the template runs",
+ "name": "hypervisor",
+ "type": "string"
},
{
- "description": "if Datadisk template, then id of the root disk template this template belongs to",
- "name": "parenttemplateid",
+ "description": "the account id to which the template belongs",
+ "name": "accountid",
"type": "string"
},
{
- "description": "the name of the OS type for this template.",
- "name": "ostypename",
+ "description": "the account name to which the template belongs",
+ "name": "account",
"type": "string"
},
{
- "description": "true if the reset password feature is enabled, false otherwise",
- "name": "passwordenabled",
+ "description": "true if the entity/resource has annotations",
+ "name": "hasannotations",
"type": "boolean"
},
{
- "description": "The name of extension linked to this template",
- "name": "extensionname",
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the size of the template",
- "name": "size",
- "type": "long"
+ "description": "the template ID of the parent template if present",
+ "name": "sourcetemplateid",
+ "type": "string"
},
{
- "description": "the processor bit size",
- "name": "bits",
- "type": "int"
+ "description": "the name of the secondary storage host for the template",
+ "name": "hostname",
+ "type": "string"
+ },
+ {
+ "description": "the ID of the secondary storage host for the template",
+ "name": "hostid",
+ "type": "string"
+ },
+ {},
+ {
+ "description": "the format of the template.",
+ "name": "format",
+ "type": "imageformat"
+ },
+ {
+ "description": "the project name of the template",
+ "name": "project",
+ "type": "string"
+ },
+ {
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
+ },
+ {
+ "description": "true if the reset password feature is enabled, false otherwise",
+ "name": "passwordenabled",
+ "type": "boolean"
},
{
"description": "the name of userdata linked to this template",
@@ -1087,33 +1139,42 @@
"type": "string"
},
{
- "description": "the URL which the template/iso is registered from",
- "name": "url",
+ "description": "the date this template was created",
+ "name": "created",
+ "type": "date"
+ },
+ {
+ "description": "the project id of the template",
+ "name": "projectid",
"type": "string"
},
- {},
{
- "description": "true if the template is ready to be deployed from, false otherwise.",
- "name": "isready",
- "type": "boolean"
+ "description": "the name of the zone for this template",
+ "name": "zonename",
+ "type": "string"
},
{
- "description": "the list of resource tags associated",
- "name": "tags",
- "response": [
- {
- "description": "resource type",
- "name": "resourcetype",
- "type": "string"
- },
- {
- "description": "id of the resource",
- "name": "resourceid",
- "type": "string"
- },
+ "description": "the tag of this template",
+ "name": "templatetag",
+ "type": "string"
+ },
+ {
+ "description": "the ID of the zone for this template",
+ "name": "zoneid",
+ "type": "string"
+ },
+ {
+ "description": "the name of the domain to which the template belongs",
+ "name": "domain",
+ "type": "string"
+ },
+ {
+ "description": "the list of resource tags associated",
+ "name": "tags",
+ "response": [
{
- "description": "the project id the tag belongs to",
- "name": "projectid",
+ "description": "tag value",
+ "name": "value",
"type": "string"
},
{
@@ -1122,8 +1183,8 @@
"type": "string"
},
{
- "description": "tag key name",
- "name": "key",
+ "description": "customer associated with the tag",
+ "name": "customer",
"type": "string"
},
{
@@ -1132,18 +1193,23 @@
"type": "string"
},
{
- "description": "the ID of the domain associated with the tag",
- "name": "domainid",
+ "description": "tag key name",
+ "name": "key",
"type": "string"
},
{
- "description": "customer associated with the tag",
- "name": "customer",
+ "description": "the project id the tag belongs to",
+ "name": "projectid",
"type": "string"
},
{
- "description": "tag value",
- "name": "value",
+ "description": "resource type",
+ "name": "resourcetype",
+ "type": "string"
+ },
+ {
+ "description": "the project name where tag belongs to",
+ "name": "project",
"type": "string"
},
{
@@ -1152,72 +1218,56 @@
"type": "string"
},
{
- "description": "the project name where tag belongs to",
- "name": "project",
+ "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 tag of this template",
- "name": "templatetag",
- "type": "string"
- },
- {
- "description": "the id of userdata linked to this template",
- "name": "userdataid",
- "type": "string"
- },
- {
- "description": "the name of the zone for this template",
- "name": "zonename",
- "type": "string"
- },
- {
- "description": "the status of the template",
- "name": "status",
- "type": "string"
+ "description": "the physical size of the template",
+ "name": "physicalsize",
+ "type": "long"
},
{
- "description": "The ID of extension linked to this template",
- "name": "extensionid",
+ "description": "the template name",
+ "name": "name",
"type": "string"
},
- {},
{
- "description": "true if this template is a featured template, false otherwise",
- "name": "isfeatured",
- "type": "boolean"
+ "description": "VMware only: additional key/value details tied with deploy-as-is template",
+ "name": "deployasisdetails",
+ "type": "map"
},
{
- "description": "the ID of the domain to which the template belongs",
- "name": "domainid",
+ "description": "the template ID",
+ "name": "id",
"type": "string"
},
{
- "description": "the project name of the template",
- "name": "project",
+ "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 account name to which the template belongs",
- "name": "account",
- "type": "string"
+ "description": "the date this template was removed",
+ "name": "removed",
+ "type": "date"
},
{
- "description": "path of the Domain the template belongs to",
- "name": "domainpath",
+ "description": "the status of the template",
+ "name": "status",
"type": "string"
},
{
- "description": "true if the entity/resource has annotations",
- "name": "hasannotations",
- "type": "boolean"
- },
- {
- "description": "If true it indicates that the template can be used for CKS cluster deployments",
- "name": "forcks",
+ "description": "true if template contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory",
+ "name": "isdynamicallyscalable",
"type": "boolean"
},
{
@@ -1225,85 +1275,35 @@
"name": "ispublic",
"type": "boolean"
},
- {
- "description": "the hypervisor on which the template runs",
- "name": "hypervisor",
- "type": "string"
- },
{
"description": "if root disk template, then ids of the datas disk templates this template owns",
"name": "childtemplates",
"type": "set"
},
{
- "description": "the userdata override policy with the userdata provided while deploying VM",
- "name": "userdatapolicy",
- "type": "string"
- },
- {
- "description": "true if template contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory",
- "name": "isdynamicallyscalable",
- "type": "boolean"
- },
- {
- "description": "the template name",
- "name": "name",
- "type": "string"
- },
- {
- "description": "the template display text",
- "name": "displaytext",
- "type": "string"
- },
- {
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
- },
- {
- "description": "the format of the template.",
- "name": "format",
- "type": "imageformat"
- },
- {
- "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": "additional key/value details tied with template",
- "name": "details",
- "type": "map"
- },
- {
- "description": "KVM Only: true if template is directly downloaded to Primary Storage bypassing Secondary Storage",
- "name": "directdownload",
- "type": "boolean"
- },
- {
- "description": "checksum of the template",
- "name": "checksum",
+ "description": "the name of the OS type for this template.",
+ "name": "ostypename",
"type": "string"
},
{
- "description": "true if template requires HVM enabled, false otherwise",
- "name": "requireshvm",
+ "description": "true if template is sshkey enabled, false otherwise",
+ "name": "sshkeyenabled",
"type": "boolean"
},
{
- "description": "the type of the template",
- "name": "templatetype",
+ "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": "VMware only: true if template is deployed without orchestrating disks and networks but \"as-is\" defined in the template.",
- "name": "deployasis",
- "type": "boolean"
}
]
},
@@ -1322,18 +1322,17 @@
}
],
"response": [
- {
- "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": "true if operation is executed successfully",
+ "name": "success",
+ "type": "boolean"
+ },
{
"description": "any text associated with the success or failure",
"name": "displaytext",
@@ -1343,7 +1342,8 @@
"description": "the current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
- }
+ },
+ {}
]
},
{
@@ -1351,13 +1351,6 @@
"isasync": false,
"name": "listVsphereStoragePolicyCompatiblePools",
"params": [
- {
- "description": "",
- "length": 255,
- "name": "pagesize",
- "required": false,
- "type": "integer"
- },
{
"description": "ID of the storage policy",
"length": 255,
@@ -1369,10 +1362,18 @@
{
"description": "",
"length": 255,
- "name": "page",
+ "name": "pagesize",
"required": false,
"type": "integer"
},
+ {
+ "description": "ID of the zone",
+ "length": 255,
+ "name": "zoneid",
+ "related": "createZone,updateZone,listZones,listZones",
+ "required": false,
+ "type": "uuid"
+ },
{
"description": "List by keyword",
"length": 255,
@@ -1381,95 +1382,89 @@
"type": "string"
},
{
- "description": "ID of the zone",
+ "description": "",
"length": 255,
- "name": "zoneid",
- "related": "createZone,updateZone,listZones,listZones",
+ "name": "page",
"required": false,
- "type": "uuid"
+ "type": "integer"
}
],
"related": "cancelStorageMaintenance,createStoragePool,listStoragePools,findStoragePoolsForMigration,enableStorageMaintenance,updateStoragePool,syncStoragePool,updateStorageCapabilities",
"response": [
{
- "description": "the nfs mount options for the storage pool",
- "name": "nfsmountopts",
+ "description": "the Zone ID of the storage pool",
+ "name": "zoneid",
"type": "string"
},
{
- "description": "the storage pool details",
- "name": "details",
- "type": "map"
+ "description": "the ID of the storage pool",
+ "name": "id",
+ "type": "string"
},
+ {},
{
- "description": "total min IOPS currently in use by volumes",
- "name": "allocatediops",
+ "description": "the total disk size of the storage pool",
+ "name": "disksizetotal",
"type": "long"
},
{
- "description": "the date and time the storage pool was created",
- "name": "created",
- "type": "date"
- },
- {
- "description": "the host's currently used disk size",
- "name": "disksizeused",
- "type": "long"
+ "description": "whether this pool is managed or not",
+ "name": "managed",
+ "type": "boolean"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "the name of the storage pool",
+ "name": "name",
+ "type": "string"
},
{
- "description": "the storage pool custom stats",
- "name": "storagecustomstats",
- "type": "map"
+ "description": "the Zone name of the storage pool",
+ "name": "zonename",
+ "type": "string"
},
{
- "description": "whether this pool is managed or not",
- "name": "managed",
- "type": "boolean"
+ "description": "the tags for the storage pool",
+ "name": "tags",
+ "type": "string"
},
{
- "description": "the state of the storage pool",
- "name": "state",
- "type": "storagepoolstatus"
+ "description": "the overprovisionfactor for the storage pool",
+ "name": "overprovisionfactor",
+ "type": "string"
},
{
- "description": "the name of the cluster for the storage pool",
- "name": "clustername",
+ "description": "the storage pool path",
+ "name": "path",
"type": "string"
},
{
- "description": "the name of the storage pool",
- "name": "name",
+ "description": "the storage pool type",
+ "name": "type",
"type": "string"
},
{
- "description": "the ID of the cluster for the storage pool",
- "name": "clusterid",
- "type": "string"
+ "description": "true if this pool is suitable to migrate a volume, false otherwise",
+ "name": "suitableformigration",
+ "type": "boolean"
},
{
- "description": "the Zone name of the storage pool",
- "name": "zonename",
- "type": "string"
+ "description": "the storage pool details",
+ "name": "details",
+ "type": "map"
},
- {},
{
- "description": "the tags for the storage pool",
- "name": "tags",
+ "description": "the nfs mount options for the storage pool",
+ "name": "nfsmountopts",
"type": "string"
},
{
- "description": "the storage access groups for the storage pool",
- "name": "storageaccessgroups",
+ "description": "the Pod ID of the storage pool",
+ "name": "podid",
"type": "string"
},
{
- "description": "the total disk size of the storage pool",
- "name": "disksizetotal",
+ "description": "bytes CloudStack can provision from this storage pool",
+ "name": "capacitybytes",
"type": "long"
},
{
@@ -1478,43 +1473,54 @@
"type": "boolean"
},
{
- "description": "IOPS CloudStack can provision from this storage pool",
- "name": "capacityiops",
+ "description": "the scope of the storage pool",
+ "name": "scope",
+ "type": "string"
+ },
+ {
+ "description": "the pool's currently allocated disk size",
+ "name": "disksizeallocated",
"type": "long"
},
+ {},
{
- "description": "true if the entity/resource has annotations",
- "name": "hasannotations",
- "type": "boolean"
+ "description": "the IP address of the storage pool",
+ "name": "ipaddress",
+ "type": "string"
},
{
- "description": "the Zone ID of the storage pool",
- "name": "zoneid",
+ "description": "the hypervisor type of the storage pool",
+ "name": "hypervisor",
"type": "string"
},
{
- "description": "total IOPS currently in use",
- "name": "usediops",
+ "description": "the pool's currently used disk size",
+ "name": "disksizeused",
"type": "long"
},
{
- "description": "true if this pool is suitable to migrate a volume, false otherwise",
- "name": "suitableformigration",
- "type": "boolean"
+ "description": "IOPS CloudStack can provision from this storage pool",
+ "name": "capacityiops",
+ "type": "long"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
+ "description": "the date and time the storage pool was created",
+ "name": "created",
+ "type": "date"
},
{
- "description": "the scope of the storage pool",
- "name": "scope",
+ "description": "the ID of the cluster for the storage pool",
+ "name": "clusterid",
"type": "string"
},
{
- "description": "the storage pool type",
- "name": "type",
+ "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"
},
{
@@ -1523,50 +1529,49 @@
"type": "map"
},
{
- "description": "the host's currently allocated disk size",
- "name": "disksizeallocated",
- "type": "long"
+ "description": "the storage pool custom stats",
+ "name": "storagecustomstats",
+ "type": "map"
},
- {},
{
- "description": "the Pod ID of the storage pool",
- "name": "podid",
- "type": "string"
+ "description": "total IOPS currently in use",
+ "name": "usediops",
+ "type": "long"
},
{
- "description": "the ID of the storage pool",
- "name": "id",
+ "description": "the storage access groups for the storage pool",
+ "name": "storageaccessgroups",
"type": "string"
},
{
- "description": "the IP address of the storage pool",
- "name": "ipaddress",
- "type": "string"
+ "description": "true if the entity/resource has annotations",
+ "name": "hasannotations",
+ "type": "boolean"
},
{
- "description": "the Pod name of the storage pool",
- "name": "podname",
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the storage pool path",
- "name": "path",
+ "description": "Storage provider for this pool",
+ "name": "provider",
"type": "string"
},
{
- "description": "the overprovisionfactor for the storage pool",
- "name": "overprovisionfactor",
+ "description": "the name of the cluster for the storage pool",
+ "name": "clustername",
"type": "string"
},
{
- "description": "the hypervisor type of the storage pool",
- "name": "hypervisor",
- "type": "string"
+ "description": "total min IOPS currently in use by volumes",
+ "name": "allocatediops",
+ "type": "long"
},
{
- "description": "Storage provider for this pool",
- "name": "provider",
- "type": "string"
+ "description": "the state of the storage pool",
+ "name": "state",
+ "type": "storagepoolstatus"
}
]
},
@@ -1575,14 +1580,6 @@
"isasync": true,
"name": "rebootSystemVm",
"params": [
- {
- "description": "The ID of the system virtual machine",
- "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,
@@ -1590,217 +1587,225 @@
"required": false,
"since": "4.16.0",
"type": "boolean"
+ },
+ {
+ "description": "The ID of the system virtual machine",
+ "length": 255,
+ "name": "id",
+ "related": "destroySystemVm,listSystemVms,migrateSystemVm,rebootSystemVm,startSystemVm,stopSystemVm,changeServiceForSystemVm,scaleSystemVm",
+ "required": true,
+ "type": "uuid"
}
],
"related": "destroySystemVm,listSystemVms,migrateSystemVm,startSystemVm,stopSystemVm,changeServiceForSystemVm,scaleSystemVm",
"response": [
{
- "description": "CPU arch of the system VM",
- "name": "arch",
- "type": "string"
- },
- {
- "description": "the template ID for the system VM",
- "name": "templateid",
+ "description": "the link local MAC address for the system vm",
+ "name": "linklocalmacaddress",
"type": "string"
},
{
- "description": "the private IP address for the system VM",
- "name": "privateip",
+ "description": "the public MAC address for the system VM",
+ "name": "publicmacaddress",
"type": "string"
},
{
- "description": "the host ID for the system VM",
- "name": "hostid",
+ "description": "the system VM type",
+ "name": "systemvmtype",
"type": "string"
},
{
- "description": "the template name for the system VM",
- "name": "templatename",
+ "description": "the name of the service offering of the system virtual machine.",
+ "name": "serviceofferingname",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
- {
- "description": "the hypervisor on which the template runs",
- "name": "hypervisor",
- "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",
"type": "string"
},
+ {},
{
"description": "the state of the system VM",
"name": "state",
"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 Zone ID for the system VM",
+ "name": "zoneid",
+ "type": "string"
},
{
- "description": "the Zone name for the system VM",
- "name": "zonename",
+ "description": "the systemvm agent version",
+ "name": "version",
"type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "the name of the system VM",
+ "name": "name",
"type": "string"
},
{
- "description": "the system VM type",
- "name": "systemvmtype",
+ "description": "the Pod name for the system VM",
+ "name": "podname",
"type": "string"
},
{
- "description": "the Pod ID for the system VM",
- "name": "podid",
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the Pod name for the system VM",
- "name": "podname",
+ "description": "the network domain for the system VM",
+ "name": "networkdomain",
"type": "string"
},
{
- "description": "the ID of the service offering of the system virtual machine.",
- "name": "serviceofferingid",
+ "description": "the control state of the host for the system VM",
+ "name": "hostcontrolstate",
"type": "string"
},
{
- "description": "the name of the service offering of the system virtual machine.",
- "name": "serviceofferingname",
+ "description": "the private MAC address for the system VM",
+ "name": "privatemacaddress",
"type": "string"
},
{
- "description": "the public netmask for the system VM",
- "name": "publicnetmask",
+ "description": "the link local IP address for the system vm",
+ "name": "linklocalip",
"type": "string"
},
{
- "description": "the second DNS for the system VM",
- "name": "dns2",
+ "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",
"type": "string"
},
{
- "description": "the network domain for the system VM",
- "name": "networkdomain",
+ "description": "the private netmask for the system VM",
+ "name": "privatenetmask",
"type": "string"
},
{
- "description": "the private MAC address for the system VM",
- "name": "privatemacaddress",
+ "description": "the ID of the service offering of the system virtual machine.",
+ "name": "serviceofferingid",
"type": "string"
},
{
- "description": "the first DNS for the system VM",
- "name": "dns1",
+ "description": "the host ID for the system VM",
+ "name": "hostid",
"type": "string"
},
{
- "description": "true if the entity/resource has annotations",
- "name": "hasannotations",
- "type": "boolean"
+ "description": "the hypervisor on which the template runs",
+ "name": "hypervisor",
+ "type": "string"
},
- {},
{
"description": "guest vlan range",
"name": "guestvlan",
"type": "string"
},
{
- "description": "the hostname for the system VM",
- "name": "hostname",
+ "description": "the link local netmask for the system vm",
+ "name": "linklocalnetmask",
"type": "string"
},
{
- "description": "the agent state of the system VM",
- "name": "agentstate",
+ "description": "the Zone name for the system VM",
+ "name": "zonename",
"type": "string"
},
{
- "description": "the link local MAC address for the system vm",
- "name": "linklocalmacaddress",
+ "description": "the second DNS for the system VM",
+ "name": "dns2",
"type": "string"
},
{
- "description": "the control state of the host for the system VM",
- "name": "hostcontrolstate",
+ "description": "the public IP address for the system VM",
+ "name": "publicip",
"type": "string"
},
{
- "description": "the number of active console sessions for the console proxy system vm",
- "name": "activeviewersessions",
- "type": "integer"
+ "description": "true if the entity/resource has annotations",
+ "name": "hasannotations",
+ "type": "boolean"
},
{
- "description": "the link local netmask for the system vm",
- "name": "linklocalnetmask",
+ "description": "the template name for the system VM",
+ "name": "templatename",
"type": "string"
},
{
- "description": "the Zone ID for the system VM",
- "name": "zoneid",
+ "description": "the last disconnected date of host",
+ "name": "disconnected",
+ "type": "date"
+ },
+ {
+ "description": "the Pod ID for the system VM",
+ "name": "podid",
"type": "string"
},
{
- "description": "the ID of the system VM",
- "name": "id",
+ "description": "the template ID for the system VM",
+ "name": "templateid",
"type": "string"
},
{
- "description": "the date and time the system VM was created",
- "name": "created",
- "type": "date"
+ "description": "the agent state of the system VM",
+ "name": "agentstate",
+ "type": "string"
},
{
- "description": "public vlan range",
- "name": "publicvlan",
- "type": "list"
+ "description": "the private IP address for the system VM",
+ "name": "privateip",
+ "type": "string"
},
{
- "description": "the public MAC address for the system VM",
- "name": "publicmacaddress",
+ "description": "the public netmask for the system VM",
+ "name": "publicnetmask",
"type": "string"
},
{
- "description": "the last disconnected date of host",
- "name": "disconnected",
- "type": "date"
+ "description": "the number of active console sessions for the console proxy system vm",
+ "name": "activeviewersessions",
+ "type": "integer"
},
{
- "description": "the link local IP address for the system vm",
- "name": "linklocalip",
+ "description": "CPU arch of the system VM",
+ "name": "arch",
"type": "string"
},
- {},
{
- "description": "the name of the system VM",
- "name": "name",
- "type": "string"
+ "description": "public vlan range",
+ "name": "publicvlan",
+ "type": "list"
},
{
- "description": "the systemvm agent version",
- "name": "version",
+ "description": "the ID of the system VM",
+ "name": "id",
"type": "string"
},
{
- "description": "the public IP address for the system VM",
- "name": "publicip",
- "type": "string"
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "description": "the private netmask for the system VM",
- "name": "privatenetmask",
+ "description": "the first DNS for the system VM",
+ "name": "dns1",
"type": "string"
- }
+ },
+ {}
]
},
{
@@ -1816,6 +1821,13 @@
"required": false,
"type": "uuid"
},
+ {
+ "description": "List by keyword",
+ "length": 255,
+ "name": "keyword",
+ "required": false,
+ "type": "string"
+ },
{
"description": "list dedicated zones by affinity group",
"length": 255,
@@ -1846,13 +1858,6 @@
"required": false,
"type": "uuid"
},
- {
- "description": "List by keyword",
- "length": 255,
- "name": "keyword",
- "required": false,
- "type": "string"
- },
{
"description": "the name of the account associated with the zone. Must be used with domainId.",
"length": 255,
@@ -1863,14 +1868,29 @@
],
"related": "dedicateZone",
"response": [
+ {
+ "description": "the Name of the Zone",
+ "name": "zonename",
+ "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",
+ "name": "id",
+ "type": "string"
+ },
{
"description": "the UUID of the latest async job acting on this object",
"name": "jobid",
"type": "string"
},
{
- "description": "the Name of the Zone",
- "name": "zonename",
+ "description": "the Dedication Affinity Group ID of the zone",
+ "name": "affinitygroupid",
"type": "string"
},
{},
@@ -1879,31 +1899,16 @@
"name": "accountid",
"type": "string"
},
+ {},
{
"description": "the ID of the Zone",
"name": "zoneid",
"type": "string"
},
- {
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
{
"description": "the domain ID to which the Zone is dedicated",
"name": "domainid",
"type": "string"
- },
- {
- "description": "the Dedication Affinity Group ID of the zone",
- "name": "affinitygroupid",
- "type": "string"
- },
- {},
- {
- "description": "the ID of the dedicated resource",
- "name": "id",
- "type": "string"
}
]
},
@@ -1923,51 +1928,51 @@
"related": "",
"response": [
{
- "description": "available iops of the pool",
- "name": "maxiops",
- "type": "long"
- },
- {
- "description": "the name of the storage pool",
- "name": "name",
+ "description": "controller of the pool",
+ "name": "controllerid",
"type": "string"
},
{
- "description": "the current available space of the pool",
- "name": "size",
- "type": "long"
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "description": "controller of the pool",
- "name": "controllerid",
+ "description": "default gateway of the pool",
+ "name": "gateway",
"type": "string"
},
{
- "description": "the ID of the storage pool",
- "name": "id",
- "type": "string"
+ "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",
"type": "string"
},
{},
+ {},
{
"description": "the state of the storage pool",
"name": "state",
"type": "string"
},
{
- "description": "default gateway of the pool",
- "name": "gateway",
+ "description": "the ID of the storage pool",
+ "name": "id",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "available iops of the pool",
+ "name": "maxiops",
+ "type": "long"
+ },
+ {
+ "description": "the name of the storage pool",
+ "name": "name",
+ "type": "string"
}
]
},
@@ -1995,56 +2000,44 @@
],
"related": "createBgpPeer,listBgpPeers,updateBgpPeer,dedicateBgpPeer,releaseBgpPeer,changeBgpPeersForVpc",
"response": [
- {},
+ {
+ "description": "IPv6 address of bgp peer",
+ "name": "ip6address",
+ "type": "string"
+ },
{
"description": "the current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
},
{
- "description": "AS number of bgp peer",
- "name": "asnumber",
- "type": "long"
- },
- {
- "description": "name of zone to which the bgp peer belongs to.",
- "name": "zonename",
+ "description": "the project name of the bgp peer",
+ "name": "project",
"type": "string"
},
{
- "description": "the domain name of the bgp peer",
- "name": "domain",
+ "description": "the account of the bgp peer",
+ "name": "account",
"type": "string"
},
{
- "description": "IPv6 address of bgp peer",
- "name": "ip6address",
+ "description": "name of zone to which the bgp peer belongs to.",
+ "name": "zonename",
"type": "string"
},
{
- "description": "the project id of the bgp peer",
- "name": "projectid",
+ "description": "the domain ID of the bgp peer",
+ "name": "domainid",
"type": "string"
},
- {
- "description": "additional key/value details of the bgp peer",
- "name": "details",
- "type": "map"
- },
{
"description": "password of bgp peer",
"name": "password",
"type": "string"
},
- {},
- {
- "description": "date when this bgp peer was created.",
- "name": "created",
- "type": "date"
- },
{
- "description": "the project name of the bgp peer",
- "name": "project",
+ "description": "id of the bgp peer",
+ "name": "id",
"type": "string"
},
{
@@ -2052,30 +2045,42 @@
"name": "zoneid",
"type": "string"
},
- {
- "description": "the account of the bgp peer",
- "name": "account",
- "type": "string"
- },
{
"description": "IPv4 address of bgp peer",
"name": "ipaddress",
"type": "string"
},
+ {},
{
- "description": "id of the bgp peer",
- "name": "id",
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "AS number of bgp peer",
+ "name": "asnumber",
+ "type": "long"
+ },
+ {},
+ {
+ "description": "the domain name of the bgp peer",
+ "name": "domain",
"type": "string"
},
{
- "description": "the domain ID of the bgp peer",
- "name": "domainid",
+ "description": "the project id of the bgp peer",
+ "name": "projectid",
"type": "string"
+ },
+ {
+ "description": "additional key/value details of the bgp peer",
+ "name": "details",
+ "type": "map"
+ },
+ {
+ "description": "date when this bgp peer was created.",
+ "name": "created",
+ "type": "date"
}
],
"since": "4.20.0"
@@ -2085,13 +2090,6 @@
"isasync": false,
"name": "listTungstenFabricLBHealthMonitor",
"params": [
- {
- "description": "",
- "length": 255,
- "name": "pagesize",
- "required": false,
- "type": "integer"
- },
{
"description": "List by keyword",
"length": 255,
@@ -2099,24 +2097,52 @@
"required": false,
"type": "string"
},
+ {
+ "description": "the ID of lb rule",
+ "length": 255,
+ "name": "lbruleid",
+ "related": "createIpv6FirewallRule,listIpv6FirewallRules,updateIpv6FirewallRule,createPortForwardingRule,listPortForwardingRules,updatePortForwardingRule,createIpForwardingRule,listIpForwardingRules,createRoutingFirewallRule,listRoutingFirewallRules,updateRoutingFirewallRule",
+ "required": true,
+ "type": "uuid"
+ },
{
"description": "",
"length": 255,
- "name": "page",
+ "name": "pagesize",
"required": false,
"type": "integer"
},
{
- "description": "the ID of lb rule",
+ "description": "",
"length": 255,
- "name": "lbruleid",
- "related": "createRoutingFirewallRule,listRoutingFirewallRules,updateRoutingFirewallRule,createPortForwardingRule,listPortForwardingRules,updatePortForwardingRule,createIpForwardingRule,listIpForwardingRules,createIpv6FirewallRule,listIpv6FirewallRules,updateIpv6FirewallRule",
- "required": true,
- "type": "uuid"
+ "name": "page",
+ "required": false,
+ "type": "integer"
}
],
"related": "updateTungstenFabricLBHealthMonitor",
"response": [
+ {
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
+ },
+ {
+ "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",
+ "type": "string"
+ },
{
"description": "the health monitor timeout",
"name": "timeout",
@@ -2128,66 +2154,45 @@
"type": "string"
},
{
- "description": "Tungsten-Fabric provider zone id",
- "name": "zoneid",
- "type": "long"
+ "description": "the LB rule ID",
+ "name": "lbruleid",
+ "type": "string"
},
{
- "description": "Tungsten-Fabric provider zone name",
- "name": "zonename",
+ "description": "the health monitor expected code",
+ "name": "expectedcode",
"type": "string"
},
- {},
{
"description": "the health monitor UUID",
"name": "uuid",
"type": "string"
},
- {
- "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 retry",
"name": "retry",
"type": "int"
},
{
- "description": "the health monitor expected code",
- "name": "expectedcode",
+ "description": "Tungsten-Fabric provider zone name",
+ "name": "zonename",
"type": "string"
},
{
- "description": "the health monitor type",
- "name": "type",
+ "description": "the health monitor http method",
+ "name": "httpmethod",
"type": "string"
},
+ {},
{
"description": "the health monitor interval",
"name": "interval",
"type": "int"
},
- {},
- {
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
- },
- {
- "description": "the LB rule ID",
- "name": "lbruleid",
- "type": "string"
- },
{
- "description": "the health monitor http method",
- "name": "httpmethod",
- "type": "string"
+ "description": "Tungsten-Fabric provider zone id",
+ "name": "zoneid",
+ "type": "long"
}
]
},
@@ -2200,7 +2205,7 @@
"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": "assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMachine,restoreVirtualMachine,startVirtualMachine,stopVirtualMachine,updateDefaultNicForVirtualMachine,updateVirtua [...]
+ "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"
},
@@ -2215,76 +2220,81 @@
],
"related": "createKubernetesCluster,startKubernetesCluster,listKubernetesClusters,scaleKubernetesCluster,upgradeKubernetesCluster,addNodesToKubernetesCluster",
"response": [
+ {
+ "description": "the name of the service offering of the Kubernetes cluster",
+ "name": "serviceofferingname",
+ "type": "string"
+ },
+ {},
+ {
+ "description": "the name of the network of the Kubernetes cluster",
+ "name": "associatednetworkname",
+ "type": "string"
+ },
{
"description": "the name of the Kubernetes cluster",
"name": "name",
"type": "string"
},
{
- "description": "the list of virtualmachine associated with this Kubernetes cluster",
- "name": "virtualmachines",
- "type": "list"
+ "description": "the cpu cores of the Kubernetes cluster",
+ "name": "cpunumber",
+ "type": "string"
},
{
- "description": "the name of the service offering of the control nodes on the Kubernetes cluster",
- "name": "controlofferingname",
+ "description": "the ID of the service offering of the Kubernetes cluster",
+ "name": "serviceofferingid",
"type": "string"
},
{
- "description": "Minimum size of the cluster",
- "name": "minsize",
- "type": "long"
+ "description": "the ID of the service offering of the control nodes on the Kubernetes cluster",
+ "name": "controlofferingid",
+ "type": "string"
},
{
- "description": "Maximum size of the cluster",
- "name": "maxsize",
- "type": "long"
+ "description": "the ID of the domain in which the Kubernetes cluster exists",
+ "name": "domainid",
+ "type": "string"
},
{
- "description": "Public IP Addresses of the etcd nodes",
- "name": "etcdips",
- "type": "map"
+ "description": "Minimum size of the cluster",
+ "name": "minsize",
+ "type": "long"
},
{
"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 name of the service offering of the etcd nodes on the Kubernetes cluster",
+ "name": "etcdofferingname",
"type": "string"
},
{
- "description": "the master nodes count for the Kubernetes cluster. This parameter is deprecated, please use 'controlnodes' parameter.",
- "name": "masternodes",
- "type": "long"
- },
- {
- "description": "the control nodes count for the Kubernetes cluster",
- "name": "controlnodes",
- "type": "long"
+ "description": "path of the domain to which the Kubernetes cluster belongs",
+ "name": "domainpath",
+ "type": "string"
},
{
- "description": "keypair details",
- "name": "keypair",
+ "description": "ID of CNI Configuration associated with the cluster",
+ "name": "cniconfigurationid",
"type": "string"
},
{
- "description": "the id of the Kubernetes cluster",
- "name": "id",
+ "description": "the project id of the Kubernetes cluster",
+ "name": "projectid",
"type": "string"
},
{
- "description": "the ID of the service offering of the control nodes on the Kubernetes cluster",
- "name": "controlofferingid",
+ "description": "URL end point for the Kubernetes cluster",
+ "name": "endpoint",
"type": "string"
},
{
- "description": "the memory the Kubernetes cluster",
- "name": "memory",
- "type": "string"
+ "description": "Maximum size of the cluster",
+ "name": "maxsize",
+ "type": "long"
},
{
"description": "Whether autoscaling is enabled for the cluster",
@@ -2292,114 +2302,119 @@
"type": "boolean"
},
{
- "description": "URL end point for the Kubernetes cluster dashboard UI",
- "name": "consoleendpoint",
+ "description": "the account associated with the Kubernetes cluster",
+ "name": "account",
"type": "string"
},
{
- "description": "the project id of the Kubernetes cluster",
- "name": "projectid",
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the name of the service offering of the Kubernetes cluster",
- "name": "serviceofferingname",
+ "description": "the name of the service offering of the worker nodes on the Kubernetes cluster",
+ "name": "workerofferingname",
"type": "string"
},
{
- "description": "the name of the network of the Kubernetes cluster",
- "name": "associatednetworkname",
- "type": "string"
+ "description": "Public IP Addresses of the etcd nodes",
+ "name": "etcdips",
+ "type": "map"
},
{
- "description": "the ID of the template of the Kubernetes cluster",
- "name": "templateid",
+ "description": "the project name of the Kubernetes cluster",
+ "name": "project",
"type": "string"
},
{
- "description": "the name of the zone of the Kubernetes cluster",
- "name": "zoneid",
+ "description": "the id of the Kubernetes cluster",
+ "name": "id",
"type": "string"
},
{
- "description": "the name of the Kubernetes version for the Kubernetes cluster",
- "name": "kubernetesversionname",
+ "description": "the name of the template of the Kubernetes cluster",
+ "name": "templatename",
"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",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
- {
- "description": "the name of the service offering of the etcd nodes on the Kubernetes cluster",
- "name": "etcdofferingname",
+ "description": "URL end point for the Kubernetes cluster dashboard UI",
+ "name": "consoleendpoint",
"type": "string"
},
{
- "description": "the project name of the Kubernetes cluster",
- "name": "project",
+ "description": "Public IP Address of the cluster",
+ "name": "ipaddress",
"type": "string"
},
{
- "description": "the ID of the service offering of the etcd nodes on the Kubernetes cluster",
- "name": "etcdofferingid",
+ "description": "the memory the Kubernetes cluster",
+ "name": "memory",
"type": "string"
},
{
- "description": "the ID of the domain in which the Kubernetes cluster exists",
- "name": "domainid",
- "type": "string"
+ "description": "the control nodes count for the Kubernetes cluster",
+ "name": "controlnodes",
+ "type": "long"
},
{
- "description": "the size (worker nodes count) of the Kubernetes cluster",
- "name": "size",
+ "description": "the number of the etcd nodes on the Kubernetes cluster",
+ "name": "etcdnodes",
"type": "long"
},
{
- "description": "the account associated with the Kubernetes cluster",
- "name": "account",
+ "description": "the description of the Kubernetes cluster",
+ "name": "description",
"type": "string"
},
{
- "description": "Public IP Address of the cluster",
- "name": "ipaddress",
+ "description": "the ID of the template of the Kubernetes cluster",
+ "name": "templateid",
"type": "string"
},
{
- "description": "the name of the domain in which the Kubernetes cluster exists",
- "name": "domain",
+ "description": "the state of the Kubernetes cluster",
+ "name": "state",
"type": "string"
},
{
- "description": "the ID of the Kubernetes version for the Kubernetes cluster",
- "name": "kubernetesversionid",
- "type": "string"
+ "description": "the type of the cluster",
+ "name": "clustertype",
+ "type": "clustertype"
},
{
- "description": "the name of the zone of the Kubernetes cluster",
- "name": "zonename",
+ "description": "the date when this Kubernetes cluster was created",
+ "name": "created",
+ "type": "date"
+ },
+ {
+ "description": "the name of the Kubernetes version for the Kubernetes cluster",
+ "name": "kubernetesversionname",
"type": "string"
},
{
- "description": "URL end point for the Kubernetes cluster",
- "name": "endpoint",
+ "description": "the ID of the Kubernetes version for the Kubernetes cluster",
+ "name": "kubernetesversionid",
"type": "string"
},
{
- "description": "the name of the service offering of the worker nodes on the Kubernetes cluster",
- "name": "workerofferingname",
- "type": "string"
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "description": "the type of the cluster",
- "name": "clustertype",
- "type": "clustertype"
+ "description": "the ID of the service offering of the etcd nodes on the Kubernetes cluster",
+ "name": "etcdofferingid",
+ "type": "string"
},
{
"description": "Public IP Address ID of the cluster",
@@ -2407,55 +2422,55 @@
"type": "string"
},
{
- "description": "ID of CNI Configuration associated with the cluster",
- "name": "cniconfigurationid",
- "type": "string"
- },
- {
- "description": "the ID of the service offering of the worker nodes on the Kubernetes cluster",
- "name": "workerofferingid",
+ "description": "the ID of the network of the Kubernetes cluster",
+ "name": "networkid",
"type": "string"
},
{
- "description": "the ID of the service offering of the Kubernetes cluster",
- "name": "serviceofferingid",
+ "description": "the name of the domain in which the Kubernetes cluster exists",
+ "name": "domain",
"type": "string"
},
{
- "description": "path of the domain to which the Kubernetes cluster belongs",
- "name": "domainpath",
+ "description": "the name of the zone of the Kubernetes cluster",
+ "name": "zoneid",
"type": "string"
},
{
- "description": "the description of the Kubernetes cluster",
- "name": "description",
- "type": "string"
+ "description": "the size (worker nodes count) of the Kubernetes cluster",
+ "name": "size",
+ "type": "long"
},
+ {},
{
- "description": "the ID of the network of the Kubernetes cluster",
- "name": "networkid",
+ "description": "keypair details",
+ "name": "keypair",
"type": "string"
},
- {},
{
- "description": "the number of the etcd nodes on the Kubernetes cluster",
- "name": "etcdnodes",
+ "description": "the master nodes count for the Kubernetes cluster. This parameter is deprecated, please use 'controlnodes' parameter.",
+ "name": "masternodes",
"type": "long"
},
{
- "description": "the state of the Kubernetes cluster",
- "name": "state",
+ "description": "the name of the service offering of the control nodes on the Kubernetes cluster",
+ "name": "controlofferingname",
"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": "zonename",
+ "type": "string"
},
{
- "description": "the cpu cores of the Kubernetes cluster",
- "name": "cpunumber",
+ "description": "the ID of the service offering of the worker nodes on the Kubernetes cluster",
+ "name": "workerofferingid",
"type": "string"
+ },
+ {
+ "description": "the list of virtualmachine associated with this Kubernetes cluster",
+ "name": "virtualmachines",
+ "type": "list"
}
],
"since": "4.21.0"
@@ -2465,13 +2480,6 @@
"isasync": true,
"name": "deleteAccountFromProject",
"params": [
- {
- "description": "name of the account to be removed from the project",
- "length": 255,
- "name": "account",
- "required": true,
- "type": "string"
- },
{
"description": "ID of the project to remove the account from",
"length": 255,
@@ -2479,26 +2487,33 @@
"related": "listProjectAccounts,activateProject,createProject,listProjects,suspendProject,updateProject",
"required": true,
"type": "uuid"
+ },
+ {
+ "description": "name of the account to be removed from the project",
+ "length": 255,
+ "name": "account",
+ "required": true,
+ "type": "string"
}
],
"response": [
+ {
+ "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": "true if operation is executed successfully",
- "name": "success",
- "type": "boolean"
- },
{
"description": "any text associated with the success or failure",
"name": "displaytext",
@@ -2512,15 +2527,6 @@
"isasync": true,
"name": "updateGuestOs",
"params": [
- {
- "description": "the ID of the OS category",
- "length": 255,
- "name": "oscategoryid",
- "related": "listOsCategories,addOsCategory,updateOsCategory",
- "required": false,
- "since": "4.21.0",
- "type": "uuid"
- },
{
"description": "whether this guest OS is available for end users",
"length": 255,
@@ -2529,11 +2535,13 @@
"type": "boolean"
},
{
- "description": "Map of (key/value pairs)",
+ "description": "the ID of the OS category",
"length": 255,
- "name": "details",
+ "name": "oscategoryid",
+ "related": "listOsCategories,addOsCategory,updateOsCategory",
"required": false,
- "type": "map"
+ "since": "4.21.0",
+ "type": "uuid"
},
{
"description": "UUID of the Guest OS",
@@ -2543,6 +2551,13 @@
"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,
@@ -2554,8 +2569,24 @@
"related": "listOsTypes,addGuestOs",
"response": [
{
- "description": "the ID of the OS category",
- "name": "oscategoryid",
+ "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",
+ "name": "isuserdefined",
+ "type": "boolean"
+ },
+ {},
+ {
+ "description": "the name of the OS category",
+ "name": "oscategoryname",
"type": "string"
},
{
@@ -2568,37 +2599,21 @@
"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",
"type": "string"
},
- {},
{
- "description": "the name of the OS category",
- "name": "oscategoryname",
+ "description": "the ID of the OS category",
+ "name": "oscategoryid",
"type": "string"
},
- {
- "description": "is the guest OS user defined",
- "name": "isuserdefined",
- "type": "boolean"
- },
{},
{
"description": "the name of the OS type",
"name": "name",
"type": "string"
- },
- {
- "description": "the name/description of the OS type",
- "name": "description",
- "type": "string"
}
],
"since": "4.4.0"
@@ -2608,6 +2623,20 @@
"isasync": false,
"name": "listGuestVlans",
"params": [
+ {
+ "description": "List by keyword",
+ "length": 255,
+ "name": "keyword",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "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",
"length": 255,
@@ -2616,11 +2645,12 @@
"type": "string"
},
{
- "description": "list guest vlan by id",
+ "description": "list guest vlan by physical network",
"length": 255,
- "name": "id",
+ "name": "physicalnetworkid",
+ "related": "createPhysicalNetwork,listPhysicalNetworks,updatePhysicalNetwork",
"required": false,
- "type": "long"
+ "type": "uuid"
},
{
"description": "list guest vlan by zone",
@@ -2638,11 +2668,11 @@
"type": "integer"
},
{
- "description": "limits search results to allocated guest vlan. false by default.",
+ "description": "list guest vlan by id",
"length": 255,
- "name": "allocatedonly",
+ "name": "id",
"required": false,
- "type": "boolean"
+ "type": "long"
},
{
"description": "",
@@ -2650,97 +2680,67 @@
"name": "page",
"required": false,
"type": "integer"
- },
- {
- "description": "list guest vlan by physical network",
- "length": 255,
- "name": "physicalnetworkid",
- "related": "createPhysicalNetwork,listPhysicalNetworks,updatePhysicalNetwork",
- "required": false,
- "type": "uuid"
- },
- {
- "description": "List by keyword",
- "length": 255,
- "name": "keyword",
- "required": false,
- "type": "string"
}
],
"related": "",
"response": [
- {
- "description": "the physical network ID of the guest VLAN range",
- "name": "physicalnetworkid",
- "type": "string"
- },
- {
- "description": "true if the guest VLAN is dedicated to the account",
- "name": "isdedicated",
- "type": "boolean"
- },
- {
- "description": "the list of networks who use this guest VLAN",
- "name": "network",
- "type": "list"
- },
{
"description": "the guest VLAN id",
"name": "id",
"type": "long"
},
- {
- "description": "date the guest VLAN was taken",
- "name": "taken",
- "type": "date"
- },
{},
{
- "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 guest VLAN",
- "name": "vlan",
+ "description": "the zone name of the guest VLAN range",
+ "name": "zonename",
"type": "string"
},
{
- "description": "path of the domain to which the guest VLAN range belongs",
- "name": "domainpath",
+ "description": "the project id of the guest VLAN range",
+ "name": "projectid",
"type": "string"
},
{
- "description": "the zone name of the guest VLAN range",
- "name": "zonename",
+ "description": "the physical network ID of the guest VLAN range",
+ "name": "physicalnetworkid",
"type": "string"
},
{
- "description": "the account of the guest VLAN range",
- "name": "account",
- "type": "string"
+ "description": "date the guest VLAN was taken",
+ "name": "taken",
+ "type": "date"
},
{
- "description": "the domain name of the guest VLAN range",
- "name": "domain",
+ "description": "the guest VLAN",
+ "name": "vlan",
"type": "string"
},
{
- "description": "the allocation state of the guest VLAN",
- "name": "allocationstate",
- "type": "string"
+ "description": "true if the guest VLAN is dedicated to the account",
+ "name": "isdedicated",
+ "type": "boolean"
},
+ {},
{
- "description": "the physical network name of the guest VLAN range",
- "name": "physicalnetworkname",
+ "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": "path of the domain to which the guest VLAN range belongs",
+ "name": "domainpath",
"type": "string"
},
+ {
+ "description": "the list of networks who use this guest VLAN",
+ "name": "network",
+ "type": "list"
+ },
{
"description": "the current status of the latest async job acting on this object",
"name": "jobstatus",
@@ -2751,14 +2751,29 @@
"name": "project",
"type": "string"
},
+ {
+ "description": "the account of the guest VLAN range",
+ "name": "account",
+ "type": "string"
+ },
+ {
+ "description": "the allocation state of the guest VLAN",
+ "name": "allocationstate",
+ "type": "string"
+ },
{
"description": "the domain ID of the guest VLAN range",
"name": "domainid",
"type": "string"
},
{
- "description": "the zone ID of the guest VLAN range",
- "name": "zoneid",
+ "description": "the domain name of the guest VLAN range",
+ "name": "domain",
+ "type": "string"
+ },
+ {
+ "description": "the physical network name of the guest VLAN range",
+ "name": "physicalnetworkname",
"type": "string"
}
],
@@ -2770,11 +2785,11 @@
"name": "updateResourceLimit",
"params": [
{
- "description": " Maximum resource limit.",
+ "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": "max",
- "required": false,
- "type": "long"
+ "name": "resourcetype",
+ "required": true,
+ "type": "integer"
},
{
"description": "Update resource limits for project",
@@ -2793,43 +2808,48 @@
"type": "uuid"
},
{
- "description": "Tag for the resource type",
+ "description": "Update resource for a specified account. Must be used with the domainId parameter.",
"length": 255,
- "name": "tag",
+ "name": "account",
"required": false,
- "since": "4.20.0",
"type": "string"
},
{
- "description": "Update resource for a specified account. Must be used with the domainId parameter.",
+ "description": "Tag for the resource type",
"length": 255,
- "name": "account",
+ "name": "tag",
"required": false,
+ "since": "4.20.0",
"type": "string"
},
{
- "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": " Maximum resource limit.",
"length": 255,
- "name": "resourcetype",
- "required": true,
- "type": "integer"
+ "name": "max",
+ "required": false,
+ "type": "long"
}
],
"related": "listResourceLimits",
"response": [
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "the account of the resource limit",
+ "name": "account",
"type": "string"
},
{
- "description": "the maximum number of the resource. A -1 means the resource currently has no limit.",
- "name": "max",
- "type": "long"
+ "description": "the project name of the resource limit",
+ "name": "project",
+ "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": "path of the domain to which the resource limit belongs",
+ "name": "domainpath",
+ "type": "string"
+ },
+ {
+ "description": "The tag for the resource limit",
+ "name": "tag",
"type": "string"
},
{},
@@ -2840,28 +2860,28 @@
},
{},
{
- "description": "the account of the resource limit",
- "name": "account",
+ "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"
},
{
- "description": "path of the domain to which the resource limit belongs",
- "name": "domainpath",
- "type": "string"
+ "description": "the maximum number of the resource. A -1 means the resource currently has no limit.",
+ "name": "max",
+ "type": "long"
},
{
- "description": "the project name of the resource limit",
- "name": "project",
- "type": "string"
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "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 UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "the project id of the resource limit",
- "name": "projectid",
+ "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"
},
{
@@ -2870,14 +2890,9 @@
"type": "string"
},
{
- "description": "The tag for the resource limit",
- "name": "tag",
+ "description": "the project id of the resource limit",
+ "name": "projectid",
"type": "string"
- },
- {
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
}
]
},
@@ -2898,76 +2913,76 @@
"related": "listGuiThemes,updateGuiTheme,createGuiTheme",
"response": [
{
- "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": "The CSS to be retrieved and imported into the GUI when matching the theme access configurations.",
- "name": "css",
+ "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": "Name of the GUI theme.",
- "name": "name",
+ "description": "ID of the custom GUI theme.",
+ "name": "id",
"type": "string"
},
{
- "description": "A set of domain UUIDs (also known as ID for the end-user) separated by comma that can retrieve the theme.",
- "name": "domainids",
+ "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": "ID of the custom GUI theme.",
- "name": "id",
+ "description": "Description of the GUI theme.",
+ "name": "description",
"type": "string"
},
- {
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
- },
{
"description": "Whether to consider the subdomains of the informed domain IDs.",
"name": "recursivedomains",
"type": "boolean"
},
{
- "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": "Name of the GUI theme.",
+ "name": "name",
"type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
+ "description": "When the GUI theme was removed.",
+ "name": "removed",
+ "type": "date"
},
- {},
{
"description": "When the GUI theme was created.",
"name": "created",
"type": "date"
},
{
- "description": "When the GUI theme was removed.",
- "name": "removed",
- "type": "date"
+ "description": "The CSS to be retrieved and imported into the GUI when matching the theme access configurations.",
+ "name": "css",
+ "type": "string"
},
{
- "description": "Description of the GUI theme.",
- "name": "description",
+ "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": "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": "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": "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"
}
],
"since": "4.21.0.0"
@@ -2987,23 +3002,23 @@
}
],
"response": [
- {},
- {},
+ {
+ "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",
"name": "displaytext",
"type": "string"
},
+ {},
{
"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": "the current status of the latest async job acting on this object",
"name": "jobstatus",
@@ -3027,32 +3042,32 @@
],
"related": "",
"response": [
- {},
- {},
+ {
+ "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": "chain",
- "name": "chain",
+ "description": "crt",
+ "name": "crt",
"type": "string"
},
+ {},
{
"description": "key",
"name": "key",
"type": "string"
},
{
- "description": "crt",
- "name": "crt",
+ "description": "chain",
+ "name": "chain",
"type": "string"
- },
- {
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
}
]
},
@@ -3072,15 +3087,9 @@
],
"response": [
{
- "description": "any text associated with the success or failure",
- "name": "displaytext",
- "type": "string"
- },
- {},
- {
- "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"
},
{},
{
@@ -3088,10 +3097,16 @@
"name": "success",
"type": "boolean"
},
+ {},
{
- "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": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
}
]
},
@@ -3101,18 +3116,12 @@
"name": "startRollingMaintenance",
"params": [
{
- "description": "the command to execute while hosts are on maintenance",
- "length": 255,
- "name": "payload",
- "required": false,
- "type": "string"
- },
- {
- "description": "if rolling mechanism should continue in case of an error",
+ "description": "the IDs of the zones to start maintenance on",
"length": 255,
- "name": "forced",
+ "name": "zoneids",
+ "related": "createZone,updateZone,listZones,listZones",
"required": false,
- "type": "boolean"
+ "type": "list"
},
{
"description": "the IDs of the pods to start maintenance on",
@@ -3123,61 +3132,67 @@
"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"
},
{
- "description": "the IDs of the zones to start maintenance on",
+ "description": "if rolling mechanism should continue in case of an error",
"length": 255,
- "name": "zoneids",
- "related": "createZone,updateZone,listZones,listZones",
+ "name": "forced",
"required": false,
- "type": "list"
+ "type": "boolean"
},
{
"description": "the IDs of the hosts to start maintenance on",
"length": 255,
"name": "hostids",
- "related": "addHost,cancelHostMaintenance,cancelHostAsDegraded,declareHostAsDegraded,listHosts,prepareHostForMaintenance,reconnectHost,updateHost,addBaremetalHost",
+ "related": "addBaremetalHost,addHost,cancelHostMaintenance,cancelHostAsDegraded,declareHostAsDegraded,listHosts,prepareHostForMaintenance,reconnectHost,updateHost",
"required": false,
"type": "list"
},
{
- "description": "the IDs of the clusters to start maintenance on",
+ "description": "the command to execute while hosts are on maintenance",
"length": 255,
- "name": "clusterids",
- "related": "addCluster,listClusters,updateCluster",
+ "name": "payload",
"required": false,
- "type": "list"
+ "type": "string"
+ },
+ {
+ "description": "optional operation timeout (in seconds) that overrides the global timeout setting",
+ "length": 255,
+ "name": "timeout",
+ "required": false,
+ "type": "integer"
}
],
"related": "",
"response": [
{
- "description": "in case of failure, details are displayed",
- "name": "details",
- "type": "string"
+ "description": "indicates if the rolling maintenance operation was successful",
+ "name": "success",
+ "type": "boolean"
},
{
"description": "the hosts updated",
"name": "hostsupdated",
"response": [
{
- "description": "the name of the updated host",
- "name": "hostname",
+ "description": "end date of the update on the host",
+ "name": "enddate",
"type": "string"
},
{
- "description": "end date of the update on the host",
- "name": "enddate",
+ "description": "output of the maintenance script on the host",
+ "name": "output",
"type": "string"
},
{
- "description": "the ID of the updated host",
- "name": "hostid",
+ "description": "the name of the updated host",
+ "name": "hostname",
"type": "string"
},
{
@@ -3186,14 +3201,23 @@
"type": "string"
},
{
- "description": "output of the maintenance script on the host",
- "name": "output",
+ "description": "the ID of the updated host",
+ "name": "hostid",
"type": "string"
}
],
"type": "list"
},
- {},
+ {
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
+ },
+ {
+ "description": "in case of failure, details are displayed",
+ "name": "details",
+ "type": "string"
+ },
{
"description": "the hosts skipped",
"name": "hostsskipped",
@@ -3204,34 +3228,25 @@
"type": "string"
},
{
- "description": "the name of the skipped host",
- "name": "hostname",
+ "description": "the ID of the skipped host",
+ "name": "hostid",
"type": "string"
},
{
- "description": "the ID of the skipped host",
- "name": "hostid",
+ "description": "the name of the skipped host",
+ "name": "hostname",
"type": "string"
}
],
"type": "list"
},
- {},
- {
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
- "type": "string"
- },
- {
- "description": "indicates if the rolling maintenance operation was successful",
- "name": "success",
- "type": "boolean"
- },
{
"description": "the current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
- }
+ },
+ {},
+ {}
]
},
{
@@ -3240,11 +3255,11 @@
"name": "listTungstenFabricApplicationPolicySet",
"params": [
{
- "description": "",
+ "description": "the uuid of Tungsten-Fabric application policy set",
"length": 255,
- "name": "pagesize",
+ "name": "applicationpolicysetuuid",
"required": false,
- "type": "integer"
+ "type": "string"
},
{
"description": "the ID of zone",
@@ -3255,71 +3270,71 @@
"type": "uuid"
},
{
- "description": "the uuid of Tungsten-Fabric application policy set",
+ "description": "",
"length": 255,
- "name": "applicationpolicysetuuid",
+ "name": "page",
"required": false,
- "type": "string"
+ "type": "integer"
},
{
- "description": "List by keyword",
+ "description": "",
"length": 255,
- "name": "keyword",
+ "name": "pagesize",
"required": false,
- "type": "string"
+ "type": "integer"
},
{
- "description": "",
+ "description": "List by keyword",
"length": 255,
- "name": "page",
+ "name": "keyword",
"required": false,
- "type": "integer"
+ "type": "string"
}
],
"related": "createTungstenFabricApplicationPolicySet",
"response": [
- {
- "description": "list Tungsten-Fabric tag",
- "name": "tag",
- "type": "list"
- },
- {
- "description": "Tungsten-Fabric provider zone id",
- "name": "zoneid",
- "type": "long"
- },
- {
- "description": "Tungsten-Fabric policy name",
- "name": "name",
- "type": "string"
- },
{
"description": "the UUID of the latest async job acting on this object",
"name": "jobid",
"type": "string"
},
- {
- "description": "list Tungsten-Fabric firewall policy",
- "name": "firewallpolicy",
- "type": "list"
- },
- {},
{
"description": "Tungsten-Fabric application policy uuid",
"name": "uuid",
"type": "string"
},
+ {
+ "description": "Tungsten-Fabric policy name",
+ "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": "Tungsten-Fabric provider zone name",
"name": "zonename",
"type": "string"
},
- {}
+ {},
+ {
+ "description": "list Tungsten-Fabric tag",
+ "name": "tag",
+ "type": "list"
+ },
+ {
+ "description": "list Tungsten-Fabric firewall policy",
+ "name": "firewallpolicy",
+ "type": "list"
+ }
]
},
{
@@ -3327,13 +3342,6 @@
"isasync": true,
"name": "updateNetworkACLList",
"params": [
- {
- "description": "Description of the network ACL list",
- "length": 255,
- "name": "description",
- "required": false,
- "type": "string"
- },
{
"description": "an optional field, whether to the display the list to the end user or not",
"length": 255,
@@ -3349,14 +3357,6 @@
"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"
- },
{
"description": "the ID of the network ACL",
"length": 255,
@@ -3364,12 +3364,28 @@
"related": "createNetworkACLList,listNetworkACLLists",
"required": true,
"type": "uuid"
+ },
+ {
+ "description": "Description of the network ACL list",
+ "length": 255,
+ "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": "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"
},
{
@@ -3377,18 +3393,17 @@
"name": "jobstatus",
"type": "integer"
},
- {},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "any text associated with the success or failure",
+ "name": "displaytext",
"type": "string"
},
- {},
{
"description": "true if operation is executed successfully",
"name": "success",
"type": "boolean"
- }
+ },
+ {}
],
"since": "4.4"
},
@@ -3397,27 +3412,11 @@
"isasync": true,
"name": "restoreVirtualMachine",
"params": [
- {
- "description": "used to specify the custom parameters",
- "length": 255,
- "name": "details",
- "required": false,
- "since": "4.19.1",
- "type": "map"
- },
- {
- "description": "Optional field to expunge old root volume after restore.",
- "length": 255,
- "name": "expunge",
- "required": false,
- "since": "4.19.1",
- "type": "boolean"
- },
{
"description": "Virtual Machine ID",
"length": 255,
"name": "virtualmachineid",
- "related": "assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMachine,restoreVirtualMachine,startVirtualMachine,stopVirtualMachine,updateDefaultNicForVirtualMachine,updateVirtua [...]
+ "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"
},
@@ -3429,6 +3428,14 @@
"since": "4.19.1",
"type": "long"
},
+ {
+ "description": "used to specify the custom parameters",
+ "length": 255,
+ "name": "details",
+ "required": false,
+ "since": "4.19.1",
+ "type": "map"
+ },
{
"description": "Override root volume's diskoffering.",
"length": 255,
@@ -3438,202 +3445,140 @@
"since": "4.19.1",
"type": "uuid"
},
+ {
+ "description": "Optional field to expunge old root volume after restore.",
+ "length": 255,
+ "name": "expunge",
+ "required": false,
+ "since": "4.19.1",
+ "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",
"length": 255,
"name": "templateid",
- "related": "prepareTemplate,listIsos,registerIso,updateIso,copyTemplate,createTemplate,listTemplates,registerTemplate,updateTemplate,listTemplates,createTemplate,copyTemplate,registerTemplate,registerIso,copyIso,listIsos,linkUserDataToTemplate,registerVnfTemplate,registerVnfTemplate,listVnfTemplates,listVnfTemplates,updateVnfTemplate,updateVnfTemplate",
+ "related": "registerVnfTemplate,registerVnfTemplate,listVnfTemplates,listVnfTemplates,updateVnfTemplate,updateVnfTemplate,prepareTemplate,listIsos,registerIso,updateIso,copyTemplate,createTemplate,listTemplates,registerTemplate,updateTemplate,listTemplates,createTemplate,copyTemplate,registerTemplate,registerIso,copyIso,listIsos,linkUserDataToTemplate",
"required": false,
"type": "uuid"
}
],
- "related": "assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMachine,startVirtualMachine,stopVirtualMachine,updateDefaultNicForVirtualMachine,updateVirtualMachine,changeServiceForV [...]
+ "related": "deployVnfAppliance,deployVnfAppliance,listVnfAppliances,listVnfAppliances,assignVirtualMachine,migrateVirtualMachine,migrateVirtualMachineWithVolume,recoverVirtualMachine,attachIso,detachIso,addNicToVirtualMachine,deployVirtualMachine,destroyVirtualMachine,listVirtualMachines,scaleVirtualMachine,rebootVirtualMachine,removeNicFromVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,resetUserDataForVirtualMachine,startVirtualMachine,stopVirtualMachin [...]
"response": [
{
- "description": "public IP address id associated with vm via Static nat rule",
- "name": "publicipid",
+ "description": "the ID of the virtual machine",
+ "name": "id",
"type": "string"
},
{
- "description": "the list of nics associated with vm",
- "name": "nic",
+ "description": "the name of the gpu card to which service offering is linked",
+ "name": "gpucardname",
+ "type": "string"
+ },
+ {
+ "description": "the ID of the domain in which the virtual machine exists",
+ "name": "domainid",
+ "type": "string"
+ },
+ {
+ "description": "list of affinity groups associated with the virtual machine",
+ "name": "affinitygroup",
"response": [
{
- "description": "public IP address id associated with this nic via Static nat rule",
- "name": "publicipid",
- "type": "string"
- },
- {
- "description": "the extra dhcp options on the nic",
- "name": "extradhcpoption",
- "type": "list"
- },
- {
- "description": "MTU configured on the NIC",
- "name": "mtu",
- "type": "integer"
- },
- {
- "description": "Id of the NSX Logical Switch Port (if NSX based), null otherwise",
- "name": "nsxlogicalswitchport",
- "type": "string"
- },
- {
- "description": "true if nic is default, false otherwise",
- "name": "macaddress",
- "type": "string"
- },
- {
- "description": "Id of the vm to which the nic belongs",
- "name": "virtualmachineid",
- "type": "string"
- },
- {
- "description": "public IP address associated with this nic via Static nat rule",
- "name": "publicip",
- "type": "string"
- },
- {
- "description": "name of the vpc to which the nic belongs",
- "name": "vpcname",
- "type": "string"
- },
- {
- "description": "the ip address of the nic",
- "name": "ipaddress",
+ "description": "the account owning the affinity group",
+ "name": "account",
"type": "string"
},
{
- "description": "Type of adapter if available",
- "name": "adaptertype",
+ "description": "the type of the affinity group",
+ "name": "type",
"type": "string"
},
{
- "description": "Id of the NSX Logical Switch (if NSX based), null otherwise",
- "name": "nsxlogicalswitch",
+ "description": "the domain ID of the affinity group",
+ "name": "domainid",
"type": "string"
},
{
- "description": "the isolated private VLAN type if available",
- "name": "isolatedpvlantype",
+ "description": "the domain name of the affinity group",
+ "name": "domain",
"type": "string"
},
{
- "description": "the isolation uri of the nic",
- "name": "isolationuri",
- "type": "string"
+ "description": "dedicated resources associated with this affinity group",
+ "name": "dedicatedresources",
+ "type": "list"
},
{
- "description": "the IPv6 address of network",
- "name": "ip6address",
+ "description": "path of the Domain the affinity group belongs to",
+ "name": "domainpath",
"type": "string"
},
{
- "description": "the gateway of IPv6 network",
- "name": "ip6gateway",
+ "description": "the project ID of the affinity group",
+ "name": "projectid",
"type": "string"
},
{
- "description": "the ID of the corresponding network",
- "name": "networkid",
+ "description": "the name of the affinity group",
+ "name": "name",
"type": "string"
},
{
- "description": "IP addresses associated with NIC found for unmanaged VM",
- "name": "ipaddresses",
- "type": "list"
- },
- {
- "description": "the name of the corresponding network",
- "name": "networkname",
+ "description": "the project name of the affinity group",
+ "name": "project",
"type": "string"
},
{
- "description": "the isolated private VLAN if available",
- "name": "isolatedpvlan",
- "type": "integer"
- },
- {
- "description": "the Secondary ipv4 addr of nic",
- "name": "secondaryip",
+ "description": "virtual machine IDs associated with this affinity group",
+ "name": "virtualmachineIds",
"type": "list"
},
{
- "description": "true if nic is default, false otherwise",
- "name": "isdefault",
- "type": "boolean"
- },
- {
- "description": "ID of the VLAN/VNI if available",
- "name": "vlanid",
- "type": "integer"
- },
- {
- "description": "the ID of the nic",
+ "description": "the ID of the affinity group",
"name": "id",
"type": "string"
},
{
- "description": "the type of the nic",
- "name": "type",
- "type": "string"
- },
- {
- "description": "the traffic type of the nic",
- "name": "traffictype",
- "type": "string"
- },
- {
- "description": "Id of the vpc to which the nic belongs",
- "name": "vpcid",
- "type": "string"
- },
- {
- "description": "the broadcast uri of the nic",
- "name": "broadcasturi",
- "type": "string"
- },
- {
- "description": "the gateway of the nic",
- "name": "gateway",
- "type": "string"
- },
- {
- "description": "the netmask of the nic",
- "name": "netmask",
- "type": "string"
- },
- {
- "description": "the cidr of IPv6 network",
- "name": "ip6cidr",
- "type": "string"
- },
- {
- "description": "device id for the network when plugged into the virtual machine",
- "name": "deviceid",
+ "description": "the description of the affinity group",
+ "name": "description",
"type": "string"
}
],
"type": "set"
},
{
- "description": "the name of the availability zone for the virtual machine",
- "name": "zonename",
+ "description": "the name of the backup offering of the virtual machine",
+ "name": "backupofferingname",
"type": "string"
},
{
- "description": "the ID of the disk offering of the virtual machine. This parameter should not be used for retrieving disk offering details of DATA volumes. Use listVolumes API instead",
- "name": "diskofferingid",
+ "description": "Base64 string containing the user data",
+ "name": "userdata",
"type": "string"
},
{
- "description": "the outgoing network traffic on the host in KiB",
- "name": "networkkbswrite",
+ "description": "State of the Service from LB rule",
+ "name": "servicestate",
+ "type": "string"
+ },
+ {
+ "description": "the name of the virtual machine",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "description": "the read (IO) of disk on the VM",
+ "name": "diskioread",
"type": "long"
},
{
- "description": "List of read-only Vm details as comma separated string.",
- "name": "readonlydetails",
+ "description": "Instance lease expiry date",
+ "name": "leaseexpirydate",
+ "type": "date"
+ },
+ {
+ "description": "the project id of the vm",
+ "name": "projectid",
"type": "string"
},
{
@@ -3642,14 +3587,19 @@
"type": "date"
},
{
- "description": "Guest vm Boot Type",
- "name": "boottype",
+ "description": "VNF details",
+ "name": "vnfdetails",
+ "type": "map"
+ },
+ {
+ "description": "public IP address id associated with vm via Static nat rule",
+ "name": "publicipid",
"type": "string"
},
{
- "description": "the speed of each vCPU",
- "name": "cpuspeed",
- "type": "integer"
+ "description": "ID of AutoScale VM group",
+ "name": "autoscalevmgroupid",
+ "type": "string"
},
{
"description": "the pool type of the virtual machine",
@@ -3657,8 +3607,18 @@
"type": "string"
},
{
- "description": "ID of AutoScale VM group",
- "name": "autoscalevmgroupid",
+ "description": "the control state of the host for the virtual machine",
+ "name": "hostcontrolstate",
+ "type": "string"
+ },
+ {
+ "description": "the vGPU type used by the virtual machine",
+ "name": "vgpu",
+ "type": "string"
+ },
+ {
+ "description": "Guest vm Boot Mode",
+ "name": "bootmode",
"type": "string"
},
{
@@ -3667,50 +3627,51 @@
"type": "string"
},
{
- "description": "the incoming network traffic on the VM in KiB",
- "name": "networkkbsread",
+ "description": "the write (IO) of disk on the VM",
+ "name": "diskiowrite",
"type": "long"
},
+ {},
{
- "description": "the maximum Y resolution",
- "name": "maxresolutiony",
+ "description": "the video RAM size in MB",
+ "name": "videoram",
"type": "long"
},
{
- "description": "device type of the root volume",
- "name": "rootdevicetype",
+ "description": "the name of the vgpu profile to which service offering is linked",
+ "name": "vgpuprofilename",
"type": "string"
},
{
- "description": "the ID of the availability zone for the virtual machine",
- "name": "zoneid",
+ "description": "the name of the host for the virtual machine",
+ "name": "hostname",
"type": "string"
},
{
- "description": "the VM's disk write in KiB",
- "name": "diskkbswrite",
- "type": "long"
+ "description": "true if the entity/resource has annotations",
+ "name": "hasannotations",
+ "type": "boolean"
},
{
- "description": "the ID of the service offering of the virtual machine",
- "name": "serviceofferingid",
- "type": "string"
+ "description": "the maximum X resolution",
+ "name": "maxresolutionx",
+ "type": "long"
},
{
- "description": "user generated name. The name of the virtual machine is returned if no displayname exists.",
- "name": "displayname",
+ "description": "List of read-only Vm details as comma separated string.",
+ "name": "readonlydetails",
"type": "string"
},
- {},
{
- "description": "the maximum number of display heads",
- "name": "maxheads",
- "type": "long"
+ "description": "Vm details in key/value pairs.",
+ "name": "details",
+ "type": "map"
},
+ {},
{
- "description": "device ID of the root volume",
- "name": "rootdeviceid",
- "type": "long"
+ "description": "Os type ID of the virtual machine",
+ "name": "guestosid",
+ "type": "string"
},
{
"description": "list of variables and values for the variables declared in userdata",
@@ -3718,99 +3679,44 @@
"type": "string"
},
{
- "description": "State of the Service from LB rule",
- "name": "servicestate",
+ "description": "the project name of the vm",
+ "name": "project",
"type": "string"
},
{
- "description": "the ID of the vgpu profile to which service offering is linked",
- "name": "vgpuprofileid",
+ "description": "the password (if exists) of the virtual machine",
+ "name": "password",
"type": "string"
},
{
- "description": "the read (IO) of disk on the VM",
- "name": "diskioread",
+ "description": "the incoming network traffic on the VM in KiB",
+ "name": "networkkbsread",
"type": "long"
},
{
- "description": "the ID of the virtual machine",
- "name": "id",
+ "description": "ssh key-pairs",
+ "name": "keypairs",
"type": "string"
},
{
- "description": "the type of the template for the virtual machine",
- "name": "templatetype",
+ "description": "the name of userdata used for the VM",
+ "name": "userdataname",
"type": "string"
},
{
- "description": "an optional field whether to the display the vm to the end user or not.",
- "name": "displayvm",
- "type": "boolean"
+ "description": "the ID of the availability zone for the virtual machine",
+ "name": "zoneid",
+ "type": "string"
},
{
- "description": "ssh key-pairs",
- "name": "keypairs",
- "type": "string"
- },
- {
- "description": "Base64 string representation of the resource icon",
- "name": "icon",
- "type": "resourceiconresponse"
- },
- {
- "description": "the ID of the gpu card to which service offering is linked",
- "name": "gpucardid",
- "type": "string"
- },
- {
- "description": "the ID of the domain in which the virtual machine exists",
- "name": "domainid",
- "type": "string"
- },
- {
- "description": "the number of vCPUs this virtual machine is using",
- "name": "cpunumber",
+ "description": "the speed of each vCPU",
+ "name": "cpuspeed",
"type": "integer"
},
{
- "description": "true if the password rest feature is enabled, false otherwise",
- "name": "passwordenabled",
- "type": "boolean"
- },
- {
- "description": "OS type id of the vm",
- "name": "ostypeid",
- "type": "string"
- },
- {
- "description": "the control state of the host for the virtual machine",
- "name": "hostcontrolstate",
- "type": "string"
- },
- {
- "description": "true if high-availability is enabled, false otherwise",
- "name": "haenable",
- "type": "boolean"
- },
- {
- "description": "an alternate display text of the ISO attached to the virtual machine",
- "name": "isodisplaytext",
- "type": "string"
- },
- {
- "description": "true if vm has delete protection.",
- "name": "deleteprotection",
- "type": "boolean"
- },
- {
- "description": "User VM type",
- "name": "vmtype",
- "type": "string"
- },
- {
- "description": "the name of the backup offering of the virtual machine",
- "name": "backupofferingname",
- "type": "string"
+ "description": "the VM's disk read in KiB",
+ "name": "diskkbsread",
+ "type": "long"
},
{
"description": "instance name of the user vm; this parameter is returned to the ROOT admin only",
@@ -3818,210 +3724,269 @@
"type": "string"
},
{
- "description": "the format of the template for the virtual machine",
- "name": "templateformat",
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
- "description": "Instance lease duration in days",
- "name": "leaseduration",
- "type": "integer"
- },
- {
- "description": "the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file.",
- "name": "templateid",
+ "description": "an alternate display text of the ISO attached to the virtual machine",
+ "name": "isodisplaytext",
"type": "string"
},
{
- "description": "the hypervisor on which the template runs",
- "name": "hypervisor",
+ "description": "Guest vm Boot Type",
+ "name": "boottype",
"type": "string"
},
{
- "description": "the maximum X resolution",
- "name": "maxresolutionx",
- "type": "long"
- },
- {
- "description": "Vm details in key/value pairs.",
- "name": "details",
- "type": "map"
- },
- {
- "description": "the total number of network traffic bytes sent",
- "name": "sentbytes",
- "type": "long"
- },
- {
- "description": "the project id of the vm",
- "name": "projectid",
+ "description": " an alternate display text of the template for the virtual machine",
+ "name": "templatedisplaytext",
"type": "string"
},
{
- "description": "the write (IO) of disk on the VM",
- "name": "diskiowrite",
- "type": "long"
- },
- {
- "description": "the name of the host for the virtual machine",
- "name": "hostname",
+ "description": "the id of userdata used for the VM",
+ "name": "userdataid",
"type": "string"
},
{
- "description": "the name of the template for the virtual machine",
- "name": "templatename",
+ "description": "User VM type",
+ "name": "vmtype",
"type": "string"
},
{
- "description": "the virtual network for the service offering",
- "name": "forvirtualnetwork",
- "type": "boolean"
- },
- {
- "description": "VNF details",
- "name": "vnfdetails",
- "type": "map"
- },
- {
- "description": "the internal memory (KiB) that's free in VM or zero if it can not be calculated",
- "name": "memoryintfreekbs",
- "type": "long"
- },
- {
- "description": "list of affinity groups associated with the virtual machine",
- "name": "affinitygroup",
+ "description": "the list of nics associated with vm",
+ "name": "nic",
"response": [
{
- "description": "the ID of the affinity group",
- "name": "id",
+ "description": "the name of the corresponding network",
+ "name": "networkname",
"type": "string"
},
{
- "description": "the account owning the affinity group",
- "name": "account",
+ "description": "the netmask of the nic",
+ "name": "netmask",
"type": "string"
},
{
- "description": "dedicated resources associated with this affinity group",
- "name": "dedicatedresources",
- "type": "list"
+ "description": "public IP address id associated with this nic via Static nat rule",
+ "name": "publicipid",
+ "type": "string"
},
{
- "description": "the domain name of the affinity group",
- "name": "domain",
+ "description": "MTU configured on the NIC",
+ "name": "mtu",
+ "type": "integer"
+ },
+ {
+ "description": "public IP address associated with this nic via Static nat rule",
+ "name": "publicip",
"type": "string"
},
{
- "description": "path of the Domain the affinity group belongs to",
- "name": "domainpath",
+ "description": "the gateway of IPv6 network",
+ "name": "ip6gateway",
"type": "string"
},
{
- "description": "the project name of the affinity group",
- "name": "project",
+ "description": "the gateway of the nic",
+ "name": "gateway",
"type": "string"
},
{
- "description": "the description of the affinity group",
- "name": "description",
+ "description": "the IPv6 address of network",
+ "name": "ip6address",
"type": "string"
},
{
- "description": "the type of the affinity group",
+ "description": "the type of the nic",
"name": "type",
"type": "string"
},
{
- "description": "the name of the affinity group",
- "name": "name",
+ "description": "Id of the vm to which the nic belongs",
+ "name": "virtualmachineid",
"type": "string"
},
{
- "description": "the project ID of the affinity group",
- "name": "projectid",
+ "description": "Id of the NSX Logical Switch Port (if NSX based), null otherwise",
+ "name": "nsxlogicalswitchport",
"type": "string"
},
{
- "description": "virtual machine IDs associated with this affinity group",
- "name": "virtualmachineIds",
+ "description": "the isolation uri of the nic",
+ "name": "isolationuri",
+ "type": "string"
+ },
+ {
+ "description": "the isolated private VLAN if available",
+ "name": "isolatedpvlan",
+ "type": "integer"
+ },
+ {
+ "description": "name of the vpc to which the nic belongs",
+ "name": "vpcname",
+ "type": "string"
+ },
+ {
+ "description": "true if nic is default, false otherwise",
+ "name": "macaddress",
+ "type": "string"
+ },
+ {
+ "description": "the extra dhcp options on the nic",
+ "name": "extradhcpoption",
"type": "list"
},
{
- "description": "the domain ID of the affinity group",
- "name": "domainid",
+ "description": "IP addresses associated with NIC found for unmanaged VM",
+ "name": "ipaddresses",
+ "type": "list"
+ },
+ {
+ "description": "the isolated private VLAN type if available",
+ "name": "isolatedpvlantype",
+ "type": "string"
+ },
+ {
+ "description": "Id of the vpc to which the nic belongs",
+ "name": "vpcid",
+ "type": "string"
+ },
+ {
+ "description": "the cidr of IPv6 network",
+ "name": "ip6cidr",
+ "type": "string"
+ },
+ {
+ "description": "ID of the VLAN/VNI if available",
+ "name": "vlanid",
+ "type": "integer"
+ },
+ {
+ "description": "the traffic type of the nic",
+ "name": "traffictype",
+ "type": "string"
+ },
+ {
+ "description": "the ID of the nic",
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "description": "Id of the NSX Logical Switch (if NSX based), null otherwise",
+ "name": "nsxlogicalswitch",
+ "type": "string"
+ },
+ {
+ "description": "the ID of the corresponding network",
+ "name": "networkid",
+ "type": "string"
+ },
+ {
+ "description": "the Secondary ipv4 addr of nic",
+ "name": "secondaryip",
+ "type": "list"
+ },
+ {
+ "description": "the broadcast uri of the nic",
+ "name": "broadcasturi",
+ "type": "string"
+ },
+ {
+ "description": "true if nic is default, false otherwise",
+ "name": "isdefault",
+ "type": "boolean"
+ },
+ {
+ "description": "Type of adapter if available",
+ "name": "adaptertype",
+ "type": "string"
+ },
+ {
+ "description": "the ip address of the nic",
+ "name": "ipaddress",
+ "type": "string"
+ },
+ {
+ "description": "device id for the network when plugged into the virtual machine",
+ "name": "deviceid",
"type": "string"
}
],
"type": "set"
},
{
- "description": "the state of the virtual machine",
- "name": "state",
+ "description": "the ID of the disk offering of the virtual machine. This parameter should not be used for retrieving disk offering details of DATA volumes. Use listVolumes API instead",
+ "name": "diskofferingid",
"type": "string"
},
{
- "description": "true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory.",
- "name": "isdynamicallyscalable",
- "type": "boolean"
+ "description": "user generated name. The name of the virtual machine is returned if no displayname exists.",
+ "name": "displayname",
+ "type": "string"
},
{
- "description": "Instance lease expiry date",
- "name": "leaseexpirydate",
+ "description": "the date when this virtual machine was created",
+ "name": "created",
"type": "date"
},
{
- "description": "the name of the gpu card to which service offering is linked",
- "name": "gpucardname",
+ "description": "the user's ID who deployed the virtual machine",
+ "name": "userid",
"type": "string"
},
- {},
{
- "description": "the video RAM size in MB",
- "name": "videoram",
- "type": "long"
+ "description": "the userdata override policy with the userdata provided while deploying VM",
+ "name": "userdatapolicy",
+ "type": "string"
},
{
- "description": "the memory allocated for the virtual machine",
- "name": "memory",
- "type": "integer"
+ "description": "the ID of the host for the virtual machine",
+ "name": "hostid",
+ "type": "string"
+ },
+ {
+ "description": "true if the password rest feature is enabled, false otherwise",
+ "name": "passwordenabled",
+ "type": "boolean"
+ },
+ {
+ "description": "NICs of the VNF appliance",
+ "name": "vnfnics",
+ "type": "list"
},
{
"description": "the list of resource tags associated",
"name": "tags",
"response": [
- {
- "description": "the ID of the domain associated with the tag",
- "name": "domainid",
- "type": "string"
- },
{
"description": "the domain associated with the tag",
"name": "domain",
"type": "string"
},
{
- "description": "the project id the tag belongs to",
- "name": "projectid",
+ "description": "tag key name",
+ "name": "key",
"type": "string"
},
{
- "description": "tag value",
- "name": "value",
+ "description": "resource type",
+ "name": "resourcetype",
"type": "string"
},
{
- "description": "customer associated with the tag",
- "name": "customer",
+ "description": "the project name where tag belongs to",
+ "name": "project",
"type": "string"
},
{
- "description": "resource type",
- "name": "resourcetype",
+ "description": "id of the resource",
+ "name": "resourceid",
"type": "string"
},
{
- "description": "the account associated with the tag",
- "name": "account",
+ "description": "the project id the tag belongs to",
+ "name": "projectid",
"type": "string"
},
{
@@ -4030,106 +3995,81 @@
"type": "string"
},
{
- "description": "tag key name",
- "name": "key",
+ "description": "the ID of the domain associated with the tag",
+ "name": "domainid",
"type": "string"
},
{
- "description": "id of the resource",
- "name": "resourceid",
+ "description": "the account associated with the tag",
+ "name": "account",
"type": "string"
},
{
- "description": "the project name where tag belongs to",
- "name": "project",
+ "description": "tag value",
+ "name": "value",
+ "type": "string"
+ },
+ {
+ "description": "customer associated with the tag",
+ "name": "customer",
"type": "string"
}
],
"type": "set"
},
{
- "description": "the name of the disk offering of the virtual machine. This parameter should not be used for retrieving disk offering details of DATA volumes. Use listVolumes API instead",
- "name": "diskofferingname",
- "type": "string"
- },
- {
- "description": "the count of GPUs on the virtual machine",
- "name": "gpucount",
- "type": "integer"
- },
- {
- "description": "the ID of the backup offering of the virtual machine",
- "name": "backupofferingid",
- "type": "string"
- },
- {
- "description": "the userdata override policy with the userdata provided while deploying VM",
- "name": "userdatapolicy",
- "type": "string"
- },
- {
- "description": "the memory used by the VM in KiB",
- "name": "memorykbs",
+ "description": "the maximum number of display heads",
+ "name": "maxheads",
"type": "long"
},
{
- "description": "the ID of the ISO attached to the virtual machine",
- "name": "isoid",
- "type": "string"
- },
- {
- "description": "the name of the ISO attached to the virtual machine",
- "name": "isoname",
+ "description": "OS type id of the vm",
+ "name": "ostypeid",
"type": "string"
},
{
- "description": "true if the entity/resource has annotations",
- "name": "hasannotations",
- "type": "boolean"
- },
- {
- "description": "path of the domain in which the virtual machine exists",
- "name": "domainpath",
+ "description": "the amount of the vm's CPU currently used",
+ "name": "cpuused",
"type": "string"
},
{
- "description": "the ID of the host for the virtual machine",
- "name": "hostid",
+ "description": "the ID of the gpu card to which service offering is linked",
+ "name": "gpucardid",
"type": "string"
},
{
- "description": " an alternate display text of the template for the virtual machine",
- "name": "templatedisplaytext",
+ "description": "the group ID of the virtual machine",
+ "name": "groupid",
"type": "string"
},
{
- "description": "the amount of the vm's CPU currently used",
- "name": "cpuused",
+ "description": "the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file.",
+ "name": "templateid",
"type": "string"
},
{
- "description": "the VM's disk read in KiB",
- "name": "diskkbsread",
+ "description": "the memory used by the VM in KiB",
+ "name": "memorykbs",
"type": "long"
},
{
- "description": "OS name of the vm",
- "name": "osdisplayname",
+ "description": "the name of the availability zone for the virtual machine",
+ "name": "zonename",
"type": "string"
},
{
- "description": "the vGPU type used by the virtual machine",
- "name": "vgpu",
- "type": "string"
+ "description": "the maximum Y resolution",
+ "name": "maxresolutiony",
+ "type": "long"
},
{
- "description": "the name of the service offering of the virtual machine",
- "name": "serviceofferingname",
- "type": "string"
+ "description": "the virtual network for the service offering",
+ "name": "forvirtualnetwork",
+ "type": "boolean"
},
{
- "description": "the name of the virtual machine",
- "name": "name",
+ "description": "the ID of the vgpu profile to which service offering is linked",
+ "name": "vgpuprofileid",
"type": "string"
},
{
@@ -4138,53 +4078,48 @@
"type": "string"
},
{
- "description": "the password (if exists) of the virtual machine",
- "name": "password",
- "type": "string"
- },
- {
- "description": "Os type ID of the virtual machine",
- "name": "guestosid",
+ "description": "the hypervisor on which the template runs",
+ "name": "hypervisor",
"type": "string"
},
{
- "description": "Guest vm Boot Mode",
- "name": "bootmode",
+ "description": "Name of AutoScale VM group",
+ "name": "autoscalevmgroupname",
"type": "string"
},
{
- "description": "the group ID of the virtual machine",
- "name": "groupid",
+ "description": "public IP address id associated with vm via Static nat rule",
+ "name": "publicip",
"type": "string"
},
{
- "description": "the name of the vgpu profile to which service offering is linked",
- "name": "vgpuprofilename",
+ "description": "the name of the domain in which the virtual machine exists",
+ "name": "domain",
"type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "the user's name who deployed the virtual machine",
+ "name": "username",
"type": "string"
},
{
- "description": "the name of the domain in which the virtual machine exists",
- "name": "domain",
- "type": "string"
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "description": "Instance lease expiry action",
- "name": "leaseexpiryaction",
- "type": "string"
+ "description": "the outgoing network traffic on the host in KiB",
+ "name": "networkkbswrite",
+ "type": "long"
},
{
- "description": "the user's name who deployed the virtual machine",
- "name": "username",
+ "description": "the name of the template for the virtual machine",
+ "name": "templatename",
"type": "string"
},
{
- "description": "the project name of the vm",
- "name": "project",
+ "description": "the format of the template for the virtual machine",
+ "name": "templateformat",
"type": "string"
},
{
@@ -4192,86 +4127,41 @@
"name": "securitygroup",
"response": [
{
- "description": "the account owning the security group",
- "name": "account",
- "type": "string"
- },
- {
- "description": "the list of virtualmachine ids associated with this securitygroup",
- "name": "virtualmachineids",
- "type": "set"
- },
- {
- "description": "the number of virtualmachines associated with this securitygroup",
- "name": "virtualmachinecount",
- "type": "integer"
- },
- {
- "description": "path of the Domain the security group belongs to",
- "name": "domainpath",
- "type": "string"
- },
- {
- "description": "the project name of the group",
- "name": "project",
+ "description": "the domain name of the security group",
+ "name": "domain",
"type": "string"
},
{
- "description": "the domain ID of the security group",
- "name": "domainid",
+ "description": "the description of the security group",
+ "name": "description",
"type": "string"
},
{
- "description": "the list of egress rules associated with the security group",
- "name": "egressrule",
+ "description": "the list of ingress rules associated with the security group",
+ "name": "ingressrule",
"response": [
- {
- "description": "the code for the ICMP message response",
- "name": "icmpcode",
- "type": "integer"
- },
- {
- "description": "the id of the security group rule",
- "name": "ruleid",
- "type": "string"
- },
- {
- "description": "the CIDR notation for the base IP address of the security group rule",
- "name": "cidr",
- "type": "string"
- },
- {
- "description": "the ending IP of the security group rule ",
- "name": "endport",
- "type": "integer"
- },
- {
- "description": "the protocol of the security group rule",
- "name": "protocol",
- "type": "string"
- },
- {
- "description": "the type of the ICMP message response",
- "name": "icmptype",
- "type": "integer"
- },
{
"description": "the list of resource tags associated with the rule",
"name": "tags",
"response": [
{
- "description": "customer associated with the tag",
- "name": "customer",
+ "description": "the project id the tag belongs to",
+ "name": "projectid",
"type": "string"
},
{
- "description": "id of the resource",
- "name": "resourceid",
+ "description": "the domain associated with the tag",
+ "name": "domain",
"type": "string"
},
{
- "description": "the domain associated with the tag",
- "name": "domain",
+ "description": "the account associated with the tag",
+ "name": "account",
+ "type": "string"
+ },
+ {
+ "description": "path of the Domain associated with the tag",
+ "name": "domainpath",
"type": "string"
},
{
@@ -4280,13 +4170,13 @@
"type": "string"
},
{
- "description": "the account associated with the tag",
- "name": "account",
+ "description": "customer associated with the tag",
+ "name": "customer",
"type": "string"
},
{
- "description": "the project id the tag belongs to",
- "name": "projectid",
+ "description": "tag key name",
+ "name": "key",
"type": "string"
},
{
@@ -4300,13 +4190,8 @@
"type": "string"
},
{
- "description": "path of the Domain associated with the tag",
- "name": "domainpath",
- "type": "string"
- },
- {
- "description": "tag key name",
- "name": "key",
+ "description": "id of the resource",
+ "name": "resourceid",
"type": "string"
},
{
@@ -4317,6 +4202,36 @@
],
"type": "set"
},
+ {
+ "description": "the type of the ICMP message response",
+ "name": "icmptype",
+ "type": "integer"
+ },
+ {
+ "description": "the code for the ICMP message response",
+ "name": "icmpcode",
+ "type": "integer"
+ },
+ {
+ "description": "the CIDR notation for the base IP address of the security group rule",
+ "name": "cidr",
+ "type": "string"
+ },
+ {
+ "description": "the protocol of the security group rule",
+ "name": "protocol",
+ "type": "string"
+ },
+ {
+ "description": "the ending IP of the security group rule ",
+ "name": "endport",
+ "type": "integer"
+ },
+ {
+ "description": "the id of the security group rule",
+ "name": "ruleid",
+ "type": "string"
+ },
{
"description": "account owning the security group rule",
"name": "account",
@@ -4336,24 +4251,126 @@
"type": "set"
},
{
- "description": "the ID of the security group",
- "name": "id",
+ "description": "path of the Domain the security group belongs to",
+ "name": "domainpath",
"type": "string"
},
{
- "description": "the description of the security group",
- "name": "description",
+ "description": "the name of the security group",
+ "name": "name",
"type": "string"
},
{
- "description": "the list of ingress rules associated with the security group",
- "name": "ingressrule",
+ "description": "the list of resource tags associated with the rule",
+ "name": "tags",
+ "response": [
+ {
+ "description": "the project name where tag belongs to",
+ "name": "project",
+ "type": "string"
+ },
+ {
+ "description": "id of the resource",
+ "name": "resourceid",
+ "type": "string"
+ },
+ {
+ "description": "tag value",
+ "name": "value",
+ "type": "string"
+ },
+ {
+ "description": "customer associated with the tag",
+ "name": "customer",
+ "type": "string"
+ },
+ {
+ "description": "tag key name",
+ "name": "key",
+ "type": "string"
+ },
+ {
+ "description": "the domain associated with the tag",
+ "name": "domain",
+ "type": "string"
+ },
+ {
+ "description": "the account associated with the tag",
+ "name": "account",
+ "type": "string"
+ },
+ {
+ "description": "the project id the tag belongs to",
+ "name": "projectid",
+ "type": "string"
+ },
+ {
+ "description": "path of the Domain associated with the tag",
+ "name": "domainpath",
+ "type": "string"
+ },
+ {
+ "description": "resource type",
+ "name": "resourcetype",
+ "type": "string"
+ },
+ {
+ "description": "the ID of the domain associated with the tag",
+ "name": "domainid",
+ "type": "string"
+ }
+ ],
+ "type": "set"
+ },
+ {
+ "description": "the account owning the security group",
+ "name": "account",
+ "type": "string"
+ },
+ {
+ "description": "the list of egress rules associated with the security group",
+ "name": "egressrule",
"response": [
+ {
+ "description": "the protocol of the security group rule",
+ "name": "protocol",
+ "type": "string"
+ },
+ {
+ "description": "the code for the ICMP message response",
+ "name": "icmpcode",
+ "type": "integer"
+ },
+ {
+ "description": "account owning the security group rule",
+ "name": "account",
+ "type": "string"
+ },
+ {
+ "description": "the CIDR notation for the base IP address of the security group rule",
+ "name": "cidr",
+ "type": "string"
+ },
+ {
+ "description": "the starting IP of the security group rule",
+ "name": "startport",
+ "type": "integer"
+ },
{
"description": "the ending IP of the security group rule ",
"name": "endport",
"type": "integer"
},
+ {
+ "description": "the type of the ICMP message response",
+ "name": "icmptype",
+ "type": "integer"
+ },
+ {
+ "description": "the id of the security group rule",
+ "name": "ruleid",
+ "type": "string"
+ },
{
"description": "security group name",
"name": "securitygroupname",
@@ -4369,224 +4386,152 @@
"type": "string"
},
{
- "description": "path of the Domain associated with the tag",
- "name": "domainpath",
+ "description": "id of the resource",
+ "name": "resourceid",
"type": "string"
},
{
- "description": "tag value",
- "name": "value",
+ "description": "customer associated with the tag",
+ "name": "customer",
"type": "string"
},
{
- "description": "id of the resource",
- "name": "resourceid",
+ "description": "the domain associated with the tag",
+ "name": "domain",
"type": "string"
},
{
- "description": "the project id the tag belongs to",
- "name": "projectid",
+ "description": "the account associated with the tag",
+ "name": "account",
"type": "string"
},
{
- "description": "the project name where tag belongs to",
- "name": "project",
+ "description": "the ID of the domain associated with the tag",
+ "name": "domainid",
"type": "string"
},
{
- "description": "resource type",
- "name": "resourcetype",
+ "description": "path of the Domain associated with the tag",
+ "name": "domainpath",
"type": "string"
},
{
- "description": "the domain associated with the tag",
- "name": "domain",
+ "description": "tag value",
+ "name": "value",
"type": "string"
},
{
- "description": "the account associated with the tag",
- "name": "account",
+ "description": "the project id the tag belongs to",
+ "name": "projectid",
"type": "string"
},
{
- "description": "customer associated with the tag",
- "name": "customer",
+ "description": "resource type",
+ "name": "resourcetype",
"type": "string"
},
{
- "description": "the ID of the domain associated with the tag",
- "name": "domainid",
+ "description": "the project name where tag belongs to",
+ "name": "project",
"type": "string"
}
],
"type": "set"
- },
- {
- "description": "the starting IP of the security group rule",
- "name": "startport",
- "type": "integer"
- },
- {
- "description": "the id of the security group rule",
- "name": "ruleid",
- "type": "string"
- },
- {
- "description": "the protocol of the security group rule",
- "name": "protocol",
- "type": "string"
- },
- {
- "description": "account owning the security group rule",
- "name": "account",
- "type": "string"
- },
- {
- "description": "the CIDR notation for the base IP address of the security group rule",
- "name": "cidr",
- "type": "string"
- },
- {
- "description": "the type of the ICMP message response",
- "name": "icmptype",
- "type": "integer"
- },
- {
- "description": "the code for the ICMP message response",
- "name": "icmpcode",
- "type": "integer"
}
],
"type": "set"
},
{
- "description": "the domain name of the security group",
- "name": "domain",
+ "description": "the ID of the security group",
+ "name": "id",
"type": "string"
},
{
- "description": "the project id of the group",
- "name": "projectid",
+ "description": "the list of virtualmachine ids associated with this securitygroup",
+ "name": "virtualmachineids",
+ "type": "set"
+ },
+ {
+ "description": "the domain ID of the security group",
+ "name": "domainid",
"type": "string"
},
{
- "description": "the list of resource tags associated with the rule",
- "name": "tags",
- "response": [
- {
- "description": "the ID of the domain associated with the tag",
- "name": "domainid",
- "type": "string"
- },
- {
- "description": "tag key name",
- "name": "key",
- "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": "resource type",
- "name": "resourcetype",
- "type": "string"
- },
- {
- "description": "the project id the tag belongs to",
- "name": "projectid",
- "type": "string"
- },
- {
- "description": "tag value",
- "name": "value",
- "type": "string"
- },
- {
- "description": "the account associated with the tag",
- "name": "account",
- "type": "string"
- },
- {
- "description": "customer associated with the tag",
- "name": "customer",
- "type": "string"
- },
- {
- "description": "the project name where tag belongs to",
- "name": "project",
- "type": "string"
- },
- {
- "description": "id of the resource",
- "name": "resourceid",
- "type": "string"
- }
- ],
- "type": "set"
+ "description": "the number of virtualmachines associated with this securitygroup",
+ "name": "virtualmachinecount",
+ "type": "integer"
},
{
- "description": "the name of the security group",
- "name": "name",
+ "description": "the project name of the group",
+ "name": "project",
+ "type": "string"
+ },
+ {
+ "description": "the project id of the group",
+ "name": "projectid",
"type": "string"
}
],
"type": "set"
},
{
- "description": "the VM's primary IP address",
- "name": "ipaddress",
+ "description": "the total number of network traffic bytes received",
+ "name": "receivedbytes",
+ "type": "long"
+ },
+ {
+ "description": "CPU arch of the VM",
+ "name": "arch",
"type": "string"
},
{
- "description": "public IP address id associated with vm via Static nat rule",
- "name": "publicip",
+ "description": "the name of the disk offering of the virtual machine. This parameter should not be used for retrieving disk offering details of DATA volumes. Use listVolumes API instead",
+ "name": "diskofferingname",
"type": "string"
},
{
- "description": "Base64 string containing the user data",
- "name": "userdata",
+ "description": "the ID of the backup offering of the virtual machine",
+ "name": "backupofferingid",
"type": "string"
},
{
- "description": "the id of userdata used for the VM",
- "name": "userdataid",
+ "description": "the name of the service offering of the virtual machine",
+ "name": "serviceofferingname",
"type": "string"
},
{
- "description": "NICs of the VNF appliance",
- "name": "vnfnics",
- "type": "list"
+ "description": "the count of GPUs on the virtual machine",
+ "name": "gpucount",
+ "type": "integer"
},
{
- "description": "the date when this virtual machine was created",
- "name": "created",
- "type": "date"
+ "description": "path of the domain in which the virtual machine exists",
+ "name": "domainpath",
+ "type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "device ID of the root volume",
+ "name": "rootdeviceid",
+ "type": "long"
},
{
- "description": "the user's ID who deployed the virtual machine",
- "name": "userid",
+ "description": "the VM's primary IP address",
+ "name": "ipaddress",
"type": "string"
},
{
- "description": "the total number of network traffic bytes received",
- "name": "receivedbytes",
- "type": "long"
+ "description": "Base64 string representation of the resource icon",
+ "name": "icon",
+ "type": "resourceiconresponse"
},
{
- "description": "Name of AutoScale VM group",
- "name": "autoscalevmgroupname",
+ "description": "the type of the template for the virtual machine",
+ "name": "templatetype",
+ "type": "string"
+ },
+ {
+ "description": "the name of the ISO attached to the virtual machine",
+ "name": "isoname",
"type": "string"
},
{
@@ -4595,16 +4540,86 @@
"type": "long"
},
{
- "description": "the name of userdata used for the VM",
- "name": "userdataname",
+ "description": "true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory.",
+ "name": "isdynamicallyscalable",
+ "type": "boolean"
+ },
+ {
+ "description": "true if vm has delete protection.",
+ "name": "deleteprotection",
+ "type": "boolean"
+ },
+ {
+ "description": "the number of vCPUs this virtual machine is using",
+ "name": "cpunumber",
+ "type": "integer"
+ },
+ {
+ "description": "the memory allocated for the virtual machine",
+ "name": "memory",
+ "type": "integer"
+ },
+ {
+ "description": "the total number of network traffic bytes sent",
+ "name": "sentbytes",
+ "type": "long"
+ },
+ {
+ "description": "the ID of the ISO attached to the virtual machine",
+ "name": "isoid",
"type": "string"
},
{
- "description": "CPU arch of the VM",
- "name": "arch",
+ "description": "device type of the root volume",
+ "name": "rootdevicetype",
"type": "string"
},
- {}
+ {
+ "description": "an optional field whether to the display the vm to the end user or not.",
+ "name": "displayvm",
+ "type": "boolean"
+ },
+ {
+ "description": "Instance lease duration in days",
+ "name": "leaseduration",
+ "type": "integer"
+ },
+ {
+ "description": "OS name of the vm",
+ "name": "osdisplayname",
+ "type": "string"
+ },
+ {
+ "description": "true if high-availability is enabled, false otherwise",
+ "name": "haenable",
+ "type": "boolean"
+ },
+ {
+ "description": "the ID of the service offering of the virtual machine",
+ "name": "serviceofferingid",
+ "type": "string"
+ },
+ {
+ "description": "Instance lease expiry action",
+ "name": "leaseexpiryaction",
+ "type": "string"
+ },
+ {
+ "description": "the state of the virtual machine",
+ "name": "state",
+ "type": "string"
+ },
+ {},
+ {
+ "description": "the VM's disk write in KiB",
+ "name": "diskkbswrite",
+ "type": "long"
+ },
+ {
+ "description": "the internal memory (KiB) that's free in VM or zero if it can not be calculated",
+ "name": "memoryintfreekbs",
+ "type": "long"
+ }
],
"since": "3.0.0"
},
@@ -4623,10 +4638,16 @@
}
],
"response": [
+ {},
{
- "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 current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{},
{
@@ -4634,16 +4655,10 @@
"name": "displaytext",
"type": "string"
},
- {},
{
"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"
}
]
},
@@ -4661,20 +4676,20 @@
}
],
"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",
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
+ {},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "any text associated with the success or failure",
+ "name": "displaytext",
"type": "string"
},
{},
@@ -4690,6 +4705,13 @@
"isasync": false,
"name": "listUcsBlades",
"params": [
+ {
+ "description": "List by keyword",
+ "length": 255,
+ "name": "keyword",
+ "required": false,
+ "type": "string"
+ },
{
"description": "ucs manager id",
"length": 255,
@@ -4711,53 +4733,46 @@
"name": "pagesize",
"required": false,
"type": "integer"
- },
- {
- "description": "List by keyword",
- "length": 255,
- "name": "keyword",
- "required": false,
- "type": "string"
}
],
"related": "associateUcsProfileToBlade",
"response": [
{
- "description": "ucs blade dn",
- "name": "bladedn",
+ "description": "ucs blade id",
+ "name": "id",
"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",
+ "description": "ucs manager id",
+ "name": "ucsmanagerid",
"type": "string"
},
{
- "description": "ucs blade id",
- "name": "id",
+ "description": "ucs blade dn",
+ "name": "bladedn",
"type": "string"
},
{
- "description": "ucs manager id",
- "name": "ucsmanagerid",
+ "description": "associated ucs profile dn",
+ "name": "profiledn",
"type": "string"
},
{
- "description": "associated ucs profile dn",
- "name": "profiledn",
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
"type": "string"
},
{
"description": "cloudstack host id this blade associates to",
"name": "hostid",
"type": "string"
+ },
+ {
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
}
]
},
@@ -4776,11 +4791,8 @@
],
"related": "getVolumeiScsiName",
"response": [
- {
- "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",
@@ -4791,8 +4803,11 @@
"name": "volumeiScsiName",
"type": "string"
},
- {},
- {}
+ {
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
+ }
]
},
{
@@ -4833,14 +4848,16 @@
"related": "listOsCategories,addOsCategory",
"response": [
{
- "description": "Base64 string representation of the resource icon",
- "name": "icon",
- "type": "resourceiconresponse"
+ "description": "the name of the OS category",
+ "name": "name",
+ "type": "string"
},
+ {},
+ {},
{
- "description": "Whether the OS category is featured",
- "name": "isfeatured",
- "type": "boolean"
+ "description": "Date when the OS category was created.",
+ "name": "created",
+ "type": "date"
},
{
"description": "the UUID of the latest async job acting on this object",
@@ -4852,23 +4869,21 @@
"name": "id",
"type": "string"
},
- {},
+ {
+ "description": "Base64 string representation of the resource icon",
+ "name": "icon",
+ "type": "resourceiconresponse"
+ },
{
"description": "the current status of the latest async job acting on this object",
"name": "jobstatus",
"type": "integer"
},
{
- "description": "Date when the OS category was created.",
- "name": "created",
- "type": "date"
- },
- {
- "description": "the name of the OS category",
- "name": "name",
- "type": "string"
- },
- {}
+ "description": "Whether the OS category is featured",
+ "name": "isfeatured",
+ "type": "boolean"
+ }
],
"since": "4.21.0"
},
@@ -4877,13 +4892,6 @@
"isasync": false,
"name": "updateHost",
"params": [
- {
- "description": "the new uri for the secondary storage: nfs://host/path",
- "length": 255,
- "name": "url",
- "required": false,
- "type": "string"
- },
{
"description": "the id of Os category to update the host with",
"length": 255,
@@ -4892,13 +4900,6 @@
"required": false,
"type": "uuid"
},
- {
- "description": "list of tags to be added to the host",
- "length": 255,
- "name": "hosttags",
- "required": false,
- "type": "list"
- },
{
"description": "Details in key/value pairs using format externaldetails[i].keyname=keyvalue. Example: externaldetails[0].endpoint.url=urlvalue",
"length": 255,
@@ -4916,163 +4917,173 @@
"type": "string"
},
{
- "description": "Change resource state of host, valid values are [Enable, Disable]. Operation may failed if host in states not allowing Enable/Disable",
+ "description": "Add an annotation to this host",
"length": 255,
- "name": "allocationstate",
+ "name": "annotation",
"required": false,
+ "since": "4.11",
"type": "string"
},
{
- "description": "Whether the informed tag is a JS interpretable rule or not.",
+ "description": "the new uri for the secondary storage: nfs://host/path",
"length": 255,
- "name": "istagarule",
+ "name": "url",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "description": "Optional boolean field, which indicates if external details should be cleaned up or not (If set to true, external details removed for this host, externaldetails field ignored; if false or not set, no action)",
+ "length": 255,
+ "name": "cleanupexternaldetails",
"required": false,
+ "since": "4.22.0",
"type": "boolean"
},
+ {
+ "description": "list of tags to be added to the host",
+ "length": 255,
+ "name": "hosttags",
+ "required": false,
+ "type": "list"
+ },
+ {
+ "description": "Change resource state of host, valid values are [Enable, Disable]. Operation may failed if host in states not allowing Enable/Disable",
+ "length": 255,
+ "name": "allocationstate",
+ "required": false,
+ "type": "string"
+ },
{
"description": "the ID of the host to update",
"length": 255,
"name": "id",
- "related": "addHost,cancelHostMaintenance,cancelHostAsDegraded,declareHostAsDegraded,listHosts,prepareHostForMaintenance,reconnectHost,updateHost,addBaremetalHost",
+ "related": "addBaremetalHost,addHost,cancelHostMaintenance,cancelHostAsDegraded,declareHostAsDegraded,listHosts,prepareHostForMaintenance,reconnectHost,updateHost",
"required": true,
"type": "uuid"
},
{
- "description": "Add an annotation to this host",
+ "description": "Whether the informed tag is a JS interpretable rule or not.",
"length": 255,
- "name": "annotation",
+ "name": "istagarule",
"required": false,
- "since": "4.11",
- "type": "string"
+ "type": "boolean"
}
],
- "related": "addHost,cancelHostMaintenance,cancelHostAsDegraded,declareHostAsDegraded,listHosts,prepareHostForMaintenance,reconnectHost,addBaremetalHost",
+ "related": "addBaremetalHost,addHost,cancelHostMaintenance,cancelHostAsDegraded,declareHostAsDegraded,listHosts,prepareHostForMaintenance,reconnectHost",
"response": [
{
- "description": "comma-separated list of tags for the host",
- "name": "hosttags",
- "type": "string"
- },
- {
- "description": "the amount of the host's CPU currently allocated after applying the cpu.overprovisioning.factor",
- "name": "cpuallocatedwithoverprovisioning",
- "type": "string"
- },
- {
- "description": "the admin that annotated this host",
- "name": "username",
+ "description": "the Zone ID of the host",
+ "name": "zoneid",
"type": "string"
},
{
- "description": "true if this host has enough CPU and RAM capacity to migrate a VM to it, false otherwise",
- "name": "hasenoughcapacity",
- "type": "boolean"
+ "description": "the cpu average load on the host",
+ "name": "cpuloadaverage",
+ "type": "double"
},
{
- "description": "the total disk size of the host",
- "name": "disksizetotal",
+ "description": "the outgoing network traffic on the host",
+ "name": "networkkbswrite",
"type": "long"
},
{
- "description": "the amount of the host's memory currently allocated in percentage",
- "name": "memoryallocatedpercentage",
- "type": "string"
- },
- {},
- {
- "description": "the ID of the host",
- "name": "id",
+ "description": "the Pod ID of the host",
+ "name": "podid",
"type": "string"
},
{
- "description": "the host hypervisor",
- "name": "hypervisor",
+ "description": "the amount of the host's CPU currently allocated",
+ "name": "cpuallocated",
"type": "string"
},
- {},
- {
- "description": "the state of the host",
- "name": "state",
- "type": "status"
- },
{
"description": "events available for the host",
"name": "events",
"type": "string"
},
{
- "description": "the Zone ID of the host",
- "name": "zoneid",
+ "description": "the OS category name of the host",
+ "name": "oscategoryname",
"type": "string"
},
{
- "description": "the date and time the host was last pinged",
- "name": "lastpinged",
- "type": "date"
+ "description": "true if the host is Ha host (dedicated to vms started by HA process; false otherwise",
+ "name": "hahost",
+ "type": "boolean"
},
{
- "description": "the last time this host was annotated",
- "name": "lastannotated",
- "type": "date"
+ "description": "the cluster type of the cluster that host belongs to",
+ "name": "clustertype",
+ "type": "string"
},
{
- "description": "the name of the host",
- "name": "name",
- "type": "string"
+ "description": "the total disk size of the host",
+ "name": "disksizetotal",
+ "type": "long"
},
{
- "description": "the date and time the host was removed",
- "name": "removed",
- "type": "date"
+ "description": "comma-separated list of explicit host tags for the host",
+ "name": "explicithosttags",
+ "type": "string"
},
{
- "description": "Total GPUs on the Host",
- "name": "gputotal",
+ "description": "the CPU speed of the host",
+ "name": "cpuspeed",
"type": "long"
},
{
- "description": "Host details in key/value pairs.",
- "name": "details",
- "type": "map"
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
},
{
- "description": "the host type",
- "name": "type",
- "type": "type"
+ "description": "the amount of the host's memory after applying the mem.overprovisioning.factor",
+ "name": "memorywithoverprovisioning",
+ "type": "string"
},
{
- "description": "true if the entity/resource has annotations",
- "name": "hasannotations",
- "type": "boolean"
+ "description": "the amount of the host's memory currently allocated in percentage",
+ "name": "memoryallocatedpercentage",
+ "type": "string"
},
{
- "description": "the amount of the host's memory currently allocated in bytes",
- "name": "memoryallocatedbytes",
- "type": "long"
+ "description": "the last time this host was annotated",
+ "name": "lastannotated",
+ "type": "date"
},
{
- "description": "the OS category ID of the host",
- "name": "oscategoryid",
+ "description": "the admin that annotated this host",
+ "name": "username",
"type": "string"
},
{
- "description": "comma-separated list of explicit host tags for the host",
- "name": "explicithosttags",
+ "description": "the amount of the host's CPU after applying the cpu.overprovisioning.factor",
+ "name": "cpuwithoverprovisioning",
"type": "string"
},
{
- "description": "the CPU speed of the host",
- "name": "cpuspeed",
+ "description": "the host version",
+ "name": "version",
+ "type": "string"
+ },
+ {
+ "description": "Total GPUs on the Host",
+ "name": "gputotal",
"type": "long"
},
{
- "description": "the management server ID of the host",
- "name": "managementserverid",
- "type": "string"
+ "description": "Whether the informed tag is a JS interpretable rule or not.",
+ "name": "istagarule",
+ "type": "boolean"
},
{
- "description": "the amount of the host's CPU currently used",
- "name": "cpuused",
+ "description": "Host details in key/value pairs.",
+ "name": "details",
+ "type": "map"
+ },
+ {
+ "description": "the amount of the host's CPU currently allocated in percentage",
+ "name": "cpuallocatedpercentage",
"type": "string"
},
{
@@ -5089,18 +5100,13 @@
"type": "long"
},
{
- "description": "Maximum displays per user",
- "name": "maxheads",
+ "description": "Maximum no. of vgpu per gpu card (pgpu)",
+ "name": "maxvgpuperpgpu",
"type": "long"
},
{
- "description": "Model Name of vGPU",
- "name": "vgputype",
- "type": "string"
- },
- {
- "description": "Maximum X resolution per display",
- "name": "maxresolutionx",
+ "description": "Video RAM for this vGPU type",
+ "name": "videoram",
"type": "long"
},
{
@@ -5109,18 +5115,23 @@
"type": "long"
},
{
- "description": "Maximum no. of vgpu per gpu card (pgpu)",
- "name": "maxvgpuperpgpu",
+ "description": "Maximum displays per user",
+ "name": "maxheads",
"type": "long"
},
{
- "description": "Video RAM for this vGPU type",
- "name": "videoram",
+ "description": "Maximum vgpu can be created with this vgpu type on the given gpu group",
+ "name": "maxcapacity",
"type": "long"
},
{
- "description": "Maximum vgpu can be created with this vgpu type on the given gpu group",
- "name": "maxcapacity",
+ "description": "Model Name of vGPU",
+ "name": "vgputype",
+ "type": "string"
+ },
+ {
+ "description": "Maximum X resolution per display",
+ "name": "maxresolutionx",
"type": "long"
}
],
@@ -5134,89 +5145,90 @@
],
"type": "list"
},
+ {},
{
- "description": "true if this host is suitable(has enough capacity and satisfies all conditions like hosttags, max guests vm limit etc) to migrate a VM to it , false otherwise",
- "name": "suitableformigration",
- "type": "boolean"
+ "description": "the Zone name of the host",
+ "name": "zonename",
+ "type": "string"
},
{
- "description": "comma-separated list of storage access groups on the pod",
- "name": "podstorageaccessgroups",
+ "description": "capabilities of the host",
+ "name": "capabilities",
"type": "string"
},
{
- "description": "the amount of the host's CPU after applying the cpu.overprovisioning.factor",
- "name": "cpuwithoverprovisioning",
- "type": "string"
+ "description": "the date and time the host was created",
+ "name": "created",
+ "type": "date"
},
{
- "description": "the host HA information information",
- "name": "hostha",
- "type": "hostharesponse"
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
{
- "description": "the memory total of the host, this parameter is deprecated use memorywithoverprovisioning",
- "name": "memorytotal",
+ "description": "the amount of the host's memory currently used",
+ "name": "memoryused",
"type": "long"
},
{
- "description": "true if the host has capability to support UEFI boot",
- "name": "ueficapability",
- "type": "boolean"
+ "description": "the date and time the host was last pinged",
+ "name": "lastpinged",
+ "type": "date"
},
{
- "description": "the outgoing network traffic on the host",
- "name": "networkkbswrite",
- "type": "long"
+ "description": "the host HA information information",
+ "name": "hostha",
+ "type": "hostharesponse"
},
{
- "description": "capabilities of the host",
- "name": "capabilities",
+ "description": "the state of the host",
+ "name": "state",
+ "type": "status"
+ },
+ {
+ "description": "the hypervisor version",
+ "name": "hypervisorversion",
"type": "string"
},
{
- "description": "the Pod ID of the host",
- "name": "podid",
+ "description": "the Pod name of the host",
+ "name": "podname",
"type": "string"
},
{
- "description": "true if the host supports encryption",
- "name": "encryptionsupported",
- "type": "boolean"
+ "description": "the resource state of the host",
+ "name": "resourcestate",
+ "type": "string"
},
{
- "description": "the amount of the host's CPU currently allocated in percentage",
- "name": "cpuallocatedpercentage",
+ "description": "comma-separated list of storage access groups for the host",
+ "name": "storageaccessgroups",
"type": "string"
},
{
- "description": "the amount of the host's memory currently used",
- "name": "memoryused",
+ "description": "the amount of the host's memory currently allocated in bytes",
+ "name": "memoryallocatedbytes",
"type": "long"
},
{
- "description": "comma-separated list of storage access groups on the cluster",
- "name": "clusterstorageaccessgroups",
- "type": "string"
+ "description": "true if local storage is active, false otherwise",
+ "name": "islocalstorageactive",
+ "type": "boolean"
},
{
- "description": "the amount of the host's memory after applying the mem.overprovisioning.factor",
- "name": "memorywithoverprovisioning",
+ "description": "the last annotation set on this host by an admin",
+ "name": "annotation",
"type": "string"
},
{
- "description": "the cluster ID of the host",
- "name": "clusterid",
+ "description": "the name of the host",
+ "name": "name",
"type": "string"
},
{
- "description": "true if local storage is active, false otherwise",
- "name": "islocalstorageactive",
- "type": "boolean"
- },
- {
- "description": "the Pod name of the host",
- "name": "podname",
+ "description": "the ID of the host",
+ "name": "id",
"type": "string"
},
{
@@ -5225,23 +5237,23 @@
"type": "long"
},
{
- "description": "the host's currently allocated disk size",
- "name": "disksizeallocated",
- "type": "long"
+ "description": "true if the host supports encryption",
+ "name": "encryptionsupported",
+ "type": "boolean"
},
{
- "description": "comma-separated list of implicit host tags for the host",
- "name": "implicithosttags",
+ "description": "The name of extension for this cluster",
+ "name": "extensionname",
"type": "string"
},
{
- "description": "the resource state of the host",
- "name": "resourcestate",
- "type": "string"
+ "description": "the memory total of the host, this parameter is deprecated use memorywithoverprovisioning",
+ "name": "memorytotal",
+ "type": "long"
},
{
- "description": "CPU Arch of the host",
- "name": "arch",
+ "description": "comma-separated list of implicit host tags for the host",
+ "name": "implicithosttags",
"type": "string"
},
{
@@ -5250,33 +5262,39 @@
"type": "integer"
},
{
- "description": "the IP address of the host",
- "name": "ipaddress",
- "type": "string"
+ "description": "true if this host has enough CPU and RAM capacity to migrate a VM to it, false otherwise",
+ "name": "hasenoughcapacity",
+ "type": "boolean"
},
+ {},
{
- "description": "the amount of the host's CPU currently allocated",
- "name": "cpuallocated",
- "type": "string"
+ "description": "true if the host is disconnected. False otherwise.",
+ "name": "disconnected",
+ "type": "date"
},
{
- "description": "true if the host supports instance conversion (using virt-v2v)",
- "name": "instanceconversionsupported",
+ "description": "true if this host is suitable(has enough capacity and satisfies all conditions like hosttags, max guests vm limit etc) to migrate a VM to it , false otherwise",
+ "name": "suitableformigration",
"type": "boolean"
},
{
- "description": "the hypervisor version",
- "name": "hypervisorversion",
+ "description": "the amount of the host's CPU currently used",
+ "name": "cpuused",
"type": "string"
},
{
- "description": "The name of extension for this cluster",
- "name": "extensionname",
+ "description": "the host out-of-band management information",
+ "name": "outofbandmanagement",
+ "type": "outofbandmanagementresponse"
+ },
+ {
+ "description": "comma-separated list of storage access groups on the zone",
+ "name": "zonestorageaccessgroups",
"type": "string"
},
{
- "description": "The ID of extension for this cluster",
- "name": "extensionid",
+ "description": "the host hypervisor",
+ "name": "hypervisor",
"type": "string"
},
{
@@ -5285,54 +5303,65 @@
"type": "string"
},
{
- "description": "comma-separated list of storage access groups for the host",
- "name": "storageaccessgroups",
+ "description": "the OS category ID of the host",
+ "name": "oscategoryid",
"type": "string"
},
- {
- "description": "the cpu average load on the host",
- "name": "cpuloadaverage",
- "type": "double"
- },
{
"description": "the cluster name of the host",
"name": "clustername",
"type": "string"
},
+ {
+ "description": "the cluster ID of the host",
+ "name": "clusterid",
+ "type": "string"
+ },
+ {},
{
"description": "the amount of the host's CPU currently allocated in MHz",
"name": "cpuallocatedvalue",
"type": "long"
},
{
- "description": "the host version",
- "name": "version",
+ "description": "the management server ID of the host",
+ "name": "managementserverid",
"type": "string"
},
{
- "description": "the cluster type of the cluster that host belongs to",
- "name": "clustertype",
+ "description": "The ID of extension for this cluster",
+ "name": "extensionid",
"type": "string"
},
{
- "description": "true if the host is disconnected. False otherwise.",
- "name": "disconnected",
+ "description": "the amount of the host's CPU currently allocated after applying the cpu.overprovisioning.factor",
+ "name": "cpuallocatedwithoverprovisioning",
+ "type": "string"
+ },
+ {
+ "description": "the date and time the host was removed",
+ "name": "removed",
"type": "date"
},
{
- "description": "the management server name of the host",
- "name": "managementservername",
- "type": "string"
+ "description": "the host's currently allocated disk size",
+ "name": "disksizeallocated",
+ "type": "long"
},
{
- "description": "the date and time the host was created",
- "name": "created",
- "type": "date"
+ "description": "true if the host has capability to support UEFI boot",
+ "name": "ueficapability",
+ "type": "boolean"
},
{
- "description": "the number of CPU sockets on the host",
- "name": "cpusockets",
- "type": "integer"
+ "description": "the IP address of the host",
+ "name": "ipaddress",
+ "type": "string"
+ },
+ {
+ "description": "the amount of the host's memory currently allocated",
+ "name": "memoryallocated",
+ "type": "long"
},
{
"description": "Used GPUs on the Host",
@@ -5340,56 +5369,50 @@
"type": "long"
},
{
- "description": "comma-separated list of storage access groups on the zone",
- "name": "zonestorageaccessgroups",
- "type": "string"
+ "description": "the number of CPU sockets on the host",
+ "name": "cpusockets",
+ "type": "integer"
},
{
- "description": "the Zone name of the host",
- "name": "zonename",
+ "description": "CPU Arch of the host",
+ "name": "arch",
"type": "string"
},
{
- "description": "Whether the informed tag is a JS interpretable rule or not.",
- "name": "istagarule",
- "type": "boolean"
+ "description": "comma-separated list of tags for the host",
+ "name": "hosttags",
+ "type": "string"
},
{
- "description": "the OS category name of the host",
- "name": "oscategoryname",
+ "description": "comma-separated list of storage access groups on the cluster",
+ "name": "clusterstorageaccessgroups",
"type": "string"
},
{
- "description": "the current status of the latest async job acting on this object",
- "name": "jobstatus",
- "type": "integer"
+ "description": "true if the entity/resource has annotations",
+ "name": "hasannotations",
+ "type": "boolean"
},
{
- "description": "the last annotation set on this host by an admin",
- "name": "annotation",
- "type": "string"
+ "description": "the host type",
+ "name": "type",
+ "type": "type"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "comma-separated list of storage access groups on the pod",
+ "name": "podstorageaccessgroups",
"type": "string"
},
{
- "description": "the amount of the host's memory currently allocated",
- "name": "memoryallocated",
- "type": "long"
- },
- {
- "description": "the host out-of-band management information",
- "name": "outofbandmanagement",
- "type": "outofbandmanagementresponse"
+ "description": "the management server name of the host",
+ "name": "managementservername",
+ "type": "string"
},
{
- "description": "true if the host is Ha host (dedicated to vms started by HA process; false otherwise",
- "name": "hahost",
+ "description": "true if the host supports instance conversion (using virt-v2v)",
+ "name": "instanceconversionsupported",
"type": "boolean"
- },
- {}
+ }
]
},
{
@@ -5398,11 +5421,12 @@
"name": "createEgressFirewallRule",
"params": [
{
- "description": "the protocol for the firewall rule. Valid values are TCP/UDP/ICMP.",
+ "description": "an optional field, whether to the display the rule to the end user or not",
"length": 255,
- "name": "protocol",
- "required": true,
- "type": "string"
+ "name": "fordisplay",
+ "required": false,
+ "since": "4.4",
+ "type": "boolean"
},
{
"description": "the cidr list to forward traffic from. Multiple entries must be separated by a single comma character (,).",
@@ -5412,11 +5436,11 @@
"type": "list"
},
{
- "description": "error code for this icmp message",
+ "description": "the cidr list to forward traffic to. Multiple entries must be separated by a single comma character (,).",
"length": 255,
- "name": "icmpcode",
+ "name": "destcidrlist",
"required": false,
- "type": "integer"
+ "type": "list"
},
{
"description": "the ending port of firewall rule",
@@ -5425,14 +5449,6 @@
"required": false,
"type": "integer"
},
- {
- "description": "an optional field, whether to the display the rule to the end user or not",
- "length": 255,
- "name": "fordisplay",
- "required": false,
- "since": "4.4",
- "type": "boolean"
- },
{
"description": "type of the icmp message being sent",
"length": 255,
@@ -5440,6 +5456,13 @@
"required": false,
"type": "integer"
},
+ {
+ "description": "the protocol for the firewall rule. Valid values are TCP/UDP/ICMP.",
+ "length": 255,
+ "name": "protocol",
+ "required": true,
+ "type": "string"
+ },
{
"description": "type of firewallrule: system/user",
"length": 255,
@@ -5454,13 +5477,6 @@
"required": false,
"type": "integer"
},
- {
- "description": "the cidr list to forward traffic to. Multiple entries must be separated by a single comma character (,).",
- "length": 255,
- "name": "destcidrlist",
- "required": false,
- "type": "list"
- },
{
"description": "the network id of the port forwarding rule",
"length": 255,
@@ -5468,57 +5484,59 @@
"related": "createNetwork,listNetworks,updateNetwork,createNetwork,updateNetwork,listNetworks,migrateNetwork,listNetscalerLoadBalancerNetworks,listNiciraNvpDeviceNetworks,listPaloAltoFirewallNetworks,listBrocadeVcsDeviceNetworks",
"required": true,
"type": "uuid"
+ },
+ {
+ "description": "error code for this icmp message",
+ "length": 255,
+ "name": "icmpcode",
+ "required": false,
+ "type": "integer"
}
],
"related": "createFirewallRule,listEgressFirewallRules,listFirewallRules,updateEgressFirewallRule,updateFirewallRule",
"response": [
{
- "description": "the network id of the firewall rule",
- "name": "networkid",
+ "description": "the ID of the firewall rule",
+ "name": "id",
"type": "string"
},
{
- "description": "the cidr list to forward traffic from. Multiple entries are separated by a single comma character (,).",
- "name": "cidrlist",
- "type": "string"
+ "description": "error code for this icmp message",
+ "name": "icmpcode",
+ "type": "integer"
},
{
- "description": "the ID of the firewall rule",
- "name": "id",
- "type": "string"
+ "description": "type of the icmp message being sent",
+ "name": "icmptype",
+ "type": "integer"
},
{
- "description": "the public ip address id for the firewall rule",
- "name": "ipaddressid",
+ "description": "the traffic type for the firewall rule",
+ "name": "traffictype",
"type": "string"
},
{
- "description": "the UUID of the latest async job acting on this object",
- "name": "jobid",
+ "description": "the public ip address for the firewall rule",
+ "name": "ipaddress",
"type": "string"
},
{
- "description": "type of the icmp message being sent",
- "name": "icmptype",
- "type": "integer"
+ "description": "the public ip address id for the firewall rule",
+ "name": "ipaddressid",
+ "type": "string"
},
{
"description": "the list of resource tags associated with the rule",
"name": "tags",
"response": [
- {
- "description": "path of the Domain associated with the tag",
- "name": "domainpath",
- "type": "string"
- },
{
"description": "id of the resource",
"name": "resourceid",
"type": "string"
},
{
- "description": "the domain associated with the tag",
- "name": "domain",
+ "description": "the project id the tag belongs to",
+ "name": "projectid",
"type": "string"
},
{
@@ -5532,8 +5550,18 @@
"type": "string"
},
{
... 237984 lines suppressed ...