You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/07/27 06:26:14 UTC
[cloudstack-go] branch main updated (b4a5c14 -> 2691fd1)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git.
from b4a5c14 Update go module path with Apache home (#1)
new fb793b4 listApis: update as per 4.15.1.0 version
new 7d8c43f layout: remove Nuage service, Nuage related feature/APIs were deprecated and removed
new 2691fd1 cloudstack: auto-generate sdk based on 4.15.1.0 listApis.json
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
cloudstack/AccountService.go | 150 +-
cloudstack/AddressService.go | 28 +-
cloudstack/AffinityGroupService.go | 6 +
cloudstack/BrocadeVCSService.go | 3 +
cloudstack/ConfigurationService.go | 40 +-
cloudstack/DiskOfferingService.go | 227 +-
cloudstack/HostService.go | 1080 +-
cloudstack/ISOService.go | 61 +
cloudstack/ImageStoreService.go | 149 +-
cloudstack/InternalLBService.go | 335 +-
cloudstack/LDAPService.go | 85 +-
cloudstack/LoadBalancerService.go | 11 +
cloudstack/NetworkACLService.go | 3 +
cloudstack/NetworkOfferingService.go | 64 +
cloudstack/NetworkService.go | 65 +
cloudstack/NicService.go | 11 +
cloudstack/PoolService.go | 10 +
cloudstack/ProjectService.go | 553 +-
cloudstack/RoleService.go | 53 +-
cloudstack/RouterService.go | 659 +-
cloudstack/SSHService.go | 6 +
cloudstack/ServiceOfferingService.go | 180 +-
cloudstack/SnapshotService.go | 121 +-
cloudstack/SwiftService.go | 46 +-
cloudstack/SystemVMService.go | 40 +
cloudstack/TemplateService.go | 84 +-
cloudstack/UsageService.go | 54 +
cloudstack/VPCService.go | 116 +
cloudstack/VPNService.go | 179 +-
cloudstack/VirtualMachineService.go | 300 +-
cloudstack/VolumeService.go | 42 +
cloudstack/ZoneService.go | 11 +
cloudstack/cloudstack.go | 10 -
generate/layout.go | 6 -
generate/listApis.json | 222421 +++++++++++++++++---------------
35 files changed, 120978 insertions(+), 106231 deletions(-)
[cloudstack-go] 01/03: listApis: update as per 4.15.1.0 version
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git
commit fb793b49c1f8f98df1ade64201dbb30c7065ee0b
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Tue Jul 27 11:53:50 2021 +0530
listApis: update as per 4.15.1.0 version
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
generate/listApis.json | 222421 ++++++++++++++++++++++++----------------------
1 file changed, 117662 insertions(+), 104759 deletions(-)
diff --git a/generate/listApis.json b/generate/listApis.json
index c485670..e53f1b8 100644
--- a/generate/listApis.json
+++ b/generate/listApis.json
@@ -1,106215 +1,119118 @@
{
- "api": [
+ "api": [
+ {
+ "description": "Creates VPC offering",
+ "isasync": true,
+ "name": "createVPCOffering",
+ "params": [
+ {
+ "description": "the name of the vpc offering",
+ "length": 255,
+ "name": "name",
+ "required": true,
+ "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 ID of the containing zone(s), null for public offerings",
+ "length": 255,
+ "name": "zoneid",
+ "related": "createZone,updateZone,listZones,listZones",
+ "required": false,
+ "since": "4.13",
+ "type": "list"
+ },
+ {
+ "description": "the ID of the containing domain(s), null for public offerings",
+ "length": 255,
+ "name": "domainid",
+ "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain",
+ "required": false,
+ "type": "list"
+ },
+ {
+ "description": "the display text of the vpc offering",
+ "length": 255,
+ "name": "displaytext",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "description": "services supported by the vpc offering",
+ "length": 255,
+ "name": "supportedservices",
+ "required": true,
+ "type": "list"
+ },
+ {
+ "description": "desired service capabilities as part of vpc offering",
+ "length": 255,
+ "name": "servicecapabilitylist",
+ "required": false,
+ "since": "4.4",
+ "type": "map"
+ },
+ {
+ "description": "the ID of the service offering for the VPC router appliance",
+ "length": 255,
+ "name": "serviceofferingid",
+ "related": "createServiceOffering,updateServiceOffering,listServiceOfferings",
+ "required": false,
+ "type": "uuid"
+ }
+ ],
+ "related": "updateVPCOffering,listVPCOfferings",
+ "response": [
{
- "name": "createVPCOffering",
- "description": "Creates VPC offering",
- "isasync": true,
- "related": "updateVPCOffering,listVPCOfferings",
- "params": [
- {
- "name": "servicecapabilitylist",
- "description": "desired service capabilities as part of vpc offering",
- "type": "map",
- "length": 255,
- "required": false,
- "since": "4.4"
- },
- {
- "name": "displaytext",
- "description": "the display text of the vpc offering",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "serviceproviderlist",
- "description": "provider to service mapping. If not specified, the provider for the service will be mapped to the default provider on the physical network",
- "type": "map",
- "length": 255,
- "required": false
- },
- {
- "name": "supportedservices",
- "description": "services supported by the vpc offering",
- "type": "list",
- "length": 255,
- "required": true
- },
- {
- "name": "serviceofferingid",
- "description": "the ID of the service offering for the VPC router appliance",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createServiceOffering,listServiceOfferings,updateServiceOffering"
- },
- {
- "name": "name",
- "description": "the name of the vpc offering",
- "type": "string",
- "length": 255,
- "required": true
- }
- ],
- "response": [
- {
- "name": "created",
- "description": "the date this vpc offering was created",
- "type": "date"
- },
- {
-
- },
- {
- "name": "id",
- "description": "the id of the vpc offering",
- "type": "string"
- },
- {
- "name": "service",
- "description": "the list of supported services",
- "type": "list",
- "response": [
- {
- "name": "provider",
- "description": "the service provider name",
- "type": "list",
- "response": [
- {
- "name": "name",
- "description": "the provider name",
- "type": "string"
- },
- {
- "name": "servicelist",
- "description": "services for this provider",
- "type": "list"
- },
- {
- "name": "physicalnetworkid",
- "description": "the physical network this belongs to",
- "type": "string"
- },
- {
- "name": "id",
- "description": "uuid of the network provider",
- "type": "string"
- },
- {
- "name": "canenableindividualservice",
- "description": "true if individual services can be enabled/disabled",
- "type": "boolean"
- },
- {
- "name": "destinationphysicalnetworkid",
- "description": "the destination physical network",
- "type": "string"
- },
- {
- "name": "state",
- "description": "state of the network provider",
- "type": "string"
- }
- ]
- },
- {
- "name": "capability",
- "description": "the list of capabilities",
- "type": "list",
- "response": [
- {
- "name": "canchooseservicecapability",
- "description": "can this service capability value can be choosable while creatine network offerings",
- "type": "boolean"
- },
- {
- "name": "value",
- "description": "the capability value",
- "type": "string"
- },
- {
- "name": "name",
- "description": "the capability name",
- "type": "string"
- }
- ]
- },
- {
- "name": "name",
- "description": "the service name",
- "type": "string"
- }
- ]
- },
- {
- "name": "distributedvpcrouter",
- "description": " indicates if the vpc offering supports distributed router for one-hop forwarding",
- "type": "boolean"
- },
- {
- "name": "supportsregionLevelvpc",
- "description": " indicated if the offering can support region level vpc",
- "type": "boolean"
- },
- {
- "name": "state",
- "description": "state of the vpc offering. Can be Disabled/Enabled",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "isdefault",
- "description": "true if vpc offering is default, false otherwise",
- "type": "boolean"
- },
- {
- "name": "name",
- "description": "the name of the vpc offering",
- "type": "string"
- },
- {
- "name": "displaytext",
- "description": "an alternate display text of the vpc offering.",
- "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"
},
{
- "name": "createPod",
- "description": "Creates a new Pod.",
- "isasync": false,
- "related": "listPods,createManagementNetworkIpRange,updatePod",
- "params": [
- {
- "name": "netmask",
- "description": "the netmask for the Pod",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "allocationstate",
- "description": "Allocation state of this Pod for allocation of new resources",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "startip",
- "description": "the starting IP address for the Pod",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "name",
- "description": "the name of the Pod",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "endip",
- "description": "the ending IP address for the Pod",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "gateway",
- "description": "the gateway for the Pod",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "zoneid",
- "description": "the Zone ID in which the Pod will be created",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "createZone,updateZone,listZones,listZones"
- }
- ],
- "response": [
- {
- "name": "forsystemvms",
- "description": "indicates if range is dedicated for CPVM and SSVM",
- "type": "list"
- },
- {
- "name": "zonename",
- "description": "the Zone name of the Pod",
- "type": "string"
- },
- {
-
- },
- {
- "name": "gateway",
- "description": "the gateway of the Pod",
- "type": "string"
- },
- {
- "name": "name",
- "description": "the name of the Pod",
- "type": "string"
- },
- {
- "name": "vlanid",
- "description": "indicates Vlan ID for the range",
- "type": "list"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "capacity",
- "description": "the capacity of the Pod",
- "type": "list",
- "response": [
- {
- "name": "podid",
- "description": "the Pod ID",
- "type": "string"
- },
- {
- "name": "capacitytotal",
- "description": "the total capacity available",
- "type": "long"
- },
- {
- "name": "name",
- "description": "the capacity name",
- "type": "string"
- },
- {
- "name": "zonename",
- "description": "the Zone name",
- "type": "string"
- },
- {
- "name": "clusterid",
- "description": "the Cluster ID",
- "type": "string"
- },
- {
- "name": "clustername",
- "description": "the Cluster name",
- "type": "string"
- },
- {
- "name": "percentused",
- "description": "the percentage of capacity currently in use",
- "type": "string"
- },
- {
- "name": "type",
- "description": "the capacity type",
- "type": "short"
- },
- {
- "name": "podname",
- "description": "the Pod name",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "the Zone ID",
- "type": "string"
- },
- {
- "name": "capacityallocated",
- "description": "the capacity currently in allocated",
- "type": "long"
- },
- {
- "name": "capacityused",
- "description": "the capacity currently in use",
- "type": "long"
- }
- ]
- },
- {
- "name": "zoneid",
- "description": "the Zone ID of the Pod",
- "type": "string"
- },
- {
-
- },
- {
- "name": "id",
- "description": "the ID of the Pod",
- "type": "string"
- },
- {
- "name": "startip",
- "description": "the starting IP for the Pod",
- "type": "list"
- },
- {
- "name": "netmask",
- "description": "the netmask of the Pod",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "allocationstate",
- "description": "the allocation state of the Pod",
- "type": "string"
- },
- {
- "name": "endip",
- "description": "the ending IP for the Pod",
- "type": "list"
- }
- ]
+ "description": "true if vpc offering is default, false otherwise",
+ "name": "isdefault",
+ "type": "boolean"
},
{
- "name": "ldapCreateAccount",
- "description": "Creates an account from an LDAP user",
- "since": "4.2.0",
- "isasync": false,
- "related": "enableAccount,createAccount,markDefaultZoneForAccount,lockAccount,updateAccount,listAccounts,disableAccount,listAccounts",
- "params": [
- {
- "name": "roleid",
- "description": "Creates the account under the specified role.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "updateRole,createRole,listRoles"
- },
- {
- "name": "domainid",
- "description": "Creates the user under the specified domain.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- },
- {
- "name": "userid",
- "description": "User UUID, required for adding account from external provisioning system",
- "type": "string",
- "length": 255,
- "required": false
- },
+ "description": "the id of the vpc offering",
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "description": "the name of the vpc offering",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "description": " indicated if the offering can support region level vpc",
+ "name": "supportsregionLevelvpc",
+ "type": "boolean"
+ },
+ {
+ "description": "the list of supported services",
+ "name": "service",
+ "response": [
+ {
+ "description": "the service name",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "description": "the service provider name",
+ "name": "provider",
+ "response": [
{
- "name": "timezone",
- "description": "Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.",
- "type": "string",
- "length": 255,
- "required": false
+ "description": "services for this provider",
+ "name": "servicelist",
+ "type": "list"
},
{
- "name": "networkdomain",
- "description": "Network domain for the account's networks",
- "type": "string",
- "length": 255,
- "required": false
+ "description": "the provider name",
+ "name": "name",
+ "type": "string"
},
{
- "name": "username",
- "description": "Unique username.",
- "type": "string",
- "length": 255,
- "required": true
+ "description": "the physical network this belongs to",
+ "name": "physicalnetworkid",
+ "type": "string"
},
{
- "name": "accounttype",
- "description": "Type of the account. Specify 0 for user, 1 for root admin, and 2 for domain admin",
- "type": "short",
- "length": 255,
- "required": false
+ "description": "state of the network provider",
+ "name": "state",
+ "type": "string"
},
{
- "name": "accountdetails",
- "description": "details for account used to store specific parameters",
- "type": "map",
- "length": 255,
- "required": false
+ "description": "the destination physical network",
+ "name": "destinationphysicalnetworkid",
+ "type": "string"
},
{
- "name": "account",
- "description": "Creates the user under the specified account. If no account is specified, the username will be used as the account name.",
- "type": "string",
- "length": 255,
- "required": false
+ "description": "true if individual services can be enabled/disabled",
+ "name": "canenableindividualservice",
+ "type": "boolean"
},
{
- "name": "accountid",
- "description": "Account UUID, required for adding account from external provisioning system",
- "type": "string",
- "length": 255,
- "required": false
+ "description": "uuid of the network provider",
+ "name": "id",
+ "type": "string"
}
- ],
- "response": [
- {
- "name": "memorytotal",
- "description": "the total memory (in MB) owned by account",
- "type": "long"
- },
- {
- "name": "cpuavailable",
- "description": "the total number of cpu cores available to be created for this account",
- "type": "string"
- },
- {
- "name": "volumeavailable",
- "description": "the total volume available for this account",
- "type": "string"
- },
- {
- "name": "cpulimit",
- "description": "the total number of cpu cores the account can own",
- "type": "string"
- },
- {
- "name": "templateavailable",
- "description": "the total number of templates available to be created by this account",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the id of the account",
- "type": "string"
- },
- {
- "name": "projecttotal",
- "description": "the total number of projects being administrated by this account",
- "type": "long"
- },
- {
- "name": "name",
- "description": "the name of the account",
- "type": "string"
- },
- {
- "name": "iptotal",
- "description": "the total number of public ip addresses allocated for this account",
- "type": "long"
- },
- {
- "name": "roletype",
- "description": "the type of the role (Admin, ResourceAdmin, DomainAdmin, User)",
- "type": "string"
- },
- {
- "name": "networkavailable",
- "description": "the total number of networks available to be created for this account",
- "type": "string"
- },
- {
- "name": "rolename",
- "description": "the name of the role",
- "type": "string"
- },
- {
- "name": "accounttype",
- "description": "account type (admin, domain-admin, user)",
- "type": "short"
- },
- {
- "name": "memorylimit",
- "description": "the total memory (in MB) the account can own",
- "type": "string"
- },
- {
- "name": "volumetotal",
- "description": "the total volume being used by this account",
- "type": "long"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "vmtotal",
- "description": "the total number of virtual machines deployed by this account",
- "type": "long"
- },
- {
- "name": "iscleanuprequired",
- "description": "true if the account requires cleanup",
- "type": "boolean"
- },
- {
- "name": "networkdomain",
- "description": "the network domain",
- "type": "string"
- },
- {
- "name": "snapshottotal",
- "description": "the total number of snapshots stored by this account",
- "type": "long"
- },
- {
- "name": "templatelimit",
- "description": "the total number of templates which can be created by this account",
- "type": "string"
- },
- {
- "name": "defaultzoneid",
- "description": "the default zone of the account",
- "type": "string"
- },
- {
- "name": "vmavailable",
- "description": "the total number of virtual machines available for this account to acquire",
- "type": "string"
- },
- {
- "name": "vpcavailable",
- "description": "the total number of vpcs available to be created for this account",
- "type": "string"
- },
- {
- "name": "iplimit",
- "description": "the total number of public ip addresses this account can acquire",
- "type": "string"
- },
- {
- "name": "vmrunning",
- "description": "the total number of virtual machines running for this account",
- "type": "integer"
- },
- {
- "name": "snapshotlimit",
- "description": "the total number of snapshots which can be stored by this account",
- "type": "string"
- },
- {
- "name": "user",
- "description": "the list of users associated with account",
- "type": "list",
- "response": [
- {
- "name": "accounttype",
- "description": "the account type of the user",
- "type": "short"
- },
- {
- "name": "domainid",
- "description": "the domain ID of the user",
- "type": "string"
- },
- {
- "name": "created",
- "description": "the date and time the user account was created",
- "type": "date"
- },
- {
- "name": "usersource",
- "description": "the source type of the user in lowercase, such as native, ldap, saml2",
- "type": "string"
- },
- {
- "name": "accountid",
- "description": "the account ID of the user",
- "type": "string"
- },
- {
- "name": "state",
- "description": "the user state",
- "type": "string"
- },
- {
- "name": "rolename",
- "description": "the name of the role",
- "type": "string"
- },
- {
- "name": "roleid",
- "description": "the ID of the role",
- "type": "string"
- },
- {
- "name": "timezone",
- "description": "the timezone user was created in",
- "type": "string"
- },
- {
- "name": "email",
- "description": "the user email address",
- "type": "string"
- },
- {
- "name": "apikey",
- "description": "the api key of the user",
- "type": "string"
- },
- {
- "name": "isdefault",
- "description": "true if user is default, false otherwise",
- "type": "boolean"
- },
- {
- "name": "firstname",
- "description": "the user firstname",
- "type": "string"
- },
- {
- "name": "lastname",
- "description": "the user lastname",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain name of the user",
- "type": "string"
- },
- {
- "name": "iscallerchilddomain",
- "description": "the boolean value representing if the updating target is in caller's child domain",
- "type": "boolean"
- },
- {
- "name": "username",
- "description": "the user name",
- "type": "string"
- },
- {
- "name": "roletype",
- "description": "the type of the role",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the user ID",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account name of the user",
- "type": "string"
- },
- {
- "name": "secretkey",
- "description": "the secret key of the user",
- "type": "string"
- }
- ]
- },
- {
- "name": "vpclimit",
- "description": "the total number of vpcs the account can own",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "volumelimit",
- "description": "the total volume which can be used by this account",
- "type": "string"
- },
- {
- "name": "networklimit",
- "description": "the total number of networks the account can own",
- "type": "string"
- },
- {
-
- },
- {
- "name": "vmlimit",
- "description": "the total number of virtual machines that can be deployed by this account",
- "type": "string"
- },
- {
- "name": "secondarystoragetotal",
- "description": "the total secondary storage space (in GiB) owned by account",
- "type": "float"
- },
- {
- "name": "networktotal",
- "description": "the total number of networks owned by account",
- "type": "long"
- },
- {
- "name": "sentbytes",
- "description": "the total number of network traffic bytes sent",
- "type": "long"
- },
- {
- "name": "primarystorageavailable",
- "description": "the total primary storage space (in GiB) available to be used for this account",
- "type": "string"
- },
- {
- "name": "vpctotal",
- "description": "the total number of vpcs owned by account",
- "type": "long"
- },
- {
- "name": "projectlimit",
- "description": "the total number of projects the account can own",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "id of the Domain the account belongs too",
- "type": "string"
- },
- {
- "name": "receivedbytes",
- "description": "the total number of network traffic bytes received",
- "type": "long"
- },
- {
- "name": "vmstopped",
- "description": "the total number of virtual machines stopped for this account",
- "type": "integer"
- },
- {
- "name": "cputotal",
- "description": "the total number of cpu cores owned by account",
- "type": "long"
- },
- {
- "name": "secondarystorageavailable",
- "description": "the total secondary storage space (in GiB) available to be used for this account",
- "type": "string"
- },
- {
-
- },
- {
- "name": "snapshotavailable",
- "description": "the total number of snapshots available for this account",
- "type": "string"
- },
- {
- "name": "primarystoragelimit",
- "description": "the total primary storage space (in GiB) the account can own",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "name of the Domain the account belongs too",
- "type": "string"
- },
- {
- "name": "ipavailable",
- "description": "the total number of public ip addresses available for this account to acquire",
- "type": "string"
- },
- {
- "name": "projectavailable",
- "description": "the total number of projects available for administration by this account",
- "type": "string"
- },
- {
- "name": "isdefault",
- "description": "true if account is default, false otherwise",
- "type": "boolean"
- },
+ ],
+ "type": "list"
+ },
+ {
+ "description": "the list of capabilities",
+ "name": "capability",
+ "response": [
{
- "name": "groups",
- "description": "the list of acl groups that account belongs to",
- "type": "list"
+ "description": "the capability name",
+ "name": "name",
+ "type": "string"
},
{
- "name": "primarystoragetotal",
- "description": "the total primary storage space (in GiB) owned by account",
- "type": "long"
+ "description": "can this service capability value can be choosable while creatine network offerings",
+ "name": "canchooseservicecapability",
+ "type": "boolean"
},
{
- "name": "memoryavailable",
- "description": "the total memory (in MB) available to be created for this account",
- "type": "string"
- },
- {
- "name": "state",
- "description": "the state of the account",
- "type": "string"
- },
- {
- "name": "roleid",
- "description": "the ID of the role",
- "type": "string"
- },
- {
- "name": "secondarystoragelimit",
- "description": "the total secondary storage space (in GiB) the account can own",
- "type": "string"
- },
- {
- "name": "templatetotal",
- "description": "the total number of templates which have been created by this account",
- "type": "long"
- },
- {
- "name": "accountdetails",
- "description": "details for the account",
- "type": "map"
+ "description": "the capability value",
+ "name": "value",
+ "type": "string"
}
- ]
+ ],
+ "type": "list"
+ }
+ ],
+ "type": "list"
},
{
- "name": "removeRawUsageRecords",
- "description": "Safely removes raw records from cloud_usage table",
- "since": "4.6.0",
- "isasync": false,
- "params": [
- {
- "name": "interval",
- "description": "Specify the number of days (greater than zero) to remove records that are older than those number of days from today. For example, specifying 10 would result in removing all the records created before 10 days from today",
- "type": "integer",
- "length": 255,
- "required": true
- }
- ],
- "response": [
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
-
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- }
- ]
+ "description": "the date this vpc offering was created",
+ "name": "created",
+ "type": "date"
},
{
- "name": "copyIso",
- "description": "Copies an iso from one zone to another.",
- "isasync": true,
- "related": "updateTemplate,listIsos,createTemplate,listTemplates,registerTemplate,registerIso,registerTemplate,prepareTemplate,copyTemplate,createTemplate,updateIso,listIsos,copyTemplate,copyIso,registerIso,listTemplates",
- "params": [
- {
- "name": "destzoneid",
- "description": "ID of the zone the template is being copied to.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- },
- {
- "name": "sourcezoneid",
- "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.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- },
- {
- "name": "destzoneids",
- "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.",
- "type": "list",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- },
- {
- "name": "id",
- "description": "Template ID.",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "updateTemplate,listIsos,createTemplate,listTemplates,registerTemplate,registerIso,registerTemplate,prepareTemplate,copyTemplate,createTemplate,updateIso,copyIso,listIsos,copyTemplate,copyIso,registerIso,listTemplates"
- }
- ],
- "response": [
- {
- "name": "hypervisor",
- "description": "the hypervisor on which the template runs",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name of the template",
- "type": "string"
- },
- {
- "name": "crossZones",
- "description": "true if the template is managed across all Zones, false otherwise",
- "type": "boolean"
- },
- {
- "name": "ostypeid",
- "description": "the ID of the OS type for this template.",
- "type": "string"
- },
- {
- "name": "isextractable",
- "description": "true if the template is extractable, false otherwise",
- "type": "boolean"
- },
- {
- "name": "zoneid",
- "description": "the ID of the zone for this template",
- "type": "string"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated",
- "type": "set",
- "response": [
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- }
- ]
- },
- {
- "name": "account",
- "description": "the account name to which the template belongs",
- "type": "string"
- },
- {
- "name": "hostname",
- "description": "the name of the secondary storage host for the template",
- "type": "string"
- },
- {
- "name": "accountid",
- "description": "the account id to which the template belongs",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain to which the template belongs",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "sourcetemplateid",
- "description": "the template ID of the parent template if present",
- "type": "string"
- },
- {
- "name": "size",
- "description": "the size of the template",
- "type": "long"
- },
- {
- "name": "checksum",
- "description": "checksum of the template",
- "type": "string"
- },
- {
- "name": "templatetype",
- "description": "the type of the template",
- "type": "string"
- },
- {
- "name": "requireshvm",
- "description": "true if template requires HVM enabled, false otherwise",
- "type": "boolean"
- },
- {
- "name": "parenttemplateid",
- "description": "if Datadisk template, then id of the root disk template this template belongs to",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the template ID",
- "type": "string"
- },
- {
- "name": "format",
- "description": "the format of the template.",
- "type": "imageformat"
- },
- {
- "name": "directdownload",
- "description": "KVM Only: true if template is directly downloaded to Primary Storage bypassing Secondary Storage",
- "type": "boolean"
- },
- {
- "name": "zonename",
- "description": "the name of the zone for this template",
- "type": "string"
- },
- {
- "name": "name",
- "description": "the template name",
- "type": "string"
- },
- {
- "name": "created",
- "description": "the date this template was created",
- "type": "date"
- },
- {
-
- },
- {
- "name": "isdynamicallyscalable",
- "description": "true if template contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory",
- "type": "boolean"
- },
- {
- "name": "hostid",
- "description": "the ID of the secondary storage host for the template",
- "type": "string"
- },
- {
- "name": "childtemplates",
- "description": "if root disk template, then ids of the datas disk templates this template owns",
- "type": "set"
- },
- {
- "name": "removed",
- "description": "the date this template was removed",
- "type": "date"
- },
- {
- "name": "isready",
- "description": "true if the template is ready to be deployed from, false otherwise.",
- "type": "boolean"
- },
- {
- "name": "status",
- "description": "the status of the template",
- "type": "string"
- },
- {
- "name": "passwordenabled",
- "description": "true if the reset password feature is enabled, false otherwise",
- "type": "boolean"
- },
- {
- "name": "domain",
- "description": "the name of the domain to which the template belongs",
- "type": "string"
- },
- {
- "name": "details",
- "description": "additional key/value details tied with template",
- "type": "map"
- },
- {
- "name": "isfeatured",
- "description": "true if this template is a featured template, false otherwise",
- "type": "boolean"
- },
- {
- "name": "ispublic",
- "description": "true if this template is a public template, false otherwise",
- "type": "boolean"
- },
- {
- "name": "bootable",
- "description": "true if the ISO is bootable, false otherwise",
- "type": "boolean"
- },
- {
- "name": "displaytext",
- "description": "the template display text",
- "type": "string"
- },
- {
- "name": "sshkeyenabled",
- "description": "true if template is sshkey enabled, false otherwise",
- "type": "boolean"
- },
- {
- "name": "physicalsize",
- "description": "the physical size of the template",
- "type": "long"
- },
- {
- "name": "templatetag",
- "description": "the tag of this template",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id of the template",
- "type": "string"
- },
- {
- "name": "ostypename",
- "description": "the name of the OS type for this template.",
- "type": "string"
- },
- {
-
- },
- {
- "name": "bits",
- "description": "the processor bit size",
- "type": "int"
- }
- ]
+ "description": "an alternate display text of the vpc offering.",
+ "name": "displaytext",
+ "type": "string"
},
{
- "name": "deleteAutoScaleVmProfile",
- "description": "Deletes a autoscale vm profile.",
- "isasync": true,
- "params": [
- {
- "name": "id",
- "description": "the ID of the autoscale profile",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "updateAutoScaleVmProfile,listAutoScaleVmProfiles,createAutoScaleVmProfile"
- }
- ],
- "response": [
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
-
- }
- ]
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
},
+ {},
{
- "name": "provisionCertificate",
- "description": "Issues and propagates client certificate on a connected host/agent using configured CA plugin",
- "since": "4.11.0",
- "isasync": true,
- "params": [
- {
- "name": "hostid",
- "description": "The host/agent uuid to which the certificate has to be provisioned (issued and propagated)",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "prepareHostForMaintenance,cancelHostMaintenance,addHost,reconnectHost,listHosts,addBaremetalHost,updateHost"
- },
- {
- "name": "provider",
- "description": "Name of the CA service provider, otherwise the default configured provider plugin will be used",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "reconnect",
- "description": "Whether to attempt reconnection with host/agent after successful deployment of certificate. When option is not provided, configured global setting is used",
- "type": "boolean",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
-
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- }
- ]
+ "description": "the domain ID(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
+ "name": "domainid",
+ "type": "string"
},
+ {},
{
- "name": "listVirtualMachinesMetrics",
- "description": "Lists VM metrics",
- "since": "4.9.3",
- "isasync": false,
- "related": "",
- "params": [
- {
- "name": "isoid",
- "description": "list vms by iso",
- "type": "uuid",
- "length": 255,
- "required": false
- },
- {
- "name": "groupid",
- "description": "the group ID",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createInstanceGroup,listInstanceGroups,updateInstanceGroup"
- },
- {
- "name": "id",
- "description": "the ID of the virtual machine",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "destroyVirtualMachine,migrateVirtualMachineWithVolume,attachIso,startVirtualMachine,removeNicFromVirtualMachine,updateVirtualMachine,updateVmNicIp,detachIso,rebootVirtualMachine,updateVMAffinityGroup,stopVirtualMachine,detachIso,removeNicFromVirtualMachine,listVirtualMachines,listVirtualMachines,destroyVirtualMachine,attachIso,resetSSHKeyForVirtualMachine,revertToVMSnapshot,updateVMAffinityGroup,updateDefaultNicForVirtualMachine,assignVirtualMachine,change [...]
- },
- {
- "name": "affinitygroupid",
- "description": "list vms by affinity group",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createAffinityGroup,listAffinityGroups"
- },
- {
- "name": "hypervisor",
- "description": "the target hypervisor for the template",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "projectid",
- "description": "list objects by project",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listProjectAccounts,listProjects,activateProject,createProject,updateProject,suspendProject"
- },
- {
- "name": "storageid",
- "description": "the storage ID where vm's volumes belong to",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listStoragePools,findStoragePoolsForMigration,enableStorageMaintenance,updateStoragePool,cancelStorageMaintenance,createStoragePool"
- },
- {
- "name": "vpcid",
- "description": "list vms by vpc",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "migrateVPC,listVPCs,updateVPC,listVPCs,createVPC,restartVPC,createVPC,updateVPC"
- },
- {
- "name": "displayvm",
- "description": "list resources by display flag; only ROOT admin is eligible to pass this parameter",
- "type": "boolean",
- "length": 255,
- "required": false,
- "since": "4.4"
- },
- {
- "name": "keypair",
- "description": "list vms by ssh keypair name",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "storageid",
- "description": "the storage ID where vm's volumes belong to",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listStoragePools,findStoragePoolsForMigration,enableStorageMaintenance,updateStoragePool,cancelStorageMaintenance,createStoragePool"
- },
- {
- "name": "hostid",
- "description": "the host ID",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "prepareHostForMaintenance,cancelHostMaintenance,addHost,reconnectHost,listHosts,addBaremetalHost,updateHost"
- },
- {
- "name": "userid",
- "description": "the user ID that created the VM and is under the account that owns the VM",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "updateUser,lockUser,getUser,enableUser,listUsers,createUser,disableUser"
- },
- {
- "name": "state",
- "description": "state of the virtual machine. Possible values are: Running, Stopped, Present, Destroyed, Expunged. Present is used for the state equal not destroyed.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "networkid",
- "description": "list by network id",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listPaloAltoFirewallNetworks,migrateNetwork,listNetscalerLoadBalancerNetworks,listNiciraNvpDeviceNetworks,listBrocadeVcsDeviceNetworks,listNetworks,updateNetwork,listNetworks,updateNetwork,createNetwork,createNetwork"
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "tags",
- "description": "List resources by tags (key/value pairs)",
- "type": "map",
- "length": 255,
- "required": false
- },
- {
- "name": "hostid",
- "description": "the host ID",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "prepareHostForMaintenance,cancelHostMaintenance,addHost,reconnectHost,listHosts,addBaremetalHost,updateHost"
- },
- {
- "name": "zoneid",
- "description": "the availability zone ID",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- },
- {
- "name": "isrecursive",
- "description": "defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "podid",
- "description": "the pod ID",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listPods,createManagementNetworkIpRange,updatePod"
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "ids",
- "description": "the IDs of the virtual machines, mutually exclusive with id",
- "type": "list",
- "length": 255,
- "required": false,
- "since": "4.4",
- "related": "destroyVirtualMachine,migrateVirtualMachineWithVolume,attachIso,startVirtualMachine,removeNicFromVirtualMachine,updateVirtualMachine,updateVmNicIp,detachIso,rebootVirtualMachine,updateVMAffinityGroup,stopVirtualMachine,detachIso,removeNicFromVirtualMachine,listVirtualMachines,listVirtualMachines,destroyVirtualMachine,attachIso,resetSSHKeyForVirtualMachine,revertToVMSnapshot,updateVMAffinityGroup,updateDefaultNicForVirtualMachine,assignVirtualMachine,change [...]
- },
- {
- "name": "name",
- "description": "name of the virtual machine (a substring match is made against the parameter value, data for all matching VMs will be returned)",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "podid",
- "description": "the pod ID",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listPods,createManagementNetworkIpRange,updatePod"
- },
- {
- "name": "templateid",
- "description": "list vms by template",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "updateTemplate,listIsos,createTemplate,listTemplates,registerTemplate,registerIso,registerTemplate,prepareTemplate,copyTemplate,createTemplate,updateIso,listIsos,copyTemplate,copyIso,registerIso,listTemplates"
- },
- {
- "name": "forvirtualnetwork",
- "description": "list by network type; true if need to list vms using Virtual Network, false otherwise",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "details",
- "description": "comma separated list of host details requested, value can be a list of [all, group, nics, stats, secgrp, tmpl, servoff, diskoff, iso, volume, min, affgrp]. If no parameter is passed in, the details will be defaulted to all",
- "type": "list",
- "length": 255,
- "required": false
- },
- {
- "name": "account",
- "description": "list resources by account. Must be used with the domainId parameter.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "serviceofferingid",
- "description": "list by the service offering",
- "type": "uuid",
- "length": 255,
- "required": false,
- "since": "4.4",
- "related": "createServiceOffering,listServiceOfferings,updateServiceOffering"
- },
- {
- "name": "listall",
- "description": "If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "domainid",
- "description": "list only resources belonging to the domain specified",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- }
- ],
- "response": [
- {
- "name": "templatename",
- "description": "the name of the template for the virtual machine",
- "type": "string"
- },
- {
- "name": "diskofferingname",
- "description": "the name of the disk offering of the virtual machine",
- "type": "string"
- },
- {
- "name": "diskiopstotal",
- "description": "the total disk iops",
- "type": "long"
- },
- {
- "name": "haenable",
- "description": "true if high-availability is enabled, false otherwise",
- "type": "boolean"
- },
- {
- "name": "templatedisplaytext",
- "description": " an alternate display text of the template for the virtual machine",
- "type": "string"
- },
- {
- "name": "isodisplaytext",
- "description": "an alternate display text of the ISO attached to the virtual machine",
- "type": "string"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated",
- "type": "set",
- "response": [
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- }
- ]
- },
- {
- "name": "diskiowrite",
- "description": "the write (io) of disk on the vm",
- "type": "long"
- },
- {
- "name": "group",
- "description": "the group name of the virtual machine",
- "type": "string"
- },
- {
- "name": "networkwrite",
- "description": "network write in MiB",
- "type": "string"
- },
- {
- "name": "cpunumber",
- "description": "the number of cpu this virtual machine is running with",
- "type": "integer"
- },
- {
- "name": "memory",
- "description": "the memory allocated for the virtual machine",
- "type": "integer"
- },
- {
- "name": "memorykbs",
- "description": "the memory used by the vm",
- "type": "long"
- },
- {
- "name": "passwordenabled",
- "description": "true if the password rest feature is enabled, false otherwise",
- "type": "boolean"
- },
- {
- "name": "publicip",
- "description": "public IP address id associated with vm via Static nat rule",
- "type": "string"
- },
- {
- "name": "vgpu",
- "description": "the vgpu type used by the virtual machine",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "the ID of the availablility zone for the virtual machine",
- "type": "string"
- },
- {
- "name": "state",
- "description": "the state of the virtual machine",
- "type": "string"
- },
- {
- "name": "cpuspeed",
- "description": "the speed of each cpu",
- "type": "integer"
- },
- {
- "name": "isoid",
- "description": "the ID of the ISO attached to the virtual machine",
- "type": "string"
- },
- {
- "name": "networkkbsread",
- "description": "the incoming network traffic on the vm",
- "type": "long"
- },
- {
- "name": "account",
- "description": "the account associated with the virtual machine",
- "type": "string"
- },
- {
- "name": "serviceofferingname",
- "description": "the name of the service offering of the virtual machine",
- "type": "string"
- },
- {
- "name": "servicestate",
- "description": "State of the Service from LB rule",
- "type": "string"
- },
- {
- "name": "cpuused",
- "description": "the amount of the vm's CPU currently used",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the name of the domain in which the virtual machine exists",
- "type": "string"
- },
- {
- "name": "guestosid",
- "description": "Os type ID of the virtual machine",
- "type": "string"
- },
- {
- "name": "rootdeviceid",
- "description": "device ID of the root volume",
- "type": "long"
- },
- {
- "name": "securitygroup",
- "description": "list of security groups associated with the virtual machine",
- "type": "set",
- "response": [
- {
- "name": "domainid",
- "description": "the domain ID of the security group",
- "type": "string"
- },
- {
- "name": "egressrule",
- "description": "the list of egress rules associated with the security group",
- "type": "set",
- "response": [
- {
- "name": "securitygroupname",
- "description": "security group name",
- "type": "string"
- },
- {
- "name": "protocol",
- "description": "the protocol of the security group rule",
- "type": "string"
- },
- {
- "name": "endport",
- "description": "the ending IP of the security group rule ",
- "type": "integer"
- },
- {
- "name": "ruleid",
- "description": "the id of the security group rule",
- "type": "string"
- },
- {
- "name": "icmpcode",
- "description": "the code for the ICMP message response",
- "type": "integer"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "set",
- "response": [
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- }
- ]
- },
- {
- "name": "startport",
- "description": "the starting IP of the security group rule",
- "type": "integer"
- },
- {
- "name": "icmptype",
- "description": "the type of the ICMP message response",
- "type": "integer"
- },
- {
- "name": "account",
- "description": "account owning the security group rule",
- "type": "string"
- },
- {
- "name": "cidr",
- "description": "the CIDR notation for the base IP address of the security group rule",
- "type": "string"
- }
- ]
- },
- {
- "name": "virtualmachineids",
- "description": "the list of virtualmachine ids associated with this securitygroup",
- "type": "set"
- },
- {
- "name": "ingressrule",
- "description": "the list of ingress rules associated with the security group",
- "type": "set",
- "response": [
- {
- "name": "protocol",
- "description": "the protocol of the security group rule",
- "type": "string"
- },
- {
- "name": "securitygroupname",
- "description": "security group name",
- "type": "string"
- },
- {
- "name": "startport",
- "description": "the starting IP of the security group rule",
- "type": "integer"
- },
- {
- "name": "endport",
- "description": "the ending IP of the security group rule ",
- "type": "integer"
- },
- {
- "name": "account",
- "description": "account owning the security group rule",
- "type": "string"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "set",
- "response": [
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- }
- ]
- },
- {
- "name": "cidr",
- "description": "the CIDR notation for the base IP address of the security group rule",
- "type": "string"
- },
- {
- "name": "icmpcode",
- "description": "the code for the ICMP message response",
- "type": "integer"
- },
- {
- "name": "ruleid",
- "description": "the id of the security group rule",
- "type": "string"
- },
- {
- "name": "icmptype",
- "description": "the type of the ICMP message response",
- "type": "integer"
- }
- ]
- },
- {
- "name": "account",
- "description": "the account owning the security group",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain name of the security group",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the security group",
- "type": "string"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "set",
- "response": [
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- }
- ]
- },
- {
- "name": "name",
- "description": "the name of the security group",
- "type": "string"
- },
- {
- "name": "virtualmachinecount",
- "description": "the number of virtualmachines associated with this securitygroup",
- "type": "integer"
- },
- {
- "name": "description",
- "description": "the description of the security group",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name of the group",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id of the group",
- "type": "string"
- }
- ]
- },
- {
- "name": "memoryintfreekbs",
- "description": "the internal memory thats free in vm",
- "type": "long"
- },
- {
- "name": "hypervisor",
- "description": "the hypervisor on which the template runs",
- "type": "string"
- },
- {
- "name": "isoname",
- "description": "the name of the ISO attached to the virtual machine",
- "type": "string"
- },
- {
- "name": "username",
- "description": "the user's name who deployed the virtual machine",
- "type": "string"
- },
- {
- "name": "ipaddress",
- "description": "the VM's primary IP address",
- "type": "string"
- },
- {
- "name": "displayname",
- "description": "user generated name. The name of the virtual machine is returned if no displayname exists.",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id of the vm",
- "type": "string"
- },
- {
- "name": "memorytotal",
- "description": "the total memory capacity in GiB",
- "type": "string"
- },
- {
- "name": "keypair",
- "description": "ssh key-pair",
- "type": "string"
- },
- {
- "name": "cputotal",
- "description": "the total cpu capacity in Ghz",
- "type": "string"
- },
- {
- "name": "diskwrite",
- "description": "disk write in MiB",
- "type": "string"
- },
- {
- "name": "templateid",
- "description": "the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file.",
- "type": "string"
- },
- {
- "name": "password",
- "description": "the password (if exists) of the virtual machine",
- "type": "string"
- },
- {
- "name": "isdynamicallyscalable",
- "description": "true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory.",
- "type": "boolean"
- },
- {
-
- },
- {
- "name": "name",
- "description": "the name of the virtual machine",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain in which the virtual machine exists",
- "type": "string"
- },
- {
- "name": "networkread",
- "description": "network read in MiB",
- "type": "string"
- },
- {
- "name": "diskread",
- "description": "disk read in MiB",
- "type": "string"
- },
- {
-
- },
- {
- "name": "diskkbswrite",
- "description": "the write (bytes) of disk on the vm",
- "type": "long"
- },
- {
- "name": "diskioread",
- "description": "the read (io) of disk on the vm",
- "type": "long"
- },
- {
- "name": "memorytargetkbs",
- "description": "the target memory in vm",
- "type": "long"
- },
- {
- "name": "affinitygroup",
- "description": "list of affinity groups associated with the virtual machine",
- "type": "set",
- "response": [
- {
- "name": "domain",
- "description": "the domain name of the affinity group",
- "type": "string"
- },
- {
- "name": "type",
- "description": "the type of the affinity group",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name of the affinity group",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project ID of the affinity group",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the domain ID of the affinity group",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the affinity group",
- "type": "string"
- },
- {
- "name": "name",
- "description": "the name of the affinity group",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account owning the affinity group",
- "type": "string"
- },
- {
- "name": "virtualmachineIds",
- "description": "virtual machine IDs associated with this affinity group",
- "type": "list"
- },
- {
- "name": "description",
- "description": "the description of the affinity group",
- "type": "string"
- }
- ]
- },
- {
- "name": "networkkbswrite",
- "description": "the outgoing network traffic on the host",
- "type": "long"
- },
- {
- "name": "publicipid",
- "description": "public IP address id associated with vm via Static nat rule",
- "type": "string"
- },
- {
- "name": "serviceofferingid",
- "description": "the ID of the service offering of the virtual machine",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the virtual machine",
- "type": "string"
- },
- {
- "name": "diskofferingid",
- "description": "the ID of the disk offering of the virtual machine",
- "type": "string"
- },
- {
- "name": "zonename",
- "description": "the name of the availability zone for the virtual machine",
- "type": "string"
- },
- {
- "name": "userid",
- "description": "the user's ID who deployed the virtual machine",
- "type": "string"
- },
- {
- "name": "displayvm",
- "description": "an optional field whether to the display the vm to the end user or not.",
- "type": "boolean"
- },
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "rootdevicetype",
- "description": "device type of the root volume",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "hostid",
- "description": "the ID of the host for the virtual machine",
- "type": "string"
- },
- {
- "name": "forvirtualnetwork",
- "description": "the virtual network for the service offering",
- "type": "boolean"
- },
- {
- "name": "instancename",
- "description": "instance name of the user vm; this parameter is returned to the ROOT admin only",
- "type": "string"
- },
- {
- "name": "ostypeid",
- "description": "OS type id of the vm",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name of the vm",
- "type": "string"
- },
- {
- "name": "nic",
- "description": "the list of nics associated with vm",
- "type": "set",
- "response": [
- {
- "name": "ip6cidr",
- "description": "the cidr of IPv6 network",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the nic",
- "type": "string"
- },
- {
- "name": "broadcasturi",
- "description": "the broadcast uri of the nic",
- "type": "string"
- },
- {
- "name": "networkid",
- "description": "the ID of the corresponding network",
- "type": "string"
- },
- {
- "name": "type",
- "description": "the type of the nic",
- "type": "string"
- },
- {
- "name": "networkname",
- "description": "the name of the corresponding network",
- "type": "string"
- },
- {
- "name": "isdefault",
- "description": "true if nic is default, false otherwise",
- "type": "boolean"
- },
- {
- "name": "nsxlogicalswitch",
- "description": "Id of the NSX Logical Switch (if NSX based), null otherwise",
- "type": "string"
- },
- {
- "name": "ip6address",
- "description": "the IPv6 address of network",
- "type": "string"
- },
- {
- "name": "virtualmachineid",
- "description": "Id of the vm to which the nic belongs",
- "type": "string"
- },
- {
- "name": "nsxlogicalswitchport",
- "description": "Id of the NSX Logical Switch Port (if NSX based), null otherwise",
- "type": "string"
- },
- {
- "name": "netmask",
- "description": "the netmask of the nic",
- "type": "string"
- },
- {
- "name": "gateway",
- "description": "the gateway of the nic",
- "type": "string"
- },
- {
- "name": "macaddress",
- "description": "true if nic is default, false otherwise",
- "type": "string"
- },
- {
- "name": "extradhcpoption",
- "description": "the extra dhcp options on the nic",
- "type": "list"
- },
- {
- "name": "ipaddress",
- "description": "the ip address of the nic",
- "type": "string"
- },
- {
- "name": "traffictype",
- "description": "the traffic type of the nic",
- "type": "string"
- },
- {
- "name": "isolationuri",
- "description": "the isolation uri of the nic",
- "type": "string"
- },
- {
- "name": "ip6gateway",
- "description": "the gateway of IPv6 network",
- "type": "string"
- },
- {
- "name": "secondaryip",
- "description": "the Secondary ipv4 addr of nic",
- "type": "list"
- },
- {
- "name": "deviceid",
- "description": "device id for the network when plugged into the virtual machine",
- "type": "string"
- }
- ]
- },
- {
- "name": "diskkbsread",
- "description": "the read (bytes) of disk on the vm",
- "type": "long"
- },
- {
- "name": "created",
- "description": "the date when this virtual machine was created",
- "type": "date"
- },
- {
- "name": "groupid",
- "description": "the group ID of the virtual machine",
- "type": "string"
- },
- {
- "name": "details",
- "description": "Vm details in key/value pairs.",
- "type": "map"
- },
- {
- "name": "hostname",
- "description": "the name of the host for the virtual machine",
- "type": "string"
- }
- ]
+ "description": "the domain name(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
+ "name": "domain",
+ "type": "string"
},
{
- "name": "deleteStoragePool",
- "description": "Deletes a storage pool.",
- "isasync": false,
- "params": [
- {
- "name": "forced",
- "description": "Force destroy storage pool (force expunge volumes in Destroyed state as a part of pool removal)",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "id",
- "description": "Storage pool id",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "listStoragePools,findStoragePoolsForMigration,enableStorageMaintenance,updateStoragePool,cancelStorageMaintenance,createStoragePool"
- }
- ],
- "response": [
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
-
- }
- ]
+ "description": "state of the vpc offering. Can be Disabled/Enabled",
+ "name": "state",
+ "type": "string"
},
{
- "name": "listHosts",
- "description": "Lists hosts.",
- "isasync": false,
- "related": "prepareHostForMaintenance,cancelHostMaintenance,addHost,reconnectHost,addBaremetalHost,updateHost",
- "params": [
- {
- "name": "outofbandmanagementpowerstate",
- "description": "list hosts by its out-of-band management interface's power state. Its value can be one of [On, Off, Unknown]",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "outofbandmanagementenabled",
- "description": "list hosts for which out-of-band management is enabled",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "hypervisor",
- "description": "hypervisor type of host: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "details",
- "description": "comma separated list of host details requested, value can be a list of [ min, all, capacity, events, stats]",
- "type": "list",
- "length": 255,
- "required": false
- },
- {
- "name": "hahost",
- "description": "if true, list only hosts dedicated to HA",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "state",
- "description": "the state of the host",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "type",
- "description": "the host type",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "id",
- "description": "the id of the host",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "prepareHostForMaintenance,cancelHostMaintenance,addHost,reconnectHost,listHosts,addBaremetalHost,updateHost"
- },
- {
- "name": "resourcestate",
- "description": "list hosts by resource state. Resource state represents current state determined by admin of host, value can be one of [Enabled, Disabled, Unmanaged, PrepareForMaintenance, ErrorInMaintenance, Maintenance, Error]",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "podid",
- "description": "the Pod ID for the host",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listPods,createManagementNetworkIpRange,updatePod"
- },
- {
- "name": "virtualmachineid",
- "description": "lists hosts in the same cluster as this VM and flag hosts with enough CPU/RAm to host this VM",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "destroyVirtualMachine,migrateVirtualMachineWithVolume,attachIso,startVirtualMachine,removeNicFromVirtualMachine,updateVirtualMachine,updateVmNicIp,detachIso,rebootVirtualMachine,updateVMAffinityGroup,stopVirtualMachine,detachIso,removeNicFromVirtualMachine,listVirtualMachines,listVirtualMachines,destroyVirtualMachine,attachIso,resetSSHKeyForVirtualMachine,revertToVMSnapshot,updateVMAffinityGroup,updateDefaultNicForVirtualMachine,assignVirtualMachine,change [...]
- },
- {
- "name": "name",
- "description": "the name of the host",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "clusterid",
- "description": "lists hosts existing in particular cluster",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "addCluster,listClusters,updateCluster"
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "zoneid",
- "description": "the Zone ID for the host",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- }
- ],
- "response": [
- {
- "name": "clusterid",
- "description": "the cluster ID of the host",
- "type": "string"
- },
- {
- "name": "username",
- "description": "the admin that annotated this host",
- "type": "string"
- },
- {
- "name": "version",
- "description": "the host version",
- "type": "string"
- },
- {
- "name": "cpusockets",
- "description": "the number of CPU sockets on the host",
- "type": "integer"
- },
- {
- "name": "clustertype",
- "description": "the cluster type of the cluster that host belongs to",
- "type": "string"
- },
- {
- "name": "oscategoryname",
- "description": "the OS category name of the host",
- "type": "string"
- },
- {
- "name": "podid",
- "description": "the Pod ID of the host",
- "type": "string"
- },
- {
- "name": "podname",
- "description": "the Pod name of the host",
- "type": "string"
- },
- {
- "name": "memoryallocated",
- "description": "the amount of the host's memory currently allocated",
- "type": "long"
- },
- {
- "name": "clustername",
- "description": "the cluster name of the host",
- "type": "string"
- },
- {
- "name": "capabilities",
- "description": "capabilities of the host",
- "type": "string"
- },
- {
- "name": "annotation",
- "description": "the last annotation set on this host by an admin",
- "type": "string"
- },
- {
- "name": "disconnected",
- "description": "true if the host is disconnected. False otherwise.",
- "type": "date"
- },
- {
- "name": "networkkbswrite",
- "description": "the outgoing network traffic on the host",
- "type": "long"
- },
- {
- "name": "islocalstorageactive",
- "description": "true if local storage is active, false otherwise",
- "type": "boolean"
- },
- {
- "name": "gpugroup",
- "description": "GPU cards present in the host",
- "type": "list",
- "response": [
- {
- "name": "vgpu",
- "description": "the list of enabled vGPUs",
- "type": "list",
- "response": [
- {
- "name": "maxresolutiony",
- "description": "Maximum Y resolution per display",
- "type": "long"
- },
- {
- "name": "maxheads",
- "description": "Maximum displays per user",
- "type": "long"
- },
- {
- "name": "maxresolutionx",
- "description": "Maximum X resolution per display",
- "type": "long"
- },
- {
- "name": "maxvgpuperpgpu",
- "description": "Maximum no. of vgpu per gpu card (pgpu)",
- "type": "long"
- },
- {
- "name": "maxcapacity",
- "description": "Maximum vgpu can be created with this vgpu type on the given gpu group",
- "type": "long"
- },
- {
- "name": "remainingcapacity",
- "description": "Remaining capacity in terms of no. of more VMs that can be deployped with this vGPU type",
- "type": "long"
- },
- {
- "name": "vgputype",
- "description": "Model Name of vGPU",
- "type": "string"
- },
- {
- "name": "videoram",
- "description": "Video RAM for this vGPU type",
- "type": "long"
- }
- ]
- },
- {
- "name": "gpugroupname",
- "description": "GPU cards present in the host",
- "type": "string"
- }
- ]
- },
- {
- "name": "disksizeallocated",
- "description": "the host's currently allocated disk size",
- "type": "long"
- },
- {
-
- },
- {
- "name": "state",
- "description": "the state of the host",
- "type": "status"
- },
- {
- "name": "networkkbsread",
- "description": "the incoming network traffic on the host",
- "type": "long"
- },
- {
- "name": "hypervisorversion",
- "description": "the hypervisor version",
- "type": "string"
- },
- {
- "name": "cpuallocated",
- "description": "the amount of the host's CPU currently allocated",
- "type": "string"
- },
- {
- "name": "created",
- "description": "the date and time the host was created",
- "type": "date"
- },
- {
- "name": "name",
- "description": "the name of the host",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "the Zone ID of the host",
- "type": "string"
- },
- {
- "name": "cpuspeed",
- "description": "the CPU speed of the host",
- "type": "long"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
-
- },
- {
- "name": "zonename",
- "description": "the Zone name of the host",
- "type": "string"
- },
- {
- "name": "hosttags",
- "description": "comma-separated list of tags for the host",
- "type": "string"
- },
- {
- "name": "averageload",
- "description": "the cpu average load on the host",
- "type": "long"
- },
- {
- "name": "hasenoughcapacity",
- "description": "true if this host has enough CPU and RAM capacity to migrate a VM to it, false otherwise",
- "type": "boolean"
- },
- {
- "name": "cpuused",
- "description": "the amount of the host's CPU currently used",
- "type": "string"
- },
- {
- "name": "memorytotal",
- "description": "the memory total of the host, this parameter is deprecated use memorywithoverprovisioning",
- "type": "long"
- },
- {
- "name": "type",
- "description": "the host type",
- "type": "type"
- },
- {
- "name": "events",
- "description": "events available for the host",
- "type": "string"
- },
- {
- "name": "memoryused",
- "description": "the amount of the host's memory currently used",
- "type": "long"
- },
- {
- "name": "memorywithoverprovisioning",
- "description": "the amount of the host's memory after applying the mem.overprovisioning.factor",
- "type": "string"
- },
- {
- "name": "cpunumber",
- "description": "the CPU number of the host",
- "type": "integer"
- },
- {
- "name": "id",
- "description": "the ID of the host",
- "type": "string"
- },
- {
- "name": "disksizetotal",
- "description": "the total disk size of the host",
- "type": "long"
- },
- {
- "name": "ipaddress",
- "description": "the IP address of the host",
- "type": "string"
- },
- {
- "name": "lastpinged",
- "description": "the date and time the host was last pinged",
- "type": "date"
- },
- {
- "name": "suitableformigration",
- "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",
- "type": "boolean"
- },
- {
- "name": "hahost",
- "description": "true if the host is Ha host (dedicated to vms started by HA process; false otherwise",
- "type": "boolean"
- },
- {
- "name": "hypervisor",
- "description": "the host hypervisor",
- "type": "hypervisortype"
- },
- {
- "name": "outofbandmanagement",
- "description": "the host out-of-band management information",
- "type": "outofbandmanagementresponse"
- },
- {
- "name": "oscategoryid",
- "description": "the OS category ID of the host",
- "type": "string"
- },
- {
- "name": "details",
- "description": "Host details in key/value pairs.",
- "type": "map"
- },
- {
- "name": "managementserverid",
- "description": "the management server ID of the host",
- "type": "long"
- },
- {
- "name": "cpuwithoverprovisioning",
- "description": "the amount of the host's CPU after applying the cpu.overprovisioning.factor ",
- "type": "string"
- },
- {
- "name": "removed",
- "description": "the date and time the host was removed",
- "type": "date"
- },
- {
- "name": "resourcestate",
- "description": "the resource state of the host",
- "type": "string"
- },
- {
- "name": "lastannotated",
- "description": "the last time this host was annotated",
- "type": "date"
- },
- {
- "name": "hostha",
- "description": "the host HA information information",
- "type": "hostharesponse"
- }
- ]
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
},
{
- "name": "updateStoragePool",
- "description": "Updates a storage pool.",
- "since": "3.0.0",
- "isasync": false,
- "related": "listStoragePools,findStoragePoolsForMigration,enableStorageMaintenance,cancelStorageMaintenance,createStoragePool",
- "params": [
- {
- "name": "id",
- "description": "the Id of the storage pool",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "listStoragePools,findStoragePoolsForMigration,enableStorageMaintenance,updateStoragePool,cancelStorageMaintenance,createStoragePool"
- },
- {
- "name": "capacityiops",
- "description": "IOPS CloudStack can provision from this storage pool",
- "type": "long",
- "length": 255,
- "required": false
- },
- {
- "name": "enabled",
- "description": "false to disable the pool for allocation of new volumes, true to enable it back.",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "tags",
- "description": "comma-separated list of tags for the storage pool",
- "type": "list",
- "length": 255,
- "required": false
- },
- {
- "name": "capacitybytes",
- "description": "bytes CloudStack can provision from this storage pool",
- "type": "long",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "disksizeallocated",
- "description": "the host's currently allocated disk size",
- "type": "long"
- },
- {
-
- },
- {
- "name": "state",
- "description": "the state of the storage pool",
- "type": "storagepoolstatus"
- },
- {
- "name": "name",
- "description": "the name of the storage pool",
- "type": "string"
- },
- {
- "name": "created",
- "description": "the date and time the storage pool was created",
- "type": "date"
- },
- {
- "name": "disksizetotal",
- "description": "the total disk size of the storage pool",
- "type": "long"
- },
- {
- "name": "overprovisionfactor",
- "description": "the overprovisionfactor for the storage pool",
- "type": "string"
- },
- {
- "name": "clustername",
- "description": "the name of the cluster for the storage pool",
- "type": "string"
- },
- {
- "name": "suitableformigration",
- "description": "true if this pool is suitable to migrate a volume, false otherwise",
- "type": "boolean"
- },
- {
- "name": "disksizeused",
- "description": "the host's currently used disk size",
- "type": "long"
- },
- {
- "name": "zoneid",
- "description": "the Zone ID of the storage pool",
- "type": "string"
- },
- {
-
- },
- {
- "name": "zonename",
- "description": "the Zone name of the storage pool",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "path",
- "description": "the storage pool path",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the storage pool",
- "type": "string"
- },
- {
- "name": "clusterid",
- "description": "the ID of the cluster for the storage pool",
- "type": "string"
- },
- {
- "name": "tags",
- "description": "the tags for the storage pool",
- "type": "string"
- },
- {
- "name": "allocatediops",
- "description": "total min IOPS currently in use by volumes",
- "type": "long"
- },
- {
- "name": "storagecapabilities",
- "description": "the storage pool capabilities",
- "type": "map"
- },
- {
- "name": "capacityiops",
- "description": "IOPS CloudStack can provision from this storage pool",
- "type": "long"
- },
- {
- "name": "podname",
- "description": "the Pod name of the storage pool",
- "type": "string"
- },
- {
- "name": "provider",
- "description": "Storage provider for this pool",
- "type": "string"
- },
- {
- "name": "podid",
- "description": "the Pod ID of the storage pool",
- "type": "string"
- },
- {
- "name": "scope",
- "description": "the scope of the storage pool",
- "type": "string"
- },
- {
- "name": "hypervisor",
- "description": "the hypervisor type of the storage pool",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "type",
- "description": "the storage pool type",
- "type": "string"
- },
- {
- "name": "ipaddress",
- "description": "the IP address of the storage pool",
- "type": "string"
- }
- ]
+ "description": " indicates if the vpc offering supports distributed router for one-hop forwarding",
+ "name": "distributedvpcrouter",
+ "type": "boolean"
},
{
- "name": "rebootSystemVm",
- "description": "Reboots a system VM.",
- "isasync": true,
- "related": "stopSystemVm,migrateSystemVm,changeServiceForSystemVm,startSystemVm,destroySystemVm,listSystemVms,scaleSystemVm",
- "params": [
- {
- "name": "id",
- "description": "The ID of the system virtual machine",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "stopSystemVm,rebootSystemVm,migrateSystemVm,changeServiceForSystemVm,startSystemVm,destroySystemVm,listSystemVms,scaleSystemVm"
- }
- ],
- "response": [
- {
- "name": "name",
- "description": "the name of the system VM",
- "type": "string"
- },
- {
- "name": "podid",
- "description": "the Pod ID for the system VM",
- "type": "string"
- },
- {
-
- },
- {
- "name": "privateip",
- "description": "the private IP address for the system VM",
- "type": "string"
- },
- {
- "name": "gateway",
- "description": "the gateway for the system VM",
- "type": "string"
- },
- {
- "name": "dns1",
- "description": "the first DNS for the system VM",
- "type": "string"
- },
- {
- "name": "created",
- "description": "the date and time the system VM was created",
- "type": "date"
- },
- {
- "name": "publicmacaddress",
- "description": "the public MAC address for the system VM",
- "type": "string"
- },
- {
- "name": "hostname",
- "description": "the hostname for the system VM",
- "type": "string"
- },
- {
- "name": "systemvmtype",
- "description": "the system VM type",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the job status associated with the system VM. This is only displayed if the router listed is part of a currently running asynchronous job.",
- "type": "integer"
- },
- {
- "name": "zonename",
- "description": "the Zone name for the system VM",
- "type": "string"
- },
- {
- "name": "publicvlan",
- "description": "public vlan range",
- "type": "list"
- },
- {
- "name": "publicnetmask",
- "description": "the public netmask for the system VM",
- "type": "string"
- },
- {
- "name": "hypervisor",
- "description": "the hypervisor on which the template runs",
- "type": "string"
- },
- {
- "name": "state",
- "description": "the state of the system VM",
- "type": "string"
- },
- {
-
- },
- {
- "name": "dns2",
- "description": "the second DNS for the system VM",
- "type": "string"
- },
- {
- "name": "linklocalip",
- "description": "the link local IP address for the system vm",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "the Zone ID for the system VM",
- "type": "string"
- },
- {
- "name": "activeviewersessions",
- "description": "the number of active console sessions for the console proxy system vm",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the job ID associated with the system VM. This is only displayed if the router listed is part of a currently running asynchronous job.",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "networkdomain",
- "description": "the network domain for the system VM",
- "type": "string"
- },
- {
- "name": "linklocalnetmask",
- "description": "the link local netmask for the system vm",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the system VM",
- "type": "string"
- },
- {
- "name": "guestvlan",
- "description": "guest vlan range",
- "type": "string"
- },
- {
- "name": "privatemacaddress",
- "description": "the private MAC address for the system VM",
- "type": "string"
- },
- {
- "name": "publicip",
- "description": "the public IP address for the system VM",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "templateid",
- "description": "the template ID for the system VM",
- "type": "string"
- },
- {
- "name": "hostid",
- "description": "the host ID for the system VM",
- "type": "string"
- },
- {
- "name": "privatenetmask",
- "description": "the private netmask for the system VM",
- "type": "string"
- },
- {
- "name": "linklocalmacaddress",
- "description": "the link local MAC address for the system vm",
- "type": "string"
- }
- ]
+ "description": "the zone ID(s) this disk offering belongs to. Ignore this information as it is not currently applicable.",
+ "name": "zoneid",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "description": "Creates a new Pod.",
+ "isasync": false,
+ "name": "createPod",
+ "params": [
+ {
+ "description": "Allocation state of this Pod for allocation of new resources",
+ "length": 255,
+ "name": "allocationstate",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "description": "the netmask for the Pod",
+ "length": 255,
+ "name": "netmask",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "description": "the gateway for the Pod",
+ "length": 255,
+ "name": "gateway",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "description": "the ending IP address for the Pod",
+ "length": 255,
+ "name": "endip",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "description": "the starting IP address for the Pod",
+ "length": 255,
+ "name": "startip",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "description": "the Zone ID in which the Pod will be created",
+ "length": 255,
+ "name": "zoneid",
+ "related": "createZone,updateZone,listZones,listZones",
+ "required": true,
+ "type": "uuid"
+ },
+ {
+ "description": "the name of the Pod",
+ "length": 255,
+ "name": "name",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "related": "listPods,updatePod,createManagementNetworkIpRange",
+ "response": [
+ {
+ "description": "the Zone name of the Pod",
+ "name": "zonename",
+ "type": "string"
+ },
+ {
+ "description": "the UUID of the latest async job acting on this object",
+ "name": "jobid",
+ "type": "string"
+ },
+ {
+ "description": "the starting IP for the Pod",
+ "name": "startip",
+ "type": "list"
+ },
+ {
+ "description": "the ID of the Pod",
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "description": "the current status of the latest async job acting on this object",
+ "name": "jobstatus",
+ "type": "integer"
+ },
+ {
+ "description": "indicates Vlan ID for the range",
+ "name": "vlanid",
+ "type": "list"
+ },
+ {
+ "description": "the capacity of the Pod",
+ "name": "capacity",
+ "response": [
+ {
+ "description": "the capacity currently in allocated",
+ "name": "capacityallocated",
+ "type": "long"
+ },
+ {
+ "description": "the capacity type",
+ "name": "type",
+ "type": "short"
+ },
+ {
+ "description": "the Zone ID",
+ "name": "zoneid",
+ "type": "string"
+ },
+ {
+ "description": "the Cluster ID",
+ "name": "clusterid",
+ "type": "string"
+ },
+ {
+ "description": "the Cluster name",
+ "name": "clustername",
+ "type": "string"
+ },
+ {
+ "description": "the capacity currently in use",
+ "name": "capacityused",
+ "type": "long"
+ },
+ {
+ "description": "the Pod ID",
+ "name": "podid",
+ "type": "string"
+ },
+ {
+ "description": "the Zone name",
+ "name": "zonename",
+ "type": "string"
+ },
+ {
+ "description": "the percentage of capacity currently in use",
+ "name": "percentused",
+ "type": "string"
+ },
+ {
+ "description": "the Pod name",
+ "name": "podname",
+ "type": "string"
+ },
+ {
+ "description": "the total capacity available",
+ "name": "capacitytotal",
+ "type": "long"
+ },
+ {
+ "description": "the capacity name",
+ "name": "name",
+ "type": "string"
+ }
+ ],
+ "type": "list"
+ },
+ {
+ "description": "the netmask of the Pod",
+ "name": "netmask",
+ "type": "string"
+ },
+ {
+ "description": "the Zone ID of the Pod",
+ "name": "zoneid",
+ "type": "string"
+ },
+ {},
+ {
+ "description": "the ending IP for the Pod",
+ "name": "endip",
+ "type": "list"
+ },
+ {
+ "description": "indicates if range is dedicated for CPVM and SSVM",
+ "name": "forsystemvms",
+ "type": "list"
+ },
+ {
+ "description": "the allocation state of the Pod",
+ "name": "allocationstate",
+ "type": "string"
+ },
+ {
+ "description": "the name of the Pod",
+ "name": "name",
+ "type": "string"
+ },
+ {},
+ {
+ "description": "the gateway of the Pod",
+ "name": "gateway",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "description": "Creates an account from an LDAP user",
+ "isasync": false,
+ "name": "ldapCreateAccount",
+ "params": [
+ {
+ "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": "short"
},
{
- "name": "importLdapUsers",
- "description": "Import LDAP users",
- "since": "4.3.0",
- "isasync": false,
- "related": "searchLdap,listLdapUsers",
- "params": [
- {
- "name": "account",
- "description": "Creates the user under the specified account. If no account is specified, the username will be used as the account name.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "timezone",
- "description": "Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "group",
- "description": "Specifies the group name from which the ldap users are to be imported. If no group is specified, all the users will be imported.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "accounttype",
- "description": "Type of the account. Specify 0 for user, 1 for root admin, and 2 for domain admin",
- "type": "short",
- "length": 255,
- "required": false
- },
- {
- "name": "roleid",
- "description": "Creates the account under the specified role.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "updateRole,createRole,listRoles"
- },
- {
- "name": "accountdetails",
- "description": "details for account used to store specific parameters",
- "type": "map",
- "length": 255,
- "required": false
- },
- {
- "name": "domainid",
- "description": "Specifies the domain to which the ldap users are to be imported. If no domain is specified, a domain will created using group parameter. If the group is also not specified, a domain name based on the OU information will be created. If no OU hierarchy exists, will be defaulted to ROOT domain",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "firstname",
- "description": "The user's firstname",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "email",
- "description": "The user's email",
- "type": "string"
- },
- {
- "name": "principal",
- "description": "The user's principle",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "domain",
- "description": "The user's domain",
- "type": "string"
- },
- {
- "name": "username",
- "description": "The user's username",
- "type": "string"
- },
- {
-
- },
- {
- "name": "lastname",
- "description": "The user's lastname",
- "type": "string"
- }
- ]
+ "description": "Unique username.",
+ "length": 255,
+ "name": "username",
+ "required": true,
+ "type": "string"
},
{
- "name": "listDedicatedZones",
- "description": "List dedicated zones.",
- "isasync": false,
- "related": "dedicateZone",
- "params": [
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the zone",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- },
- {
- "name": "zoneid",
- "description": "the ID of the Zone",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "account",
- "description": "the name of the account associated with the zone. Must be used with domainId.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "affinitygroupid",
- "description": "list dedicated zones by affinity group",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createAffinityGroup,listAffinityGroups"
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "accountid",
- "description": "the Account Id to which the Zone is dedicated",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the dedicated resource",
- "type": "string"
- },
- {
-
- },
- {
- "name": "affinitygroupid",
- "description": "the Dedication Affinity Group ID of the zone",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "zonename",
- "description": "the Name of the Zone",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "the ID of the Zone",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the domain ID to which the Zone is dedicated",
- "type": "string"
- }
- ]
+ "description": "details for account used to store specific parameters",
+ "length": 255,
+ "name": "accountdetails",
+ "required": false,
+ "type": "map"
},
{
- "name": "listNetworks",
- "description": "Lists all available networks.",
- "isasync": false,
- "related": "listPaloAltoFirewallNetworks,migrateNetwork,listNetscalerLoadBalancerNetworks,listNiciraNvpDeviceNetworks,listBrocadeVcsDeviceNetworks,updateNetwork,listNetworks,updateNetwork,createNetwork,createNetwork",
- "params": [
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "account",
- "description": "list resources by account. Must be used with the domainId parameter.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "listall",
- "description": "If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "restartrequired",
- "description": "list networks by restartRequired",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "canusefordeploy",
- "description": "list networks available for VM deployment",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "vpcid",
- "description": "List networks by VPC",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "migrateVPC,listVPCs,updateVPC,listVPCs,createVPC,restartVPC,createVPC,updateVPC"
- },
- {
- "name": "forvpc",
- "description": "the network belongs to VPC",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "physicalnetworkid",
- "description": "list networks by physical network id",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "updatePhysicalNetwork,createPhysicalNetwork,listPhysicalNetworks"
- },
- {
- "name": "supportedservices",
- "description": "list networks supporting certain services",
- "type": "list",
- "length": 255,
- "required": false
- },
- {
- "name": "id",
- "description": "list networks by ID",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listPaloAltoFirewallNetworks,migrateNetwork,listNetscalerLoadBalancerNetworks,listNiciraNvpDeviceNetworks,listBrocadeVcsDeviceNetworks,listNetworks,updateNetwork,listNetworks,updateNetwork,createNetwork,createNetwork"
- },
- {
- "name": "specifyipranges",
- "description": "true if need to list only networks which support specifying IP ranges",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "tags",
- "description": "List resources by tags (key/value pairs)",
- "type": "map",
- "length": 255,
- "required": false
- },
- {
- "name": "traffictype",
- "description": "type of the traffic",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "displaynetwork",
- "description": "list resources by display flag; only ROOT admin is eligible to pass this parameter",
- "type": "boolean",
- "length": 255,
- "required": false,
- "since": "4.4"
- },
- {
- "name": "type",
- "description": "the type of the network. Supported values are: isolated and shared",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "zoneid",
- "description": "the zone ID of the network",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- },
- {
- "name": "isrecursive",
- "description": "defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "issystem",
- "description": "true if network is system, false otherwise",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "acltype",
- "description": "list networks by ACL (access control list) type. Supported values are account and domain",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "projectid",
- "description": "list objects by project",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listProjectAccounts,listProjects,activateProject,createProject,updateProject,suspendProject"
- },
- {
- "name": "domainid",
- "description": "list only resources belonging to the domain specified",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- }
- ],
- "response": [
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "project",
- "description": "the project name of the address",
- "type": "string"
- },
- {
- "name": "networkofferingdisplaytext",
- "description": "display text of the network offering the network is created from",
- "type": "string"
- },
- {
- "name": "externalid",
- "description": "The external id of the network",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the domain id of the network owner",
- "type": "string"
- },
- {
- "name": "dns1",
- "description": "the first DNS for the network",
- "type": "string"
- },
- {
- "name": "zonename",
- "description": "the name of the zone the network belongs to",
- "type": "string"
- },
- {
- "name": "netmask",
- "description": "the network's netmask",
- "type": "string"
- },
- {
- "name": "ip6cidr",
- "description": "the cidr of IPv6 network",
- "type": "string"
- },
- {
- "name": "related",
- "description": "related to what other network configuration",
- "type": "string"
- },
- {
- "name": "cidr",
- "description": "Cloudstack managed address space, all CloudStack managed VMs get IP address from CIDR",
- "type": "string"
- },
- {
- "name": "vpcid",
- "description": "VPC the network belongs to",
- "type": "string"
- },
- {
-
- },
- {
- "name": "networkofferingid",
- "description": "network offering id the network is created from",
- "type": "string"
- },
- {
- "name": "networkofferingavailability",
- "description": "availability of the network offering the network is created from",
- "type": "string"
- },
- {
- "name": "type",
- "description": "the type of the network",
- "type": "string"
- },
- {
- "name": "physicalnetworkid",
- "description": "the physical network id",
- "type": "string"
- },
- {
- "name": "displaynetwork",
- "description": "an optional field, whether to the display the network to the end user or not.",
- "type": "boolean"
- },
- {
- "name": "aclid",
- "description": "ACL Id associated with the VPC network",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "zone id of the network",
- "type": "string"
- },
- {
- "name": "zonesnetworkspans",
- "description": "If a network is enabled for 'streched l2 subnet' then represents zones on which network currently spans",
- "type": "set"
- },
- {
- "name": "acltype",
- "description": "acl type - access type to the network",
- "type": "string"
- },
- {
- "name": "redundantrouter",
- "description": "If the network has redundant routers enabled",
- "type": "boolean"
- },
- {
- "name": "displaytext",
- "description": "the displaytext of the network",
- "type": "string"
- },
- {
- "name": "service",
- "description": "the list of services",
- "type": "list",
- "response": [
- {
- "name": "name",
- "description": "the service name",
- "type": "string"
- },
- {
- "name": "provider",
- "description": "the service provider name",
- "type": "list",
- "response": [
- {
- "name": "canenableindividualservice",
- "description": "true if individual services can be enabled/disabled",
- "type": "boolean"
- },
- {
- "name": "name",
- "description": "the provider name",
- "type": "string"
- },
- {
- "name": "id",
- "description": "uuid of the network provider",
- "type": "string"
- },
- {
- "name": "servicelist",
- "description": "services for this provider",
- "type": "list"
- },
- {
- "name": "state",
- "description": "state of the network provider",
- "type": "string"
- },
- {
- "name": "destinationphysicalnetworkid",
- "description": "the destination physical network",
- "type": "string"
- },
- {
- "name": "physicalnetworkid",
- "description": "the physical network this belongs to",
- "type": "string"
- }
- ]
- },
- {
- "name": "capability",
- "description": "the list of capabilities",
- "type": "list",
- "response": [
- {
- "name": "canchooseservicecapability",
- "description": "can this service capability value can be choosable while creatine network offerings",
- "type": "boolean"
- },
- {
- "name": "name",
- "description": "the capability name",
- "type": "string"
- },
- {
- "name": "value",
- "description": "the capability value",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "name": "domain",
- "description": "the domain name of the network owner",
- "type": "string"
- },
- {
- "name": "issystem",
- "description": "true if network is system, false otherwise",
- "type": "boolean"
- },
- {
- "name": "networkofferingname",
- "description": "name of the network offering the network is created from",
- "type": "string"
- },
- {
- "name": "subdomainaccess",
- "description": "true if users from subdomains can access the domain level network",
- "type": "boolean"
- },
- {
- "name": "dns2",
- "description": "the second DNS for the network",
- "type": "string"
- },
- {
- "name": "broadcasturi",
- "description": "broadcast uri of the network. This parameter is visible to ROOT admins only",
- "type": "string"
- },
- {
- "name": "vlan",
- "description": "The vlan of the network. This parameter is visible to ROOT admins only",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the id of the network",
- "type": "string"
- },
- {
- "name": "broadcastdomaintype",
- "description": "Broadcast domain type of the network",
- "type": "string"
- },
- {
- "name": "ispersistent",
- "description": "list networks that are persistent",
- "type": "boolean"
- },
- {
- "name": "projectid",
- "description": "the project id of the ipaddress",
- "type": "string"
- },
- {
- "name": "name",
- "description": "the name of the network",
- "type": "string"
- },
- {
- "name": "reservediprange",
- "description": "the network's IP range not to be used by CloudStack guest VMs and can be used for non CloudStack purposes",
- "type": "string"
- },
- {
- "name": "gateway",
- "description": "the network's gateway",
- "type": "string"
- },
- {
- "name": "specifyipranges",
- "description": "true if network supports specifying ip ranges, false otherwise",
- "type": "boolean"
- },
- {
-
- },
- {
- "name": "ip6gateway",
- "description": "the gateway of IPv6 network",
- "type": "string"
- },
- {
- "name": "traffictype",
- "description": "the traffic type of the network",
- "type": "string"
- },
- {
- "name": "networkofferingconservemode",
- "description": "true if network offering is ip conserve mode enabled",
- "type": "boolean"
- },
- {
- "name": "networkcidr",
- "description": "the network CIDR of the guest network configured with IP reservation. It is the summation of CIDR and RESERVED_IP_RANGE",
- "type": "string"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with network",
- "type": "list",
- "response": [
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- }
- ]
- },
- {
- "name": "account",
- "description": "the owner of the network",
- "type": "string"
- },
- {
- "name": "canusefordeploy",
- "description": "list networks available for vm deployment",
- "type": "boolean"
- },
- {
- "name": "strechedl2subnet",
- "description": "true if network can span multiple zones",
- "type": "boolean"
- },
- {
- "name": "isdefault",
- "description": "true if network is default, false otherwise",
- "type": "boolean"
- },
- {
- "name": "restartrequired",
- "description": "true network requires restart",
- "type": "boolean"
- },
- {
- "name": "state",
- "description": "state of the network",
- "type": "string"
- },
- {
- "name": "networkdomain",
- "description": "the network domain",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- }
- ]
+ "description": "Account UUID, required for adding account from external provisioning system",
+ "length": 255,
+ "name": "accountid",
+ "required": false,
+ "type": "string"
},
{
- "name": "listElastistorPool",
- "description": "Lists the pools of elastistor",
- "isasync": false,
- "related": "",
- "params": [
- {
- "name": "id",
- "description": "the ID of the Pool",
- "type": "long",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "gateway",
- "description": "default gateway of the pool",
- "type": "string"
- },
- {
- "name": "maxiops",
- "description": "available iops of the pool",
- "type": "long"
- },
- {
-
- },
- {
- "name": "name",
- "description": "the name of the storage pool",
- "type": "string"
- },
- {
- "name": "state",
- "description": "the state of the storage pool",
- "type": "string"
- },
- {
- "name": "size",
- "description": "the current available space of the pool",
- "type": "long"
- },
- {
- "name": "controllerid",
- "description": "controller of the pool",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "id",
- "description": "the ID of the storage pool",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- }
- ]
- },
- {
- "name": "updateFirewallRule",
- "description": "Updates firewall rule ",
- "since": "4.4",
- "isasync": true,
- "related": "updateEgressFirewallRule,listFirewallRules,createEgressFirewallRule,listEgressFirewallRules,createFirewallRule",
- "params": [
- {
- "name": "customid",
- "description": "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only",
- "type": "string",
- "length": 255,
- "required": false,
- "since": "4.4"
- },
- {
- "name": "fordisplay",
- "description": "an optional field, whether to the display the rule to the end user or not",
- "type": "boolean",
- "length": 255,
- "required": false,
- "since": "4.4"
- },
- {
- "name": "id",
- "description": "the ID of the firewall rule",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "createIpForwardingRule,listPortForwardingRules,updatePortForwardingRule,createPortForwardingRule,listIpForwardingRules"
- }
- ],
- "response": [
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "protocol",
- "description": "the protocol of the firewall rule",
- "type": "string"
- },
- {
-
- },
- {
- "name": "networkid",
- "description": "the network id of the firewall rule",
- "type": "string"
- },
- {
- "name": "endport",
- "description": "the ending port of firewall rule's port range",
- "type": "integer"
- },
- {
- "name": "startport",
- "description": "the starting port of firewall rule's port range",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- },
- {
- "name": "icmpcode",
- "description": "error code for this icmp message",
- "type": "integer"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "list",
- "response": [
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- }
- ]
- },
- {
- "name": "cidrlist",
- "description": "the cidr list to forward traffic from",
- "type": "string"
- },
- {
- "name": "ipaddress",
- "description": "the public ip address for the firewall rule",
- "type": "string"
- },
- {
- "name": "destcidrlist",
- "description": "the cidr list to forward traffic to",
- "type": "string"
- },
- {
- "name": "state",
- "description": "the state of the rule",
- "type": "string"
- },
- {
- "name": "icmptype",
- "description": "type of the icmp message being sent",
- "type": "integer"
- },
- {
- "name": "id",
- "description": "the ID of the firewall rule",
- "type": "string"
- },
- {
- "name": "ipaddressid",
- "description": "the public ip address id for the firewall rule",
- "type": "string"
- },
- {
- "name": "fordisplay",
- "description": "is rule for display to the regular user",
- "type": "boolean"
- }
- ]
+ "description": "Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.",
+ "length": 255,
+ "name": "timezone",
+ "required": false,
+ "type": "string"
},
{
- "name": "quotaIsEnabled",
- "description": "Return true if the plugin is enabled",
- "since": "4.7.0",
- "isasync": false,
- "related": "",
- "params": [
-
- ],
- "response": [
- {
- "name": "isenabled",
- "description": "is quota service enabled",
- "type": "boolean"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- },
- {
-
- }
- ]
+ "description": "Creates the user under the specified domain.",
+ "length": 255,
+ "name": "domainid",
+ "related": "createDomain,listDomainChildren,listDomains,listDomains,updateDomain",
+ "required": false,
+ "type": "uuid"
},
{
- "name": "listHypervisors",
- "description": "List hypervisors",
- "isasync": false,
- "related": "",
- "params": [
- {
- "name": "zoneid",
- "description": "the zone id for listing hypervisors.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- }
- ],
- "response": [
- {
- "name": "name",
- "description": "Hypervisor name",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- }
- ]
+ "description": "Creates the user under the specified account. If no account is specified, the username will be used as the account name.",
+ "length": 255,
+ "name": "account",
+ "required": false,
+ "type": "string"
},
{
- "name": "deleteAccountFromProject",
- "description": "Deletes account from the project",
- "since": "3.0.0",
- "isasync": true,
- "params": [
- {
- "name": "account",
- "description": "name of the account to be removed from the project",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "projectid",
- "description": "ID of the project to remove the account from",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "listProjectAccounts,listProjects,activateProject,createProject,updateProject,suspendProject"
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
-
- }
- ]
+ "description": "Creates the account under the specified role.",
+ "length": 255,
+ "name": "roleid",
+ "related": "createRole,importRole,listRoles,updateRole",
+ "required": false,
+ "type": "uuid"
},
{
- "name": "updateGuestOs",
- "description": "Updates the information about Guest OS",
- "since": "4.4.0",
- "isasync": true,
- "related": "addGuestOs,listOsTypes",
- "params": [
- {
- "name": "id",
- "description": "UUID of the Guest OS",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "addGuestOs,updateGuestOs,listOsTypes"
- },
- {
- "name": "details",
- "description": "Map of (key/value pairs)",
- "type": "map",
- "length": 255,
- "required": true
- },
- {
- "name": "osdisplayname",
- "description": "Unique display name for Guest OS",
- "type": "string",
- "length": 255,
- "required": true
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "description",
- "description": "the name/description of the OS type",
- "type": "string"
- },
- {
- "name": "oscategoryid",
- "description": "the ID of the OS category",
- "type": "string"
- },
- {
- "name": "isuserdefined",
- "description": "is the guest OS user defined",
- "type": "boolean"
- },
- {
- "name": "id",
- "description": "the ID of the OS type",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- }
- ]
+ "description": "Network domain for the account's networks",
+ "length": 255,
+ "name": "networkdomain",
+ "required": false,
+ "type": "string"
},
{
- "name": "updateResourceLimit",
- "description": "Updates resource limits for an account or domain.",
- "isasync": false,
- "related": "listResourceLimits",
- "params": [
- {
- "name": "resourcetype",
- "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. 6 - Network. Number of guest network a user can create. 7 - VPC. Number of VPC a user can create. [...]
- "type": "integer",
- "length": 255,
- "required": true
- },
- {
- "name": "account",
- "description": "Update resource for a specified account. Must be used with the domainId parameter.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "projectid",
- "description": "Update resource limits for project",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listProjectAccounts,listProjects,activateProject,createProject,updateProject,suspendProject"
- },
- {
- "name": "domainid",
- "description": "Update resource limits for all accounts in specified domain. If used with the account parameter, updates resource limits for a specified account in specified domain.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- },
- {
- "name": "max",
- "description": " Maximum resource limit.",
- "type": "long",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "projectid",
- "description": "the project id of the resource limit",
- "type": "string"
- },
- {
-
- },
- {
-
- },
- {
- "name": "account",
- "description": "the account of the resource limit",
- "type": "string"
- },
- {
- "name": "max",
- "description": "the maximum number of the resource. A -1 means the resource currently has no limit.",
- "type": "long"
- },
- {
- "name": "domainid",
- "description": "the domain ID of the resource limit",
- "type": "string"
- },
- {
- "name": "resourcetypename",
- "description": "resource type name. Values include user_vm, public_ip, volume, snapshot, template, project, network, vpc, cpu, memory, primary_storage, secondary_storage.",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "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.",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain name of the resource limit",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name of the resource limit",
- "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 memory (in MB) the account can own",
+ "name": "memorylimit",
+ "type": "string"
},
{
- "name": "deleteStaticRoute",
- "description": "Deletes a static route",
- "isasync": true,
- "params": [
- {
- "name": "id",
- "description": "the ID of the static route",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "listStaticRoutes,createStaticRoute"
- }
- ],
- "response": [
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
-
- },
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- }
- ]
+ "description": "the state of the account",
+ "name": "state",
+ "type": "string"
},
{
- "name": "listHostsMetrics",
- "description": "Lists hosts metrics",
- "since": "4.9.3",
- "isasync": false,
- "related": "",
- "params": [
- {
- "name": "state",
- "description": "the state of the host",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "hahost",
- "description": "if true, list only hosts dedicated to HA",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "virtualmachineid",
- "description": "lists hosts in the same cluster as this VM and flag hosts with enough CPU/RAm to host this VM",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "destroyVirtualMachine,migrateVirtualMachineWithVolume,attachIso,startVirtualMachine,removeNicFromVirtualMachine,updateVirtualMachine,updateVmNicIp,detachIso,rebootVirtualMachine,updateVMAffinityGroup,stopVirtualMachine,detachIso,removeNicFromVirtualMachine,listVirtualMachines,listVirtualMachines,destroyVirtualMachine,attachIso,resetSSHKeyForVirtualMachine,revertToVMSnapshot,updateVMAffinityGroup,updateDefaultNicForVirtualMachine,assignVirtualMachine,change [...]
- },
- {
- "name": "id",
- "description": "the id of the host",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "prepareHostForMaintenance,cancelHostMaintenance,addHost,reconnectHost,addBaremetalHost,updateHost"
- },
- {
- "name": "outofbandmanagementenabled",
- "description": "list hosts for which out-of-band management is enabled",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "type",
- "description": "the host type",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "name",
- "description": "the name of the host",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "zoneid",
- "description": "the Zone ID for the host",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- },
- {
- "name": "podid",
- "description": "the Pod ID for the host",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listPods,createManagementNetworkIpRange,updatePod"
- },
- {
- "name": "resourcestate",
- "description": "list hosts by resource state. Resource state represents current state determined by admin of host, value can be one of [Enabled, Disabled, Unmanaged, PrepareForMaintenance, ErrorInMaintenance, Maintenance, Error]",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "outofbandmanagementpowerstate",
- "description": "list hosts by its out-of-band management interface's power state. Its value can be one of [On, Off, Unknown]",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "clusterid",
- "description": "lists hosts existing in particular cluster",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "addCluster,listClusters,updateCluster"
- },
- {
- "name": "details",
- "description": "comma separated list of host details requested, value can be a list of [ min, all, capacity, events, stats]",
- "type": "list",
- "length": 255,
- "required": false
- },
- {
- "name": "hypervisor",
- "description": "hypervisor type of host: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "averageload",
- "description": "the cpu average load on the host",
- "type": "long"
- },
- {
- "name": "cpuspeed",
- "description": "the CPU speed of the host",
- "type": "long"
- },
- {
- "name": "memorytotal",
- "description": "the memory total of the host, this parameter is deprecated use memorywithoverprovisioning",
- "type": "long"
- },
- {
- "name": "zoneid",
- "description": "the Zone ID of the host",
- "type": "string"
- },
- {
- "name": "capabilities",
- "description": "capabilities of the host",
- "type": "string"
- },
- {
- "name": "networkkbswrite",
- "description": "the outgoing network traffic on the host",
- "type": "long"
- },
- {
- "name": "memoryallocatedthreshold",
- "description": "memory allocated notification threshold exceeded",
- "type": "boolean"
- },
- {
- "name": "memoryusedgb",
- "description": "the total cpu used in GiB",
- "type": "string"
- },
- {
- "name": "cpuallocated",
- "description": "the amount of the host's CPU currently allocated",
- "type": "string"
- },
- {
- "name": "hypervisorversion",
- "description": "the hypervisor version",
- "type": "string"
- },
- {
- "name": "clustername",
- "description": "the cluster name of the host",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the host",
- "type": "string"
- },
- {
- "name": "events",
- "description": "events available for the host",
- "type": "string"
- },
- {
- "name": "podid",
- "description": "the Pod ID of the host",
- "type": "string"
- },
- {
- "name": "zonename",
- "description": "the Zone name of the host",
- "type": "string"
- },
- {
- "name": "outofbandmanagement",
- "description": "the host out-of-band management information",
- "type": "outofbandmanagementresponse"
- },
- {
- "name": "memorythreshold",
- "description": "memory usage notification threshold exceeded",
- "type": "boolean"
- },
- {
- "name": "memoryallocated",
- "description": "the amount of the host's memory currently allocated",
- "type": "long"
- },
- {
- "name": "suitableformigration",
- "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",
- "type": "boolean"
- },
- {
- "name": "powerstate",
- "description": "out-of-band management power state",
- "type": "powerstate"
- },
- {
- "name": "cpuusedghz",
- "description": "the total cpu used in Ghz",
- "type": "string"
- },
- {
- "name": "networkwrite",
- "description": "network write in GiB",
- "type": "string"
- },
- {
- "name": "disconnected",
- "description": "true if the host is disconnected. False otherwise.",
- "type": "date"
- },
- {
-
- },
- {
- "name": "details",
- "description": "Host details in key/value pairs.",
- "type": "map"
- },
- {
-
- },
- {
- "name": "type",
- "description": "the host type",
- "type": "type"
- },
- {
- "name": "resourcestate",
- "description": "the resource state of the host",
- "type": "string"
- },
- {
- "name": "oscategoryid",
- "description": "the OS category ID of the host",
- "type": "string"
- },
- {
- "name": "clustertype",
- "description": "the cluster type of the cluster that host belongs to",
- "type": "string"
- },
- {
- "name": "cputhreshold",
- "description": "cpu usage notification threshold exceeded",
- "type": "boolean"
- },
- {
- "name": "cpunumber",
- "description": "the CPU number of the host",
- "type": "integer"
- },
- {
- "name": "hostha",
- "description": "the host HA information information",
- "type": "hostharesponse"
- },
- {
- "name": "clusterid",
- "description": "the cluster ID of the host",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "memoryallocateddisablethreshold",
- "description": "memory allocated disable threshold exceeded",
- "type": "boolean"
- },
- {
- "name": "memorywithoverprovisioning",
- "description": "the amount of the host's memory after applying the mem.overprovisioning.factor",
- "type": "string"
- },
- {
- "name": "hahost",
- "description": "true if the host is Ha host (dedicated to vms started by HA process; false otherwise",
- "type": "boolean"
- },
- {
- "name": "cpuallocatedghz",
- "description": "the total cpu allocated in Ghz",
- "type": "string"
- },
- {
- "name": "cpuused",
- "description": "the amount of the host's CPU currently used",
- "type": "string"
- },
- {
- "name": "hypervisor",
- "description": "the host hypervisor",
- "type": "hypervisortype"
- },
- {
- "name": "hasenoughcapacity",
- "description": "true if this host has enough CPU and RAM capacity to migrate a VM to it, false otherwise",
- "type": "boolean"
- },
- {
- "name": "networkread",
- "description": "network read in GiB",
- "type": "string"
- },
- {
- "name": "disksizeallocated",
- "description": "the host's currently allocated disk size",
- "type": "long"
- },
- {
- "name": "cpusockets",
- "description": "the number of CPU sockets on the host",
- "type": "integer"
- },
- {
- "name": "oscategoryname",
- "description": "the OS category name of the host",
- "type": "string"
- },
- {
- "name": "gpugroup",
- "description": "GPU cards present in the host",
- "type": "list",
- "response": [
- {
- "name": "gpugroupname",
- "description": "GPU cards present in the host",
- "type": "string"
- },
- {
- "name": "vgpu",
- "description": "the list of enabled vGPUs",
- "type": "list",
- "response": [
- {
- "name": "remainingcapacity",
- "description": "Remaining capacity in terms of no. of more VMs that can be deployped with this vGPU type",
- "type": "long"
- },
- {
- "name": "vgputype",
- "description": "Model Name of vGPU",
- "type": "string"
- },
- {
- "name": "maxheads",
- "description": "Maximum displays per user",
- "type": "long"
- },
- {
- "name": "maxresolutionx",
- "description": "Maximum X resolution per display",
- "type": "long"
- },
- {
- "name": "maxresolutiony",
- "description": "Maximum Y resolution per display",
- "type": "long"
- },
- {
- "name": "videoram",
- "description": "Video RAM for this vGPU type",
- "type": "long"
- },
- {
- "name": "maxcapacity",
- "description": "Maximum vgpu can be created with this vgpu type on the given gpu group",
- "type": "long"
- },
- {
- "name": "maxvgpuperpgpu",
- "description": "Maximum no. of vgpu per gpu card (pgpu)",
- "type": "long"
- }
- ]
- }
- ]
- },
- {
- "name": "memorytotalgb",
- "description": "the total cpu capacity in GiB",
- "type": "string"
- },
- {
- "name": "hosttags",
- "description": "comma-separated list of tags for the host",
- "type": "string"
- },
- {
- "name": "removed",
- "description": "the date and time the host was removed",
- "type": "date"
- },
- {
- "name": "memorydisablethreshold",
- "description": "memory usage disable threshold exceeded",
- "type": "boolean"
- },
- {
- "name": "version",
- "description": "the host version",
- "type": "string"
- },
- {
- "name": "networkkbsread",
- "description": "the incoming network traffic on the host",
- "type": "long"
- },
- {
- "name": "cpuwithoverprovisioning",
- "description": "the amount of the host's CPU after applying the cpu.overprovisioning.factor ",
- "type": "string"
- },
- {
- "name": "lastannotated",
- "description": "the last time this host was annotated",
- "type": "date"
- },
- {
- "name": "cputotalghz",
- "description": "the total cpu capacity in Ghz",
- "type": "string"
- },
- {
- "name": "state",
- "description": "the state of the host",
- "type": "status"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "managementserverid",
- "description": "the management server ID of the host",
- "type": "long"
- },
- {
- "name": "created",
- "description": "the date and time the host was created",
- "type": "date"
- },
- {
- "name": "cpudisablethreshold",
- "description": "cpu usage disable threshold exceeded",
- "type": "boolean"
- },
- {
- "name": "ipaddress",
- "description": "the IP address of the host",
- "type": "string"
- },
- {
- "name": "lastpinged",
- "description": "the date and time the host was last pinged",
- "type": "date"
- },
- {
- "name": "cpuallocateddisablethreshold",
- "description": "cpu allocated disable threshold exceeded",
- "type": "boolean"
- },
- {
- "name": "podname",
- "description": "the Pod name of the host",
- "type": "string"
- },
- {
- "name": "islocalstorageactive",
- "description": "true if local storage is active, false otherwise",
- "type": "boolean"
- },
- {
- "name": "disksizetotal",
- "description": "the total disk size of the host",
- "type": "long"
- },
- {
- "name": "cpuallocatedthreshold",
- "description": "cpu allocated notification threshold exceeded",
- "type": "boolean"
- },
- {
- "name": "memoryallocatedgb",
- "description": "the total cpu allocated in GiB",
- "type": "string"
- },
- {
- "name": "name",
- "description": "the name of the host",
- "type": "string"
- },
- {
- "name": "instances",
- "description": "instances on the host",
- "type": "string"
- },
- {
- "name": "memoryused",
- "description": "the amount of the host's memory currently used",
- "type": "long"
- },
- {
- "name": "annotation",
- "description": "the last annotation set on this host by an admin",
- "type": "string"
- },
- {
- "name": "username",
- "description": "the admin that annotated this host",
- "type": "string"
- }
- ]
+ "description": "the total number of public ip addresses this account can acquire",
+ "name": "iplimit",
+ "type": "string"
},
{
- "name": "releaseDedicatedPod",
- "description": "Release the dedication for the pod",
- "isasync": true,
- "params": [
- {
- "name": "podid",
- "description": "the ID of the Pod",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "listPods,createManagementNetworkIpRange,updatePod"
- }
- ],
- "response": [
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
-
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- }
- ]
+ "description": "the total secondary storage space (in GiB) the account can own",
+ "name": "secondarystoragelimit",
+ "type": "string"
},
{
- "name": "listAffinityGroups",
- "description": "Lists affinity groups",
- "isasync": false,
- "related": "createAffinityGroup",
- "params": [
- {
- "name": "isrecursive",
- "description": "defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "listall",
- "description": "If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "virtualmachineid",
- "description": "lists affinity groups by virtual machine ID",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "destroyVirtualMachine,migrateVirtualMachineWithVolume,attachIso,startVirtualMachine,removeNicFromVirtualMachine,updateVirtualMachine,updateVmNicIp,detachIso,rebootVirtualMachine,updateVMAffinityGroup,stopVirtualMachine,detachIso,removeNicFromVirtualMachine,listVirtualMachines,listVirtualMachines,destroyVirtualMachine,attachIso,resetSSHKeyForVirtualMachine,revertToVMSnapshot,updateVMAffinityGroup,updateDefaultNicForVirtualMachine,assignVirtualMachine,change [...]
- },
- {
- "name": "name",
- "description": "lists affinity groups by name",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "id",
- "description": "list the affinity group by the ID provided",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createAffinityGroup,listAffinityGroups"
- },
- {
- "name": "type",
- "description": "lists affinity groups by type",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "domainid",
- "description": "list only resources belonging to the domain specified",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- },
- {
- "name": "projectid",
- "description": "list objects by project",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listProjectAccounts,listProjects,activateProject,createProject,updateProject,suspendProject"
- },
- {
- "name": "account",
- "description": "list resources by account. Must be used with the domainId parameter.",
- "type": "string",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- },
- {
- "name": "name",
- "description": "the name of the affinity group",
- "type": "string"
- },
- {
-
- },
- {
- "name": "id",
- "description": "the ID of the affinity group",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the domain ID of the affinity group",
- "type": "string"
- },
- {
- "name": "type",
- "description": "the type of the affinity group",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain name of the affinity group",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "project",
- "description": "the project name of the affinity group",
- "type": "string"
- },
- {
- "name": "virtualmachineIds",
- "description": "virtual machine IDs associated with this affinity group",
- "type": "list"
- },
- {
- "name": "projectid",
- "description": "the project ID of the affinity group",
- "type": "string"
- },
- {
- "name": "description",
- "description": "the description of the affinity group",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account owning the affinity group",
- "type": "string"
- }
- ]
+ "description": "the total volume available for this account",
+ "name": "volumeavailable",
+ "type": "string"
},
{
- "name": "registerSSHKeyPair",
- "description": "Register a public key in a keypair under a certain name",
- "isasync": false,
- "related": "listSSHKeyPairs",
- "params": [
- {
- "name": "name",
- "description": "Name of the keypair",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "publickey",
- "description": "Public key material of the keypair",
- "type": "string",
- "length": 5120,
- "required": true
- },
- {
- "name": "projectid",
- "description": "an optional project for the ssh key",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listProjectAccounts,listProjects,activateProject,createProject,updateProject,suspendProject"
- },
- {
- "name": "domainid",
- "description": "an optional domainId for the ssh key. If the account parameter is used, domainId must also be used.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- },
- {
- "name": "account",
- "description": "an optional account for the ssh key. Must be used with domainId.",
- "type": "string",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "fingerprint",
- "description": "Fingerprint of the public key",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain name of the keypair owner",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "name",
- "description": "Name of the keypair",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the owner of the keypair",
- "type": "string"
- },
- {
-
- },
- {
- "name": "domainid",
- "description": "the domain id of the keypair owner",
- "type": "string"
- }
- ]
+ "description": "the total number of vpcs owned by account",
+ "name": "vpctotal",
+ "type": "long"
},
{
- "name": "deleteRemoteAccessVpn",
- "description": "Destroys a l2tp/ipsec remote access vpn",
- "isasync": true,
- "params": [
- {
- "name": "publicipid",
- "description": "public ip address id of the vpn server",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "restartNetwork,updateIpAddress,listPublicIpAddresses,associateIpAddress,associateIpAddress,listPublicIpAddresses"
- }
- ],
- "response": [
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
-
- },
- {
-
- }
- ]
+ "description": "name of the Domain the account belongs to",
+ "name": "domain",
+ "type": "string"
},
{
- "name": "updateNetworkACLList",
- "description": "Updates network ACL list",
- "since": "4.4",
- "isasync": true,
- "params": [
- {
- "name": "customid",
- "description": "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only",
- "type": "string",
- "length": 255,
- "required": false,
- "since": "4.4"
- },
- {
- "name": "fordisplay",
- "description": "an optional field, whether to the display the list to the end user or not",
- "type": "boolean",
- "length": 255,
- "required": false,
- "since": "4.4"
- },
- {
- "name": "id",
- "description": "the ID of the network ACL",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "createNetworkACLList,listNetworkACLLists"
- },
- {
- "name": "description",
- "description": "Description of the network ACL list",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "name",
- "description": "Name of the network ACL list",
- "type": "string",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- }
- ]
+ "description": "the total number of virtual machines deployed by this account",
+ "name": "vmtotal",
+ "type": "long"
},
{
- "name": "deleteNiciraNvpDevice",
- "description": " delete a nicira nvp device",
- "isasync": true,
- "params": [
- {
- "name": "nvpdeviceid",
- "description": "Nicira device ID",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "addNiciraNvpDevice,listNiciraNvpDevices"
- }
- ],
- "response": [
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- }
- ]
- },
- {
- "name": "restoreVirtualMachine",
- "description": "Restore a VM to original template/ISO or new template/ISO",
- "since": "3.0.0",
- "isasync": true,
- "related": "destroyVirtualMachine,migrateVirtualMachineWithVolume,attachIso,startVirtualMachine,removeNicFromVirtualMachine,updateVirtualMachine,updateVmNicIp,detachIso,rebootVirtualMachine,updateVMAffinityGroup,stopVirtualMachine,detachIso,removeNicFromVirtualMachine,listVirtualMachines,listVirtualMachines,destroyVirtualMachine,attachIso,resetSSHKeyForVirtualMachine,revertToVMSnapshot,updateVMAffinityGroup,updateDefaultNicForVirtualMachine,assignVirtualMachine,changeServiceF [...]
- "params": [
- {
- "name": "virtualmachineid",
- "description": "Virtual Machine ID",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "destroyVirtualMachine,migrateVirtualMachineWithVolume,attachIso,startVirtualMachine,removeNicFromVirtualMachine,updateVirtualMachine,updateVmNicIp,detachIso,rebootVirtualMachine,updateVMAffinityGroup,stopVirtualMachine,detachIso,removeNicFromVirtualMachine,listVirtualMachines,listVirtualMachines,destroyVirtualMachine,attachIso,resetSSHKeyForVirtualMachine,revertToVMSnapshot,updateVMAffinityGroup,updateDefaultNicForVirtualMachine,assignVirtualMachine,change [...]
- },
- {
- "name": "templateid",
- "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",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "updateTemplate,listIsos,createTemplate,listTemplates,registerTemplate,registerIso,registerTemplate,prepareTemplate,copyTemplate,createTemplate,updateIso,listIsos,copyTemplate,copyIso,registerIso,listTemplates"
- }
- ],
- "response": [
- {
- "name": "cpuspeed",
- "description": "the speed of each cpu",
- "type": "integer"
- },
- {
- "name": "isdynamicallyscalable",
- "description": "true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory.",
- "type": "boolean"
- },
- {
- "name": "memorykbs",
- "description": "the memory used by the vm",
- "type": "long"
- },
- {
- "name": "haenable",
- "description": "true if high-availability is enabled, false otherwise",
- "type": "boolean"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated",
- "type": "set",
- "response": [
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- }
- ]
- },
- {
- "name": "diskofferingid",
- "description": "the ID of the disk offering of the virtual machine",
- "type": "string"
- },
- {
- "name": "displayname",
- "description": "user generated name. The name of the virtual machine is returned if no displayname exists.",
- "type": "string"
- },
- {
- "name": "securitygroup",
- "description": "list of security groups associated with the virtual machine",
- "type": "set",
- "response": [
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "set",
- "response": [
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- }
- ]
- },
- {
- "name": "projectid",
- "description": "the project id of the group",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account owning the security group",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain name of the security group",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the domain ID of the security group",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name of the group",
- "type": "string"
- },
- {
- "name": "description",
- "description": "the description of the security group",
- "type": "string"
- },
- {
- "name": "ingressrule",
- "description": "the list of ingress rules associated with the security group",
- "type": "set",
- "response": [
- {
- "name": "cidr",
- "description": "the CIDR notation for the base IP address of the security group rule",
- "type": "string"
- },
- {
- "name": "icmpcode",
- "description": "the code for the ICMP message response",
- "type": "integer"
- },
- {
- "name": "securitygroupname",
- "description": "security group name",
- "type": "string"
- },
- {
- "name": "icmptype",
- "description": "the type of the ICMP message response",
- "type": "integer"
- },
- {
- "name": "account",
- "description": "account owning the security group rule",
- "type": "string"
- },
- {
- "name": "ruleid",
- "description": "the id of the security group rule",
- "type": "string"
- },
- {
- "name": "startport",
- "description": "the starting IP of the security group rule",
- "type": "integer"
- },
- {
- "name": "protocol",
- "description": "the protocol of the security group rule",
- "type": "string"
- },
- {
- "name": "endport",
- "description": "the ending IP of the security group rule ",
- "type": "integer"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "set",
- "response": [
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "name": "virtualmachineids",
- "description": "the list of virtualmachine ids associated with this securitygroup",
- "type": "set"
- },
- {
- "name": "virtualmachinecount",
- "description": "the number of virtualmachines associated with this securitygroup",
- "type": "integer"
- },
- {
- "name": "egressrule",
- "description": "the list of egress rules associated with the security group",
- "type": "set",
- "response": [
- {
- "name": "icmptype",
- "description": "the type of the ICMP message response",
- "type": "integer"
- },
- {
- "name": "securitygroupname",
- "description": "security group name",
- "type": "string"
- },
- {
- "name": "endport",
- "description": "the ending IP of the security group rule ",
- "type": "integer"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "set",
- "response": [
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- }
- ]
- },
- {
- "name": "protocol",
- "description": "the protocol of the security group rule",
- "type": "string"
- },
- {
- "name": "ruleid",
- "description": "the id of the security group rule",
- "type": "string"
- },
- {
- "name": "cidr",
- "description": "the CIDR notation for the base IP address of the security group rule",
- "type": "string"
- },
- {
- "name": "startport",
- "description": "the starting IP of the security group rule",
- "type": "integer"
- },
- {
- "name": "icmpcode",
- "description": "the code for the ICMP message response",
- "type": "integer"
- },
- {
- "name": "account",
- "description": "account owning the security group rule",
- "type": "string"
- }
- ]
- },
- {
- "name": "name",
- "description": "the name of the security group",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the security group",
- "type": "string"
- }
- ]
- },
- {
- "name": "diskioread",
- "description": "the read (io) of disk on the vm",
- "type": "long"
- },
- {
- "name": "state",
- "description": "the state of the virtual machine",
- "type": "string"
- },
- {
- "name": "templatename",
- "description": "the name of the template for the virtual machine",
- "type": "string"
- },
- {
- "name": "diskkbsread",
- "description": "the read (bytes) of disk on the vm",
- "type": "long"
- },
- {
- "name": "passwordenabled",
- "description": "true if the password rest feature is enabled, false otherwise",
- "type": "boolean"
- },
- {
- "name": "instancename",
- "description": "instance name of the user vm; this parameter is returned to the ROOT admin only",
- "type": "string"
- },
- {
- "name": "hostid",
- "description": "the ID of the host for the virtual machine",
- "type": "string"
- },
- {
- "name": "displayvm",
- "description": "an optional field whether to the display the vm to the end user or not.",
- "type": "boolean"
- },
- {
- "name": "isodisplaytext",
- "description": "an alternate display text of the ISO attached to the virtual machine",
- "type": "string"
- },
- {
- "name": "zonename",
- "description": "the name of the availability zone for the virtual machine",
- "type": "string"
- },
- {
- "name": "serviceofferingname",
- "description": "the name of the service offering of the virtual machine",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "the ID of the availablility zone for the virtual machine",
- "type": "string"
- },
- {
- "name": "userid",
- "description": "the user's ID who deployed the virtual machine",
- "type": "string"
- },
- {
- "name": "nic",
- "description": "the list of nics associated with vm",
- "type": "set",
- "response": [
- {
- "name": "ip6address",
- "description": "the IPv6 address of network",
- "type": "string"
- },
- {
- "name": "ipaddress",
- "description": "the ip address of the nic",
- "type": "string"
- },
- {
- "name": "deviceid",
- "description": "device id for the network when plugged into the virtual machine",
- "type": "string"
- },
- {
- "name": "type",
- "description": "the type of the nic",
- "type": "string"
- },
- {
- "name": "virtualmachineid",
- "description": "Id of the vm to which the nic belongs",
- "type": "string"
- },
- {
- "name": "nsxlogicalswitchport",
- "description": "Id of the NSX Logical Switch Port (if NSX based), null otherwise",
- "type": "string"
- },
- {
- "name": "isolationuri",
- "description": "the isolation uri of the nic",
- "type": "string"
- },
- {
- "name": "networkid",
- "description": "the ID of the corresponding network",
- "type": "string"
- },
- {
- "name": "ip6gateway",
- "description": "the gateway of IPv6 network",
- "type": "string"
- },
- {
- "name": "nsxlogicalswitch",
- "description": "Id of the NSX Logical Switch (if NSX based), null otherwise",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the nic",
- "type": "string"
- },
- {
- "name": "netmask",
- "description": "the netmask of the nic",
- "type": "string"
- },
- {
- "name": "gateway",
- "description": "the gateway of the nic",
- "type": "string"
- },
- {
- "name": "ip6cidr",
- "description": "the cidr of IPv6 network",
- "type": "string"
- },
- {
- "name": "secondaryip",
- "description": "the Secondary ipv4 addr of nic",
- "type": "list"
- },
- {
- "name": "traffictype",
- "description": "the traffic type of the nic",
- "type": "string"
- },
- {
- "name": "macaddress",
- "description": "true if nic is default, false otherwise",
- "type": "string"
- },
- {
- "name": "networkname",
- "description": "the name of the corresponding network",
- "type": "string"
- },
- {
- "name": "isdefault",
- "description": "true if nic is default, false otherwise",
- "type": "boolean"
- },
- {
- "name": "broadcasturi",
- "description": "the broadcast uri of the nic",
- "type": "string"
- },
- {
- "name": "extradhcpoption",
- "description": "the extra dhcp options on the nic",
- "type": "list"
- }
- ]
- },
- {
- "name": "serviceofferingid",
- "description": "the ID of the service offering of the virtual machine",
- "type": "string"
- },
- {
- "name": "forvirtualnetwork",
- "description": "the virtual network for the service offering",
- "type": "boolean"
- },
- {
- "name": "group",
- "description": "the group name of the virtual machine",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "memorytargetkbs",
- "description": "the target memory in vm",
- "type": "long"
- },
- {
-
- },
- {
- "name": "hostname",
- "description": "the name of the host for the virtual machine",
- "type": "string"
- },
- {
- "name": "hypervisor",
- "description": "the hypervisor on which the template runs",
- "type": "string"
- },
- {
- "name": "cpunumber",
- "description": "the number of cpu this virtual machine is running with",
- "type": "integer"
- },
- {
- "name": "diskiowrite",
- "description": "the write (io) of disk on the vm",
- "type": "long"
- },
- {
- "name": "keypair",
- "description": "ssh key-pair",
- "type": "string"
- },
- {
- "name": "networkkbsread",
- "description": "the incoming network traffic on the vm",
- "type": "long"
- },
- {
- "name": "memoryintfreekbs",
- "description": "the internal memory thats free in vm",
- "type": "long"
- },
- {
- "name": "diskkbswrite",
- "description": "the write (bytes) of disk on the vm",
- "type": "long"
- },
- {
- "name": "account",
- "description": "the account associated with the virtual machine",
- "type": "string"
- },
- {
- "name": "diskofferingname",
- "description": "the name of the disk offering of the virtual machine",
- "type": "string"
- },
- {
- "name": "publicipid",
- "description": "public IP address id associated with vm via Static nat rule",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the virtual machine",
- "type": "string"
- },
- {
- "name": "networkkbswrite",
- "description": "the outgoing network traffic on the host",
- "type": "long"
- },
- {
- "name": "created",
- "description": "the date when this virtual machine was created",
- "type": "date"
- },
- {
- "name": "templatedisplaytext",
- "description": " an alternate display text of the template for the virtual machine",
- "type": "string"
- },
- {
- "name": "publicip",
- "description": "public IP address id associated with vm via Static nat rule",
- "type": "string"
- },
- {
- "name": "vgpu",
- "description": "the vgpu type used by the virtual machine",
- "type": "string"
- },
- {
- "name": "rootdevicetype",
- "description": "device type of the root volume",
- "type": "string"
- },
- {
- "name": "ostypeid",
- "description": "OS type id of the vm",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id of the vm",
- "type": "string"
- },
- {
- "name": "name",
- "description": "the name of the virtual machine",
- "type": "string"
- },
- {
-
- },
- {
- "name": "domainid",
- "description": "the ID of the domain in which the virtual machine exists",
- "type": "string"
- },
- {
- "name": "groupid",
- "description": "the group ID of the virtual machine",
- "type": "string"
- },
- {
- "name": "templateid",
- "description": "the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file.",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the name of the domain in which the virtual machine exists",
- "type": "string"
- },
- {
- "name": "guestosid",
- "description": "Os type ID of the virtual machine",
- "type": "string"
- },
- {
- "name": "details",
- "description": "Vm details in key/value pairs.",
- "type": "map"
- },
- {
- "name": "affinitygroup",
- "description": "list of affinity groups associated with the virtual machine",
- "type": "set",
- "response": [
- {
- "name": "type",
- "description": "the type of the affinity group",
- "type": "string"
- },
- {
- "name": "name",
- "description": "the name of the affinity group",
- "type": "string"
- },
- {
- "name": "description",
- "description": "the description of the affinity group",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the ID of the affinity group",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project ID of the affinity group",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name of the affinity group",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account owning the affinity group",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the domain ID of the affinity group",
- "type": "string"
- },
- {
- "name": "virtualmachineIds",
- "description": "virtual machine IDs associated with this affinity group",
- "type": "list"
- },
- {
- "name": "domain",
- "description": "the domain name of the affinity group",
- "type": "string"
- }
- ]
- },
- {
- "name": "cpuused",
- "description": "the amount of the vm's CPU currently used",
- "type": "string"
- },
- {
- "name": "password",
- "description": "the password (if exists) of the virtual machine",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name of the vm",
- "type": "string"
- },
- {
- "name": "isoname",
- "description": "the name of the ISO attached to the virtual machine",
- "type": "string"
- },
- {
- "name": "memory",
- "description": "the memory allocated for the virtual machine",
- "type": "integer"
- },
- {
- "name": "servicestate",
- "description": "State of the Service from LB rule",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "isoid",
- "description": "the ID of the ISO attached to the virtual machine",
- "type": "string"
- },
- {
- "name": "rootdeviceid",
- "description": "device ID of the root volume",
- "type": "long"
- },
- {
- "name": "username",
- "description": "the user's name who deployed the virtual machine",
- "type": "string"
- }
- ]
+ "description": "the total number of snapshots stored by this account",
+ "name": "snapshottotal",
+ "type": "long"
},
{
- "name": "deleteEvents",
- "description": "Delete one or more events.",
- "isasync": false,
- "params": [
- {
- "name": "startdate",
- "description": "start date range to delete events (including) this date (use format \"yyyy-MM-dd\" or the new format \"yyyy-MM-ddThh:mm:ss\")",
- "type": "date",
- "length": 255,
- "required": false
- },
- {
- "name": "ids",
- "description": "the IDs of the events",
- "type": "list",
- "length": 255,
- "required": false,
- "related": "listEvents"
- },
- {
- "name": "enddate",
- "description": "end date range to delete events (including) this date (use format \"yyyy-MM-dd\" or the new format \"yyyy-MM-ddThh:mm:ss\")",
- "type": "date",
- "length": 255,
- "required": false
- },
- {
- "name": "type",
- "description": "delete by event type",
- "type": "string",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- }
- ]
+ "description": "id of the Domain the account belongs to",
+ "name": "domainid",
+ "type": "string"
},
{
- "name": "getVolumeSnapshotDetails",
- "description": "Get Volume Snapshot Details",
- "isasync": false,
- "related": "getVolumeiScsiName",
- "params": [
- {
- "name": "snapshotid",
- "description": "CloudStack Snapshot UUID",
- "type": "string",
- "length": 255,
- "required": true
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "volumeiScsiName",
- "description": "Volume iSCSI Name",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- }
- ]
+ "description": "the network domain",
+ "name": "networkdomain",
+ "type": "string"
},
{
- "name": "listUcsBlades",
- "description": "List ucs blades",
- "isasync": false,
- "related": "associateUcsProfileToBlade",
- "params": [
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "ucsmanagerid",
- "description": "ucs manager id",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "listUcsManagers,addUcsManager"
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "id",
- "description": "ucs blade id",
- "type": "string"
- },
- {
- "name": "profiledn",
- "description": "associated ucs profile dn",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "ucsmanagerid",
- "description": "ucs manager id",
- "type": "string"
- },
- {
- "name": "bladedn",
- "description": "ucs blade dn",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
-
- },
- {
-
- },
- {
- "name": "hostid",
- "description": "cloudstack host id this blade associates to",
- "type": "string"
- }
- ]
+ "description": "the total number of cpu cores available to be created for this account",
+ "name": "cpuavailable",
+ "type": "string"
},
{
- "name": "notifyBaremetalProvisionDone",
- "description": "Notify provision has been done on a host. This api is for baremetal virtual router service, not for end user",
- "isasync": true,
- "params": [
- {
- "name": "mac",
- "description": "mac of the nic used for provision",
- "type": "object",
- "length": 255,
- "required": true
- }
- ],
- "response": [
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
-
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- }
- ]
+ "description": "the total number of projects available for administration by this account",
+ "name": "projectavailable",
+ "type": "string"
},
{
- "name": "deleteIso",
- "description": "Deletes an ISO file.",
- "isasync": true,
- "params": [
- {
- "name": "id",
- "description": "the ID of the ISO file",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "updateTemplate,listIsos,createTemplate,listTemplates,registerTemplate,registerIso,registerTemplate,prepareTemplate,copyTemplate,createTemplate,updateIso,listIsos,copyTemplate,copyIso,registerIso,listTemplates"
- },
- {
- "name": "zoneid",
- "description": "the ID of the zone of the ISO file. If not specified, the ISO will be deleted from all the zones",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createZone,updateZone,listZones,listZones"
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
-
- }
- ]
+ "description": "the total number of cpu cores the account can own",
+ "name": "cpulimit",
+ "type": "string"
},
{
- "name": "updateHost",
- "description": "Updates a host.",
- "isasync": false,
- "related": "prepareHostForMaintenance,cancelHostMaintenance,addHost,reconnectHost,addBaremetalHost",
- "params": [
- {
- "name": "url",
- "description": "the new uri for the secondary storage: nfs://host/path",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "allocationstate",
- "description": "Change resource state of host, valid values are [Enable, Disable]. Operation may failed if host in states not allowing Enable/Disable",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "hosttags",
- "description": "list of tags to be added to the host",
- "type": "list",
- "length": 255,
- "required": false
- },
- {
- "name": "id",
- "description": "the ID of the host to update",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "prepareHostForMaintenance,cancelHostMaintenance,addHost,reconnectHost,addBaremetalHost,updateHost"
- },
- {
- "name": "oscategoryid",
- "description": "the id of Os category to update the host with",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listOsCategories"
- },
- {
- "name": "annotation",
- "description": "Add an annotation to this host",
- "type": "string",
- "length": 255,
- "required": false,
- "since": "4.11"
- }
- ],
- "response": [
- {
- "name": "zoneid",
- "description": "the Zone ID of the host",
- "type": "string"
- },
- {
- "name": "podname",
- "description": "the Pod name of the host",
- "type": "string"
- },
- {
- "name": "clustername",
- "description": "the cluster name of the host",
- "type": "string"
- },
- {
- "name": "details",
- "description": "Host details in key/value pairs.",
- "type": "map"
- },
- {
- "name": "oscategoryid",
- "description": "the OS category ID of the host",
- "type": "string"
- },
- {
- "name": "cpusockets",
- "description": "the number of CPU sockets on the host",
- "type": "integer"
- },
- {
- "name": "ipaddress",
- "description": "the IP address of the host",
- "type": "string"
- },
- {
- "name": "podid",
- "description": "the Pod ID of the host",
- "type": "string"
- },
- {
- "name": "annotation",
- "description": "the last annotation set on this host by an admin",
- "type": "string"
- },
- {
- "name": "hostha",
- "description": "the host HA information information",
- "type": "hostharesponse"
- },
- {
- "name": "clusterid",
- "description": "the cluster ID of the host",
- "type": "string"
- },
- {
- "name": "oscategoryname",
- "description": "the OS category name of the host",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "name",
- "description": "the name of the host",
- "type": "string"
- },
- {
- "name": "lastannotated",
- "description": "the last time this host was annotated",
- "type": "date"
- },
- {
- "name": "version",
- "description": "the host version",
- "type": "string"
- },
- {
- "name": "cpuwithoverprovisioning",
- "description": "the amount of the host's CPU after applying the cpu.overprovisioning.factor ",
- "type": "string"
- },
- {
- "name": "cpunumber",
- "description": "the CPU number of the host",
- "type": "integer"
- },
- {
- "name": "clustertype",
- "description": "the cluster type of the cluster that host belongs to",
- "type": "string"
- },
- {
- "name": "hahost",
- "description": "true if the host is Ha host (dedicated to vms started by HA process; false otherwise",
- "type": "boolean"
- },
- {
- "name": "memorywithoverprovisioning",
- "description": "the amount of the host's memory after applying the mem.overprovisioning.factor",
- "type": "string"
- },
- {
- "name": "cpuused",
- "description": "the amount of the host's CPU currently used",
- "type": "string"
- },
- {
- "name": "memoryused",
- "description": "the amount of the host's memory currently used",
- "type": "long"
- },
- {
- "name": "id",
- "description": "the ID of the host",
- "type": "string"
- },
- {
- "name": "state",
- "description": "the state of the host",
- "type": "status"
- },
- {
- "name": "hasenoughcapacity",
- "description": "true if this host has enough CPU and RAM capacity to migrate a VM to it, false otherwise",
- "type": "boolean"
- },
- {
- "name": "hypervisor",
- "description": "the host hypervisor",
- "type": "hypervisortype"
- },
- {
- "name": "memoryallocated",
- "description": "the amount of the host's memory currently allocated",
- "type": "long"
- },
- {
- "name": "capabilities",
- "description": "capabilities of the host",
- "type": "string"
- },
- {
- "name": "resourcestate",
- "description": "the resource state of the host",
- "type": "string"
- },
- {
- "name": "averageload",
- "description": "the cpu average load on the host",
- "type": "long"
- },
- {
- "name": "cpuallocated",
- "description": "the amount of the host's CPU currently allocated",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "disksizeallocated",
- "description": "the host's currently allocated disk size",
- "type": "long"
- },
- {
- "name": "events",
- "description": "events available for the host",
- "type": "string"
- },
- {
- "name": "created",
- "description": "the date and time the host was created",
- "type": "date"
- },
- {
- "name": "zonename",
- "description": "the Zone name of the host",
- "type": "string"
- },
- {
- "name": "removed",
- "description": "the date and time the host was removed",
- "type": "date"
- },
- {
- "name": "managementserverid",
- "description": "the management server ID of the host",
- "type": "long"
- },
- {
- "name": "cpuspeed",
- "description": "the CPU speed of the host",
- "type": "long"
- },
- {
- "name": "memorytotal",
- "description": "the memory total of the host, this parameter is deprecated use memorywithoverprovisioning",
- "type": "long"
- },
- {
- "name": "disconnected",
- "description": "true if the host is disconnected. False otherwise.",
- "type": "date"
- },
- {
- "name": "outofbandmanagement",
- "description": "the host out-of-band management information",
- "type": "outofbandmanagementresponse"
- },
- {
- "name": "type",
- "description": "the host type",
- "type": "type"
- },
- {
- "name": "username",
- "description": "the admin that annotated this host",
- "type": "string"
- },
- {
- "name": "hosttags",
- "description": "comma-separated list of tags for the host",
- "type": "string"
- },
- {
- "name": "networkkbswrite",
- "description": "the outgoing network traffic on the host",
- "type": "long"
- },
- {
- "name": "disksizetotal",
- "description": "the total disk size of the host",
- "type": "long"
- },
- {
- "name": "islocalstorageactive",
- "description": "true if local storage is active, false otherwise",
- "type": "boolean"
- },
- {
- "name": "hypervisorversion",
- "description": "the hypervisor version",
- "type": "string"
- },
- {
- "name": "networkkbsread",
- "description": "the incoming network traffic on the host",
- "type": "long"
- },
- {
- "name": "gpugroup",
- "description": "GPU cards present in the host",
- "type": "list",
- "response": [
- {
- "name": "vgpu",
- "description": "the list of enabled vGPUs",
- "type": "list",
- "response": [
- {
- "name": "vgputype",
- "description": "Model Name of vGPU",
- "type": "string"
- },
- {
- "name": "maxheads",
- "description": "Maximum displays per user",
- "type": "long"
- },
- {
- "name": "maxvgpuperpgpu",
- "description": "Maximum no. of vgpu per gpu card (pgpu)",
- "type": "long"
- },
- {
- "name": "maxresolutiony",
- "description": "Maximum Y resolution per display",
- "type": "long"
- },
- {
- "name": "remainingcapacity",
- "description": "Remaining capacity in terms of no. of more VMs that can be deployped with this vGPU type",
- "type": "long"
- },
- {
- "name": "maxresolutionx",
- "description": "Maximum X resolution per display",
- "type": "long"
- },
- {
- "name": "maxcapacity",
- "description": "Maximum vgpu can be created with this vgpu type on the given gpu group",
- "type": "long"
- },
- {
- "name": "videoram",
- "description": "Video RAM for this vGPU type",
- "type": "long"
- }
- ]
- },
- {
- "name": "gpugroupname",
- "description": "GPU cards present in the host",
- "type": "string"
- }
- ]
- },
- {
- "name": "suitableformigration",
- "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",
- "type": "boolean"
- },
- {
-
- },
- {
- "name": "lastpinged",
- "description": "the date and time the host was last pinged",
- "type": "date"
- }
- ]
+ "description": "the total number of projects the account can own",
+ "name": "projectlimit",
+ "type": "string"
},
{
- "name": "createEgressFirewallRule",
- "description": "Creates a egress firewall rule for a given network ",
- "isasync": true,
- "related": "updateEgressFirewallRule,listFirewallRules,listEgressFirewallRules,createFirewallRule",
- "params": [
- {
- "name": "type",
- "description": "type of firewallrule: system/user",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "destcidrlist",
- "description": "the cidr list to forward traffic to",
- "type": "list",
- "length": 255,
- "required": false
- },
- {
- "name": "icmpcode",
- "description": "error code for this icmp message",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "cidrlist",
- "description": "the cidr list to forward traffic from",
- "type": "list",
- "length": 255,
- "required": false
- },
- {
- "name": "icmptype",
- "description": "type of the icmp message being sent",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "protocol",
- "description": "the protocol for the firewall rule. Valid values are TCP/UDP/ICMP.",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "startport",
- "description": "the starting port of firewall rule",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "fordisplay",
- "description": "an optional field, whether to the display the rule to the end user or not",
- "type": "boolean",
- "length": 255,
- "required": false,
- "since": "4.4"
- },
- {
- "name": "networkid",
- "description": "the network id of the port forwarding rule",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "listPaloAltoFirewallNetworks,migrateNetwork,listNetscalerLoadBalancerNetworks,listNiciraNvpDeviceNetworks,listBrocadeVcsDeviceNetworks,updateNetwork,listNetworks,updateNetwork,createNetwork,createNetwork"
- },
- {
- "name": "endport",
- "description": "the ending port of firewall rule",
- "type": "integer",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "destcidrlist",
- "description": "the cidr list to forward traffic to",
- "type": "string"
- },
- {
- "name": "networkid",
- "description": "the network id of the firewall rule",
- "type": "string"
- },
- {
-
- },
- {
- "name": "icmptype",
- "description": "type of the icmp message being sent",
- "type": "integer"
- },
- {
- "name": "startport",
- "description": "the starting port of firewall rule's port range",
- "type": "integer"
- },
- {
-
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "list",
- "response": [
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- }
- ]
- },
- {
- "name": "icmpcode",
- "description": "error code for this icmp message",
- "type": "integer"
- },
- {
- "name": "ipaddress",
- "description": "the public ip address for the firewall rule",
- "type": "string"
- },
- {
- "name": "endport",
- "description": "the ending port of firewall rule's port range",
- "type": "integer"
- },
- {
- "name": "state",
- "description": "the state of the rule",
- "type": "string"
- },
- {
- "name": "cidrlist",
- "description": "the cidr list to forward traffic from",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "id",
- "description": "the ID of the firewall rule",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "protocol",
- "description": "the protocol of the firewall rule",
- "type": "string"
- },
- {
- "name": "ipaddressid",
- "description": "the public ip address id for the firewall rule",
- "type": "string"
- },
- {
- "name": "fordisplay",
- "description": "is rule for display to the regular user",
- "type": "boolean"
- }
- ]
+ "description": "the total number of vpcs available to be created for this account",
+ "name": "vpcavailable",
+ "type": "string"
},
{
- "name": "getSolidFireVolumeSize",
- "description": "Get the SF volume size including Hypervisor Snapshot Reserve",
- "isasync": false,
- "related": "",
- "params": [
- {
- "name": "volumeid",
- "description": "Volume UUID",
- "type": "string",
- "length": 255,
- "required": true
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "solidFireVolumeSize",
- "description": "SolidFire Volume Size Including Hypervisor Snapshot Reserve",
- "type": "long"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- }
- ]
+ "description": "the total number of snapshots available for this account",
+ "name": "snapshotavailable",
+ "type": "string"
},
{
- "name": "listVPCOfferings",
- "description": "Lists VPC offerings",
- "isasync": false,
- "related": "updateVPCOffering",
- "params": [
- {
- "name": "supportedservices",
- "description": "list VPC offerings supporting certain services",
- "type": "list",
- "length": 255,
- "required": false
- },
- {
- "name": "displaytext",
- "description": "list VPC offerings by display text",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "state",
- "description": "list VPC offerings by state",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "id",
- "description": "list VPC offerings by id",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "updateVPCOffering,listVPCOfferings"
- },
- {
- "name": "name",
- "description": "list VPC offerings by name",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "isdefault",
- "description": "true if need to list only default VPC offerings. Default value is false",
- "type": "boolean",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "supportsregionLevelvpc",
- "description": " indicated if the offering can support region level vpc",
- "type": "boolean"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- },
- {
- "name": "id",
- "description": "the id of the vpc offering",
- "type": "string"
- },
- {
- "name": "service",
- "description": "the list of supported services",
- "type": "list",
- "response": [
- {
- "name": "capability",
- "description": "the list of capabilities",
- "type": "list",
- "response": [
- {
- "name": "value",
- "description": "the capability value",
- "type": "string"
- },
- {
- "name": "canchooseservicecapability",
- "description": "can this service capability value can be choosable while creatine network offerings",
- "type": "boolean"
- },
- {
- "name": "name",
- "description": "the capability name",
- "type": "string"
- }
- ]
- },
- {
- "name": "provider",
- "description": "the service provider name",
- "type": "list",
- "response": [
- {
- "name": "physicalnetworkid",
- "description": "the physical network this belongs to",
- "type": "string"
- },
- {
- "name": "servicelist",
- "description": "services for this provider",
- "type": "list"
- },
- {
- "name": "name",
- "description": "the provider name",
- "type": "string"
- },
- {
- "name": "destinationphysicalnetworkid",
- "description": "the destination physical network",
- "type": "string"
- },
- {
- "name": "state",
- "description": "state of the network provider",
- "type": "string"
- },
- {
- "name": "canenableindividualservice",
- "description": "true if individual services can be enabled/disabled",
- "type": "boolean"
- },
- {
- "name": "id",
- "description": "uuid of the network provider",
- "type": "string"
- }
- ]
- },
- {
- "name": "name",
- "description": "the service name",
- "type": "string"
- }
- ]
- },
- {
- "name": "created",
- "description": "the date this vpc offering was created",
- "type": "date"
- },
- {
- "name": "displaytext",
- "description": "an alternate display text of the vpc offering.",
- "type": "string"
- },
- {
- "name": "state",
- "description": "state of the vpc offering. Can be Disabled/Enabled",
- "type": "string"
- },
- {
- "name": "isdefault",
- "description": "true if vpc offering is default, false otherwise",
- "type": "boolean"
- },
- {
-
- },
- {
- "name": "name",
- "description": "the name of the vpc offering",
- "type": "string"
- },
- {
- "name": "distributedvpcrouter",
- "description": " indicates if the vpc offering supports distributed router for one-hop forwarding",
- "type": "boolean"
- }
- ]
+ "description": "the total number of networks available to be created for this account",
+ "name": "networkavailable",
+ "type": "string"
},
{
- "name": "uploadVolume",
- "description": "Uploads a data disk.",
- "isasync": true,
- "related": "attachVolume,updateVolume,createVolume,createVolume,listVolumes,resizeVolume,detachVolume,listVolumes,migrateVolume,updateVolume,resizeVolume,migrateVolume,attachVolume,uploadVolume,detachVolume",
- "params": [
- {
- "name": "url",
- "description": "the URL of where the volume is hosted. Possible URL include http:// and https://",
- "type": "string",
- "length": 2048,
- "required": true
- },
- {
- "name": "imagestoreuuid",
- "description": "Image store uuid",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "account",
- "description": "an optional accountName. Must be used with domainId.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "zoneid",
- "description": "the ID of the zone the volume is to be hosted on",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "createZone,updateZone,listZones,listZones"
- },
- {
- "name": "projectid",
- "description": "Upload volume for the project",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listProjectAccounts,listProjects,activateProject,createProject,updateProject,suspendProject"
- },
- {
- "name": "diskofferingid",
- "description": "the ID of the disk offering. This must be a custom sized offering since during uploadVolume volume size is unknown.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createDiskOffering,listDiskOfferings,updateDiskOffering"
- },
- {
- "name": "name",
- "description": "the name of the volume",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "format",
- "description": "the format for the volume. Possible values include QCOW2, OVA, and VHD.",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "domainid",
- "description": "an optional domainId. If the account parameter is used, domainId must also be used.",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- },
- {
- "name": "checksum",
- "description": "the checksum value of this volume. The parameter containing the checksum will be considered a MD5sum if it is not prefixed\n and just a plain ascii/utf8 representation of a hexadecimal string. If it is required to\n use another algorithm the hexadecimal string is to be prefixed with a string of the form,\n \"{<algorithm>}\", not including the double quotes. In this <algorithm> is the exact string\n representing the java supported algorithm, i.e. MD5 or [...]
- "type": "string",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "virtualmachineid",
- "description": "id of the virtual machine",
- "type": "string"
- },
- {
- "name": "id",
- "description": "ID of the disk volume",
- "type": "string"
- },
- {
- "name": "serviceofferingdisplaytext",
- "description": "the display text of the service offering for root disk",
- "type": "string"
- },
- {
- "name": "displayvolume",
- "description": "an optional field whether to the display the volume to the end user or not.",
- "type": "boolean"
- },
- {
- "name": "attached",
- "description": "the date the volume was attached to a VM instance",
- "type": "date"
- },
- {
- "name": "templatename",
- "description": "the name of the template for the virtual machine",
- "type": "string"
- },
- {
- "name": "snapshotid",
- "description": "ID of the snapshot from which this volume was created",
- "type": "string"
- },
- {
- "name": "vmdisplayname",
- "description": "display name of the virtual machine",
- "type": "string"
- },
- {
- "name": "diskIopsReadRate",
- "description": "io requests read rate of the disk volume",
- "type": "long"
- },
- {
- "name": "diskBytesWriteRate",
- "description": "bytes write rate of the disk volume",
- "type": "long"
- },
- {
- "name": "deviceid",
- "description": "the ID of the device on user vm the volume is attahed to. This tag is not returned when the volume is detached.",
- "type": "long"
- },
- {
- "name": "podid",
- "description": "pod id of the volume",
- "type": "string"
- },
- {
- "name": "diskofferingid",
- "description": "ID of the disk offering",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "ID of the availability zone",
- "type": "string"
- },
- {
- "name": "path",
- "description": "the path of the volume",
- "type": "string"
- },
- {
- "name": "vmname",
- "description": "name of the virtual machine",
- "type": "string"
- },
- {
-
- },
- {
- "name": "status",
- "description": "the status of the volume",
- "type": "string"
- },
- {
- "name": "chaininfo",
- "description": "the chain info of the volume",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the disk volume",
- "type": "string"
- },
- {
- "name": "clusterid",
- "description": "cluster id of the volume",
- "type": "string"
- },
- {
- "name": "storage",
- "description": "name of the primary storage hosting the disk volume",
- "type": "string"
- },
- {
- "name": "serviceofferingid",
- "description": "ID of the service offering for root disk",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the disk volume",
- "type": "string"
- },
- {
- "name": "isextractable",
- "description": "true if the volume is extractable, false otherwise",
- "type": "boolean"
- },
- {
- "name": "vmstate",
- "description": "state of the virtual machine",
- "type": "string"
- },
- {
- "name": "maxiops",
- "description": "max iops of the disk volume",
- "type": "long"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated",
- "type": "set",
- "response": [
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- }
- ]
- },
- {
- "name": "domain",
- "description": "the domain associated with the disk volume",
- "type": "string"
- },
- {
- "name": "quiescevm",
- "description": "need quiesce vm or not when taking snapshot",
- "type": "boolean"
- },
- {
-
- },
- {
- "name": "provisioningtype",
- "description": "provisioning type used to create volumes.",
- "type": "string"
- },
- {
- "name": "templatedisplaytext",
- "description": " an alternate display text of the template for the virtual machine",
- "type": "string"
- },
- {
- "name": "clustername",
- "description": "cluster name where the volume is allocated",
- "type": "string"
- },
- {
- "name": "diskofferingname",
- "description": "name of the disk offering",
- "type": "string"
- },
- {
- "name": "storageid",
- "description": "id of the primary storage hosting the disk volume; returned to admin user only",
- "type": "string"
- },
- {
- "name": "size",
- "description": "size of the disk volume",
- "type": "long"
- },
- {
- "name": "isodisplaytext",
- "description": "an alternate display text of the ISO attached to the virtual machine",
- "type": "string"
- },
- {
- "name": "miniops",
- "description": "min iops of the disk volume",
- "type": "long"
- },
- {
- "name": "diskIopsWriteRate",
- "description": "io requests write rate of the disk volume",
- "type": "long"
- },
- {
- "name": "utilization",
- "description": "the disk utilization",
- "type": "string"
- },
- {
- "name": "physicalsize",
- "description": "the bytes alloaated",
- "type": "long"
- },
- {
- "name": "diskofferingdisplaytext",
- "description": "the display text of the disk offering",
- "type": "string"
- },
- {
- "name": "storagetype",
- "description": "shared or local storage",
- "type": "string"
- },
- {
- "name": "destroyed",
- "description": "the boolean state of whether the volume is destroyed or not",
- "type": "boolean"
- },
- {
- "name": "diskBytesReadRate",
- "description": "bytes read rate of the disk volume",
- "type": "long"
- },
- {
- "name": "virtualsize",
- "description": "the bytes actually consumed on disk",
- "type": "long"
- },
- {
- "name": "isoname",
- "description": "the name of the ISO attached to the virtual machine",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id of the vpn",
- "type": "string"
- },
- {
- "name": "name",
- "description": "name of the disk volume",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "podname",
- "description": "pod name of the volume",
- "type": "string"
- },
- {
- "name": "isoid",
- "description": "the ID of the ISO attached to the virtual machine",
- "type": "string"
- },
- {
- "name": "state",
- "description": "the state of the disk volume",
- "type": "string"
- },
- {
- "name": "type",
- "description": "type of the disk volume (ROOT or DATADISK)",
- "type": "string"
- },
- {
- "name": "zonename",
- "description": "name of the availability zone",
- "type": "string"
- },
- {
- "name": "templateid",
- "description": "the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file.",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name of the vpn",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "created",
- "description": "the date the disk volume was created",
- "type": "date"
- },
- {
- "name": "hypervisor",
- "description": "Hypervisor the volume belongs to",
- "type": "string"
- },
- {
- "name": "serviceofferingname",
- "description": "name of the service offering for root disk",
- "type": "string"
- }
- ]
+ "description": "the ID of the role",
+ "name": "roleid",
+ "type": "string"
},
{
- "name": "listSecurityGroups",
- "description": "Lists security groups",
- "isasync": false,
- "related": "createSecurityGroup",
- "params": [
- {
- "name": "domainid",
- "description": "list only resources belonging to the domain specified",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listDomains,listDomains,listDomainChildren,updateDomain,createDomain"
- },
- {
- "name": "isrecursive",
- "description": "defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "virtualmachineid",
- "description": "lists security groups by virtual machine id",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "destroyVirtualMachine,migrateVirtualMachineWithVolume,attachIso,startVirtualMachine,removeNicFromVirtualMachine,updateVirtualMachine,updateVmNicIp,detachIso,rebootVirtualMachine,updateVMAffinityGroup,stopVirtualMachine,detachIso,removeNicFromVirtualMachine,listVirtualMachines,listVirtualMachines,destroyVirtualMachine,attachIso,resetSSHKeyForVirtualMachine,revertToVMSnapshot,updateVMAffinityGroup,updateDefaultNicForVirtualMachine,assignVirtualMachine,change [...]
- },
- {
- "name": "tags",
- "description": "List resources by tags (key/value pairs)",
- "type": "map",
- "length": 255,
- "required": false
- },
- {
- "name": "account",
- "description": "list resources by account. Must be used with the domainId parameter.",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "securitygroupname",
- "description": "lists security groups by name",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "id",
- "description": "list the security group by the id provided",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "createSecurityGroup,listSecurityGroups"
- },
- {
- "name": "listall",
- "description": "If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false",
- "type": "boolean",
- "length": 255,
- "required": false
- },
- {
- "name": "projectid",
- "description": "list objects by project",
- "type": "uuid",
- "length": 255,
- "required": false,
- "related": "listProjectAccounts,listProjects,activateProject,createProject,updateProject,suspendProject"
- }
- ],
- "response": [
- {
- "name": "id",
- "description": "the ID of the security group",
- "type": "string"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "set",
- "response": [
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- }
- ]
- },
- {
- "name": "ingressrule",
- "description": "the list of ingress rules associated with the security group",
- "type": "set",
- "response": [
- {
- "name": "securitygroupname",
- "description": "security group name",
- "type": "string"
- },
- {
- "name": "cidr",
- "description": "the CIDR notation for the base IP address of the security group rule",
- "type": "string"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "set",
- "response": [
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- }
- ]
- },
- {
- "name": "icmptype",
- "description": "the type of the ICMP message response",
- "type": "integer"
- },
- {
- "name": "protocol",
- "description": "the protocol of the security group rule",
- "type": "string"
- },
- {
- "name": "startport",
- "description": "the starting IP of the security group rule",
- "type": "integer"
- },
- {
- "name": "account",
- "description": "account owning the security group rule",
- "type": "string"
- },
- {
- "name": "ruleid",
- "description": "the id of the security group rule",
- "type": "string"
- },
- {
- "name": "icmpcode",
- "description": "the code for the ICMP message response",
- "type": "integer"
- },
- {
- "name": "endport",
- "description": "the ending IP of the security group rule ",
- "type": "integer"
- }
- ]
- },
- {
- "name": "project",
- "description": "the project name of the group",
- "type": "string"
- },
- {
- "name": "virtualmachinecount",
- "description": "the number of virtualmachines associated with this securitygroup",
- "type": "integer"
- },
- {
- "name": "domain",
- "description": "the domain name of the security group",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "virtualmachineids",
- "description": "the list of virtualmachine ids associated with this securitygroup",
- "type": "set"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id of the group",
- "type": "string"
- },
- {
-
- },
- {
-
- },
- {
- "name": "domainid",
- "description": "the domain ID of the security group",
- "type": "string"
- },
- {
- "name": "description",
- "description": "the description of the security group",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account owning the security group",
- "type": "string"
- },
- {
- "name": "egressrule",
- "description": "the list of egress rules associated with the security group",
- "type": "set",
- "response": [
- {
- "name": "protocol",
- "description": "the protocol of the security group rule",
- "type": "string"
- },
- {
- "name": "icmptype",
- "description": "the type of the ICMP message response",
- "type": "integer"
- },
- {
- "name": "account",
- "description": "account owning the security group rule",
- "type": "string"
- },
- {
- "name": "endport",
- "description": "the ending IP of the security group rule ",
- "type": "integer"
- },
- {
- "name": "securitygroupname",
- "description": "security group name",
- "type": "string"
- },
- {
- "name": "tags",
- "description": "the list of resource tags associated with the rule",
- "type": "set",
- "response": [
- {
- "name": "resourceid",
- "description": "id of the resource",
- "type": "string"
- },
- {
- "name": "account",
- "description": "the account associated with the tag",
- "type": "string"
- },
- {
- "name": "resourcetype",
- "description": "resource type",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain associated with the tag",
- "type": "string"
- },
- {
- "name": "key",
- "description": "tag key name",
- "type": "string"
- },
- {
- "name": "projectid",
- "description": "the project id the tag belongs to",
- "type": "string"
- },
- {
- "name": "project",
- "description": "the project name where tag belongs to",
- "type": "string"
- },
- {
- "name": "value",
- "description": "tag value",
- "type": "string"
- },
- {
- "name": "customer",
- "description": "customer associated with the tag",
- "type": "string"
- }
- ]
- },
- {
- "name": "icmpcode",
- "description": "the code for the ICMP message response",
- "type": "integer"
- },
- {
- "name": "startport",
- "description": "the starting IP of the security group rule",
- "type": "integer"
- },
- {
- "name": "ruleid",
- "description": "the id of the security group rule",
- "type": "string"
- },
- {
- "name": "cidr",
- "description": "the CIDR notation for the base IP address of the security group rule",
- "type": "string"
- }
- ]
- },
- {
- "name": "name",
- "description": "the name of the security group",
- "type": "string"
- }
- ]
+ "description": "true if account is default, false otherwise",
+ "name": "isdefault",
+ "type": "boolean"
},
{
- "name": "configureOutOfBandManagement",
- "description": "Configures a host's out-of-band management interface",
- "since": "4.9.0",
- "isasync": false,
- "related": "disableOutOfBandManagementForHost,enableOutOfBandManagementForHost,disableOutOfBandManagementForCluster,enableOutOfBandManagementForZone,disableOutOfBandManagementForZone,enableOutOfBandManagementForCluster,issueOutOfBandManagementPowerAction,changeOutOfBandManagementPassword",
- "params": [
- {
- "name": "port",
- "description": "the host management interface port",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "driver",
- "description": "the host management interface driver, for example: ipmitool",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "address",
- "description": "the host management interface IP address",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "username",
- "description": "the host management interface user",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "password",
- "description": "the host management interface password",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "hostid",
- "description": "the ID of the host",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "prepareHostForMaintenance,cancelHostMaintenance,addHost,reconnectHost,addBaremetalHost"
- }
- ],
- "response": [
- {
-
- },
- {
-
- },
- {
- "name": "address",
- "description": "the out-of-band management interface address",
- "type": "string"
- },
- {
- "name": "password",
- "description": "the out-of-band management interface password",
- "type": "string"
- },
- {
- "name": "port",
- "description": "the out-of-band management interface port",
- "type": "string"
- },
- {
- "name": "enabled",
- "description": "true if out-of-band management is enabled for the host",
- "type": "boolean"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "powerstate",
- "description": "the out-of-band management interface powerState of the host",
- "type": "powerstate"
- },
- {
- "name": "status",
- "description": "the operation result",
- "type": "boolean"
- },
- {
- "name": "description",
- "description": "the operation result description",
- "type": "string"
- },
- {
- "name": "action",
- "description": "the out-of-band management action (if issued)",
- "type": "string"
- },
- {
- "name": "username",
- "description": "the out-of-band management interface username",
- "type": "string"
- },
- {
- "name": "driver",
- "description": "the out-of-band management driver for the host",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "hostid",
- "description": "the ID of the host",
- "type": "string"
- }
- ]
+ "description": "the name of the account",
+ "name": "name",
+ "type": "string"
},
{
- "name": "listStorageTags",
- "description": "Lists storage tags",
- "isasync": false,
- "related": "",
- "params": [
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "id",
- "description": "the ID of the storage tag",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
-
- },
- {
- "name": "name",
- "description": "the name of the storage tag",
- "type": "string"
- },
- {
- "name": "poolid",
- "description": "the pool ID of the storage tag",
- "type": "long"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- }
- ]
+ "description": "the total secondary storage space (in GiB) available to be used for this account",
+ "name": "secondarystorageavailable",
+ "type": "string"
},
{
- "name": "deleteServicePackageOffering",
- "description": "Delete Service Package",
- "isasync": false,
- "params": [
- {
- "name": "id",
- "description": "the service offering ID",
- "type": "string",
- "length": 255,
- "required": true,
- "related": "registerNetscalerServicePackage,listRegisteredServicePackages"
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- }
- ]
+ "description": "the total number of templates which have been created by this account",
+ "name": "templatetotal",
+ "type": "long"
},
{
- "name": "listTemplatePermissions",
- "description": "List template visibility and all accounts that have permissions to view this template.",
- "isasync": false,
- "related": "listIsoPermissions,listTemplatePermissions,listIsoPermissions",
- "params": [
- {
- "name": "id",
- "description": "the template ID",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "listTemplatePermissions,listIsoPermissions,listTemplatePermissions,listIsoPermissions"
- }
- ],
- "response": [
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the template ID",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "account",
- "description": "the list of accounts the template is available for",
- "type": "list"
- },
- {
- "name": "domainid",
- "description": "the ID of the domain to which the template belongs",
- "type": "string"
- },
- {
- "name": "projectids",
- "description": "the list of projects the template is available for",
- "type": "list"
- },
- {
-
- },
- {
-
- },
- {
- "name": "ispublic",
- "description": "true if this template is a public template, false otherwise",
- "type": "boolean"
- }
- ]
+ "description": "the id of the account",
+ "name": "id",
+ "type": "string"
},
{
- "name": "destroySystemVm",
- "description": "Destroyes a system virtual machine.",
- "isasync": true,
- "related": "stopSystemVm,migrateSystemVm,changeServiceForSystemVm,startSystemVm,listSystemVms,scaleSystemVm",
- "params": [
- {
- "name": "id",
- "description": "The ID of the system virtual machine",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "stopSystemVm,migrateSystemVm,changeServiceForSystemVm,startSystemVm,destroySystemVm,listSystemVms,scaleSystemVm"
- }
- ],
- "response": [
- {
- "name": "privatenetmask",
- "description": "the private netmask for the system VM",
- "type": "string"
- },
- {
- "name": "publicmacaddress",
- "description": "the public MAC address for the system VM",
- "type": "string"
- },
- {
- "name": "linklocalip",
- "description": "the link local IP address for the system vm",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "activeviewersessions",
- "description": "the number of active console sessions for the console proxy system vm",
- "type": "integer"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "linklocalmacaddress",
- "description": "the link local MAC address for the system vm",
- "type": "string"
- },
- {
-
- },
- {
- "name": "state",
- "description": "the state of the system VM",
- "type": "string"
- },
- {
- "name": "templateid",
- "description": "the template ID for the system VM",
- "type": "string"
- },
- {
- "name": "podid",
- "description": "the Pod ID for the system VM",
- "type": "string"
- },
- {
- "name": "created",
- "description": "the date and time the system VM was created",
- "type": "date"
- },
- {
- "name": "networkdomain",
- "description": "the network domain for the system VM",
- "type": "string"
- },
- {
- "name": "privatemacaddress",
- "description": "the private MAC address for the system VM",
- "type": "string"
- },
- {
- "name": "dns2",
- "description": "the second DNS for the system VM",
- "type": "string"
- },
- {
- "name": "dns1",
- "description": "the first DNS for the system VM",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the job status associated with the system VM. This is only displayed if the router listed is part of a currently running asynchronous job.",
- "type": "integer"
- },
- {
- "name": "jobid",
- "description": "the job ID associated with the system VM. This is only displayed if the router listed is part of a currently running asynchronous job.",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "the Zone ID for the system VM",
- "type": "string"
- },
- {
- "name": "gateway",
- "description": "the gateway for the system VM",
- "type": "string"
- },
- {
- "name": "linklocalnetmask",
- "description": "the link local netmask for the system vm",
- "type": "string"
- },
- {
- "name": "publicip",
- "description": "the public IP address for the system VM",
- "type": "string"
- },
- {
- "name": "hostid",
- "description": "the host ID for the system VM",
- "type": "string"
- },
- {
- "name": "zonename",
- "description": "the Zone name for the system VM",
- "type": "string"
- },
- {
- "name": "publicvlan",
- "description": "public vlan range",
- "type": "list"
- },
- {
-
- },
- {
- "name": "id",
- "description": "the ID of the system VM",
- "type": "string"
- },
- {
- "name": "systemvmtype",
- "description": "the system VM type",
- "type": "string"
- },
- {
- "name": "privateip",
- "description": "the private IP address for the system VM",
- "type": "string"
- },
- {
- "name": "name",
- "description": "the name of the system VM",
- "type": "string"
- },
- {
- "name": "hypervisor",
- "description": "the hypervisor on which the template runs",
- "type": "string"
- },
- {
- "name": "hostname",
- "description": "the hostname for the system VM",
- "type": "string"
- },
- {
- "name": "guestvlan",
- "description": "guest vlan range",
- "type": "string"
- },
- {
- "name": "publicnetmask",
- "description": "the public netmask for the system VM",
- "type": "string"
- }
- ]
+ "description": "the total number of virtual machines that can be deployed by this account",
+ "name": "vmlimit",
+ "type": "string"
},
{
- "name": "listAnnotations",
- "description": "Lists annotations.",
- "since": "4.11",
- "isasync": false,
- "related": "removeAnnotation,addAnnotation",
- "params": [
- {
- "name": "entitytype",
- "description": "the entity type",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "page",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "id",
- "description": "the id of the annotation",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "entityid",
- "description": "the id of the entity for which to show annotations",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "pagesize",
- "description": "",
- "type": "integer",
- "length": 255,
- "required": false
- },
- {
- "name": "keyword",
- "description": "List by keyword",
- "type": "string",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
- "name": "userid",
- "description": "The (uu)id of the user that entered the annotation",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "entityid",
- "description": "the (uu)id of the entitiy to which this annotation pertains",
- "type": "string"
- },
- {
- "name": "created",
- "description": "the creation timestamp for this annotation",
- "type": "date"
- },
- {
- "name": "removed",
- "description": "the removal timestamp for this annotation",
- "type": "date"
- },
- {
-
- },
- {
- "name": "annotation",
- "description": "the contents of the annotation",
- "type": "string"
- },
- {
- "name": "id",
- "description": "the (uu)id of the annotation",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "entitytype",
- "description": "the type of the annotated entity",
- "type": "string"
- }
- ]
+ "description": "the total primary storage space (in GiB) the account can own",
+ "name": "primarystoragelimit",
+ "type": "string"
},
+ {},
{
- "name": "addSwift",
- "description": "Adds Swift.",
- "since": "3.0.0",
- "isasync": false,
- "related": "listImageStores,createSecondaryStagingStore,addSecondaryStorage,updateCloudToUseObjectStore,addImageStore,listSwifts,listSecondaryStagingStores,addImageStoreS3",
- "params": [
- {
- "name": "url",
- "description": "the URL for swift",
- "type": "string",
- "length": 255,
- "required": true
- },
- {
- "name": "account",
- "description": "the account for swift",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "key",
- "description": " key for the user for swift",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "username",
- "description": "the username for swift",
- "type": "string",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "url",
- "description": "the url of the image store",
- "type": "string"
- },
- {
- "name": "zoneid",
- "description": "the Zone ID of the image store",
- "type": "string"
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "zonename",
- "description": "the Zone name of the image store",
- "type": "string"
- },
- {
- "name": "scope",
- "description": "the scope of the image store",
- "type": "scopetype"
- },
- {
- "name": "id",
- "description": "the ID of the image store",
- "type": "string"
- },
- {
- "name": "protocol",
- "description": "the protocol of the image store",
- "type": "string"
- },
- {
- "name": "providername",
- "description": "the provider name of the image store",
- "type": "string"
- },
- {
-
- },
- {
- "name": "name",
- "description": "the name of the image store",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- }
- ]
+ "description": "the total number of virtual machines running for this account",
+ "name": "vmrunning",
+ "type": "integer"
},
{
- "name": "archiveEvents",
- "description": "Archive one or more events.",
- "isasync": false,
- "params": [
- {
- "name": "ids",
- "description": "the IDs of the events",
- "type": "list",
- "length": 255,
- "required": false,
- "related": "listEvents"
- },
- {
- "name": "startdate",
- "description": "start date range to archive events (including) this date (use format \"yyyy-MM-dd\" or the new format \"yyyy-MM-ddThh:mm:ss\")",
- "type": "date",
- "length": 255,
- "required": false
- },
- {
- "name": "type",
- "description": "archive by event type",
- "type": "string",
- "length": 255,
- "required": false
- },
- {
- "name": "enddate",
- "description": "end date range to archive events (including) this date (use format \"yyyy-MM-dd\" or the new format \"yyyy-MM-ddThh:mm:ss\")",
- "type": "date",
- "length": 255,
- "required": false
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
- "type": "integer"
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
-
- },
- {
- "name": "success",
- "description": "true if operation is executed successfully",
- "type": "boolean"
- }
- ]
+ "description": "the total number of networks owned by account",
+ "name": "networktotal",
+ "type": "long"
},
{
- "name": "deleteSecondaryStagingStore",
- "description": "Deletes a secondary staging store .",
- "since": "4.2.0",
- "isasync": false,
- "params": [
- {
- "name": "id",
- "description": "the staging store ID",
- "type": "uuid",
- "length": 255,
- "required": true,
- "related": "listImageStores,createSecondaryStagingStore,addSecondaryStorage,updateCloudToUseObjectStore,addImageStore,listSwifts,listSecondaryStagingStores,addImageStoreS3"
- }
- ],
- "response": [
- {
-
- },
- {
- "name": "displaytext",
- "description": "any text associated with the success or failure",
- "type": "string"
- },
- {
-
- },
- {
- "name": "jobid",
- "description": "the UUID of the latest async job acting on this object",
- "type": "string"
- },
- {
- "name": "jobstatus",
- "description": "the current status of the latest async job acting on this object",
... 213893 lines suppressed ...
[cloudstack-go] 02/03: layout: remove Nuage service,
Nuage related feature/APIs were deprecated and removed
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git
commit 7d8c43fc11be9cde42b2e9975c6bf64a62d842cd
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Tue Jul 27 11:54:20 2021 +0530
layout: remove Nuage service, Nuage related feature/APIs were deprecated and removed
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
generate/layout.go | 6 ------
1 file changed, 6 deletions(-)
diff --git a/generate/layout.go b/generate/layout.go
index 90d191f..3a648d7 100644
--- a/generate/layout.go
+++ b/generate/layout.go
@@ -548,12 +548,6 @@ var layout = apiInfo{
"removeRegion",
"updateRegion",
},
- "NuageVSPService": {
- "addNuageVspDevice",
- "deleteNuageVspDevice",
- "listNuageVspDevices",
- "updateNuageVspDevice",
- },
"NicService": {
"addIpToNic",
"listNics",
[cloudstack-go] 03/03: cloudstack: auto-generate sdk based on
4.15.1.0 listApis.json
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git
commit 2691fd1c8adf9c354f2c72e38ad3da0d4bd635d6
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Tue Jul 27 11:55:38 2021 +0530
cloudstack: auto-generate sdk based on 4.15.1.0 listApis.json
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
cloudstack/AccountService.go | 150 +++--
cloudstack/AddressService.go | 28 +-
cloudstack/AffinityGroupService.go | 6 +
cloudstack/BrocadeVCSService.go | 3 +
cloudstack/ConfigurationService.go | 40 +-
cloudstack/DiskOfferingService.go | 227 ++++++-
cloudstack/HostService.go | 1080 ++++++++++++++++++----------------
cloudstack/ISOService.go | 61 ++
cloudstack/ImageStoreService.go | 149 +++--
cloudstack/InternalLBService.go | 335 ++++++-----
cloudstack/LDAPService.go | 85 ++-
cloudstack/LoadBalancerService.go | 11 +
cloudstack/NetworkACLService.go | 3 +
cloudstack/NetworkOfferingService.go | 64 ++
cloudstack/NetworkService.go | 65 ++
cloudstack/NicService.go | 11 +
cloudstack/PoolService.go | 10 +
cloudstack/ProjectService.go | 553 +++++++++--------
cloudstack/RoleService.go | 53 +-
cloudstack/RouterService.go | 659 ++++++++++++---------
cloudstack/SSHService.go | 6 +
cloudstack/ServiceOfferingService.go | 180 +++++-
cloudstack/SnapshotService.go | 121 ++--
cloudstack/SwiftService.go | 46 +-
cloudstack/SystemVMService.go | 40 ++
cloudstack/TemplateService.go | 84 ++-
cloudstack/UsageService.go | 54 ++
cloudstack/VPCService.go | 116 ++++
cloudstack/VPNService.go | 179 ++++--
cloudstack/VirtualMachineService.go | 300 +++++++++-
cloudstack/VolumeService.go | 42 ++
cloudstack/ZoneService.go | 11 +
cloudstack/cloudstack.go | 10 -
33 files changed, 3316 insertions(+), 1466 deletions(-)
diff --git a/cloudstack/AccountService.go b/cloudstack/AccountService.go
index ea1f1d0..3b84cd3 100644
--- a/cloudstack/AccountService.go
+++ b/cloudstack/AccountService.go
@@ -45,6 +45,12 @@ func (p *AddAccountToProjectParams) toURLValues() url.Values {
if v, found := p.p["projectid"]; found {
u.Set("projectid", v.(string))
}
+ if v, found := p.p["projectroleid"]; found {
+ u.Set("projectroleid", v.(string))
+ }
+ if v, found := p.p["roletype"]; found {
+ u.Set("roletype", v.(string))
+ }
return u
}
@@ -69,6 +75,20 @@ func (p *AddAccountToProjectParams) SetProjectid(v string) {
p.p["projectid"] = v
}
+func (p *AddAccountToProjectParams) SetProjectroleid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["projectroleid"] = v
+}
+
+func (p *AddAccountToProjectParams) SetRoletype(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["roletype"] = v
+}
+
// You should always use this function to get a new AddAccountToProjectParams instance,
// as then you are sure you have configured all required params
func (s *AccountService) NewAddAccountToProjectParams(projectid string) *AddAccountToProjectParams {
@@ -313,6 +333,7 @@ type CreateAccountResponse struct {
Defaultzoneid string `json:"defaultzoneid"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Domainpath string `json:"domainpath"`
Groups []string `json:"groups"`
Id string `json:"id"`
Ipavailable string `json:"ipavailable"`
@@ -642,6 +663,7 @@ type DisableAccountResponse struct {
Defaultzoneid string `json:"defaultzoneid"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Domainpath string `json:"domainpath"`
Groups []string `json:"groups"`
Id string `json:"id"`
Ipavailable string `json:"ipavailable"`
@@ -792,6 +814,7 @@ type EnableAccountResponse struct {
Defaultzoneid string `json:"defaultzoneid"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Domainpath string `json:"domainpath"`
Groups []string `json:"groups"`
Id string `json:"id"`
Ipavailable string `json:"ipavailable"`
@@ -944,6 +967,10 @@ func (p *ListAccountsParams) toURLValues() url.Values {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("accounttype", vv)
}
+ if v, found := p.p["details"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("details", vv)
+ }
if v, found := p.p["domainid"]; found {
u.Set("domainid", v.(string))
}
@@ -989,6 +1016,13 @@ func (p *ListAccountsParams) SetAccounttype(v int64) {
p.p["accounttype"] = v
}
+func (p *ListAccountsParams) SetDetails(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["details"] = v
+}
+
func (p *ListAccountsParams) SetDomainid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1179,6 +1213,7 @@ type Account struct {
Defaultzoneid string `json:"defaultzoneid"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Domainpath string `json:"domainpath"`
Groups []string `json:"groups"`
Id string `json:"id"`
Ipavailable string `json:"ipavailable"`
@@ -1281,9 +1316,15 @@ func (p *ListProjectAccountsParams) toURLValues() url.Values {
if v, found := p.p["projectid"]; found {
u.Set("projectid", v.(string))
}
+ if v, found := p.p["projectroleid"]; found {
+ u.Set("projectroleid", v.(string))
+ }
if v, found := p.p["role"]; found {
u.Set("role", v.(string))
}
+ if v, found := p.p["userid"]; found {
+ u.Set("userid", v.(string))
+ }
return u
}
@@ -1322,6 +1363,13 @@ func (p *ListProjectAccountsParams) SetProjectid(v string) {
p.p["projectid"] = v
}
+func (p *ListProjectAccountsParams) SetProjectroleid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["projectroleid"] = v
+}
+
func (p *ListProjectAccountsParams) SetRole(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1329,6 +1377,13 @@ func (p *ListProjectAccountsParams) SetRole(v string) {
p.p["role"] = v
}
+func (p *ListProjectAccountsParams) SetUserid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["userid"] = v
+}
+
// You should always use this function to get a new ListProjectAccountsParams instance,
// as then you are sure you have configured all required params
func (s *AccountService) NewListProjectAccountsParams(projectid string) *ListProjectAccountsParams {
@@ -1396,52 +1451,52 @@ type ListProjectAccountsResponse struct {
}
type ProjectAccount struct {
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectaccountname string `json:"projectaccountname"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal float64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Tags []Tags `json:"tags"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmrunning int `json:"vmrunning"`
- Vmstopped int `json:"vmstopped"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Owner []string `json:"owner"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectaccountname string `json:"projectaccountname"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Tags []Tags `json:"tags"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmrunning int `json:"vmrunning"`
+ Vmstopped int `json:"vmstopped"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
type Tags struct {
@@ -1523,6 +1578,7 @@ type LockAccountResponse struct {
Defaultzoneid string `json:"defaultzoneid"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Domainpath string `json:"domainpath"`
Groups []string `json:"groups"`
Id string `json:"id"`
Ipavailable string `json:"ipavailable"`
@@ -1696,6 +1752,7 @@ type MarkDefaultZoneForAccountResponse struct {
Defaultzoneid string `json:"defaultzoneid"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Domainpath string `json:"domainpath"`
Groups []string `json:"groups"`
Id string `json:"id"`
Ipavailable string `json:"ipavailable"`
@@ -1890,6 +1947,7 @@ type UpdateAccountResponse struct {
Defaultzoneid string `json:"defaultzoneid"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Domainpath string `json:"domainpath"`
Groups []string `json:"groups"`
Id string `json:"id"`
Ipavailable string `json:"ipavailable"`
diff --git a/cloudstack/AddressService.go b/cloudstack/AddressService.go
index 9fa79a2..9904168 100644
--- a/cloudstack/AddressService.go
+++ b/cloudstack/AddressService.go
@@ -46,6 +46,9 @@ func (p *AssociateIpAddressParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("fordisplay", vv)
}
+ if v, found := p.p["ipaddress"]; found {
+ u.Set("ipaddress", v.(string))
+ }
if v, found := p.p["isportable"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("isportable", vv)
@@ -90,6 +93,13 @@ func (p *AssociateIpAddressParams) SetFordisplay(v bool) {
p.p["fordisplay"] = v
}
+func (p *AssociateIpAddressParams) SetIpaddress(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["ipaddress"] = v
+}
+
func (p *AssociateIpAddressParams) SetIsportable(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -140,7 +150,7 @@ func (s *AddressService) NewAssociateIpAddressParams() *AssociateIpAddressParams
return p
}
-// Acquires and associates a public IP to an account. Either of the parameters are required, i.e. either zoneId, or networkId, or vpcId
+// Acquires and associates a public IP to an account.
func (s *AddressService) AssociateIpAddress(p *AssociateIpAddressParams) (*AssociateIpAddressResponse, error) {
resp, err := s.cs.newRequest("associateIpAddress", p.toURLValues())
if err != nil {
@@ -193,6 +203,7 @@ type AssociateIpAddressResponse struct {
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Networkid string `json:"networkid"`
+ Networkname string `json:"networkname"`
Physicalnetworkid string `json:"physicalnetworkid"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -206,6 +217,7 @@ type AssociateIpAddressResponse struct {
Vlanname string `json:"vlanname"`
Vmipaddress string `json:"vmipaddress"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -337,6 +349,9 @@ func (p *ListPublicIpAddressesParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("listall", vv)
}
+ if v, found := p.p["networkid"]; found {
+ u.Set("networkid", v.(string))
+ }
if v, found := p.p["page"]; found {
vv := strconv.Itoa(v.(int))
u.Set("page", vv)
@@ -471,6 +486,13 @@ func (p *ListPublicIpAddressesParams) SetListall(v bool) {
p.p["listall"] = v
}
+func (p *ListPublicIpAddressesParams) SetNetworkid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["networkid"] = v
+}
+
func (p *ListPublicIpAddressesParams) SetPage(v int) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -613,6 +635,7 @@ type PublicIpAddress struct {
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Networkid string `json:"networkid"`
+ Networkname string `json:"networkname"`
Physicalnetworkid string `json:"physicalnetworkid"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -626,6 +649,7 @@ type PublicIpAddress struct {
Vlanname string `json:"vlanname"`
Vmipaddress string `json:"vmipaddress"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -735,6 +759,7 @@ type UpdateIpAddressResponse struct {
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Networkid string `json:"networkid"`
+ Networkname string `json:"networkname"`
Physicalnetworkid string `json:"physicalnetworkid"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -748,6 +773,7 @@ type UpdateIpAddressResponse struct {
Vlanname string `json:"vlanname"`
Vmipaddress string `json:"vmipaddress"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
diff --git a/cloudstack/AffinityGroupService.go b/cloudstack/AffinityGroupService.go
index 45822fe..30d61cc 100644
--- a/cloudstack/AffinityGroupService.go
+++ b/cloudstack/AffinityGroupService.go
@@ -705,6 +705,10 @@ func (s *AffinityGroupService) UpdateVMAffinityGroup(p *UpdateVMAffinityGroupPar
type UpdateVMAffinityGroupResponse struct {
Account string `json:"account"`
Affinitygroup []UpdateVMAffinityGroupResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -745,6 +749,7 @@ type UpdateVMAffinityGroupResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -752,6 +757,7 @@ type UpdateVMAffinityGroupResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []UpdateVMAffinityGroupResponseSecuritygroup `json:"securitygroup"`
diff --git a/cloudstack/BrocadeVCSService.go b/cloudstack/BrocadeVCSService.go
index c031dc2..cfabd1c 100644
--- a/cloudstack/BrocadeVCSService.go
+++ b/cloudstack/BrocadeVCSService.go
@@ -326,11 +326,13 @@ type ListBrocadeVcsDeviceNetworksResponse struct {
type BrocadeVcsDeviceNetwork struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -373,6 +375,7 @@ type BrocadeVcsDeviceNetwork struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
diff --git a/cloudstack/ConfigurationService.go b/cloudstack/ConfigurationService.go
index 431fe7e..c58cad6 100644
--- a/cloudstack/ConfigurationService.go
+++ b/cloudstack/ConfigurationService.go
@@ -65,23 +65,27 @@ type ListCapabilitiesResponse struct {
}
type Capability struct {
- Allowusercreateprojects bool `json:"allowusercreateprojects"`
- Allowuserexpungerecovervm bool `json:"allowuserexpungerecovervm"`
- Allowuserviewdestroyedvm bool `json:"allowuserviewdestroyedvm"`
- Apilimitinterval int `json:"apilimitinterval"`
- Apilimitmax int `json:"apilimitmax"`
- Cloudstackversion string `json:"cloudstackversion"`
- Customdiskofferingmaxsize int64 `json:"customdiskofferingmaxsize"`
- Customdiskofferingminsize int64 `json:"customdiskofferingminsize"`
- Dynamicrolesenabled bool `json:"dynamicrolesenabled"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Kvmsnapshotenabled bool `json:"kvmsnapshotenabled"`
- Projectinviterequired bool `json:"projectinviterequired"`
- Regionsecondaryenabled bool `json:"regionsecondaryenabled"`
- Securitygroupsenabled bool `json:"securitygroupsenabled"`
- SupportELB string `json:"supportELB"`
- Userpublictemplateenabled bool `json:"userpublictemplateenabled"`
+ Allowusercreateprojects bool `json:"allowusercreateprojects"`
+ Allowuserexpungerecovervm bool `json:"allowuserexpungerecovervm"`
+ Allowuserexpungerecovervolume bool `json:"allowuserexpungerecovervolume"`
+ Allowuserviewalldomainaccounts bool `json:"allowuserviewalldomainaccounts"`
+ Allowuserviewdestroyedvm bool `json:"allowuserviewdestroyedvm"`
+ Apilimitinterval int `json:"apilimitinterval"`
+ Apilimitmax int `json:"apilimitmax"`
+ Cloudstackversion string `json:"cloudstackversion"`
+ Customdiskofferingmaxsize int64 `json:"customdiskofferingmaxsize"`
+ Customdiskofferingminsize int64 `json:"customdiskofferingminsize"`
+ Dynamicrolesenabled bool `json:"dynamicrolesenabled"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Kubernetesclusterexperimentalfeaturesenabled bool `json:"kubernetesclusterexperimentalfeaturesenabled"`
+ Kubernetesserviceenabled bool `json:"kubernetesserviceenabled"`
+ Kvmsnapshotenabled bool `json:"kvmsnapshotenabled"`
+ Projectinviterequired bool `json:"projectinviterequired"`
+ Regionsecondaryenabled bool `json:"regionsecondaryenabled"`
+ Securitygroupsenabled bool `json:"securitygroupsenabled"`
+ SupportELB string `json:"supportELB"`
+ Userpublictemplateenabled bool `json:"userpublictemplateenabled"`
}
type ListConfigurationsParams struct {
@@ -240,6 +244,7 @@ type Configuration struct {
Category string `json:"category"`
Description string `json:"description"`
Id int64 `json:"id"`
+ Isdynamic bool `json:"isdynamic"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Name string `json:"name"`
@@ -445,6 +450,7 @@ type UpdateConfigurationResponse struct {
Category string `json:"category"`
Description string `json:"description"`
Id int64 `json:"id"`
+ Isdynamic bool `json:"isdynamic"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Name string `json:"name"`
diff --git a/cloudstack/DiskOfferingService.go b/cloudstack/DiskOfferingService.go
index 3dc8bf3..c04c7d4 100644
--- a/cloudstack/DiskOfferingService.go
+++ b/cloudstack/DiskOfferingService.go
@@ -60,6 +60,9 @@ func (p *CreateDiskOfferingParams) toURLValues() url.Values {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("byteswriteratemaxlength", vv)
}
+ if v, found := p.p["cachemode"]; found {
+ u.Set("cachemode", v.(string))
+ }
if v, found := p.p["customized"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("customized", vv)
@@ -80,7 +83,8 @@ func (p *CreateDiskOfferingParams) toURLValues() url.Values {
u.Set("displaytext", v.(string))
}
if v, found := p.p["domainid"]; found {
- u.Set("domainid", v.(string))
+ vv := strings.Join(v.([]string), ",")
+ u.Set("domainid", vv)
}
if v, found := p.p["hypervisorsnapshotreserve"]; found {
vv := strconv.Itoa(v.(int))
@@ -124,12 +128,19 @@ func (p *CreateDiskOfferingParams) toURLValues() url.Values {
if v, found := p.p["provisioningtype"]; found {
u.Set("provisioningtype", v.(string))
}
+ if v, found := p.p["storagepolicy"]; found {
+ u.Set("storagepolicy", v.(string))
+ }
if v, found := p.p["storagetype"]; found {
u.Set("storagetype", v.(string))
}
if v, found := p.p["tags"]; found {
u.Set("tags", v.(string))
}
+ if v, found := p.p["zoneid"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("zoneid", vv)
+ }
return u
}
@@ -175,6 +186,13 @@ func (p *CreateDiskOfferingParams) SetByteswriteratemaxlength(v int64) {
p.p["byteswriteratemaxlength"] = v
}
+func (p *CreateDiskOfferingParams) SetCachemode(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["cachemode"] = v
+}
+
func (p *CreateDiskOfferingParams) SetCustomized(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -210,7 +228,7 @@ func (p *CreateDiskOfferingParams) SetDisplaytext(v string) {
p.p["displaytext"] = v
}
-func (p *CreateDiskOfferingParams) SetDomainid(v string) {
+func (p *CreateDiskOfferingParams) SetDomainid(v []string) {
if p.p == nil {
p.p = make(map[string]interface{})
}
@@ -294,6 +312,13 @@ func (p *CreateDiskOfferingParams) SetProvisioningtype(v string) {
p.p["provisioningtype"] = v
}
+func (p *CreateDiskOfferingParams) SetStoragepolicy(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["storagepolicy"] = v
+}
+
func (p *CreateDiskOfferingParams) SetStoragetype(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -308,6 +333,13 @@ func (p *CreateDiskOfferingParams) SetTags(v string) {
p.p["tags"] = v
}
+func (p *CreateDiskOfferingParams) SetZoneid(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new CreateDiskOfferingParams instance,
// as then you are sure you have configured all required params
func (s *DiskOfferingService) NewCreateDiskOfferingParams(displaytext string, name string) *CreateDiskOfferingParams {
@@ -365,6 +397,9 @@ type CreateDiskOfferingResponse struct {
Provisioningtype string `json:"provisioningtype"`
Storagetype string `json:"storagetype"`
Tags string `json:"tags"`
+ Vspherestoragepolicy string `json:"vspherestoragepolicy"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type DeleteDiskOfferingParams struct {
@@ -484,6 +519,9 @@ func (p *ListDiskOfferingsParams) toURLValues() url.Values {
vv := strconv.Itoa(v.(int))
u.Set("pagesize", vv)
}
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
return u
}
@@ -543,6 +581,13 @@ func (p *ListDiskOfferingsParams) SetPagesize(v int) {
p.p["pagesize"] = v
}
+func (p *ListDiskOfferingsParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new ListDiskOfferingsParams instance,
// as then you are sure you have configured all required params
func (s *DiskOfferingService) NewListDiskOfferingsParams() *ListDiskOfferingsParams {
@@ -686,6 +731,9 @@ type DiskOffering struct {
Provisioningtype string `json:"provisioningtype"`
Storagetype string `json:"storagetype"`
Tags string `json:"tags"`
+ Vspherestoragepolicy string `json:"vspherestoragepolicy"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type UpdateDiskOfferingParams struct {
@@ -697,6 +745,33 @@ func (p *UpdateDiskOfferingParams) toURLValues() url.Values {
if p.p == nil {
return u
}
+ if v, found := p.p["bytesreadrate"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("bytesreadrate", vv)
+ }
+ if v, found := p.p["bytesreadratemax"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("bytesreadratemax", vv)
+ }
+ if v, found := p.p["bytesreadratemaxlength"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("bytesreadratemaxlength", vv)
+ }
+ if v, found := p.p["byteswriterate"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("byteswriterate", vv)
+ }
+ if v, found := p.p["byteswriteratemax"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("byteswriteratemax", vv)
+ }
+ if v, found := p.p["byteswriteratemaxlength"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("byteswriteratemaxlength", vv)
+ }
+ if v, found := p.p["cachemode"]; found {
+ u.Set("cachemode", v.(string))
+ }
if v, found := p.p["displayoffering"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("displayoffering", vv)
@@ -704,9 +779,36 @@ func (p *UpdateDiskOfferingParams) toURLValues() url.Values {
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", 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["iopsreadrate"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("iopsreadrate", vv)
+ }
+ if v, found := p.p["iopsreadratemax"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("iopsreadratemax", vv)
+ }
+ if v, found := p.p["iopsreadratemaxlength"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("iopsreadratemaxlength", vv)
+ }
+ if v, found := p.p["iopswriterate"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("iopswriterate", vv)
+ }
+ if v, found := p.p["iopswriteratemax"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("iopswriteratemax", vv)
+ }
+ if v, found := p.p["iopswriteratemaxlength"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("iopswriteratemaxlength", vv)
+ }
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
@@ -714,9 +816,64 @@ func (p *UpdateDiskOfferingParams) toURLValues() url.Values {
vv := strconv.Itoa(v.(int))
u.Set("sortkey", vv)
}
+ if v, found := p.p["tags"]; found {
+ u.Set("tags", v.(string))
+ }
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
return u
}
+func (p *UpdateDiskOfferingParams) SetBytesreadrate(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["bytesreadrate"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetBytesreadratemax(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["bytesreadratemax"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetBytesreadratemaxlength(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["bytesreadratemaxlength"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetByteswriterate(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["byteswriterate"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetByteswriteratemax(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["byteswriteratemax"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetByteswriteratemaxlength(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["byteswriteratemaxlength"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetCachemode(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["cachemode"] = v
+}
+
func (p *UpdateDiskOfferingParams) SetDisplayoffering(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -731,6 +888,13 @@ func (p *UpdateDiskOfferingParams) SetDisplaytext(v string) {
p.p["displaytext"] = v
}
+func (p *UpdateDiskOfferingParams) SetDomainid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
func (p *UpdateDiskOfferingParams) SetId(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -738,6 +902,48 @@ func (p *UpdateDiskOfferingParams) SetId(v string) {
p.p["id"] = v
}
+func (p *UpdateDiskOfferingParams) SetIopsreadrate(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["iopsreadrate"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetIopsreadratemax(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["iopsreadratemax"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetIopsreadratemaxlength(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["iopsreadratemaxlength"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetIopswriterate(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["iopswriterate"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetIopswriteratemax(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["iopswriteratemax"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetIopswriteratemaxlength(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["iopswriteratemaxlength"] = v
+}
+
func (p *UpdateDiskOfferingParams) SetName(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -752,6 +958,20 @@ func (p *UpdateDiskOfferingParams) SetSortkey(v int) {
p.p["sortkey"] = v
}
+func (p *UpdateDiskOfferingParams) SetTags(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["tags"] = v
+}
+
+func (p *UpdateDiskOfferingParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new UpdateDiskOfferingParams instance,
// as then you are sure you have configured all required params
func (s *DiskOfferingService) NewUpdateDiskOfferingParams(id string) *UpdateDiskOfferingParams {
@@ -808,4 +1028,7 @@ type UpdateDiskOfferingResponse struct {
Provisioningtype string `json:"provisioningtype"`
Storagetype string `json:"storagetype"`
Tags string `json:"tags"`
+ Vspherestoragepolicy string `json:"vspherestoragepolicy"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
diff --git a/cloudstack/HostService.go b/cloudstack/HostService.go
index d7e9df8..1abbd5f 100644
--- a/cloudstack/HostService.go
+++ b/cloudstack/HostService.go
@@ -180,60 +180,66 @@ func (s *HostService) AddBaremetalHost(p *AddBaremetalHostParams) (*AddBaremetal
}
type AddBaremetalHostResponse struct {
- Annotation string `json:"annotation"`
- Averageload int64 `json:"averageload"`
- Capabilities string `json:"capabilities"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Clustertype string `json:"clustertype"`
- Cpuallocated string `json:"cpuallocated"`
- Cpunumber int `json:"cpunumber"`
- Cpusockets int `json:"cpusockets"`
- Cpuspeed int64 `json:"cpuspeed"`
- Cpuused string `json:"cpuused"`
- Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
- Created string `json:"created"`
- Details map[string]string `json:"details"`
- Disconnected string `json:"disconnected"`
- Disksizeallocated int64 `json:"disksizeallocated"`
- Disksizetotal int64 `json:"disksizetotal"`
- Events string `json:"events"`
- Gpugroup []AddBaremetalHostResponseGpugroup `json:"gpugroup"`
- Hahost bool `json:"hahost"`
- Hasenoughcapacity bool `json:"hasenoughcapacity"`
- Hostha string `json:"hostha"`
- Hosttags string `json:"hosttags"`
- Hypervisor string `json:"hypervisor"`
- Hypervisorversion string `json:"hypervisorversion"`
- Id string `json:"id"`
- Ipaddress string `json:"ipaddress"`
- Islocalstorageactive bool `json:"islocalstorageactive"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastannotated string `json:"lastannotated"`
- Lastpinged string `json:"lastpinged"`
- Managementserverid int64 `json:"managementserverid"`
- Memoryallocated int64 `json:"memoryallocated"`
- Memorytotal int64 `json:"memorytotal"`
- Memoryused int64 `json:"memoryused"`
- Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
- Name string `json:"name"`
- Networkkbsread int64 `json:"networkkbsread"`
- Networkkbswrite int64 `json:"networkkbswrite"`
- Oscategoryid string `json:"oscategoryid"`
- Oscategoryname string `json:"oscategoryname"`
- Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
- Podid string `json:"podid"`
- Podname string `json:"podname"`
- Removed string `json:"removed"`
- Resourcestate string `json:"resourcestate"`
- State string `json:"state"`
- Suitableformigration bool `json:"suitableformigration"`
- Type string `json:"type"`
- Username string `json:"username"`
- Version string `json:"version"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Annotation string `json:"annotation"`
+ Capabilities string `json:"capabilities"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Clustertype string `json:"clustertype"`
+ Cpuallocated string `json:"cpuallocated"`
+ Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
+ Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
+ Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
+ Cpuloadaverage string `json:"cpuloadaverage"`
+ Cpunumber int `json:"cpunumber"`
+ Cpusockets int `json:"cpusockets"`
+ Cpuspeed int64 `json:"cpuspeed"`
+ Cpuused string `json:"cpuused"`
+ Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
+ Created string `json:"created"`
+ Details map[string]string `json:"details"`
+ Disconnected string `json:"disconnected"`
+ Disksizeallocated int64 `json:"disksizeallocated"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Events string `json:"events"`
+ Gpugroup []AddBaremetalHostResponseGpugroup `json:"gpugroup"`
+ Hahost bool `json:"hahost"`
+ Hasenoughcapacity bool `json:"hasenoughcapacity"`
+ Hostha string `json:"hostha"`
+ Hosttags string `json:"hosttags"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ Id string `json:"id"`
+ Ipaddress string `json:"ipaddress"`
+ Islocalstorageactive bool `json:"islocalstorageactive"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastannotated string `json:"lastannotated"`
+ Lastpinged string `json:"lastpinged"`
+ Managementserverid string `json:"managementserverid"`
+ Memoryallocated int64 `json:"memoryallocated"`
+ Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
+ Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
+ Memorytotal int64 `json:"memorytotal"`
+ Memoryused int64 `json:"memoryused"`
+ Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
+ Name string `json:"name"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Removed string `json:"removed"`
+ Resourcestate string `json:"resourcestate"`
+ State string `json:"state"`
+ Suitableformigration bool `json:"suitableformigration"`
+ Type string `json:"type"`
+ Ueficapability bool `json:"ueficapability"`
+ Username string `json:"username"`
+ Version string `json:"version"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type AddBaremetalHostResponseGpugroup struct {
@@ -496,60 +502,66 @@ func (s *HostService) AddHost(p *AddHostParams) (*AddHostResponse, error) {
}
type AddHostResponse struct {
- Annotation string `json:"annotation"`
- Averageload int64 `json:"averageload"`
- Capabilities string `json:"capabilities"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Clustertype string `json:"clustertype"`
- Cpuallocated string `json:"cpuallocated"`
- Cpunumber int `json:"cpunumber"`
- Cpusockets int `json:"cpusockets"`
- Cpuspeed int64 `json:"cpuspeed"`
- Cpuused string `json:"cpuused"`
- Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
- Created string `json:"created"`
- Details map[string]string `json:"details"`
- Disconnected string `json:"disconnected"`
- Disksizeallocated int64 `json:"disksizeallocated"`
- Disksizetotal int64 `json:"disksizetotal"`
- Events string `json:"events"`
- Gpugroup []AddHostResponseGpugroup `json:"gpugroup"`
- Hahost bool `json:"hahost"`
- Hasenoughcapacity bool `json:"hasenoughcapacity"`
- Hostha string `json:"hostha"`
- Hosttags string `json:"hosttags"`
- Hypervisor string `json:"hypervisor"`
- Hypervisorversion string `json:"hypervisorversion"`
- Id string `json:"id"`
- Ipaddress string `json:"ipaddress"`
- Islocalstorageactive bool `json:"islocalstorageactive"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastannotated string `json:"lastannotated"`
- Lastpinged string `json:"lastpinged"`
- Managementserverid int64 `json:"managementserverid"`
- Memoryallocated int64 `json:"memoryallocated"`
- Memorytotal int64 `json:"memorytotal"`
- Memoryused int64 `json:"memoryused"`
- Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
- Name string `json:"name"`
- Networkkbsread int64 `json:"networkkbsread"`
- Networkkbswrite int64 `json:"networkkbswrite"`
- Oscategoryid string `json:"oscategoryid"`
- Oscategoryname string `json:"oscategoryname"`
- Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
- Podid string `json:"podid"`
- Podname string `json:"podname"`
- Removed string `json:"removed"`
- Resourcestate string `json:"resourcestate"`
- State string `json:"state"`
- Suitableformigration bool `json:"suitableformigration"`
- Type string `json:"type"`
- Username string `json:"username"`
- Version string `json:"version"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Annotation string `json:"annotation"`
+ Capabilities string `json:"capabilities"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Clustertype string `json:"clustertype"`
+ Cpuallocated string `json:"cpuallocated"`
+ Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
+ Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
+ Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
+ Cpuloadaverage string `json:"cpuloadaverage"`
+ Cpunumber int `json:"cpunumber"`
+ Cpusockets int `json:"cpusockets"`
+ Cpuspeed int64 `json:"cpuspeed"`
+ Cpuused string `json:"cpuused"`
+ Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
+ Created string `json:"created"`
+ Details map[string]string `json:"details"`
+ Disconnected string `json:"disconnected"`
+ Disksizeallocated int64 `json:"disksizeallocated"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Events string `json:"events"`
+ Gpugroup []AddHostResponseGpugroup `json:"gpugroup"`
+ Hahost bool `json:"hahost"`
+ Hasenoughcapacity bool `json:"hasenoughcapacity"`
+ Hostha string `json:"hostha"`
+ Hosttags string `json:"hosttags"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ Id string `json:"id"`
+ Ipaddress string `json:"ipaddress"`
+ Islocalstorageactive bool `json:"islocalstorageactive"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastannotated string `json:"lastannotated"`
+ Lastpinged string `json:"lastpinged"`
+ Managementserverid string `json:"managementserverid"`
+ Memoryallocated int64 `json:"memoryallocated"`
+ Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
+ Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
+ Memorytotal int64 `json:"memorytotal"`
+ Memoryused int64 `json:"memoryused"`
+ Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
+ Name string `json:"name"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Removed string `json:"removed"`
+ Resourcestate string `json:"resourcestate"`
+ State string `json:"state"`
+ Suitableformigration bool `json:"suitableformigration"`
+ Type string `json:"type"`
+ Ueficapability bool `json:"ueficapability"`
+ Username string `json:"username"`
+ Version string `json:"version"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type AddHostResponseGpugroup struct {
@@ -625,16 +637,19 @@ func (s *HostService) AddSecondaryStorage(p *AddSecondaryStorageParams) (*AddSec
}
type AddSecondaryStorageResponse struct {
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Protocol string `json:"protocol"`
- Providername string `json:"providername"`
- Scope string `json:"scope"`
- Url string `json:"url"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Disksizeused int64 `json:"disksizeused"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Protocol string `json:"protocol"`
+ Providername string `json:"providername"`
+ Readonly bool `json:"readonly"`
+ Scope string `json:"scope"`
+ Url string `json:"url"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type CancelHostMaintenanceParams struct {
@@ -704,60 +719,66 @@ func (s *HostService) CancelHostMaintenance(p *CancelHostMaintenanceParams) (*Ca
}
type CancelHostMaintenanceResponse struct {
- Annotation string `json:"annotation"`
- Averageload int64 `json:"averageload"`
- Capabilities string `json:"capabilities"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Clustertype string `json:"clustertype"`
- Cpuallocated string `json:"cpuallocated"`
- Cpunumber int `json:"cpunumber"`
- Cpusockets int `json:"cpusockets"`
- Cpuspeed int64 `json:"cpuspeed"`
- Cpuused string `json:"cpuused"`
- Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
- Created string `json:"created"`
- Details map[string]string `json:"details"`
- Disconnected string `json:"disconnected"`
- Disksizeallocated int64 `json:"disksizeallocated"`
- Disksizetotal int64 `json:"disksizetotal"`
- Events string `json:"events"`
- Gpugroup []CancelHostMaintenanceResponseGpugroup `json:"gpugroup"`
- Hahost bool `json:"hahost"`
- Hasenoughcapacity bool `json:"hasenoughcapacity"`
- Hostha string `json:"hostha"`
- Hosttags string `json:"hosttags"`
- Hypervisor string `json:"hypervisor"`
- Hypervisorversion string `json:"hypervisorversion"`
- Id string `json:"id"`
- Ipaddress string `json:"ipaddress"`
- Islocalstorageactive bool `json:"islocalstorageactive"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastannotated string `json:"lastannotated"`
- Lastpinged string `json:"lastpinged"`
- Managementserverid int64 `json:"managementserverid"`
- Memoryallocated int64 `json:"memoryallocated"`
- Memorytotal int64 `json:"memorytotal"`
- Memoryused int64 `json:"memoryused"`
- Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
- Name string `json:"name"`
- Networkkbsread int64 `json:"networkkbsread"`
- Networkkbswrite int64 `json:"networkkbswrite"`
- Oscategoryid string `json:"oscategoryid"`
- Oscategoryname string `json:"oscategoryname"`
- Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
- Podid string `json:"podid"`
- Podname string `json:"podname"`
- Removed string `json:"removed"`
- Resourcestate string `json:"resourcestate"`
- State string `json:"state"`
- Suitableformigration bool `json:"suitableformigration"`
- Type string `json:"type"`
- Username string `json:"username"`
- Version string `json:"version"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Annotation string `json:"annotation"`
+ Capabilities string `json:"capabilities"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Clustertype string `json:"clustertype"`
+ Cpuallocated string `json:"cpuallocated"`
+ Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
+ Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
+ Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
+ Cpuloadaverage string `json:"cpuloadaverage"`
+ Cpunumber int `json:"cpunumber"`
+ Cpusockets int `json:"cpusockets"`
+ Cpuspeed int64 `json:"cpuspeed"`
+ Cpuused string `json:"cpuused"`
+ Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
+ Created string `json:"created"`
+ Details map[string]string `json:"details"`
+ Disconnected string `json:"disconnected"`
+ Disksizeallocated int64 `json:"disksizeallocated"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Events string `json:"events"`
+ Gpugroup []CancelHostMaintenanceResponseGpugroup `json:"gpugroup"`
+ Hahost bool `json:"hahost"`
+ Hasenoughcapacity bool `json:"hasenoughcapacity"`
+ Hostha string `json:"hostha"`
+ Hosttags string `json:"hosttags"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ Id string `json:"id"`
+ Ipaddress string `json:"ipaddress"`
+ Islocalstorageactive bool `json:"islocalstorageactive"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastannotated string `json:"lastannotated"`
+ Lastpinged string `json:"lastpinged"`
+ Managementserverid string `json:"managementserverid"`
+ Memoryallocated int64 `json:"memoryallocated"`
+ Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
+ Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
+ Memorytotal int64 `json:"memorytotal"`
+ Memoryused int64 `json:"memoryused"`
+ Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
+ Name string `json:"name"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Removed string `json:"removed"`
+ Resourcestate string `json:"resourcestate"`
+ State string `json:"state"`
+ Suitableformigration bool `json:"suitableformigration"`
+ Type string `json:"type"`
+ Ueficapability bool `json:"ueficapability"`
+ Username string `json:"username"`
+ Version string `json:"version"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type CancelHostMaintenanceResponseGpugroup struct {
@@ -1219,53 +1240,58 @@ func (s *HostService) FindHostsForMigration(p *FindHostsForMigrationParams) (*Fi
}
type FindHostsForMigrationResponse struct {
- Averageload int64 `json:"averageload"`
- Capabilities string `json:"capabilities"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Clustertype string `json:"clustertype"`
- Cpuallocated string `json:"cpuallocated"`
- Cpunumber int `json:"cpunumber"`
- Cpuspeed int64 `json:"cpuspeed"`
- Cpuused string `json:"cpuused"`
- Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
- Created string `json:"created"`
- Disconnected string `json:"disconnected"`
- Disksizeallocated int64 `json:"disksizeallocated"`
- Disksizetotal int64 `json:"disksizetotal"`
- Events string `json:"events"`
- Hahost bool `json:"hahost"`
- Hasenoughcapacity bool `json:"hasenoughcapacity"`
- Hosttags string `json:"hosttags"`
- Hypervisor string `json:"hypervisor"`
- Hypervisorversion string `json:"hypervisorversion"`
- Id string `json:"id"`
- Ipaddress string `json:"ipaddress"`
- Islocalstorageactive bool `json:"islocalstorageactive"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastpinged string `json:"lastpinged"`
- Managementserverid int64 `json:"managementserverid"`
- Memoryallocated string `json:"memoryallocated"`
- Memorytotal int64 `json:"memorytotal"`
- Memoryused int64 `json:"memoryused"`
- Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
- Name string `json:"name"`
- Networkkbsread int64 `json:"networkkbsread"`
- Networkkbswrite int64 `json:"networkkbswrite"`
- Oscategoryid string `json:"oscategoryid"`
- Oscategoryname string `json:"oscategoryname"`
- Podid string `json:"podid"`
- Podname string `json:"podname"`
- Removed string `json:"removed"`
- RequiresStorageMotion bool `json:"requiresStorageMotion"`
- Resourcestate string `json:"resourcestate"`
- State string `json:"state"`
- Suitableformigration bool `json:"suitableformigration"`
- Type string `json:"type"`
- Version string `json:"version"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Averageload int64 `json:"averageload"`
+ Capabilities string `json:"capabilities"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Clustertype string `json:"clustertype"`
+ Cpuallocated string `json:"cpuallocated"`
+ Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
+ Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
+ Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
+ Cpunumber int `json:"cpunumber"`
+ Cpuspeed int64 `json:"cpuspeed"`
+ Cpuused string `json:"cpuused"`
+ Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
+ Created string `json:"created"`
+ Disconnected string `json:"disconnected"`
+ Disksizeallocated int64 `json:"disksizeallocated"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Events string `json:"events"`
+ Hahost bool `json:"hahost"`
+ Hasenoughcapacity bool `json:"hasenoughcapacity"`
+ Hosttags string `json:"hosttags"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ Id string `json:"id"`
+ Ipaddress string `json:"ipaddress"`
+ Islocalstorageactive bool `json:"islocalstorageactive"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastpinged string `json:"lastpinged"`
+ Managementserverid int64 `json:"managementserverid"`
+ Memoryallocated string `json:"memoryallocated"`
+ Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
+ Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
+ Memorytotal int64 `json:"memorytotal"`
+ Memoryused int64 `json:"memoryused"`
+ Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
+ Name string `json:"name"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Removed string `json:"removed"`
+ RequiresStorageMotion bool `json:"requiresStorageMotion"`
+ Resourcestate string `json:"resourcestate"`
+ State string `json:"state"`
+ Suitableformigration bool `json:"suitableformigration"`
+ Type string `json:"type"`
+ Version string `json:"version"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type ListDedicatedHostsParams struct {
@@ -1806,60 +1832,66 @@ type ListHostsResponse struct {
}
type Host struct {
- Annotation string `json:"annotation"`
- Averageload int64 `json:"averageload"`
- Capabilities string `json:"capabilities"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Clustertype string `json:"clustertype"`
- Cpuallocated string `json:"cpuallocated"`
- Cpunumber int `json:"cpunumber"`
- Cpusockets int `json:"cpusockets"`
- Cpuspeed int64 `json:"cpuspeed"`
- Cpuused string `json:"cpuused"`
- Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
- Created string `json:"created"`
- Details map[string]string `json:"details"`
- Disconnected string `json:"disconnected"`
- Disksizeallocated int64 `json:"disksizeallocated"`
- Disksizetotal int64 `json:"disksizetotal"`
- Events string `json:"events"`
- Gpugroup []HostGpugroup `json:"gpugroup"`
- Hahost bool `json:"hahost"`
- Hasenoughcapacity bool `json:"hasenoughcapacity"`
- Hostha string `json:"hostha"`
- Hosttags string `json:"hosttags"`
- Hypervisor string `json:"hypervisor"`
- Hypervisorversion string `json:"hypervisorversion"`
- Id string `json:"id"`
- Ipaddress string `json:"ipaddress"`
- Islocalstorageactive bool `json:"islocalstorageactive"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastannotated string `json:"lastannotated"`
- Lastpinged string `json:"lastpinged"`
- Managementserverid int64 `json:"managementserverid"`
- Memoryallocated int64 `json:"memoryallocated"`
- Memorytotal int64 `json:"memorytotal"`
- Memoryused int64 `json:"memoryused"`
- Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
- Name string `json:"name"`
- Networkkbsread int64 `json:"networkkbsread"`
- Networkkbswrite int64 `json:"networkkbswrite"`
- Oscategoryid string `json:"oscategoryid"`
- Oscategoryname string `json:"oscategoryname"`
- Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
- Podid string `json:"podid"`
- Podname string `json:"podname"`
- Removed string `json:"removed"`
- Resourcestate string `json:"resourcestate"`
- State string `json:"state"`
- Suitableformigration bool `json:"suitableformigration"`
- Type string `json:"type"`
- Username string `json:"username"`
- Version string `json:"version"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Annotation string `json:"annotation"`
+ Capabilities string `json:"capabilities"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Clustertype string `json:"clustertype"`
+ Cpuallocated string `json:"cpuallocated"`
+ Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
+ Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
+ Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
+ Cpuloadaverage string `json:"cpuloadaverage"`
+ Cpunumber int `json:"cpunumber"`
+ Cpusockets int `json:"cpusockets"`
+ Cpuspeed int64 `json:"cpuspeed"`
+ Cpuused string `json:"cpuused"`
+ Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
+ Created string `json:"created"`
+ Details map[string]string `json:"details"`
+ Disconnected string `json:"disconnected"`
+ Disksizeallocated int64 `json:"disksizeallocated"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Events string `json:"events"`
+ Gpugroup []HostGpugroup `json:"gpugroup"`
+ Hahost bool `json:"hahost"`
+ Hasenoughcapacity bool `json:"hasenoughcapacity"`
+ Hostha string `json:"hostha"`
+ Hosttags string `json:"hosttags"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ Id string `json:"id"`
+ Ipaddress string `json:"ipaddress"`
+ Islocalstorageactive bool `json:"islocalstorageactive"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastannotated string `json:"lastannotated"`
+ Lastpinged string `json:"lastpinged"`
+ Managementserverid string `json:"managementserverid"`
+ Memoryallocated int64 `json:"memoryallocated"`
+ Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
+ Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
+ Memorytotal int64 `json:"memorytotal"`
+ Memoryused int64 `json:"memoryused"`
+ Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
+ Name string `json:"name"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Removed string `json:"removed"`
+ Resourcestate string `json:"resourcestate"`
+ State string `json:"state"`
+ Suitableformigration bool `json:"suitableformigration"`
+ Type string `json:"type"`
+ Ueficapability bool `json:"ueficapability"`
+ Username string `json:"username"`
+ Version string `json:"version"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type HostGpugroup struct {
@@ -2177,78 +2209,84 @@ type ListHostsMetricsResponse struct {
}
type HostsMetric struct {
- Annotation string `json:"annotation"`
- Averageload int64 `json:"averageload"`
- Capabilities string `json:"capabilities"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Clustertype string `json:"clustertype"`
- Cpuallocated string `json:"cpuallocated"`
- Cpuallocateddisablethreshold bool `json:"cpuallocateddisablethreshold"`
- Cpuallocatedghz string `json:"cpuallocatedghz"`
- Cpuallocatedthreshold bool `json:"cpuallocatedthreshold"`
- Cpudisablethreshold bool `json:"cpudisablethreshold"`
- Cpunumber int `json:"cpunumber"`
- Cpusockets int `json:"cpusockets"`
- Cpuspeed int64 `json:"cpuspeed"`
- Cputhreshold bool `json:"cputhreshold"`
- Cputotalghz string `json:"cputotalghz"`
- Cpuused string `json:"cpuused"`
- Cpuusedghz string `json:"cpuusedghz"`
- Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
- Created string `json:"created"`
- Details map[string]string `json:"details"`
- Disconnected string `json:"disconnected"`
- Disksizeallocated int64 `json:"disksizeallocated"`
- Disksizetotal int64 `json:"disksizetotal"`
- Events string `json:"events"`
- Gpugroup []HostsMetricGpugroup `json:"gpugroup"`
- Hahost bool `json:"hahost"`
- Hasenoughcapacity bool `json:"hasenoughcapacity"`
- Hostha string `json:"hostha"`
- Hosttags string `json:"hosttags"`
- Hypervisor string `json:"hypervisor"`
- Hypervisorversion string `json:"hypervisorversion"`
- Id string `json:"id"`
- Instances string `json:"instances"`
- Ipaddress string `json:"ipaddress"`
- Islocalstorageactive bool `json:"islocalstorageactive"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastannotated string `json:"lastannotated"`
- Lastpinged string `json:"lastpinged"`
- Managementserverid int64 `json:"managementserverid"`
- Memoryallocated int64 `json:"memoryallocated"`
- Memoryallocateddisablethreshold bool `json:"memoryallocateddisablethreshold"`
- Memoryallocatedgb string `json:"memoryallocatedgb"`
- Memoryallocatedthreshold bool `json:"memoryallocatedthreshold"`
- Memorydisablethreshold bool `json:"memorydisablethreshold"`
- Memorythreshold bool `json:"memorythreshold"`
- Memorytotal int64 `json:"memorytotal"`
- Memorytotalgb string `json:"memorytotalgb"`
- Memoryused int64 `json:"memoryused"`
- Memoryusedgb string `json:"memoryusedgb"`
- Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
- Name string `json:"name"`
- Networkkbsread int64 `json:"networkkbsread"`
- Networkkbswrite int64 `json:"networkkbswrite"`
- Networkread string `json:"networkread"`
- Networkwrite string `json:"networkwrite"`
- Oscategoryid string `json:"oscategoryid"`
- Oscategoryname string `json:"oscategoryname"`
- Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
- Podid string `json:"podid"`
- Podname string `json:"podname"`
- Powerstate string `json:"powerstate"`
- Removed string `json:"removed"`
- Resourcestate string `json:"resourcestate"`
- State string `json:"state"`
- Suitableformigration bool `json:"suitableformigration"`
- Type string `json:"type"`
- Username string `json:"username"`
- Version string `json:"version"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Annotation string `json:"annotation"`
+ Capabilities string `json:"capabilities"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Clustertype string `json:"clustertype"`
+ Cpuallocated string `json:"cpuallocated"`
+ Cpuallocateddisablethreshold bool `json:"cpuallocateddisablethreshold"`
+ Cpuallocatedghz string `json:"cpuallocatedghz"`
+ Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
+ Cpuallocatedthreshold bool `json:"cpuallocatedthreshold"`
+ Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
+ Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
+ Cpudisablethreshold bool `json:"cpudisablethreshold"`
+ Cpuloadaverage string `json:"cpuloadaverage"`
+ Cpunumber int `json:"cpunumber"`
+ Cpusockets int `json:"cpusockets"`
+ Cpuspeed int64 `json:"cpuspeed"`
+ Cputhreshold bool `json:"cputhreshold"`
+ Cputotalghz string `json:"cputotalghz"`
+ Cpuused string `json:"cpuused"`
+ Cpuusedghz string `json:"cpuusedghz"`
+ Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
+ Created string `json:"created"`
+ Details map[string]string `json:"details"`
+ Disconnected string `json:"disconnected"`
+ Disksizeallocated int64 `json:"disksizeallocated"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Events string `json:"events"`
+ Gpugroup []HostsMetricGpugroup `json:"gpugroup"`
+ Hahost bool `json:"hahost"`
+ Hasenoughcapacity bool `json:"hasenoughcapacity"`
+ Hostha string `json:"hostha"`
+ Hosttags string `json:"hosttags"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ Id string `json:"id"`
+ Instances string `json:"instances"`
+ Ipaddress string `json:"ipaddress"`
+ Islocalstorageactive bool `json:"islocalstorageactive"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastannotated string `json:"lastannotated"`
+ Lastpinged string `json:"lastpinged"`
+ Managementserverid string `json:"managementserverid"`
+ Memoryallocated int64 `json:"memoryallocated"`
+ Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
+ Memoryallocateddisablethreshold bool `json:"memoryallocateddisablethreshold"`
+ Memoryallocatedgb string `json:"memoryallocatedgb"`
+ Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
+ Memoryallocatedthreshold bool `json:"memoryallocatedthreshold"`
+ Memorydisablethreshold bool `json:"memorydisablethreshold"`
+ Memorythreshold bool `json:"memorythreshold"`
+ Memorytotal int64 `json:"memorytotal"`
+ Memorytotalgb string `json:"memorytotalgb"`
+ Memoryused int64 `json:"memoryused"`
+ Memoryusedgb string `json:"memoryusedgb"`
+ Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
+ Name string `json:"name"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Networkread string `json:"networkread"`
+ Networkwrite string `json:"networkwrite"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Powerstate string `json:"powerstate"`
+ Removed string `json:"removed"`
+ Resourcestate string `json:"resourcestate"`
+ State string `json:"state"`
+ Suitableformigration bool `json:"suitableformigration"`
+ Type string `json:"type"`
+ Ueficapability bool `json:"ueficapability"`
+ Username string `json:"username"`
+ Version string `json:"version"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type HostsMetricGpugroup struct {
@@ -2334,60 +2372,66 @@ func (s *HostService) PrepareHostForMaintenance(p *PrepareHostForMaintenancePara
}
type PrepareHostForMaintenanceResponse struct {
- Annotation string `json:"annotation"`
- Averageload int64 `json:"averageload"`
- Capabilities string `json:"capabilities"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Clustertype string `json:"clustertype"`
- Cpuallocated string `json:"cpuallocated"`
- Cpunumber int `json:"cpunumber"`
- Cpusockets int `json:"cpusockets"`
- Cpuspeed int64 `json:"cpuspeed"`
- Cpuused string `json:"cpuused"`
- Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
- Created string `json:"created"`
- Details map[string]string `json:"details"`
- Disconnected string `json:"disconnected"`
- Disksizeallocated int64 `json:"disksizeallocated"`
- Disksizetotal int64 `json:"disksizetotal"`
- Events string `json:"events"`
- Gpugroup []PrepareHostForMaintenanceResponseGpugroup `json:"gpugroup"`
- Hahost bool `json:"hahost"`
- Hasenoughcapacity bool `json:"hasenoughcapacity"`
- Hostha string `json:"hostha"`
- Hosttags string `json:"hosttags"`
- Hypervisor string `json:"hypervisor"`
- Hypervisorversion string `json:"hypervisorversion"`
- Id string `json:"id"`
- Ipaddress string `json:"ipaddress"`
- Islocalstorageactive bool `json:"islocalstorageactive"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastannotated string `json:"lastannotated"`
- Lastpinged string `json:"lastpinged"`
- Managementserverid int64 `json:"managementserverid"`
- Memoryallocated int64 `json:"memoryallocated"`
- Memorytotal int64 `json:"memorytotal"`
- Memoryused int64 `json:"memoryused"`
- Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
- Name string `json:"name"`
- Networkkbsread int64 `json:"networkkbsread"`
- Networkkbswrite int64 `json:"networkkbswrite"`
- Oscategoryid string `json:"oscategoryid"`
- Oscategoryname string `json:"oscategoryname"`
- Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
- Podid string `json:"podid"`
- Podname string `json:"podname"`
- Removed string `json:"removed"`
- Resourcestate string `json:"resourcestate"`
- State string `json:"state"`
- Suitableformigration bool `json:"suitableformigration"`
- Type string `json:"type"`
- Username string `json:"username"`
- Version string `json:"version"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Annotation string `json:"annotation"`
+ Capabilities string `json:"capabilities"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Clustertype string `json:"clustertype"`
+ Cpuallocated string `json:"cpuallocated"`
+ Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
+ Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
+ Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
+ Cpuloadaverage string `json:"cpuloadaverage"`
+ Cpunumber int `json:"cpunumber"`
+ Cpusockets int `json:"cpusockets"`
+ Cpuspeed int64 `json:"cpuspeed"`
+ Cpuused string `json:"cpuused"`
+ Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
+ Created string `json:"created"`
+ Details map[string]string `json:"details"`
+ Disconnected string `json:"disconnected"`
+ Disksizeallocated int64 `json:"disksizeallocated"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Events string `json:"events"`
+ Gpugroup []PrepareHostForMaintenanceResponseGpugroup `json:"gpugroup"`
+ Hahost bool `json:"hahost"`
+ Hasenoughcapacity bool `json:"hasenoughcapacity"`
+ Hostha string `json:"hostha"`
+ Hosttags string `json:"hosttags"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ Id string `json:"id"`
+ Ipaddress string `json:"ipaddress"`
+ Islocalstorageactive bool `json:"islocalstorageactive"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastannotated string `json:"lastannotated"`
+ Lastpinged string `json:"lastpinged"`
+ Managementserverid string `json:"managementserverid"`
+ Memoryallocated int64 `json:"memoryallocated"`
+ Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
+ Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
+ Memorytotal int64 `json:"memorytotal"`
+ Memoryused int64 `json:"memoryused"`
+ Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
+ Name string `json:"name"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Removed string `json:"removed"`
+ Resourcestate string `json:"resourcestate"`
+ State string `json:"state"`
+ Suitableformigration bool `json:"suitableformigration"`
+ Type string `json:"type"`
+ Ueficapability bool `json:"ueficapability"`
+ Username string `json:"username"`
+ Version string `json:"version"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type PrepareHostForMaintenanceResponseGpugroup struct {
@@ -2473,60 +2517,66 @@ func (s *HostService) ReconnectHost(p *ReconnectHostParams) (*ReconnectHostRespo
}
type ReconnectHostResponse struct {
- Annotation string `json:"annotation"`
- Averageload int64 `json:"averageload"`
- Capabilities string `json:"capabilities"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Clustertype string `json:"clustertype"`
- Cpuallocated string `json:"cpuallocated"`
- Cpunumber int `json:"cpunumber"`
- Cpusockets int `json:"cpusockets"`
- Cpuspeed int64 `json:"cpuspeed"`
- Cpuused string `json:"cpuused"`
- Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
- Created string `json:"created"`
- Details map[string]string `json:"details"`
- Disconnected string `json:"disconnected"`
- Disksizeallocated int64 `json:"disksizeallocated"`
- Disksizetotal int64 `json:"disksizetotal"`
- Events string `json:"events"`
- Gpugroup []ReconnectHostResponseGpugroup `json:"gpugroup"`
- Hahost bool `json:"hahost"`
- Hasenoughcapacity bool `json:"hasenoughcapacity"`
- Hostha string `json:"hostha"`
- Hosttags string `json:"hosttags"`
- Hypervisor string `json:"hypervisor"`
- Hypervisorversion string `json:"hypervisorversion"`
- Id string `json:"id"`
- Ipaddress string `json:"ipaddress"`
- Islocalstorageactive bool `json:"islocalstorageactive"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastannotated string `json:"lastannotated"`
- Lastpinged string `json:"lastpinged"`
- Managementserverid int64 `json:"managementserverid"`
- Memoryallocated int64 `json:"memoryallocated"`
- Memorytotal int64 `json:"memorytotal"`
- Memoryused int64 `json:"memoryused"`
- Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
- Name string `json:"name"`
- Networkkbsread int64 `json:"networkkbsread"`
- Networkkbswrite int64 `json:"networkkbswrite"`
- Oscategoryid string `json:"oscategoryid"`
- Oscategoryname string `json:"oscategoryname"`
- Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
- Podid string `json:"podid"`
- Podname string `json:"podname"`
- Removed string `json:"removed"`
- Resourcestate string `json:"resourcestate"`
- State string `json:"state"`
- Suitableformigration bool `json:"suitableformigration"`
- Type string `json:"type"`
- Username string `json:"username"`
- Version string `json:"version"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Annotation string `json:"annotation"`
+ Capabilities string `json:"capabilities"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Clustertype string `json:"clustertype"`
+ Cpuallocated string `json:"cpuallocated"`
+ Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
+ Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
+ Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
+ Cpuloadaverage string `json:"cpuloadaverage"`
+ Cpunumber int `json:"cpunumber"`
+ Cpusockets int `json:"cpusockets"`
+ Cpuspeed int64 `json:"cpuspeed"`
+ Cpuused string `json:"cpuused"`
+ Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
+ Created string `json:"created"`
+ Details map[string]string `json:"details"`
+ Disconnected string `json:"disconnected"`
+ Disksizeallocated int64 `json:"disksizeallocated"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Events string `json:"events"`
+ Gpugroup []ReconnectHostResponseGpugroup `json:"gpugroup"`
+ Hahost bool `json:"hahost"`
+ Hasenoughcapacity bool `json:"hasenoughcapacity"`
+ Hostha string `json:"hostha"`
+ Hosttags string `json:"hosttags"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ Id string `json:"id"`
+ Ipaddress string `json:"ipaddress"`
+ Islocalstorageactive bool `json:"islocalstorageactive"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastannotated string `json:"lastannotated"`
+ Lastpinged string `json:"lastpinged"`
+ Managementserverid string `json:"managementserverid"`
+ Memoryallocated int64 `json:"memoryallocated"`
+ Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
+ Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
+ Memorytotal int64 `json:"memorytotal"`
+ Memoryused int64 `json:"memoryused"`
+ Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
+ Name string `json:"name"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Removed string `json:"removed"`
+ Resourcestate string `json:"resourcestate"`
+ State string `json:"state"`
+ Suitableformigration bool `json:"suitableformigration"`
+ Type string `json:"type"`
+ Ueficapability bool `json:"ueficapability"`
+ Username string `json:"username"`
+ Version string `json:"version"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type ReconnectHostResponseGpugroup struct {
@@ -2703,6 +2753,9 @@ func (p *UpdateHostParams) toURLValues() url.Values {
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
+ if v, found := p.p["name"]; found {
+ u.Set("name", v.(string))
+ }
if v, found := p.p["oscategoryid"]; found {
u.Set("oscategoryid", v.(string))
}
@@ -2740,6 +2793,13 @@ func (p *UpdateHostParams) SetId(v string) {
p.p["id"] = v
}
+func (p *UpdateHostParams) SetName(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["name"] = v
+}
+
func (p *UpdateHostParams) SetOscategoryid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2779,60 +2839,66 @@ func (s *HostService) UpdateHost(p *UpdateHostParams) (*UpdateHostResponse, erro
}
type UpdateHostResponse struct {
- Annotation string `json:"annotation"`
- Averageload int64 `json:"averageload"`
- Capabilities string `json:"capabilities"`
- Clusterid string `json:"clusterid"`
- Clustername string `json:"clustername"`
- Clustertype string `json:"clustertype"`
- Cpuallocated string `json:"cpuallocated"`
- Cpunumber int `json:"cpunumber"`
- Cpusockets int `json:"cpusockets"`
- Cpuspeed int64 `json:"cpuspeed"`
- Cpuused string `json:"cpuused"`
- Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
- Created string `json:"created"`
- Details map[string]string `json:"details"`
- Disconnected string `json:"disconnected"`
- Disksizeallocated int64 `json:"disksizeallocated"`
- Disksizetotal int64 `json:"disksizetotal"`
- Events string `json:"events"`
- Gpugroup []UpdateHostResponseGpugroup `json:"gpugroup"`
- Hahost bool `json:"hahost"`
- Hasenoughcapacity bool `json:"hasenoughcapacity"`
- Hostha string `json:"hostha"`
- Hosttags string `json:"hosttags"`
- Hypervisor string `json:"hypervisor"`
- Hypervisorversion string `json:"hypervisorversion"`
- Id string `json:"id"`
- Ipaddress string `json:"ipaddress"`
- Islocalstorageactive bool `json:"islocalstorageactive"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastannotated string `json:"lastannotated"`
- Lastpinged string `json:"lastpinged"`
- Managementserverid int64 `json:"managementserverid"`
- Memoryallocated int64 `json:"memoryallocated"`
- Memorytotal int64 `json:"memorytotal"`
- Memoryused int64 `json:"memoryused"`
- Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
- Name string `json:"name"`
- Networkkbsread int64 `json:"networkkbsread"`
- Networkkbswrite int64 `json:"networkkbswrite"`
- Oscategoryid string `json:"oscategoryid"`
- Oscategoryname string `json:"oscategoryname"`
- Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
- Podid string `json:"podid"`
- Podname string `json:"podname"`
- Removed string `json:"removed"`
- Resourcestate string `json:"resourcestate"`
- State string `json:"state"`
- Suitableformigration bool `json:"suitableformigration"`
- Type string `json:"type"`
- Username string `json:"username"`
- Version string `json:"version"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Annotation string `json:"annotation"`
+ Capabilities string `json:"capabilities"`
+ Clusterid string `json:"clusterid"`
+ Clustername string `json:"clustername"`
+ Clustertype string `json:"clustertype"`
+ Cpuallocated string `json:"cpuallocated"`
+ Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
+ Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
+ Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
+ Cpuloadaverage string `json:"cpuloadaverage"`
+ Cpunumber int `json:"cpunumber"`
+ Cpusockets int `json:"cpusockets"`
+ Cpuspeed int64 `json:"cpuspeed"`
+ Cpuused string `json:"cpuused"`
+ Cpuwithoverprovisioning string `json:"cpuwithoverprovisioning"`
+ Created string `json:"created"`
+ Details map[string]string `json:"details"`
+ Disconnected string `json:"disconnected"`
+ Disksizeallocated int64 `json:"disksizeallocated"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Events string `json:"events"`
+ Gpugroup []UpdateHostResponseGpugroup `json:"gpugroup"`
+ Hahost bool `json:"hahost"`
+ Hasenoughcapacity bool `json:"hasenoughcapacity"`
+ Hostha string `json:"hostha"`
+ Hosttags string `json:"hosttags"`
+ Hypervisor string `json:"hypervisor"`
+ Hypervisorversion string `json:"hypervisorversion"`
+ Id string `json:"id"`
+ Ipaddress string `json:"ipaddress"`
+ Islocalstorageactive bool `json:"islocalstorageactive"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastannotated string `json:"lastannotated"`
+ Lastpinged string `json:"lastpinged"`
+ Managementserverid string `json:"managementserverid"`
+ Memoryallocated int64 `json:"memoryallocated"`
+ Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
+ Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
+ Memorytotal int64 `json:"memorytotal"`
+ Memoryused int64 `json:"memoryused"`
+ Memorywithoverprovisioning string `json:"memorywithoverprovisioning"`
+ Name string `json:"name"`
+ Networkkbsread int64 `json:"networkkbsread"`
+ Networkkbswrite int64 `json:"networkkbswrite"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Outofbandmanagement OutOfBandManagementResponse `json:"outofbandmanagement"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Removed string `json:"removed"`
+ Resourcestate string `json:"resourcestate"`
+ State string `json:"state"`
+ Suitableformigration bool `json:"suitableformigration"`
+ Type string `json:"type"`
+ Ueficapability bool `json:"ueficapability"`
+ Username string `json:"username"`
+ Version string `json:"version"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type UpdateHostResponseGpugroup struct {
diff --git a/cloudstack/ISOService.go b/cloudstack/ISOService.go
index 3f53a5d..e31ac1e 100644
--- a/cloudstack/ISOService.go
+++ b/cloudstack/ISOService.go
@@ -36,6 +36,10 @@ func (p *AttachIsoParams) 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["id"]; found {
u.Set("id", v.(string))
}
@@ -45,6 +49,13 @@ func (p *AttachIsoParams) toURLValues() url.Values {
return u
}
+func (p *AttachIsoParams) SetForced(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["forced"] = v
+}
+
func (p *AttachIsoParams) SetId(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -107,6 +118,10 @@ func (s *ISOService) AttachIso(p *AttachIsoParams) (*AttachIsoResponse, error) {
type AttachIsoResponse struct {
Account string `json:"account"`
Affinitygroup []AttachIsoResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -147,6 +162,7 @@ type AttachIsoResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -154,6 +170,7 @@ type AttachIsoResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []AttachIsoResponseSecuritygroup `json:"securitygroup"`
@@ -347,11 +364,14 @@ type CopyIsoResponse struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -381,6 +401,7 @@ type CopyIsoResponse struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -499,12 +520,23 @@ func (p *DetachIsoParams) 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["virtualmachineid"]; found {
u.Set("virtualmachineid", v.(string))
}
return u
}
+func (p *DetachIsoParams) SetForced(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["forced"] = v
+}
+
func (p *DetachIsoParams) SetVirtualmachineid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -559,6 +591,10 @@ func (s *ISOService) DetachIso(p *DetachIsoParams) (*DetachIsoResponse, error) {
type DetachIsoResponse struct {
Account string `json:"account"`
Affinitygroup []DetachIsoResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -599,6 +635,7 @@ type DetachIsoResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -606,6 +643,7 @@ type DetachIsoResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []DetachIsoResponseSecuritygroup `json:"securitygroup"`
@@ -968,6 +1006,10 @@ func (p *ListIsosParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("showremoved", vv)
}
+ if v, found := p.p["showunique"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("showunique", vv)
+ }
if v, found := p.p["tags"]; found {
m := v.(map[string]string)
for i, k := range getSortedKeysFromMap(m) {
@@ -1093,6 +1135,13 @@ func (p *ListIsosParams) SetShowremoved(v bool) {
p.p["showremoved"] = v
}
+func (p *ListIsosParams) SetShowunique(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["showunique"] = v
+}
+
func (p *ListIsosParams) SetTags(v map[string]string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1229,11 +1278,14 @@ type Iso struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -1263,6 +1315,7 @@ type Iso struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -1519,11 +1572,14 @@ type RegisterIsoResponse struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -1553,6 +1609,7 @@ type RegisterIsoResponse struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -1780,11 +1837,14 @@ type UpdateIsoResponse struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -1814,6 +1874,7 @@ type UpdateIsoResponse struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
diff --git a/cloudstack/ImageStoreService.go b/cloudstack/ImageStoreService.go
index e226364..5535b30 100644
--- a/cloudstack/ImageStoreService.go
+++ b/cloudstack/ImageStoreService.go
@@ -118,16 +118,19 @@ func (s *ImageStoreService) AddImageStore(p *AddImageStoreParams) (*AddImageStor
}
type AddImageStoreResponse struct {
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Protocol string `json:"protocol"`
- Providername string `json:"providername"`
- Scope string `json:"scope"`
- Url string `json:"url"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Disksizeused int64 `json:"disksizeused"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Protocol string `json:"protocol"`
+ Providername string `json:"providername"`
+ Readonly bool `json:"readonly"`
+ Scope string `json:"scope"`
+ Url string `json:"url"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type AddImageStoreS3Params struct {
@@ -286,16 +289,19 @@ func (s *ImageStoreService) AddImageStoreS3(p *AddImageStoreS3Params) (*AddImage
}
type AddImageStoreS3Response struct {
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Protocol string `json:"protocol"`
- Providername string `json:"providername"`
- Scope string `json:"scope"`
- Url string `json:"url"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Disksizeused int64 `json:"disksizeused"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Protocol string `json:"protocol"`
+ Providername string `json:"providername"`
+ Readonly bool `json:"readonly"`
+ Scope string `json:"scope"`
+ Url string `json:"url"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type CreateSecondaryStagingStoreParams struct {
@@ -389,16 +395,19 @@ func (s *ImageStoreService) CreateSecondaryStagingStore(p *CreateSecondaryStagin
}
type CreateSecondaryStagingStoreResponse struct {
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Protocol string `json:"protocol"`
- Providername string `json:"providername"`
- Scope string `json:"scope"`
- Url string `json:"url"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Disksizeused int64 `json:"disksizeused"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Protocol string `json:"protocol"`
+ Providername string `json:"providername"`
+ Readonly bool `json:"readonly"`
+ Scope string `json:"scope"`
+ Url string `json:"url"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type DeleteImageStoreParams struct {
@@ -593,6 +602,10 @@ func (p *ListImageStoresParams) toURLValues() url.Values {
if v, found := p.p["provider"]; found {
u.Set("provider", v.(string))
}
+ if v, found := p.p["readonly"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("readonly", vv)
+ }
if v, found := p.p["zoneid"]; found {
u.Set("zoneid", v.(string))
}
@@ -648,6 +661,13 @@ func (p *ListImageStoresParams) SetProvider(v string) {
p.p["provider"] = v
}
+func (p *ListImageStoresParams) SetReadonly(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["readonly"] = v
+}
+
func (p *ListImageStoresParams) SetZoneid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -767,16 +787,19 @@ type ListImageStoresResponse struct {
}
type ImageStore struct {
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Protocol string `json:"protocol"`
- Providername string `json:"providername"`
- Scope string `json:"scope"`
- Url string `json:"url"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Disksizeused int64 `json:"disksizeused"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Protocol string `json:"protocol"`
+ Providername string `json:"providername"`
+ Readonly bool `json:"readonly"`
+ Scope string `json:"scope"`
+ Url string `json:"url"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type ListSecondaryStagingStoresParams struct {
@@ -985,16 +1008,19 @@ type ListSecondaryStagingStoresResponse struct {
}
type SecondaryStagingStore struct {
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Protocol string `json:"protocol"`
- Providername string `json:"providername"`
- Scope string `json:"scope"`
- Url string `json:"url"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Disksizeused int64 `json:"disksizeused"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Protocol string `json:"protocol"`
+ Providername string `json:"providername"`
+ Readonly bool `json:"readonly"`
+ Scope string `json:"scope"`
+ Url string `json:"url"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type UpdateCloudToUseObjectStoreParams struct {
@@ -1078,14 +1104,17 @@ func (s *ImageStoreService) UpdateCloudToUseObjectStore(p *UpdateCloudToUseObjec
}
type UpdateCloudToUseObjectStoreResponse struct {
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Protocol string `json:"protocol"`
- Providername string `json:"providername"`
- Scope string `json:"scope"`
- Url string `json:"url"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Disksizeused int64 `json:"disksizeused"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Protocol string `json:"protocol"`
+ Providername string `json:"providername"`
+ Readonly bool `json:"readonly"`
+ Scope string `json:"scope"`
+ Url string `json:"url"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
diff --git a/cloudstack/InternalLBService.go b/cloudstack/InternalLBService.go
index 80c0c4b..5f8bf41 100644
--- a/cloudstack/InternalLBService.go
+++ b/cloudstack/InternalLBService.go
@@ -346,6 +346,10 @@ func (p *ListInternalLoadBalancerVMsParams) toURLValues() url.Values {
if v, found := p.p["domainid"]; found {
u.Set("domainid", v.(string))
}
+ if v, found := p.p["fetchhealthcheckresults"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("fetchhealthcheckresults", vv)
+ }
if v, found := p.p["forvpc"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("forvpc", vv)
@@ -413,6 +417,13 @@ func (p *ListInternalLoadBalancerVMsParams) SetDomainid(v string) {
p.p["domainid"] = v
}
+func (p *ListInternalLoadBalancerVMsParams) SetFetchhealthcheckresults(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["fetchhealthcheckresults"] = v
+}
+
func (p *ListInternalLoadBalancerVMsParams) SetForvpc(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -630,54 +641,66 @@ type ListInternalLoadBalancerVMsResponse struct {
}
type InternalLoadBalancerVM struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Dns1 string `json:"dns1"`
- Dns2 string `json:"dns2"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Gateway string `json:"gateway"`
- Guestipaddress string `json:"guestipaddress"`
- Guestmacaddress string `json:"guestmacaddress"`
- Guestnetmask string `json:"guestnetmask"`
- Guestnetworkid string `json:"guestnetworkid"`
- Guestnetworkname string `json:"guestnetworkname"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- Hypervisor string `json:"hypervisor"`
- Id string `json:"id"`
- Ip6dns1 string `json:"ip6dns1"`
- Ip6dns2 string `json:"ip6dns2"`
- Isredundantrouter bool `json:"isredundantrouter"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Linklocalip string `json:"linklocalip"`
- Linklocalmacaddress string `json:"linklocalmacaddress"`
- Linklocalnetmask string `json:"linklocalnetmask"`
- Linklocalnetworkid string `json:"linklocalnetworkid"`
- Name string `json:"name"`
- Networkdomain string `json:"networkdomain"`
- Nic []Nic `json:"nic"`
- Podid string `json:"podid"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Publicip string `json:"publicip"`
- Publicmacaddress string `json:"publicmacaddress"`
- Publicnetmask string `json:"publicnetmask"`
- Publicnetworkid string `json:"publicnetworkid"`
- Redundantstate string `json:"redundantstate"`
- Requiresupgrade bool `json:"requiresupgrade"`
- Role string `json:"role"`
- Scriptsversion string `json:"scriptsversion"`
- Serviceofferingid string `json:"serviceofferingid"`
- Serviceofferingname string `json:"serviceofferingname"`
- State string `json:"state"`
- Templateid string `json:"templateid"`
- Version string `json:"version"`
- Vpcid string `json:"vpcid"`
- Vpcname string `json:"vpcname"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Dns1 string `json:"dns1"`
+ Dns2 string `json:"dns2"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Gateway string `json:"gateway"`
+ Guestipaddress string `json:"guestipaddress"`
+ Guestmacaddress string `json:"guestmacaddress"`
+ Guestnetmask string `json:"guestnetmask"`
+ Guestnetworkid string `json:"guestnetworkid"`
+ Guestnetworkname string `json:"guestnetworkname"`
+ Healthcheckresults []InternalLoadBalancerVMHealthcheckresults `json:"healthcheckresults"`
+ Healthchecksfailed bool `json:"healthchecksfailed"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ Ip6dns1 string `json:"ip6dns1"`
+ Ip6dns2 string `json:"ip6dns2"`
+ Isredundantrouter bool `json:"isredundantrouter"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Linklocalip string `json:"linklocalip"`
+ Linklocalmacaddress string `json:"linklocalmacaddress"`
+ Linklocalnetmask string `json:"linklocalnetmask"`
+ Linklocalnetworkid string `json:"linklocalnetworkid"`
+ Name string `json:"name"`
+ Networkdomain string `json:"networkdomain"`
+ Nic []Nic `json:"nic"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Publicip string `json:"publicip"`
+ Publicmacaddress string `json:"publicmacaddress"`
+ Publicnetmask string `json:"publicnetmask"`
+ Publicnetworkid string `json:"publicnetworkid"`
+ Redundantstate string `json:"redundantstate"`
+ Requiresupgrade bool `json:"requiresupgrade"`
+ Role string `json:"role"`
+ Scriptsversion string `json:"scriptsversion"`
+ Serviceofferingid string `json:"serviceofferingid"`
+ Serviceofferingname string `json:"serviceofferingname"`
+ State string `json:"state"`
+ Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
+ Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
+type InternalLoadBalancerVMHealthcheckresults struct {
+ Checkname string `json:"checkname"`
+ Checktype string `json:"checktype"`
+ Details string `json:"details"`
+ Lastupdated string `json:"lastupdated"`
+ Success bool `json:"success"`
}
type StartInternalLoadBalancerVMParams struct {
@@ -747,54 +770,66 @@ func (s *InternalLBService) StartInternalLoadBalancerVM(p *StartInternalLoadBala
}
type StartInternalLoadBalancerVMResponse struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Dns1 string `json:"dns1"`
- Dns2 string `json:"dns2"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Gateway string `json:"gateway"`
- Guestipaddress string `json:"guestipaddress"`
- Guestmacaddress string `json:"guestmacaddress"`
- Guestnetmask string `json:"guestnetmask"`
- Guestnetworkid string `json:"guestnetworkid"`
- Guestnetworkname string `json:"guestnetworkname"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- Hypervisor string `json:"hypervisor"`
- Id string `json:"id"`
- Ip6dns1 string `json:"ip6dns1"`
- Ip6dns2 string `json:"ip6dns2"`
- Isredundantrouter bool `json:"isredundantrouter"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Linklocalip string `json:"linklocalip"`
- Linklocalmacaddress string `json:"linklocalmacaddress"`
- Linklocalnetmask string `json:"linklocalnetmask"`
- Linklocalnetworkid string `json:"linklocalnetworkid"`
- Name string `json:"name"`
- Networkdomain string `json:"networkdomain"`
- Nic []Nic `json:"nic"`
- Podid string `json:"podid"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Publicip string `json:"publicip"`
- Publicmacaddress string `json:"publicmacaddress"`
- Publicnetmask string `json:"publicnetmask"`
- Publicnetworkid string `json:"publicnetworkid"`
- Redundantstate string `json:"redundantstate"`
- Requiresupgrade bool `json:"requiresupgrade"`
- Role string `json:"role"`
- Scriptsversion string `json:"scriptsversion"`
- Serviceofferingid string `json:"serviceofferingid"`
- Serviceofferingname string `json:"serviceofferingname"`
- State string `json:"state"`
- Templateid string `json:"templateid"`
- Version string `json:"version"`
- Vpcid string `json:"vpcid"`
- Vpcname string `json:"vpcname"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Dns1 string `json:"dns1"`
+ Dns2 string `json:"dns2"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Gateway string `json:"gateway"`
+ Guestipaddress string `json:"guestipaddress"`
+ Guestmacaddress string `json:"guestmacaddress"`
+ Guestnetmask string `json:"guestnetmask"`
+ Guestnetworkid string `json:"guestnetworkid"`
+ Guestnetworkname string `json:"guestnetworkname"`
+ Healthcheckresults []StartInternalLoadBalancerVMResponseHealthcheckresults `json:"healthcheckresults"`
+ Healthchecksfailed bool `json:"healthchecksfailed"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ Ip6dns1 string `json:"ip6dns1"`
+ Ip6dns2 string `json:"ip6dns2"`
+ Isredundantrouter bool `json:"isredundantrouter"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Linklocalip string `json:"linklocalip"`
+ Linklocalmacaddress string `json:"linklocalmacaddress"`
+ Linklocalnetmask string `json:"linklocalnetmask"`
+ Linklocalnetworkid string `json:"linklocalnetworkid"`
+ Name string `json:"name"`
+ Networkdomain string `json:"networkdomain"`
+ Nic []Nic `json:"nic"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Publicip string `json:"publicip"`
+ Publicmacaddress string `json:"publicmacaddress"`
+ Publicnetmask string `json:"publicnetmask"`
+ Publicnetworkid string `json:"publicnetworkid"`
+ Redundantstate string `json:"redundantstate"`
+ Requiresupgrade bool `json:"requiresupgrade"`
+ Role string `json:"role"`
+ Scriptsversion string `json:"scriptsversion"`
+ Serviceofferingid string `json:"serviceofferingid"`
+ Serviceofferingname string `json:"serviceofferingname"`
+ State string `json:"state"`
+ Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
+ Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
+type StartInternalLoadBalancerVMResponseHealthcheckresults struct {
+ Checkname string `json:"checkname"`
+ Checktype string `json:"checktype"`
+ Details string `json:"details"`
+ Lastupdated string `json:"lastupdated"`
+ Success bool `json:"success"`
}
type StopInternalLoadBalancerVMParams struct {
@@ -875,52 +910,64 @@ func (s *InternalLBService) StopInternalLoadBalancerVM(p *StopInternalLoadBalanc
}
type StopInternalLoadBalancerVMResponse struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Dns1 string `json:"dns1"`
- Dns2 string `json:"dns2"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Gateway string `json:"gateway"`
- Guestipaddress string `json:"guestipaddress"`
- Guestmacaddress string `json:"guestmacaddress"`
- Guestnetmask string `json:"guestnetmask"`
- Guestnetworkid string `json:"guestnetworkid"`
- Guestnetworkname string `json:"guestnetworkname"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- Hypervisor string `json:"hypervisor"`
- Id string `json:"id"`
- Ip6dns1 string `json:"ip6dns1"`
- Ip6dns2 string `json:"ip6dns2"`
- Isredundantrouter bool `json:"isredundantrouter"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Linklocalip string `json:"linklocalip"`
- Linklocalmacaddress string `json:"linklocalmacaddress"`
- Linklocalnetmask string `json:"linklocalnetmask"`
- Linklocalnetworkid string `json:"linklocalnetworkid"`
- Name string `json:"name"`
- Networkdomain string `json:"networkdomain"`
- Nic []Nic `json:"nic"`
- Podid string `json:"podid"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Publicip string `json:"publicip"`
- Publicmacaddress string `json:"publicmacaddress"`
- Publicnetmask string `json:"publicnetmask"`
- Publicnetworkid string `json:"publicnetworkid"`
- Redundantstate string `json:"redundantstate"`
- Requiresupgrade bool `json:"requiresupgrade"`
- Role string `json:"role"`
- Scriptsversion string `json:"scriptsversion"`
- Serviceofferingid string `json:"serviceofferingid"`
- Serviceofferingname string `json:"serviceofferingname"`
- State string `json:"state"`
- Templateid string `json:"templateid"`
- Version string `json:"version"`
- Vpcid string `json:"vpcid"`
- Vpcname string `json:"vpcname"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Dns1 string `json:"dns1"`
+ Dns2 string `json:"dns2"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Gateway string `json:"gateway"`
+ Guestipaddress string `json:"guestipaddress"`
+ Guestmacaddress string `json:"guestmacaddress"`
+ Guestnetmask string `json:"guestnetmask"`
+ Guestnetworkid string `json:"guestnetworkid"`
+ Guestnetworkname string `json:"guestnetworkname"`
+ Healthcheckresults []StopInternalLoadBalancerVMResponseHealthcheckresults `json:"healthcheckresults"`
+ Healthchecksfailed bool `json:"healthchecksfailed"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ Ip6dns1 string `json:"ip6dns1"`
+ Ip6dns2 string `json:"ip6dns2"`
+ Isredundantrouter bool `json:"isredundantrouter"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Linklocalip string `json:"linklocalip"`
+ Linklocalmacaddress string `json:"linklocalmacaddress"`
+ Linklocalnetmask string `json:"linklocalnetmask"`
+ Linklocalnetworkid string `json:"linklocalnetworkid"`
+ Name string `json:"name"`
+ Networkdomain string `json:"networkdomain"`
+ Nic []Nic `json:"nic"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Publicip string `json:"publicip"`
+ Publicmacaddress string `json:"publicmacaddress"`
+ Publicnetmask string `json:"publicnetmask"`
+ Publicnetworkid string `json:"publicnetworkid"`
+ Redundantstate string `json:"redundantstate"`
+ Requiresupgrade bool `json:"requiresupgrade"`
+ Role string `json:"role"`
+ Scriptsversion string `json:"scriptsversion"`
+ Serviceofferingid string `json:"serviceofferingid"`
+ Serviceofferingname string `json:"serviceofferingname"`
+ State string `json:"state"`
+ Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
+ Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
+type StopInternalLoadBalancerVMResponseHealthcheckresults struct {
+ Checkname string `json:"checkname"`
+ Checktype string `json:"checktype"`
+ Details string `json:"details"`
+ Lastupdated string `json:"lastupdated"`
+ Success bool `json:"success"`
}
diff --git a/cloudstack/LDAPService.go b/cloudstack/LDAPService.go
index 64a715f..f81fa01 100644
--- a/cloudstack/LDAPService.go
+++ b/cloudstack/LDAPService.go
@@ -320,14 +320,15 @@ func (s *LDAPService) ImportLdapUsers(p *ImportLdapUsersParams) (*ImportLdapUser
}
type ImportLdapUsersResponse struct {
- Domain string `json:"domain"`
- Email string `json:"email"`
- Firstname string `json:"firstname"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastname string `json:"lastname"`
- Principal string `json:"principal"`
- Username string `json:"username"`
+ Conflictingusersource string `json:"conflictingusersource"`
+ Domain string `json:"domain"`
+ Email string `json:"email"`
+ Firstname string `json:"firstname"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastname string `json:"lastname"`
+ Principal string `json:"principal"`
+ Username string `json:"username"`
}
type LdapConfigParams struct {
@@ -630,6 +631,7 @@ type LdapCreateAccountResponse struct {
Defaultzoneid string `json:"defaultzoneid"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Domainpath string `json:"domainpath"`
Groups []string `json:"groups"`
Id string `json:"id"`
Ipavailable string `json:"ipavailable"`
@@ -881,6 +883,10 @@ func (p *ListLdapConfigurationsParams) toURLValues() url.Values {
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)
@@ -917,6 +923,13 @@ func (p *ListLdapConfigurationsParams) SetKeyword(v string) {
p.p["keyword"] = v
}
+func (p *ListLdapConfigurationsParams) SetListall(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["listall"] = v
+}
+
func (p *ListLdapConfigurationsParams) SetPage(v int) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -983,6 +996,9 @@ func (p *ListLdapUsersParams) toURLValues() url.Values {
if p.p == nil {
return u
}
+ if v, found := p.p["domainid"]; found {
+ u.Set("domainid", v.(string))
+ }
if v, found := p.p["keyword"]; found {
u.Set("keyword", v.(string))
}
@@ -997,9 +1013,19 @@ func (p *ListLdapUsersParams) toURLValues() url.Values {
vv := strconv.Itoa(v.(int))
u.Set("pagesize", vv)
}
+ if v, found := p.p["userfilter"]; found {
+ u.Set("userfilter", v.(string))
+ }
return u
}
+func (p *ListLdapUsersParams) SetDomainid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
func (p *ListLdapUsersParams) SetKeyword(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1028,6 +1054,13 @@ func (p *ListLdapUsersParams) SetPagesize(v int) {
p.p["pagesize"] = v
}
+func (p *ListLdapUsersParams) SetUserfilter(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["userfilter"] = v
+}
+
// You should always use this function to get a new ListLdapUsersParams instance,
// as then you are sure you have configured all required params
func (s *LDAPService) NewListLdapUsersParams() *ListLdapUsersParams {
@@ -1036,7 +1069,7 @@ func (s *LDAPService) NewListLdapUsersParams() *ListLdapUsersParams {
return p
}
-// Lists all LDAP Users
+// Lists LDAP Users according to the specifications from the user request.
func (s *LDAPService) ListLdapUsers(p *ListLdapUsersParams) (*ListLdapUsersResponse, error) {
resp, err := s.cs.newRequest("listLdapUsers", p.toURLValues())
if err != nil {
@@ -1057,14 +1090,15 @@ type ListLdapUsersResponse struct {
}
type LdapUser struct {
- Domain string `json:"domain"`
- Email string `json:"email"`
- Firstname string `json:"firstname"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastname string `json:"lastname"`
- Principal string `json:"principal"`
- Username string `json:"username"`
+ Conflictingusersource string `json:"conflictingusersource"`
+ Domain string `json:"domain"`
+ Email string `json:"email"`
+ Firstname string `json:"firstname"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastname string `json:"lastname"`
+ Principal string `json:"principal"`
+ Username string `json:"username"`
}
type SearchLdapParams struct {
@@ -1146,12 +1180,13 @@ func (s *LDAPService) SearchLdap(p *SearchLdapParams) (*SearchLdapResponse, erro
}
type SearchLdapResponse struct {
- Domain string `json:"domain"`
- Email string `json:"email"`
- Firstname string `json:"firstname"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Lastname string `json:"lastname"`
- Principal string `json:"principal"`
- Username string `json:"username"`
+ Conflictingusersource string `json:"conflictingusersource"`
+ Domain string `json:"domain"`
+ Email string `json:"email"`
+ Firstname string `json:"firstname"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Lastname string `json:"lastname"`
+ Principal string `json:"principal"`
+ Username string `json:"username"`
}
diff --git a/cloudstack/LoadBalancerService.go b/cloudstack/LoadBalancerService.go
index e6a8c60..dc078f3 100644
--- a/cloudstack/LoadBalancerService.go
+++ b/cloudstack/LoadBalancerService.go
@@ -4514,6 +4514,10 @@ func (p *UploadSslCertParams) toURLValues() url.Values {
if v, found := p.p["domainid"]; found {
u.Set("domainid", v.(string))
}
+ if v, found := p.p["enabledrevocationcheck"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("enabledrevocationcheck", vv)
+ }
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
@@ -4557,6 +4561,13 @@ func (p *UploadSslCertParams) SetDomainid(v string) {
p.p["domainid"] = v
}
+func (p *UploadSslCertParams) SetEnabledrevocationcheck(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["enabledrevocationcheck"] = v
+}
+
func (p *UploadSslCertParams) SetName(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
diff --git a/cloudstack/NetworkACLService.go b/cloudstack/NetworkACLService.go
index f446736..d8a916f 100644
--- a/cloudstack/NetworkACLService.go
+++ b/cloudstack/NetworkACLService.go
@@ -222,6 +222,7 @@ func (s *NetworkACLService) CreateNetworkACL(p *CreateNetworkACLParams) (*Create
type CreateNetworkACLResponse struct {
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Action string `json:"action"`
Cidrlist string `json:"cidrlist"`
Endport string `json:"endport"`
@@ -996,6 +997,7 @@ type ListNetworkACLsResponse struct {
type NetworkACL struct {
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Action string `json:"action"`
Cidrlist string `json:"cidrlist"`
Endport string `json:"endport"`
@@ -1308,6 +1310,7 @@ func (s *NetworkACLService) UpdateNetworkACLItem(p *UpdateNetworkACLItemParams)
type UpdateNetworkACLItemResponse struct {
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Action string `json:"action"`
Cidrlist string `json:"cidrlist"`
Endport string `json:"endport"`
diff --git a/cloudstack/NetworkOfferingService.go b/cloudstack/NetworkOfferingService.go
index 94d2bcb..5eb3471 100644
--- a/cloudstack/NetworkOfferingService.go
+++ b/cloudstack/NetworkOfferingService.go
@@ -52,6 +52,10 @@ func (p *CreateNetworkOfferingParams) toURLValues() url.Values {
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", v.(string))
}
+ if v, found := p.p["domainid"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("domainid", vv)
+ }
if v, found := p.p["egressdefaultpolicy"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("egressdefaultpolicy", vv)
@@ -117,6 +121,10 @@ func (p *CreateNetworkOfferingParams) toURLValues() url.Values {
if v, found := p.p["traffictype"]; found {
u.Set("traffictype", v.(string))
}
+ if v, found := p.p["zoneid"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("zoneid", vv)
+ }
return u
}
@@ -148,6 +156,13 @@ func (p *CreateNetworkOfferingParams) SetDisplaytext(v string) {
p.p["displaytext"] = v
}
+func (p *CreateNetworkOfferingParams) SetDomainid(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
func (p *CreateNetworkOfferingParams) SetEgressdefaultpolicy(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -260,6 +275,13 @@ func (p *CreateNetworkOfferingParams) SetTraffictype(v string) {
p.p["traffictype"] = v
}
+func (p *CreateNetworkOfferingParams) SetZoneid(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new CreateNetworkOfferingParams instance,
// as then you are sure you have configured all required params
func (s *NetworkOfferingService) NewCreateNetworkOfferingParams(displaytext string, guestiptype string, name string, supportedservices []string, traffictype string) *CreateNetworkOfferingParams {
@@ -298,6 +320,8 @@ type CreateNetworkOfferingResponse struct {
Created string `json:"created"`
Details map[string]string `json:"details"`
Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
Egressdefaultpolicy bool `json:"egressdefaultpolicy"`
Forvpc bool `json:"forvpc"`
Guestiptype string `json:"guestiptype"`
@@ -318,6 +342,8 @@ type CreateNetworkOfferingResponse struct {
Supportsstrechedl2subnet bool `json:"supportsstrechedl2subnet"`
Tags string `json:"tags"`
Traffictype string `json:"traffictype"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type CreateNetworkOfferingResponseService struct {
@@ -437,6 +463,9 @@ func (p *ListNetworkOfferingsParams) toURLValues() url.Values {
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", v.(string))
}
+ if v, found := p.p["domainid"]; found {
+ u.Set("domainid", v.(string))
+ }
if v, found := p.p["forvpc"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("forvpc", vv)
@@ -517,6 +546,13 @@ func (p *ListNetworkOfferingsParams) SetDisplaytext(v string) {
p.p["displaytext"] = v
}
+func (p *ListNetworkOfferingsParams) SetDomainid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
func (p *ListNetworkOfferingsParams) SetForvpc(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -760,6 +796,8 @@ type NetworkOffering struct {
Created string `json:"created"`
Details map[string]string `json:"details"`
Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
Egressdefaultpolicy bool `json:"egressdefaultpolicy"`
Forvpc bool `json:"forvpc"`
Guestiptype string `json:"guestiptype"`
@@ -780,6 +818,8 @@ type NetworkOffering struct {
Supportsstrechedl2subnet bool `json:"supportsstrechedl2subnet"`
Tags string `json:"tags"`
Traffictype string `json:"traffictype"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type NetworkOfferingServiceInternal struct {
@@ -819,6 +859,9 @@ func (p *UpdateNetworkOfferingParams) toURLValues() url.Values {
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", 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))
}
@@ -843,6 +886,9 @@ func (p *UpdateNetworkOfferingParams) toURLValues() url.Values {
if v, found := p.p["tags"]; found {
u.Set("tags", v.(string))
}
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
return u
}
@@ -860,6 +906,13 @@ func (p *UpdateNetworkOfferingParams) SetDisplaytext(v string) {
p.p["displaytext"] = v
}
+func (p *UpdateNetworkOfferingParams) SetDomainid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
func (p *UpdateNetworkOfferingParams) SetId(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -909,6 +962,13 @@ func (p *UpdateNetworkOfferingParams) SetTags(v string) {
p.p["tags"] = v
}
+func (p *UpdateNetworkOfferingParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new UpdateNetworkOfferingParams instance,
// as then you are sure you have configured all required params
func (s *NetworkOfferingService) NewUpdateNetworkOfferingParams() *UpdateNetworkOfferingParams {
@@ -938,6 +998,8 @@ type UpdateNetworkOfferingResponse struct {
Created string `json:"created"`
Details map[string]string `json:"details"`
Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
Egressdefaultpolicy bool `json:"egressdefaultpolicy"`
Forvpc bool `json:"forvpc"`
Guestiptype string `json:"guestiptype"`
@@ -958,6 +1020,8 @@ type UpdateNetworkOfferingResponse struct {
Supportsstrechedl2subnet bool `json:"supportsstrechedl2subnet"`
Tags string `json:"tags"`
Traffictype string `json:"traffictype"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type UpdateNetworkOfferingResponseService struct {
diff --git a/cloudstack/NetworkService.go b/cloudstack/NetworkService.go
index 629b37d..a6f0037 100644
--- a/cloudstack/NetworkService.go
+++ b/cloudstack/NetworkService.go
@@ -290,6 +290,10 @@ func (p *CreateNetworkParams) toURLValues() url.Values {
if v, found := p.p["gateway"]; found {
u.Set("gateway", v.(string))
}
+ if v, found := p.p["hideipaddressusage"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("hideipaddressusage", vv)
+ }
if v, found := p.p["ip6cidr"]; found {
u.Set("ip6cidr", v.(string))
}
@@ -299,6 +303,9 @@ func (p *CreateNetworkParams) toURLValues() url.Values {
if v, found := p.p["isolatedpvlan"]; found {
u.Set("isolatedpvlan", v.(string))
}
+ if v, found := p.p["isolatedpvlantype"]; found {
+ u.Set("isolatedpvlantype", v.(string))
+ }
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
@@ -416,6 +423,13 @@ func (p *CreateNetworkParams) SetGateway(v string) {
p.p["gateway"] = v
}
+func (p *CreateNetworkParams) SetHideipaddressusage(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["hideipaddressusage"] = v
+}
+
func (p *CreateNetworkParams) SetIp6cidr(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -437,6 +451,13 @@ func (p *CreateNetworkParams) SetIsolatedpvlan(v string) {
p.p["isolatedpvlan"] = v
}
+func (p *CreateNetworkParams) SetIsolatedpvlantype(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["isolatedpvlantype"] = v
+}
+
func (p *CreateNetworkParams) SetName(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -555,11 +576,13 @@ func (s *NetworkService) CreateNetwork(p *CreateNetworkParams) (*CreateNetworkRe
type CreateNetworkResponse struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -602,6 +625,7 @@ type CreateNetworkResponse struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -781,6 +805,7 @@ type CreatePhysicalNetworkResponse struct {
Tags string `json:"tags"`
Vlan string `json:"vlan"`
Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type CreateServiceInstanceParams struct {
@@ -1668,11 +1693,13 @@ type ListNetscalerLoadBalancerNetworksResponse struct {
type NetscalerLoadBalancerNetwork struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -1715,6 +1742,7 @@ type NetscalerLoadBalancerNetwork struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -2018,6 +2046,9 @@ func (p *ListNetworksParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("listall", vv)
}
+ if v, found := p.p["networkofferingid"]; found {
+ u.Set("networkofferingid", v.(string))
+ }
if v, found := p.p["page"]; found {
vv := strconv.Itoa(v.(int))
u.Set("page", vv)
@@ -2143,6 +2174,13 @@ func (p *ListNetworksParams) SetListall(v bool) {
p.p["listall"] = v
}
+func (p *ListNetworksParams) SetNetworkofferingid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["networkofferingid"] = v
+}
+
func (p *ListNetworksParams) SetPage(v int) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2341,11 +2379,13 @@ type ListNetworksResponse struct {
type Network struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -2388,6 +2428,7 @@ type Network struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -2538,11 +2579,13 @@ type ListNiciraNvpDeviceNetworksResponse struct {
type NiciraNvpDeviceNetwork struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -2585,6 +2628,7 @@ type NiciraNvpDeviceNetwork struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -2838,11 +2882,13 @@ type ListPaloAltoFirewallNetworksResponse struct {
type PaloAltoFirewallNetwork struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -2885,6 +2931,7 @@ type PaloAltoFirewallNetwork struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -3110,6 +3157,7 @@ type PhysicalNetwork struct {
Tags string `json:"tags"`
Vlan string `json:"vlan"`
Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type ListStorageNetworkIpRangeParams struct {
@@ -3563,6 +3611,7 @@ type RestartNetworkResponse struct {
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Networkid string `json:"networkid"`
+ Networkname string `json:"networkname"`
Physicalnetworkid string `json:"physicalnetworkid"`
Project string `json:"project"`
Projectid string `json:"projectid"`
@@ -3576,6 +3625,7 @@ type RestartNetworkResponse struct {
Vlanname string `json:"vlanname"`
Vmipaddress string `json:"vmipaddress"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -3610,6 +3660,10 @@ func (p *UpdateNetworkParams) toURLValues() url.Values {
if v, found := p.p["guestvmcidr"]; found {
u.Set("guestvmcidr", v.(string))
}
+ if v, found := p.p["hideipaddressusage"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("hideipaddressusage", vv)
+ }
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
@@ -3671,6 +3725,13 @@ func (p *UpdateNetworkParams) SetGuestvmcidr(v string) {
p.p["guestvmcidr"] = v
}
+func (p *UpdateNetworkParams) SetHideipaddressusage(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["hideipaddressusage"] = v
+}
+
func (p *UpdateNetworkParams) SetId(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -3753,11 +3814,13 @@ func (s *NetworkService) UpdateNetwork(p *UpdateNetworkParams) (*UpdateNetworkRe
type UpdateNetworkResponse struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -3800,6 +3863,7 @@ type UpdateNetworkResponse struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -4046,6 +4110,7 @@ type UpdatePhysicalNetworkResponse struct {
Tags string `json:"tags"`
Vlan string `json:"vlan"`
Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type UpdateStorageNetworkIpRangeParams struct {
diff --git a/cloudstack/NicService.go b/cloudstack/NicService.go
index 0f8a5f2..953f90c 100644
--- a/cloudstack/NicService.go
+++ b/cloudstack/NicService.go
@@ -230,6 +230,7 @@ type ListNicsResponse struct {
}
type Nic struct {
+ Adaptertype string `json:"adaptertype"`
Broadcasturi string `json:"broadcasturi"`
Deviceid string `json:"deviceid"`
Extradhcpoption []string `json:"extradhcpoption"`
@@ -239,7 +240,10 @@ type Nic struct {
Ip6cidr string `json:"ip6cidr"`
Ip6gateway string `json:"ip6gateway"`
Ipaddress string `json:"ipaddress"`
+ Ipaddresses []string `json:"ipaddresses"`
Isdefault bool `json:"isdefault"`
+ Isolatedpvlan int `json:"isolatedpvlan"`
+ Isolatedpvlantype string `json:"isolatedpvlantype"`
Isolationuri string `json:"isolationuri"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
@@ -256,6 +260,7 @@ type Nic struct {
Traffictype string `json:"traffictype"`
Type string `json:"type"`
Virtualmachineid string `json:"virtualmachineid"`
+ Vlanid int `json:"vlanid"`
}
type RemoveIpFromNicParams struct {
@@ -405,6 +410,10 @@ func (s *NicService) UpdateVmNicIp(p *UpdateVmNicIpParams) (*UpdateVmNicIpRespon
type UpdateVmNicIpResponse struct {
Account string `json:"account"`
Affinitygroup []UpdateVmNicIpResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -445,6 +454,7 @@ type UpdateVmNicIpResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -452,6 +462,7 @@ type UpdateVmNicIpResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []UpdateVmNicIpResponseSecuritygroup `json:"securitygroup"`
diff --git a/cloudstack/PoolService.go b/cloudstack/PoolService.go
index 0a90807..2b841c8 100644
--- a/cloudstack/PoolService.go
+++ b/cloudstack/PoolService.go
@@ -719,6 +719,9 @@ func (p *UpdateStoragePoolParams) toURLValues() url.Values {
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
+ if v, found := p.p["name"]; found {
+ u.Set("name", v.(string))
+ }
if v, found := p.p["tags"]; found {
vv := strings.Join(v.([]string), ",")
u.Set("tags", vv)
@@ -754,6 +757,13 @@ func (p *UpdateStoragePoolParams) SetId(v string) {
p.p["id"] = v
}
+func (p *UpdateStoragePoolParams) SetName(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["name"] = v
+}
+
func (p *UpdateStoragePoolParams) SetTags(v []string) {
if p.p == nil {
p.p = make(map[string]interface{})
diff --git a/cloudstack/ProjectService.go b/cloudstack/ProjectService.go
index d60c17d..c60b8a4 100644
--- a/cloudstack/ProjectService.go
+++ b/cloudstack/ProjectService.go
@@ -94,52 +94,52 @@ func (s *ProjectService) ActivateProject(p *ActivateProjectParams) (*ActivatePro
}
type ActivateProjectResponse struct {
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectaccountname string `json:"projectaccountname"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal float64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Tags []Tags `json:"tags"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmrunning int `json:"vmrunning"`
- Vmstopped int `json:"vmstopped"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Owner []string `json:"owner"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectaccountname string `json:"projectaccountname"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Tags []Tags `json:"tags"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmrunning int `json:"vmrunning"`
+ Vmstopped int `json:"vmstopped"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
type CreateProjectParams struct {
@@ -154,6 +154,9 @@ func (p *CreateProjectParams) toURLValues() url.Values {
if v, found := p.p["account"]; found {
u.Set("account", v.(string))
}
+ if v, found := p.p["accountid"]; found {
+ u.Set("accountid", v.(string))
+ }
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", v.(string))
}
@@ -163,6 +166,9 @@ func (p *CreateProjectParams) toURLValues() url.Values {
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
+ if v, found := p.p["userid"]; found {
+ u.Set("userid", v.(string))
+ }
return u
}
@@ -173,6 +179,13 @@ func (p *CreateProjectParams) SetAccount(v string) {
p.p["account"] = v
}
+func (p *CreateProjectParams) SetAccountid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["accountid"] = v
+}
+
func (p *CreateProjectParams) SetDisplaytext(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -194,6 +207,13 @@ func (p *CreateProjectParams) SetName(v string) {
p.p["name"] = v
}
+func (p *CreateProjectParams) SetUserid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["userid"] = v
+}
+
// You should always use this function to get a new CreateProjectParams instance,
// as then you are sure you have configured all required params
func (s *ProjectService) NewCreateProjectParams(displaytext string, name string) *CreateProjectParams {
@@ -240,52 +260,52 @@ func (s *ProjectService) CreateProject(p *CreateProjectParams) (*CreateProjectRe
}
type CreateProjectResponse struct {
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectaccountname string `json:"projectaccountname"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal float64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Tags []Tags `json:"tags"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmrunning int `json:"vmrunning"`
- Vmstopped int `json:"vmstopped"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Owner []string `json:"owner"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectaccountname string `json:"projectaccountname"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Tags []Tags `json:"tags"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmrunning int `json:"vmrunning"`
+ Vmstopped int `json:"vmstopped"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
type DeleteProjectParams struct {
@@ -471,6 +491,9 @@ func (p *ListProjectInvitationsParams) toURLValues() url.Values {
if v, found := p.p["state"]; found {
u.Set("state", v.(string))
}
+ if v, found := p.p["userid"]; found {
+ u.Set("userid", v.(string))
+ }
return u
}
@@ -551,6 +574,13 @@ func (p *ListProjectInvitationsParams) SetState(v string) {
p.p["state"] = v
}
+func (p *ListProjectInvitationsParams) SetUserid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["userid"] = v
+}
+
// You should always use this function to get a new ListProjectInvitationsParams instance,
// as then you are sure you have configured all required params
func (s *ProjectService) NewListProjectInvitationsParams() *ListProjectInvitationsParams {
@@ -623,6 +653,7 @@ type ProjectInvitation struct {
Project string `json:"project"`
Projectid string `json:"projectid"`
State string `json:"state"`
+ Userid string `json:"userid"`
}
type ListProjectsParams struct {
@@ -637,6 +668,10 @@ func (p *ListProjectsParams) toURLValues() url.Values {
if v, found := p.p["account"]; found {
u.Set("account", v.(string))
}
+ if v, found := p.p["details"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("details", vv)
+ }
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", v.(string))
}
@@ -678,6 +713,9 @@ func (p *ListProjectsParams) toURLValues() url.Values {
u.Set(fmt.Sprintf("tags[%d].value", i), m[k])
}
}
+ if v, found := p.p["username"]; found {
+ u.Set("username", v.(string))
+ }
return u
}
@@ -688,6 +726,13 @@ func (p *ListProjectsParams) SetAccount(v string) {
p.p["account"] = v
}
+func (p *ListProjectsParams) SetDetails(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["details"] = v
+}
+
func (p *ListProjectsParams) SetDisplaytext(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -765,6 +810,13 @@ func (p *ListProjectsParams) SetTags(v map[string]string) {
p.p["tags"] = v
}
+func (p *ListProjectsParams) SetUsername(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["username"] = v
+}
+
// You should always use this function to get a new ListProjectsParams instance,
// as then you are sure you have configured all required params
func (s *ProjectService) NewListProjectsParams() *ListProjectsParams {
@@ -877,52 +929,52 @@ type ListProjectsResponse struct {
}
type Project struct {
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectaccountname string `json:"projectaccountname"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal float64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Tags []Tags `json:"tags"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmrunning int `json:"vmrunning"`
- Vmstopped int `json:"vmstopped"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Owner []string `json:"owner"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectaccountname string `json:"projectaccountname"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Tags []Tags `json:"tags"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmrunning int `json:"vmrunning"`
+ Vmstopped int `json:"vmstopped"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
type SuspendProjectParams struct {
@@ -992,52 +1044,52 @@ func (s *ProjectService) SuspendProject(p *SuspendProjectParams) (*SuspendProjec
}
type SuspendProjectResponse struct {
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectaccountname string `json:"projectaccountname"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal float64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Tags []Tags `json:"tags"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmrunning int `json:"vmrunning"`
- Vmstopped int `json:"vmstopped"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Owner []string `json:"owner"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectaccountname string `json:"projectaccountname"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Tags []Tags `json:"tags"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmrunning int `json:"vmrunning"`
+ Vmstopped int `json:"vmstopped"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
type UpdateProjectParams struct {
@@ -1058,6 +1110,16 @@ func (p *UpdateProjectParams) toURLValues() url.Values {
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
+ if v, found := p.p["roletype"]; found {
+ u.Set("roletype", v.(string))
+ }
+ if v, found := p.p["swapowner"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("swapowner", vv)
+ }
+ if v, found := p.p["userid"]; found {
+ u.Set("userid", v.(string))
+ }
return u
}
@@ -1082,6 +1144,27 @@ func (p *UpdateProjectParams) SetId(v string) {
p.p["id"] = v
}
+func (p *UpdateProjectParams) SetRoletype(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["roletype"] = v
+}
+
+func (p *UpdateProjectParams) SetSwapowner(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["swapowner"] = v
+}
+
+func (p *UpdateProjectParams) SetUserid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["userid"] = v
+}
+
// You should always use this function to get a new UpdateProjectParams instance,
// as then you are sure you have configured all required params
func (s *ProjectService) NewUpdateProjectParams(id string) *UpdateProjectParams {
@@ -1127,52 +1210,52 @@ func (s *ProjectService) UpdateProject(p *UpdateProjectParams) (*UpdateProjectRe
}
type UpdateProjectResponse struct {
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectaccountname string `json:"projectaccountname"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal float64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Tags []Tags `json:"tags"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmrunning int `json:"vmrunning"`
- Vmstopped int `json:"vmstopped"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Owner []string `json:"owner"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectaccountname string `json:"projectaccountname"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Tags []Tags `json:"tags"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmrunning int `json:"vmrunning"`
+ Vmstopped int `json:"vmstopped"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
type UpdateProjectInvitationParams struct {
@@ -1197,6 +1280,9 @@ func (p *UpdateProjectInvitationParams) toURLValues() url.Values {
if v, found := p.p["token"]; found {
u.Set("token", v.(string))
}
+ if v, found := p.p["userid"]; found {
+ u.Set("userid", v.(string))
+ }
return u
}
@@ -1228,6 +1314,13 @@ func (p *UpdateProjectInvitationParams) SetToken(v string) {
p.p["token"] = v
}
+func (p *UpdateProjectInvitationParams) SetUserid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["userid"] = v
+}
+
// You should always use this function to get a new UpdateProjectInvitationParams instance,
// as then you are sure you have configured all required params
func (s *ProjectService) NewUpdateProjectInvitationParams(projectid string) *UpdateProjectInvitationParams {
diff --git a/cloudstack/RoleService.go b/cloudstack/RoleService.go
index ca4f0b1..215f94a 100644
--- a/cloudstack/RoleService.go
+++ b/cloudstack/RoleService.go
@@ -42,6 +42,9 @@ func (p *CreateRoleParams) toURLValues() url.Values {
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
+ if v, found := p.p["roleid"]; found {
+ u.Set("roleid", v.(string))
+ }
if v, found := p.p["type"]; found {
u.Set("type", v.(string))
}
@@ -62,6 +65,13 @@ func (p *CreateRoleParams) SetName(v string) {
p.p["name"] = v
}
+func (p *CreateRoleParams) SetRoleid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["roleid"] = v
+}
+
func (p *CreateRoleParams) SetType(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -71,11 +81,10 @@ func (p *CreateRoleParams) SetType(v string) {
// You should always use this function to get a new CreateRoleParams instance,
// as then you are sure you have configured all required params
-func (s *RoleService) NewCreateRoleParams(name string, roleType string) *CreateRoleParams {
+func (s *RoleService) NewCreateRoleParams(name string) *CreateRoleParams {
p := &CreateRoleParams{}
p.p = make(map[string]interface{})
p.p["name"] = name
- p.p["type"] = roleType
return p
}
@@ -97,6 +106,7 @@ func (s *RoleService) CreateRole(p *CreateRoleParams) (*CreateRoleResponse, erro
type CreateRoleResponse struct {
Description string `json:"description"`
Id string `json:"id"`
+ Isdefault bool `json:"isdefault"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Name string `json:"name"`
@@ -166,7 +176,7 @@ func (s *RoleService) NewCreateRolePermissionParams(permission string, roleid st
return p
}
-// Adds a API permission to a role
+// Adds an API permission to a role
func (s *RoleService) CreateRolePermission(p *CreateRolePermissionParams) (*CreateRolePermissionResponse, error) {
resp, err := s.cs.newRequest("createRolePermission", p.toURLValues())
if err != nil {
@@ -425,9 +435,20 @@ func (p *ListRolesParams) toURLValues() url.Values {
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
+ if v, found := p.p["keyword"]; found {
+ u.Set("keyword", v.(string))
+ }
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
+ if v, found := p.p["page"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("page", vv)
+ }
+ if v, found := p.p["pagesize"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("pagesize", vv)
+ }
if v, found := p.p["type"]; found {
u.Set("type", v.(string))
}
@@ -441,6 +462,13 @@ func (p *ListRolesParams) SetId(v string) {
p.p["id"] = v
}
+func (p *ListRolesParams) SetKeyword(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["keyword"] = v
+}
+
func (p *ListRolesParams) SetName(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -448,6 +476,20 @@ func (p *ListRolesParams) SetName(v string) {
p.p["name"] = v
}
+func (p *ListRolesParams) SetPage(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["page"] = v
+}
+
+func (p *ListRolesParams) SetPagesize(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["pagesize"] = v
+}
+
func (p *ListRolesParams) SetType(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -569,6 +611,7 @@ type ListRolesResponse struct {
type Role struct {
Description string `json:"description"`
Id string `json:"id"`
+ Isdefault bool `json:"isdefault"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Name string `json:"name"`
@@ -587,6 +630,9 @@ func (p *UpdateRoleParams) toURLValues() url.Values {
if v, found := p.p["description"]; found {
u.Set("description", v.(string))
}
+ if v, found := p.p["description"]; found {
+ u.Set("description", v.(string))
+ }
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
@@ -654,6 +700,7 @@ func (s *RoleService) UpdateRole(p *UpdateRoleParams) (*UpdateRoleResponse, erro
type UpdateRoleResponse struct {
Description string `json:"description"`
Id string `json:"id"`
+ Isdefault bool `json:"isdefault"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Name string `json:"name"`
diff --git a/cloudstack/RouterService.go b/cloudstack/RouterService.go
index 4e6b2df..802286b 100644
--- a/cloudstack/RouterService.go
+++ b/cloudstack/RouterService.go
@@ -85,54 +85,66 @@ func (s *RouterService) ChangeServiceForRouter(p *ChangeServiceForRouterParams)
}
type ChangeServiceForRouterResponse struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Dns1 string `json:"dns1"`
- Dns2 string `json:"dns2"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Gateway string `json:"gateway"`
- Guestipaddress string `json:"guestipaddress"`
- Guestmacaddress string `json:"guestmacaddress"`
- Guestnetmask string `json:"guestnetmask"`
- Guestnetworkid string `json:"guestnetworkid"`
- Guestnetworkname string `json:"guestnetworkname"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- Hypervisor string `json:"hypervisor"`
- Id string `json:"id"`
- Ip6dns1 string `json:"ip6dns1"`
- Ip6dns2 string `json:"ip6dns2"`
- Isredundantrouter bool `json:"isredundantrouter"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Linklocalip string `json:"linklocalip"`
- Linklocalmacaddress string `json:"linklocalmacaddress"`
- Linklocalnetmask string `json:"linklocalnetmask"`
- Linklocalnetworkid string `json:"linklocalnetworkid"`
- Name string `json:"name"`
- Networkdomain string `json:"networkdomain"`
- Nic []Nic `json:"nic"`
- Podid string `json:"podid"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Publicip string `json:"publicip"`
- Publicmacaddress string `json:"publicmacaddress"`
- Publicnetmask string `json:"publicnetmask"`
- Publicnetworkid string `json:"publicnetworkid"`
- Redundantstate string `json:"redundantstate"`
- Requiresupgrade bool `json:"requiresupgrade"`
- Role string `json:"role"`
- Scriptsversion string `json:"scriptsversion"`
- Serviceofferingid string `json:"serviceofferingid"`
- Serviceofferingname string `json:"serviceofferingname"`
- State string `json:"state"`
- Templateid string `json:"templateid"`
- Version string `json:"version"`
- Vpcid string `json:"vpcid"`
- Vpcname string `json:"vpcname"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Dns1 string `json:"dns1"`
+ Dns2 string `json:"dns2"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Gateway string `json:"gateway"`
+ Guestipaddress string `json:"guestipaddress"`
+ Guestmacaddress string `json:"guestmacaddress"`
+ Guestnetmask string `json:"guestnetmask"`
+ Guestnetworkid string `json:"guestnetworkid"`
+ Guestnetworkname string `json:"guestnetworkname"`
+ Healthcheckresults []ChangeServiceForRouterResponseHealthcheckresults `json:"healthcheckresults"`
+ Healthchecksfailed bool `json:"healthchecksfailed"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ Ip6dns1 string `json:"ip6dns1"`
+ Ip6dns2 string `json:"ip6dns2"`
+ Isredundantrouter bool `json:"isredundantrouter"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Linklocalip string `json:"linklocalip"`
+ Linklocalmacaddress string `json:"linklocalmacaddress"`
+ Linklocalnetmask string `json:"linklocalnetmask"`
+ Linklocalnetworkid string `json:"linklocalnetworkid"`
+ Name string `json:"name"`
+ Networkdomain string `json:"networkdomain"`
+ Nic []Nic `json:"nic"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Publicip string `json:"publicip"`
+ Publicmacaddress string `json:"publicmacaddress"`
+ Publicnetmask string `json:"publicnetmask"`
+ Publicnetworkid string `json:"publicnetworkid"`
+ Redundantstate string `json:"redundantstate"`
+ Requiresupgrade bool `json:"requiresupgrade"`
+ Role string `json:"role"`
+ Scriptsversion string `json:"scriptsversion"`
+ Serviceofferingid string `json:"serviceofferingid"`
+ Serviceofferingname string `json:"serviceofferingname"`
+ State string `json:"state"`
+ Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
+ Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
+type ChangeServiceForRouterResponseHealthcheckresults struct {
+ Checkname string `json:"checkname"`
+ Checktype string `json:"checktype"`
+ Details string `json:"details"`
+ Lastupdated string `json:"lastupdated"`
+ Success bool `json:"success"`
}
type ConfigureVirtualRouterElementParams struct {
@@ -382,54 +394,66 @@ func (s *RouterService) DestroyRouter(p *DestroyRouterParams) (*DestroyRouterRes
}
type DestroyRouterResponse struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Dns1 string `json:"dns1"`
- Dns2 string `json:"dns2"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Gateway string `json:"gateway"`
- Guestipaddress string `json:"guestipaddress"`
- Guestmacaddress string `json:"guestmacaddress"`
- Guestnetmask string `json:"guestnetmask"`
- Guestnetworkid string `json:"guestnetworkid"`
- Guestnetworkname string `json:"guestnetworkname"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- Hypervisor string `json:"hypervisor"`
- Id string `json:"id"`
- Ip6dns1 string `json:"ip6dns1"`
- Ip6dns2 string `json:"ip6dns2"`
- Isredundantrouter bool `json:"isredundantrouter"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Linklocalip string `json:"linklocalip"`
- Linklocalmacaddress string `json:"linklocalmacaddress"`
- Linklocalnetmask string `json:"linklocalnetmask"`
- Linklocalnetworkid string `json:"linklocalnetworkid"`
- Name string `json:"name"`
- Networkdomain string `json:"networkdomain"`
- Nic []Nic `json:"nic"`
- Podid string `json:"podid"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Publicip string `json:"publicip"`
- Publicmacaddress string `json:"publicmacaddress"`
- Publicnetmask string `json:"publicnetmask"`
- Publicnetworkid string `json:"publicnetworkid"`
- Redundantstate string `json:"redundantstate"`
- Requiresupgrade bool `json:"requiresupgrade"`
- Role string `json:"role"`
- Scriptsversion string `json:"scriptsversion"`
- Serviceofferingid string `json:"serviceofferingid"`
- Serviceofferingname string `json:"serviceofferingname"`
- State string `json:"state"`
- Templateid string `json:"templateid"`
- Version string `json:"version"`
- Vpcid string `json:"vpcid"`
- Vpcname string `json:"vpcname"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Dns1 string `json:"dns1"`
+ Dns2 string `json:"dns2"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Gateway string `json:"gateway"`
+ Guestipaddress string `json:"guestipaddress"`
+ Guestmacaddress string `json:"guestmacaddress"`
+ Guestnetmask string `json:"guestnetmask"`
+ Guestnetworkid string `json:"guestnetworkid"`
+ Guestnetworkname string `json:"guestnetworkname"`
+ Healthcheckresults []DestroyRouterResponseHealthcheckresults `json:"healthcheckresults"`
+ Healthchecksfailed bool `json:"healthchecksfailed"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ Ip6dns1 string `json:"ip6dns1"`
+ Ip6dns2 string `json:"ip6dns2"`
+ Isredundantrouter bool `json:"isredundantrouter"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Linklocalip string `json:"linklocalip"`
+ Linklocalmacaddress string `json:"linklocalmacaddress"`
+ Linklocalnetmask string `json:"linklocalnetmask"`
+ Linklocalnetworkid string `json:"linklocalnetworkid"`
+ Name string `json:"name"`
+ Networkdomain string `json:"networkdomain"`
+ Nic []Nic `json:"nic"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Publicip string `json:"publicip"`
+ Publicmacaddress string `json:"publicmacaddress"`
+ Publicnetmask string `json:"publicnetmask"`
+ Publicnetworkid string `json:"publicnetworkid"`
+ Redundantstate string `json:"redundantstate"`
+ Requiresupgrade bool `json:"requiresupgrade"`
+ Role string `json:"role"`
+ Scriptsversion string `json:"scriptsversion"`
+ Serviceofferingid string `json:"serviceofferingid"`
+ Serviceofferingname string `json:"serviceofferingname"`
+ State string `json:"state"`
+ Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
+ Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
+type DestroyRouterResponseHealthcheckresults struct {
+ Checkname string `json:"checkname"`
+ Checktype string `json:"checktype"`
+ Details string `json:"details"`
+ Lastupdated string `json:"lastupdated"`
+ Success bool `json:"success"`
}
type ListRoutersParams struct {
@@ -450,6 +474,10 @@ func (p *ListRoutersParams) toURLValues() url.Values {
if v, found := p.p["domainid"]; found {
u.Set("domainid", v.(string))
}
+ if v, found := p.p["fetchhealthcheckresults"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("fetchhealthcheckresults", vv)
+ }
if v, found := p.p["forvpc"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("forvpc", vv)
@@ -527,6 +555,13 @@ func (p *ListRoutersParams) SetDomainid(v string) {
p.p["domainid"] = v
}
+func (p *ListRoutersParams) SetFetchhealthcheckresults(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["fetchhealthcheckresults"] = v
+}
+
func (p *ListRoutersParams) SetForvpc(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -751,54 +786,66 @@ type ListRoutersResponse struct {
}
type Router struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Dns1 string `json:"dns1"`
- Dns2 string `json:"dns2"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Gateway string `json:"gateway"`
- Guestipaddress string `json:"guestipaddress"`
- Guestmacaddress string `json:"guestmacaddress"`
- Guestnetmask string `json:"guestnetmask"`
- Guestnetworkid string `json:"guestnetworkid"`
- Guestnetworkname string `json:"guestnetworkname"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- Hypervisor string `json:"hypervisor"`
- Id string `json:"id"`
- Ip6dns1 string `json:"ip6dns1"`
- Ip6dns2 string `json:"ip6dns2"`
- Isredundantrouter bool `json:"isredundantrouter"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Linklocalip string `json:"linklocalip"`
- Linklocalmacaddress string `json:"linklocalmacaddress"`
- Linklocalnetmask string `json:"linklocalnetmask"`
- Linklocalnetworkid string `json:"linklocalnetworkid"`
- Name string `json:"name"`
- Networkdomain string `json:"networkdomain"`
- Nic []Nic `json:"nic"`
- Podid string `json:"podid"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Publicip string `json:"publicip"`
- Publicmacaddress string `json:"publicmacaddress"`
- Publicnetmask string `json:"publicnetmask"`
- Publicnetworkid string `json:"publicnetworkid"`
- Redundantstate string `json:"redundantstate"`
- Requiresupgrade bool `json:"requiresupgrade"`
- Role string `json:"role"`
- Scriptsversion string `json:"scriptsversion"`
- Serviceofferingid string `json:"serviceofferingid"`
- Serviceofferingname string `json:"serviceofferingname"`
- State string `json:"state"`
- Templateid string `json:"templateid"`
- Version string `json:"version"`
- Vpcid string `json:"vpcid"`
- Vpcname string `json:"vpcname"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Dns1 string `json:"dns1"`
+ Dns2 string `json:"dns2"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Gateway string `json:"gateway"`
+ Guestipaddress string `json:"guestipaddress"`
+ Guestmacaddress string `json:"guestmacaddress"`
+ Guestnetmask string `json:"guestnetmask"`
+ Guestnetworkid string `json:"guestnetworkid"`
+ Guestnetworkname string `json:"guestnetworkname"`
+ Healthcheckresults []RouterHealthcheckresults `json:"healthcheckresults"`
+ Healthchecksfailed bool `json:"healthchecksfailed"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ Ip6dns1 string `json:"ip6dns1"`
+ Ip6dns2 string `json:"ip6dns2"`
+ Isredundantrouter bool `json:"isredundantrouter"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Linklocalip string `json:"linklocalip"`
+ Linklocalmacaddress string `json:"linklocalmacaddress"`
+ Linklocalnetmask string `json:"linklocalnetmask"`
+ Linklocalnetworkid string `json:"linklocalnetworkid"`
+ Name string `json:"name"`
+ Networkdomain string `json:"networkdomain"`
+ Nic []Nic `json:"nic"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Publicip string `json:"publicip"`
+ Publicmacaddress string `json:"publicmacaddress"`
+ Publicnetmask string `json:"publicnetmask"`
+ Publicnetworkid string `json:"publicnetworkid"`
+ Redundantstate string `json:"redundantstate"`
+ Requiresupgrade bool `json:"requiresupgrade"`
+ Role string `json:"role"`
+ Scriptsversion string `json:"scriptsversion"`
+ Serviceofferingid string `json:"serviceofferingid"`
+ Serviceofferingname string `json:"serviceofferingname"`
+ State string `json:"state"`
+ Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
+ Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
+type RouterHealthcheckresults struct {
+ Checkname string `json:"checkname"`
+ Checktype string `json:"checktype"`
+ Details string `json:"details"`
+ Lastupdated string `json:"lastupdated"`
+ Success bool `json:"success"`
}
type ListVirtualRouterElementsParams struct {
@@ -1017,54 +1064,66 @@ func (s *RouterService) RebootRouter(p *RebootRouterParams) (*RebootRouterRespon
}
type RebootRouterResponse struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Dns1 string `json:"dns1"`
- Dns2 string `json:"dns2"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Gateway string `json:"gateway"`
- Guestipaddress string `json:"guestipaddress"`
- Guestmacaddress string `json:"guestmacaddress"`
- Guestnetmask string `json:"guestnetmask"`
- Guestnetworkid string `json:"guestnetworkid"`
- Guestnetworkname string `json:"guestnetworkname"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- Hypervisor string `json:"hypervisor"`
- Id string `json:"id"`
- Ip6dns1 string `json:"ip6dns1"`
- Ip6dns2 string `json:"ip6dns2"`
- Isredundantrouter bool `json:"isredundantrouter"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Linklocalip string `json:"linklocalip"`
- Linklocalmacaddress string `json:"linklocalmacaddress"`
- Linklocalnetmask string `json:"linklocalnetmask"`
- Linklocalnetworkid string `json:"linklocalnetworkid"`
- Name string `json:"name"`
- Networkdomain string `json:"networkdomain"`
- Nic []Nic `json:"nic"`
- Podid string `json:"podid"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Publicip string `json:"publicip"`
- Publicmacaddress string `json:"publicmacaddress"`
- Publicnetmask string `json:"publicnetmask"`
- Publicnetworkid string `json:"publicnetworkid"`
- Redundantstate string `json:"redundantstate"`
- Requiresupgrade bool `json:"requiresupgrade"`
- Role string `json:"role"`
- Scriptsversion string `json:"scriptsversion"`
- Serviceofferingid string `json:"serviceofferingid"`
- Serviceofferingname string `json:"serviceofferingname"`
- State string `json:"state"`
- Templateid string `json:"templateid"`
- Version string `json:"version"`
- Vpcid string `json:"vpcid"`
- Vpcname string `json:"vpcname"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Dns1 string `json:"dns1"`
+ Dns2 string `json:"dns2"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Gateway string `json:"gateway"`
+ Guestipaddress string `json:"guestipaddress"`
+ Guestmacaddress string `json:"guestmacaddress"`
+ Guestnetmask string `json:"guestnetmask"`
+ Guestnetworkid string `json:"guestnetworkid"`
+ Guestnetworkname string `json:"guestnetworkname"`
+ Healthcheckresults []RebootRouterResponseHealthcheckresults `json:"healthcheckresults"`
+ Healthchecksfailed bool `json:"healthchecksfailed"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ Ip6dns1 string `json:"ip6dns1"`
+ Ip6dns2 string `json:"ip6dns2"`
+ Isredundantrouter bool `json:"isredundantrouter"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Linklocalip string `json:"linklocalip"`
+ Linklocalmacaddress string `json:"linklocalmacaddress"`
+ Linklocalnetmask string `json:"linklocalnetmask"`
+ Linklocalnetworkid string `json:"linklocalnetworkid"`
+ Name string `json:"name"`
+ Networkdomain string `json:"networkdomain"`
+ Nic []Nic `json:"nic"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Publicip string `json:"publicip"`
+ Publicmacaddress string `json:"publicmacaddress"`
+ Publicnetmask string `json:"publicnetmask"`
+ Publicnetworkid string `json:"publicnetworkid"`
+ Redundantstate string `json:"redundantstate"`
+ Requiresupgrade bool `json:"requiresupgrade"`
+ Role string `json:"role"`
+ Scriptsversion string `json:"scriptsversion"`
+ Serviceofferingid string `json:"serviceofferingid"`
+ Serviceofferingname string `json:"serviceofferingname"`
+ State string `json:"state"`
+ Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
+ Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
+type RebootRouterResponseHealthcheckresults struct {
+ Checkname string `json:"checkname"`
+ Checktype string `json:"checktype"`
+ Details string `json:"details"`
+ Lastupdated string `json:"lastupdated"`
+ Success bool `json:"success"`
}
type StartRouterParams struct {
@@ -1134,54 +1193,66 @@ func (s *RouterService) StartRouter(p *StartRouterParams) (*StartRouterResponse,
}
type StartRouterResponse struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Dns1 string `json:"dns1"`
- Dns2 string `json:"dns2"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Gateway string `json:"gateway"`
- Guestipaddress string `json:"guestipaddress"`
- Guestmacaddress string `json:"guestmacaddress"`
- Guestnetmask string `json:"guestnetmask"`
- Guestnetworkid string `json:"guestnetworkid"`
- Guestnetworkname string `json:"guestnetworkname"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- Hypervisor string `json:"hypervisor"`
- Id string `json:"id"`
- Ip6dns1 string `json:"ip6dns1"`
- Ip6dns2 string `json:"ip6dns2"`
- Isredundantrouter bool `json:"isredundantrouter"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Linklocalip string `json:"linklocalip"`
- Linklocalmacaddress string `json:"linklocalmacaddress"`
- Linklocalnetmask string `json:"linklocalnetmask"`
- Linklocalnetworkid string `json:"linklocalnetworkid"`
- Name string `json:"name"`
- Networkdomain string `json:"networkdomain"`
- Nic []Nic `json:"nic"`
- Podid string `json:"podid"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Publicip string `json:"publicip"`
- Publicmacaddress string `json:"publicmacaddress"`
- Publicnetmask string `json:"publicnetmask"`
- Publicnetworkid string `json:"publicnetworkid"`
- Redundantstate string `json:"redundantstate"`
- Requiresupgrade bool `json:"requiresupgrade"`
- Role string `json:"role"`
- Scriptsversion string `json:"scriptsversion"`
- Serviceofferingid string `json:"serviceofferingid"`
- Serviceofferingname string `json:"serviceofferingname"`
- State string `json:"state"`
- Templateid string `json:"templateid"`
- Version string `json:"version"`
- Vpcid string `json:"vpcid"`
- Vpcname string `json:"vpcname"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Dns1 string `json:"dns1"`
+ Dns2 string `json:"dns2"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Gateway string `json:"gateway"`
+ Guestipaddress string `json:"guestipaddress"`
+ Guestmacaddress string `json:"guestmacaddress"`
+ Guestnetmask string `json:"guestnetmask"`
+ Guestnetworkid string `json:"guestnetworkid"`
+ Guestnetworkname string `json:"guestnetworkname"`
+ Healthcheckresults []StartRouterResponseHealthcheckresults `json:"healthcheckresults"`
+ Healthchecksfailed bool `json:"healthchecksfailed"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ Ip6dns1 string `json:"ip6dns1"`
+ Ip6dns2 string `json:"ip6dns2"`
+ Isredundantrouter bool `json:"isredundantrouter"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Linklocalip string `json:"linklocalip"`
+ Linklocalmacaddress string `json:"linklocalmacaddress"`
+ Linklocalnetmask string `json:"linklocalnetmask"`
+ Linklocalnetworkid string `json:"linklocalnetworkid"`
+ Name string `json:"name"`
+ Networkdomain string `json:"networkdomain"`
+ Nic []Nic `json:"nic"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Publicip string `json:"publicip"`
+ Publicmacaddress string `json:"publicmacaddress"`
+ Publicnetmask string `json:"publicnetmask"`
+ Publicnetworkid string `json:"publicnetworkid"`
+ Redundantstate string `json:"redundantstate"`
+ Requiresupgrade bool `json:"requiresupgrade"`
+ Role string `json:"role"`
+ Scriptsversion string `json:"scriptsversion"`
+ Serviceofferingid string `json:"serviceofferingid"`
+ Serviceofferingname string `json:"serviceofferingname"`
+ State string `json:"state"`
+ Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
+ Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
+type StartRouterResponseHealthcheckresults struct {
+ Checkname string `json:"checkname"`
+ Checktype string `json:"checktype"`
+ Details string `json:"details"`
+ Lastupdated string `json:"lastupdated"`
+ Success bool `json:"success"`
}
type StopRouterParams struct {
@@ -1262,52 +1333,64 @@ func (s *RouterService) StopRouter(p *StopRouterParams) (*StopRouterResponse, er
}
type StopRouterResponse struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Dns1 string `json:"dns1"`
- Dns2 string `json:"dns2"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Gateway string `json:"gateway"`
- Guestipaddress string `json:"guestipaddress"`
- Guestmacaddress string `json:"guestmacaddress"`
- Guestnetmask string `json:"guestnetmask"`
- Guestnetworkid string `json:"guestnetworkid"`
- Guestnetworkname string `json:"guestnetworkname"`
- Hostid string `json:"hostid"`
- Hostname string `json:"hostname"`
- Hypervisor string `json:"hypervisor"`
- Id string `json:"id"`
- Ip6dns1 string `json:"ip6dns1"`
- Ip6dns2 string `json:"ip6dns2"`
- Isredundantrouter bool `json:"isredundantrouter"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Linklocalip string `json:"linklocalip"`
- Linklocalmacaddress string `json:"linklocalmacaddress"`
- Linklocalnetmask string `json:"linklocalnetmask"`
- Linklocalnetworkid string `json:"linklocalnetworkid"`
- Name string `json:"name"`
- Networkdomain string `json:"networkdomain"`
- Nic []Nic `json:"nic"`
- Podid string `json:"podid"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Publicip string `json:"publicip"`
- Publicmacaddress string `json:"publicmacaddress"`
- Publicnetmask string `json:"publicnetmask"`
- Publicnetworkid string `json:"publicnetworkid"`
- Redundantstate string `json:"redundantstate"`
- Requiresupgrade bool `json:"requiresupgrade"`
- Role string `json:"role"`
- Scriptsversion string `json:"scriptsversion"`
- Serviceofferingid string `json:"serviceofferingid"`
- Serviceofferingname string `json:"serviceofferingname"`
- State string `json:"state"`
- Templateid string `json:"templateid"`
- Version string `json:"version"`
- Vpcid string `json:"vpcid"`
- Vpcname string `json:"vpcname"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Dns1 string `json:"dns1"`
+ Dns2 string `json:"dns2"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Gateway string `json:"gateway"`
+ Guestipaddress string `json:"guestipaddress"`
+ Guestmacaddress string `json:"guestmacaddress"`
+ Guestnetmask string `json:"guestnetmask"`
+ Guestnetworkid string `json:"guestnetworkid"`
+ Guestnetworkname string `json:"guestnetworkname"`
+ Healthcheckresults []StopRouterResponseHealthcheckresults `json:"healthcheckresults"`
+ Healthchecksfailed bool `json:"healthchecksfailed"`
+ Hostid string `json:"hostid"`
+ Hostname string `json:"hostname"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ Ip6dns1 string `json:"ip6dns1"`
+ Ip6dns2 string `json:"ip6dns2"`
+ Isredundantrouter bool `json:"isredundantrouter"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Linklocalip string `json:"linklocalip"`
+ Linklocalmacaddress string `json:"linklocalmacaddress"`
+ Linklocalnetmask string `json:"linklocalnetmask"`
+ Linklocalnetworkid string `json:"linklocalnetworkid"`
+ Name string `json:"name"`
+ Networkdomain string `json:"networkdomain"`
+ Nic []Nic `json:"nic"`
+ Podid string `json:"podid"`
+ Podname string `json:"podname"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Publicip string `json:"publicip"`
+ Publicmacaddress string `json:"publicmacaddress"`
+ Publicnetmask string `json:"publicnetmask"`
+ Publicnetworkid string `json:"publicnetworkid"`
+ Redundantstate string `json:"redundantstate"`
+ Requiresupgrade bool `json:"requiresupgrade"`
+ Role string `json:"role"`
+ Scriptsversion string `json:"scriptsversion"`
+ Serviceofferingid string `json:"serviceofferingid"`
+ Serviceofferingname string `json:"serviceofferingname"`
+ State string `json:"state"`
+ Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
+ Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
+}
+
+type StopRouterResponseHealthcheckresults struct {
+ Checkname string `json:"checkname"`
+ Checktype string `json:"checktype"`
+ Details string `json:"details"`
+ Lastupdated string `json:"lastupdated"`
+ Success bool `json:"success"`
}
diff --git a/cloudstack/SSHService.go b/cloudstack/SSHService.go
index c10826e..7469c9f 100644
--- a/cloudstack/SSHService.go
+++ b/cloudstack/SSHService.go
@@ -591,6 +591,10 @@ func (s *SSHService) ResetSSHKeyForVirtualMachine(p *ResetSSHKeyForVirtualMachin
type ResetSSHKeyForVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []ResetSSHKeyForVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -631,6 +635,7 @@ type ResetSSHKeyForVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -638,6 +643,7 @@ type ResetSSHKeyForVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []ResetSSHKeyForVirtualMachineResponseSecuritygroup `json:"securitygroup"`
diff --git a/cloudstack/ServiceOfferingService.go b/cloudstack/ServiceOfferingService.go
index c60ed30..d9abdd4 100644
--- a/cloudstack/ServiceOfferingService.go
+++ b/cloudstack/ServiceOfferingService.go
@@ -60,6 +60,9 @@ func (p *CreateServiceOfferingParams) toURLValues() url.Values {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("byteswriteratemaxlength", vv)
}
+ if v, found := p.p["cachemode"]; found {
+ u.Set("cachemode", v.(string))
+ }
if v, found := p.p["cpunumber"]; found {
vv := strconv.Itoa(v.(int))
u.Set("cpunumber", vv)
@@ -68,6 +71,10 @@ func (p *CreateServiceOfferingParams) toURLValues() url.Values {
vv := strconv.Itoa(v.(int))
u.Set("cpuspeed", vv)
}
+ if v, found := p.p["customized"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("customized", vv)
+ }
if v, found := p.p["customizediops"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("customizediops", vv)
@@ -79,7 +86,8 @@ func (p *CreateServiceOfferingParams) toURLValues() url.Values {
u.Set("displaytext", v.(string))
}
if v, found := p.p["domainid"]; found {
- u.Set("domainid", v.(string))
+ vv := strings.Join(v.([]string), ",")
+ u.Set("domainid", vv)
}
if v, found := p.p["hosttags"]; found {
u.Set("hosttags", v.(string))
@@ -124,18 +132,34 @@ func (p *CreateServiceOfferingParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("limitcpuuse", vv)
}
+ if v, found := p.p["maxcpunumber"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("maxcpunumber", vv)
+ }
if v, found := p.p["maxiops"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("maxiops", vv)
}
+ if v, found := p.p["maxmemory"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("maxmemory", vv)
+ }
if v, found := p.p["memory"]; found {
vv := strconv.Itoa(v.(int))
u.Set("memory", vv)
}
+ if v, found := p.p["mincpunumber"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("mincpunumber", vv)
+ }
if v, found := p.p["miniops"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("miniops", vv)
}
+ if v, found := p.p["minmemory"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("minmemory", vv)
+ }
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
@@ -150,6 +174,10 @@ func (p *CreateServiceOfferingParams) toURLValues() url.Values {
if v, found := p.p["provisioningtype"]; found {
u.Set("provisioningtype", v.(string))
}
+ if v, found := p.p["rootdisksize"]; found {
+ vv := strconv.FormatInt(v.(int64), 10)
+ u.Set("rootdisksize", vv)
+ }
if v, found := p.p["serviceofferingdetails"]; found {
m := v.(map[string]string)
for i, k := range getSortedKeysFromMap(m) {
@@ -157,6 +185,9 @@ func (p *CreateServiceOfferingParams) toURLValues() url.Values {
u.Set(fmt.Sprintf("serviceofferingdetails[%d].value", i), m[k])
}
}
+ if v, found := p.p["storagepolicy"]; found {
+ u.Set("storagepolicy", v.(string))
+ }
if v, found := p.p["storagetype"]; found {
u.Set("storagetype", v.(string))
}
@@ -166,6 +197,10 @@ func (p *CreateServiceOfferingParams) toURLValues() url.Values {
if v, found := p.p["tags"]; found {
u.Set("tags", v.(string))
}
+ if v, found := p.p["zoneid"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("zoneid", vv)
+ }
return u
}
@@ -211,6 +246,13 @@ func (p *CreateServiceOfferingParams) SetByteswriteratemaxlength(v int64) {
p.p["byteswriteratemaxlength"] = v
}
+func (p *CreateServiceOfferingParams) SetCachemode(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["cachemode"] = v
+}
+
func (p *CreateServiceOfferingParams) SetCpunumber(v int) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -225,6 +267,13 @@ func (p *CreateServiceOfferingParams) SetCpuspeed(v int) {
p.p["cpuspeed"] = v
}
+func (p *CreateServiceOfferingParams) SetCustomized(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["customized"] = v
+}
+
func (p *CreateServiceOfferingParams) SetCustomizediops(v bool) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -246,7 +295,7 @@ func (p *CreateServiceOfferingParams) SetDisplaytext(v string) {
p.p["displaytext"] = v
}
-func (p *CreateServiceOfferingParams) SetDomainid(v string) {
+func (p *CreateServiceOfferingParams) SetDomainid(v []string) {
if p.p == nil {
p.p = make(map[string]interface{})
}
@@ -330,6 +379,13 @@ func (p *CreateServiceOfferingParams) SetLimitcpuuse(v bool) {
p.p["limitcpuuse"] = v
}
+func (p *CreateServiceOfferingParams) SetMaxcpunumber(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["maxcpunumber"] = v
+}
+
func (p *CreateServiceOfferingParams) SetMaxiops(v int64) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -337,6 +393,13 @@ func (p *CreateServiceOfferingParams) SetMaxiops(v int64) {
p.p["maxiops"] = v
}
+func (p *CreateServiceOfferingParams) SetMaxmemory(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["maxmemory"] = v
+}
+
func (p *CreateServiceOfferingParams) SetMemory(v int) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -344,6 +407,13 @@ func (p *CreateServiceOfferingParams) SetMemory(v int) {
p.p["memory"] = v
}
+func (p *CreateServiceOfferingParams) SetMincpunumber(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["mincpunumber"] = v
+}
+
func (p *CreateServiceOfferingParams) SetMiniops(v int64) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -351,6 +421,13 @@ func (p *CreateServiceOfferingParams) SetMiniops(v int64) {
p.p["miniops"] = v
}
+func (p *CreateServiceOfferingParams) SetMinmemory(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["minmemory"] = v
+}
+
func (p *CreateServiceOfferingParams) SetName(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -379,6 +456,13 @@ func (p *CreateServiceOfferingParams) SetProvisioningtype(v string) {
p.p["provisioningtype"] = v
}
+func (p *CreateServiceOfferingParams) SetRootdisksize(v int64) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["rootdisksize"] = v
+}
+
func (p *CreateServiceOfferingParams) SetServiceofferingdetails(v map[string]string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -386,6 +470,13 @@ func (p *CreateServiceOfferingParams) SetServiceofferingdetails(v map[string]str
p.p["serviceofferingdetails"] = v
}
+func (p *CreateServiceOfferingParams) SetStoragepolicy(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["storagepolicy"] = v
+}
+
func (p *CreateServiceOfferingParams) SetStoragetype(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -407,6 +498,13 @@ func (p *CreateServiceOfferingParams) SetTags(v string) {
p.p["tags"] = v
}
+func (p *CreateServiceOfferingParams) SetZoneid(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new CreateServiceOfferingParams instance,
// as then you are sure you have configured all required params
func (s *ServiceOfferingService) NewCreateServiceOfferingParams(displaytext string, name string) *CreateServiceOfferingParams {
@@ -437,6 +535,7 @@ func (s *ServiceOfferingService) CreateServiceOffering(p *CreateServiceOfferingP
}
type CreateServiceOfferingResponse struct {
+ CacheMode string `json:"cacheMode"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Created string `json:"created"`
@@ -474,10 +573,14 @@ type CreateServiceOfferingResponse struct {
Networkrate int `json:"networkrate"`
Offerha bool `json:"offerha"`
Provisioningtype string `json:"provisioningtype"`
+ Rootdisksize int64 `json:"rootdisksize"`
Serviceofferingdetails map[string]string `json:"serviceofferingdetails"`
Storagetype string `json:"storagetype"`
Systemvmtype string `json:"systemvmtype"`
Tags string `json:"tags"`
+ Vspherestoragepolicy string `json:"vspherestoragepolicy"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type DeleteServiceOfferingParams struct {
@@ -569,6 +672,14 @@ func (p *ListServiceOfferingsParams) toURLValues() url.Values {
if p.p == nil {
return u
}
+ if v, found := p.p["cpunumber"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("cpunumber", vv)
+ }
+ if v, found := p.p["cpuspeed"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("cpuspeed", vv)
+ }
if v, found := p.p["domainid"]; found {
u.Set("domainid", v.(string))
}
@@ -590,6 +701,10 @@ func (p *ListServiceOfferingsParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("listall", vv)
}
+ if v, found := p.p["memory"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("memory", vv)
+ }
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
@@ -607,9 +722,26 @@ func (p *ListServiceOfferingsParams) toURLValues() url.Values {
if v, found := p.p["virtualmachineid"]; found {
u.Set("virtualmachineid", v.(string))
}
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
return u
}
+func (p *ListServiceOfferingsParams) SetCpunumber(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["cpunumber"] = v
+}
+
+func (p *ListServiceOfferingsParams) SetCpuspeed(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["cpuspeed"] = v
+}
+
func (p *ListServiceOfferingsParams) SetDomainid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -652,6 +784,13 @@ func (p *ListServiceOfferingsParams) SetListall(v bool) {
p.p["listall"] = v
}
+func (p *ListServiceOfferingsParams) SetMemory(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["memory"] = v
+}
+
func (p *ListServiceOfferingsParams) SetName(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -687,6 +826,13 @@ func (p *ListServiceOfferingsParams) SetVirtualmachineid(v string) {
p.p["virtualmachineid"] = v
}
+func (p *ListServiceOfferingsParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new ListServiceOfferingsParams instance,
// as then you are sure you have configured all required params
func (s *ServiceOfferingService) NewListServiceOfferingsParams() *ListServiceOfferingsParams {
@@ -799,6 +945,7 @@ type ListServiceOfferingsResponse struct {
}
type ServiceOffering struct {
+ CacheMode string `json:"cacheMode"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Created string `json:"created"`
@@ -836,10 +983,14 @@ type ServiceOffering struct {
Networkrate int `json:"networkrate"`
Offerha bool `json:"offerha"`
Provisioningtype string `json:"provisioningtype"`
+ Rootdisksize int64 `json:"rootdisksize"`
Serviceofferingdetails map[string]string `json:"serviceofferingdetails"`
Storagetype string `json:"storagetype"`
Systemvmtype string `json:"systemvmtype"`
Tags string `json:"tags"`
+ Vspherestoragepolicy string `json:"vspherestoragepolicy"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type UpdateServiceOfferingParams struct {
@@ -854,6 +1005,9 @@ func (p *UpdateServiceOfferingParams) toURLValues() url.Values {
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", 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))
}
@@ -864,6 +1018,9 @@ func (p *UpdateServiceOfferingParams) toURLValues() url.Values {
vv := strconv.Itoa(v.(int))
u.Set("sortkey", vv)
}
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
return u
}
@@ -874,6 +1031,13 @@ func (p *UpdateServiceOfferingParams) SetDisplaytext(v string) {
p.p["displaytext"] = v
}
+func (p *UpdateServiceOfferingParams) SetDomainid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
func (p *UpdateServiceOfferingParams) SetId(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -895,6 +1059,13 @@ func (p *UpdateServiceOfferingParams) SetSortkey(v int) {
p.p["sortkey"] = v
}
+func (p *UpdateServiceOfferingParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new UpdateServiceOfferingParams instance,
// as then you are sure you have configured all required params
func (s *ServiceOfferingService) NewUpdateServiceOfferingParams(id string) *UpdateServiceOfferingParams {
@@ -920,6 +1091,7 @@ func (s *ServiceOfferingService) UpdateServiceOffering(p *UpdateServiceOfferingP
}
type UpdateServiceOfferingResponse struct {
+ CacheMode string `json:"cacheMode"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Created string `json:"created"`
@@ -957,8 +1129,12 @@ type UpdateServiceOfferingResponse struct {
Networkrate int `json:"networkrate"`
Offerha bool `json:"offerha"`
Provisioningtype string `json:"provisioningtype"`
+ Rootdisksize int64 `json:"rootdisksize"`
Serviceofferingdetails map[string]string `json:"serviceofferingdetails"`
Storagetype string `json:"storagetype"`
Systemvmtype string `json:"systemvmtype"`
Tags string `json:"tags"`
+ Vspherestoragepolicy string `json:"vspherestoragepolicy"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
diff --git a/cloudstack/SnapshotService.go b/cloudstack/SnapshotService.go
index 671334b..fb80361 100644
--- a/cloudstack/SnapshotService.go
+++ b/cloudstack/SnapshotService.go
@@ -59,6 +59,13 @@ func (p *CreateSnapshotParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("quiescevm", vv)
}
+ if v, found := p.p["tags"]; found {
+ m := v.(map[string]string)
+ for i, k := range getSortedKeysFromMap(m) {
+ u.Set(fmt.Sprintf("tags[%d].key", i), k)
+ u.Set(fmt.Sprintf("tags[%d].value", i), m[k])
+ }
+ }
if v, found := p.p["volumeid"]; found {
u.Set("volumeid", v.(string))
}
@@ -114,6 +121,13 @@ func (p *CreateSnapshotParams) SetQuiescevm(v bool) {
p.p["quiescevm"] = v
}
+func (p *CreateSnapshotParams) SetTags(v map[string]string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["tags"] = v
+}
+
func (p *CreateSnapshotParams) SetVolumeid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -242,6 +256,13 @@ func (p *CreateSnapshotPolicyParams) toURLValues() url.Values {
if v, found := p.p["schedule"]; found {
u.Set("schedule", v.(string))
}
+ if v, found := p.p["tags"]; found {
+ m := v.(map[string]string)
+ for i, k := range getSortedKeysFromMap(m) {
+ u.Set(fmt.Sprintf("tags[%d].key", i), k)
+ u.Set(fmt.Sprintf("tags[%d].value", i), m[k])
+ }
+ }
if v, found := p.p["timezone"]; found {
u.Set("timezone", v.(string))
}
@@ -279,6 +300,13 @@ func (p *CreateSnapshotPolicyParams) SetSchedule(v string) {
p.p["schedule"] = v
}
+func (p *CreateSnapshotPolicyParams) SetTags(v map[string]string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["tags"] = v
+}
+
func (p *CreateSnapshotPolicyParams) SetTimezone(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -329,6 +357,7 @@ type CreateSnapshotPolicyResponse struct {
Jobstatus int `json:"jobstatus"`
Maxsnaps int `json:"maxsnaps"`
Schedule string `json:"schedule"`
+ Tags []Tags `json:"tags"`
Timezone string `json:"timezone"`
Volumeid string `json:"volumeid"`
}
@@ -442,25 +471,29 @@ func (s *SnapshotService) CreateVMSnapshot(p *CreateVMSnapshotParams) (*CreateVM
}
type CreateVMSnapshotResponse struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Current bool `json:"current"`
- Description string `json:"description"`
- Displayname string `json:"displayname"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Parent string `json:"parent"`
- ParentName string `json:"parentName"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- State string `json:"state"`
- Type string `json:"type"`
- Virtualmachineid string `json:"virtualmachineid"`
- Zoneid string `json:"zoneid"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Current bool `json:"current"`
+ Description string `json:"description"`
+ Displayname string `json:"displayname"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Parent string `json:"parent"`
+ ParentName string `json:"parentName"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ State string `json:"state"`
+ Tags []Tags `json:"tags"`
+ Type string `json:"type"`
+ Virtualmachineid string `json:"virtualmachineid"`
+ Virtualmachinename string `json:"virtualmachinename"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type DeleteSnapshotParams struct {
@@ -833,6 +866,7 @@ type SnapshotPolicy struct {
Jobstatus int `json:"jobstatus"`
Maxsnaps int `json:"maxsnaps"`
Schedule string `json:"schedule"`
+ Tags []Tags `json:"tags"`
Timezone string `json:"timezone"`
Volumeid string `json:"volumeid"`
}
@@ -1409,25 +1443,29 @@ type ListVMSnapshotResponse struct {
}
type VMSnapshot struct {
- Account string `json:"account"`
- Created string `json:"created"`
- Current bool `json:"current"`
- Description string `json:"description"`
- Displayname string `json:"displayname"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Parent string `json:"parent"`
- ParentName string `json:"parentName"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- State string `json:"state"`
- Type string `json:"type"`
- Virtualmachineid string `json:"virtualmachineid"`
- Zoneid string `json:"zoneid"`
+ Account string `json:"account"`
+ Created string `json:"created"`
+ Current bool `json:"current"`
+ Description string `json:"description"`
+ Displayname string `json:"displayname"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Hypervisor string `json:"hypervisor"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Parent string `json:"parent"`
+ ParentName string `json:"parentName"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ State string `json:"state"`
+ Tags []Tags `json:"tags"`
+ Type string `json:"type"`
+ Virtualmachineid string `json:"virtualmachineid"`
+ Virtualmachinename string `json:"virtualmachinename"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type RevertSnapshotParams struct {
@@ -1619,6 +1657,10 @@ func (s *SnapshotService) RevertToVMSnapshot(p *RevertToVMSnapshotParams) (*Reve
type RevertToVMSnapshotResponse struct {
Account string `json:"account"`
Affinitygroup []RevertToVMSnapshotResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -1659,6 +1701,7 @@ type RevertToVMSnapshotResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -1666,6 +1709,7 @@ type RevertToVMSnapshotResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []RevertToVMSnapshotResponseSecuritygroup `json:"securitygroup"`
@@ -1847,6 +1891,7 @@ type UpdateSnapshotPolicyResponse struct {
Jobstatus int `json:"jobstatus"`
Maxsnaps int `json:"maxsnaps"`
Schedule string `json:"schedule"`
+ Tags []Tags `json:"tags"`
Timezone string `json:"timezone"`
Volumeid string `json:"volumeid"`
}
diff --git a/cloudstack/SwiftService.go b/cloudstack/SwiftService.go
index 8b659cd..92f6373 100644
--- a/cloudstack/SwiftService.go
+++ b/cloudstack/SwiftService.go
@@ -103,16 +103,19 @@ func (s *SwiftService) AddSwift(p *AddSwiftParams) (*AddSwiftResponse, error) {
}
type AddSwiftResponse struct {
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Protocol string `json:"protocol"`
- Providername string `json:"providername"`
- Scope string `json:"scope"`
- Url string `json:"url"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Disksizeused int64 `json:"disksizeused"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Protocol string `json:"protocol"`
+ Providername string `json:"providername"`
+ Readonly bool `json:"readonly"`
+ Scope string `json:"scope"`
+ Url string `json:"url"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
type ListSwiftsParams struct {
@@ -235,14 +238,17 @@ type ListSwiftsResponse struct {
}
type Swift struct {
- Id string `json:"id"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Protocol string `json:"protocol"`
- Providername string `json:"providername"`
- Scope string `json:"scope"`
- Url string `json:"url"`
- Zoneid string `json:"zoneid"`
- Zonename string `json:"zonename"`
+ Disksizetotal int64 `json:"disksizetotal"`
+ Disksizeused int64 `json:"disksizeused"`
+ Id string `json:"id"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Protocol string `json:"protocol"`
+ Providername string `json:"providername"`
+ Readonly bool `json:"readonly"`
+ Scope string `json:"scope"`
+ Url string `json:"url"`
+ Zoneid string `json:"zoneid"`
+ Zonename string `json:"zonename"`
}
diff --git a/cloudstack/SystemVMService.go b/cloudstack/SystemVMService.go
index 7d58f36..895ef22 100644
--- a/cloudstack/SystemVMService.go
+++ b/cloudstack/SystemVMService.go
@@ -99,7 +99,9 @@ func (s *SystemVMService) ChangeServiceForSystemVm(p *ChangeServiceForSystemVmPa
type ChangeServiceForSystemVmResponse struct {
Activeviewersessions int `json:"activeviewersessions"`
+ Agentstate string `json:"agentstate"`
Created string `json:"created"`
+ Disconnected string `json:"disconnected"`
Dns1 string `json:"dns1"`
Dns2 string `json:"dns2"`
Gateway string `json:"gateway"`
@@ -116,6 +118,7 @@ type ChangeServiceForSystemVmResponse struct {
Name string `json:"name"`
Networkdomain string `json:"networkdomain"`
Podid string `json:"podid"`
+ Podname string `json:"podname"`
Privateip string `json:"privateip"`
Privatemacaddress string `json:"privatemacaddress"`
Privatenetmask string `json:"privatenetmask"`
@@ -126,6 +129,8 @@ type ChangeServiceForSystemVmResponse struct {
State string `json:"state"`
Systemvmtype string `json:"systemvmtype"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -198,7 +203,9 @@ func (s *SystemVMService) DestroySystemVm(p *DestroySystemVmParams) (*DestroySys
type DestroySystemVmResponse struct {
Activeviewersessions int `json:"activeviewersessions"`
+ Agentstate string `json:"agentstate"`
Created string `json:"created"`
+ Disconnected string `json:"disconnected"`
Dns1 string `json:"dns1"`
Dns2 string `json:"dns2"`
Gateway string `json:"gateway"`
@@ -215,6 +222,7 @@ type DestroySystemVmResponse struct {
Name string `json:"name"`
Networkdomain string `json:"networkdomain"`
Podid string `json:"podid"`
+ Podname string `json:"podname"`
Privateip string `json:"privateip"`
Privatemacaddress string `json:"privatemacaddress"`
Privatenetmask string `json:"privatenetmask"`
@@ -225,6 +233,8 @@ type DestroySystemVmResponse struct {
State string `json:"state"`
Systemvmtype string `json:"systemvmtype"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -466,7 +476,9 @@ type ListSystemVmsResponse struct {
type SystemVm struct {
Activeviewersessions int `json:"activeviewersessions"`
+ Agentstate string `json:"agentstate"`
Created string `json:"created"`
+ Disconnected string `json:"disconnected"`
Dns1 string `json:"dns1"`
Dns2 string `json:"dns2"`
Gateway string `json:"gateway"`
@@ -483,6 +495,7 @@ type SystemVm struct {
Name string `json:"name"`
Networkdomain string `json:"networkdomain"`
Podid string `json:"podid"`
+ Podname string `json:"podname"`
Privateip string `json:"privateip"`
Privatemacaddress string `json:"privatemacaddress"`
Privatenetmask string `json:"privatenetmask"`
@@ -493,6 +506,8 @@ type SystemVm struct {
State string `json:"state"`
Systemvmtype string `json:"systemvmtype"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -576,7 +591,9 @@ func (s *SystemVMService) MigrateSystemVm(p *MigrateSystemVmParams) (*MigrateSys
type MigrateSystemVmResponse struct {
Activeviewersessions int `json:"activeviewersessions"`
+ Agentstate string `json:"agentstate"`
Created string `json:"created"`
+ Disconnected string `json:"disconnected"`
Dns1 string `json:"dns1"`
Dns2 string `json:"dns2"`
Gateway string `json:"gateway"`
@@ -593,6 +610,7 @@ type MigrateSystemVmResponse struct {
Name string `json:"name"`
Networkdomain string `json:"networkdomain"`
Podid string `json:"podid"`
+ Podname string `json:"podname"`
Privateip string `json:"privateip"`
Privatemacaddress string `json:"privatemacaddress"`
Privatenetmask string `json:"privatenetmask"`
@@ -603,6 +621,8 @@ type MigrateSystemVmResponse struct {
State string `json:"state"`
Systemvmtype string `json:"systemvmtype"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -675,7 +695,9 @@ func (s *SystemVMService) RebootSystemVm(p *RebootSystemVmParams) (*RebootSystem
type RebootSystemVmResponse struct {
Activeviewersessions int `json:"activeviewersessions"`
+ Agentstate string `json:"agentstate"`
Created string `json:"created"`
+ Disconnected string `json:"disconnected"`
Dns1 string `json:"dns1"`
Dns2 string `json:"dns2"`
Gateway string `json:"gateway"`
@@ -692,6 +714,7 @@ type RebootSystemVmResponse struct {
Name string `json:"name"`
Networkdomain string `json:"networkdomain"`
Podid string `json:"podid"`
+ Podname string `json:"podname"`
Privateip string `json:"privateip"`
Privatemacaddress string `json:"privatemacaddress"`
Privatenetmask string `json:"privatenetmask"`
@@ -702,6 +725,8 @@ type RebootSystemVmResponse struct {
State string `json:"state"`
Systemvmtype string `json:"systemvmtype"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -798,7 +823,9 @@ func (s *SystemVMService) ScaleSystemVm(p *ScaleSystemVmParams) (*ScaleSystemVmR
type ScaleSystemVmResponse struct {
Activeviewersessions int `json:"activeviewersessions"`
+ Agentstate string `json:"agentstate"`
Created string `json:"created"`
+ Disconnected string `json:"disconnected"`
Dns1 string `json:"dns1"`
Dns2 string `json:"dns2"`
Gateway string `json:"gateway"`
@@ -815,6 +842,7 @@ type ScaleSystemVmResponse struct {
Name string `json:"name"`
Networkdomain string `json:"networkdomain"`
Podid string `json:"podid"`
+ Podname string `json:"podname"`
Privateip string `json:"privateip"`
Privatemacaddress string `json:"privatemacaddress"`
Privatenetmask string `json:"privatenetmask"`
@@ -825,6 +853,8 @@ type ScaleSystemVmResponse struct {
State string `json:"state"`
Systemvmtype string `json:"systemvmtype"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -897,7 +927,9 @@ func (s *SystemVMService) StartSystemVm(p *StartSystemVmParams) (*StartSystemVmR
type StartSystemVmResponse struct {
Activeviewersessions int `json:"activeviewersessions"`
+ Agentstate string `json:"agentstate"`
Created string `json:"created"`
+ Disconnected string `json:"disconnected"`
Dns1 string `json:"dns1"`
Dns2 string `json:"dns2"`
Gateway string `json:"gateway"`
@@ -914,6 +946,7 @@ type StartSystemVmResponse struct {
Name string `json:"name"`
Networkdomain string `json:"networkdomain"`
Podid string `json:"podid"`
+ Podname string `json:"podname"`
Privateip string `json:"privateip"`
Privatemacaddress string `json:"privatemacaddress"`
Privatenetmask string `json:"privatenetmask"`
@@ -924,6 +957,8 @@ type StartSystemVmResponse struct {
State string `json:"state"`
Systemvmtype string `json:"systemvmtype"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -1007,7 +1042,9 @@ func (s *SystemVMService) StopSystemVm(p *StopSystemVmParams) (*StopSystemVmResp
type StopSystemVmResponse struct {
Activeviewersessions int `json:"activeviewersessions"`
+ Agentstate string `json:"agentstate"`
Created string `json:"created"`
+ Disconnected string `json:"disconnected"`
Dns1 string `json:"dns1"`
Dns2 string `json:"dns2"`
Gateway string `json:"gateway"`
@@ -1024,6 +1061,7 @@ type StopSystemVmResponse struct {
Name string `json:"name"`
Networkdomain string `json:"networkdomain"`
Podid string `json:"podid"`
+ Podname string `json:"podname"`
Privateip string `json:"privateip"`
Privatemacaddress string `json:"privatemacaddress"`
Privatenetmask string `json:"privatenetmask"`
@@ -1034,6 +1072,8 @@ type StopSystemVmResponse struct {
State string `json:"state"`
Systemvmtype string `json:"systemvmtype"`
Templateid string `json:"templateid"`
+ Templatename string `json:"templatename"`
+ Version string `json:"version"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
diff --git a/cloudstack/TemplateService.go b/cloudstack/TemplateService.go
index 4cf2057..30198aa 100644
--- a/cloudstack/TemplateService.go
+++ b/cloudstack/TemplateService.go
@@ -133,11 +133,14 @@ type CopyTemplateResponse struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -167,6 +170,7 @@ type CopyTemplateResponse struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -445,11 +449,14 @@ type CreateTemplateResponse struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -479,6 +486,7 @@ type CreateTemplateResponse struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -734,6 +742,10 @@ func (p *GetUploadParamsForTemplateParams) toURLValues() url.Values {
if v, found := p.p["checksum"]; found {
u.Set("checksum", v.(string))
}
+ if v, found := p.p["deployasis"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("deployasis", vv)
+ }
if v, found := p.p["details"]; found {
m := v.(map[string]string)
for i, k := range getSortedKeysFromMap(m) {
@@ -823,6 +835,13 @@ func (p *GetUploadParamsForTemplateParams) SetChecksum(v string) {
p.p["checksum"] = v
}
+func (p *GetUploadParamsForTemplateParams) SetDeployasis(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["deployasis"] = v
+}
+
func (p *GetUploadParamsForTemplateParams) SetDetails(v map[string]string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -951,14 +970,13 @@ func (p *GetUploadParamsForTemplateParams) SetZoneid(v string) {
// You should always use this function to get a new GetUploadParamsForTemplateParams instance,
// as then you are sure you have configured all required params
-func (s *TemplateService) NewGetUploadParamsForTemplateParams(displaytext string, format string, hypervisor string, name string, ostypeid string, zoneid string) *GetUploadParamsForTemplateParams {
+func (s *TemplateService) NewGetUploadParamsForTemplateParams(displaytext string, format string, hypervisor string, name string, zoneid string) *GetUploadParamsForTemplateParams {
p := &GetUploadParamsForTemplateParams{}
p.p = make(map[string]interface{})
p.p["displaytext"] = displaytext
p.p["format"] = format
p.p["hypervisor"] = hypervisor
p.p["name"] = name
- p.p["ostypeid"] = ostypeid
p.p["zoneid"] = zoneid
return p
}
@@ -1094,6 +1112,10 @@ func (p *ListTemplatesParams) toURLValues() url.Values {
if v, found := p.p["account"]; found {
u.Set("account", v.(string))
}
+ if v, found := p.p["details"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("details", vv)
+ }
if v, found := p.p["domainid"]; found {
u.Set("domainid", v.(string))
}
@@ -1139,6 +1161,10 @@ func (p *ListTemplatesParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("showremoved", vv)
}
+ if v, found := p.p["showunique"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("showunique", vv)
+ }
if v, found := p.p["tags"]; found {
m := v.(map[string]string)
for i, k := range getSortedKeysFromMap(m) {
@@ -1162,6 +1188,13 @@ func (p *ListTemplatesParams) SetAccount(v string) {
p.p["account"] = v
}
+func (p *ListTemplatesParams) SetDetails(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["details"] = v
+}
+
func (p *ListTemplatesParams) SetDomainid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1253,6 +1286,13 @@ func (p *ListTemplatesParams) SetShowremoved(v bool) {
p.p["showremoved"] = v
}
+func (p *ListTemplatesParams) SetShowunique(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["showunique"] = v
+}
+
func (p *ListTemplatesParams) SetTags(v map[string]string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1398,11 +1438,14 @@ type Template struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -1432,6 +1475,7 @@ type Template struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -1539,11 +1583,14 @@ type PrepareTemplateResponse struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -1573,6 +1620,7 @@ type PrepareTemplateResponse struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -1623,6 +1671,10 @@ func (p *RegisterTemplateParams) toURLValues() url.Values {
if v, found := p.p["checksum"]; found {
u.Set("checksum", v.(string))
}
+ if v, found := p.p["deployasis"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("deployasis", vv)
+ }
if v, found := p.p["details"]; found {
m := v.(map[string]string)
for i, k := range getSortedKeysFromMap(m) {
@@ -1723,6 +1775,13 @@ func (p *RegisterTemplateParams) SetChecksum(v string) {
p.p["checksum"] = v
}
+func (p *RegisterTemplateParams) SetDeployasis(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["deployasis"] = v
+}
+
func (p *RegisterTemplateParams) SetDetails(v map[string]string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1872,14 +1931,13 @@ func (p *RegisterTemplateParams) SetZoneids(v []string) {
// You should always use this function to get a new RegisterTemplateParams instance,
// as then you are sure you have configured all required params
-func (s *TemplateService) NewRegisterTemplateParams(displaytext string, format string, hypervisor string, name string, ostypeid string, url string) *RegisterTemplateParams {
+func (s *TemplateService) NewRegisterTemplateParams(displaytext string, format string, hypervisor string, name string, url string) *RegisterTemplateParams {
p := &RegisterTemplateParams{}
p.p = make(map[string]interface{})
p.p["displaytext"] = displaytext
p.p["format"] = format
p.p["hypervisor"] = hypervisor
p.p["name"] = name
- p.p["ostypeid"] = ostypeid
p.p["url"] = url
return p
}
@@ -1913,11 +1971,14 @@ type RegisterTemplate struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -1947,6 +2008,7 @@ type RegisterTemplate struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -2040,6 +2102,9 @@ func (p *UpdateTemplateParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("sshkeyenabled", vv)
}
+ if v, found := p.p["templatetype"]; found {
+ u.Set("templatetype", v.(string))
+ }
return u
}
@@ -2141,6 +2206,13 @@ func (p *UpdateTemplateParams) SetSshkeyenabled(v bool) {
p.p["sshkeyenabled"] = v
}
+func (p *UpdateTemplateParams) SetTemplatetype(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["templatetype"] = v
+}
+
// You should always use this function to get a new UpdateTemplateParams instance,
// as then you are sure you have configured all required params
func (s *TemplateService) NewUpdateTemplateParams(id string) *UpdateTemplateParams {
@@ -2174,11 +2246,14 @@ type UpdateTemplateResponse struct {
Childtemplates []interface{} `json:"childtemplates"`
Created string `json:"created"`
CrossZones bool `json:"crossZones"`
+ Deployasis bool `json:"deployasis"`
+ Deployasisdetails map[string]string `json:"deployasisdetails"`
Details map[string]string `json:"details"`
Directdownload bool `json:"directdownload"`
Displaytext string `json:"displaytext"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
+ Downloaddetails []string `json:"downloaddetails"`
Format string `json:"format"`
Hostid string `json:"hostid"`
Hostname string `json:"hostname"`
@@ -2208,6 +2283,7 @@ type UpdateTemplateResponse struct {
Tags []Tags `json:"tags"`
Templatetag string `json:"templatetag"`
Templatetype string `json:"templatetype"`
+ Url string `json:"url"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
diff --git a/cloudstack/UsageService.go b/cloudstack/UsageService.go
index 57c7a9b..6a3748b 100644
--- a/cloudstack/UsageService.go
+++ b/cloudstack/UsageService.go
@@ -861,9 +861,17 @@ func (p *ListUsageRecordsParams) toURLValues() url.Values {
vv := strconv.FormatBool(v.(bool))
u.Set("includetags", vv)
}
+ 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["oldformat"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("oldformat", vv)
+ }
if v, found := p.p["page"]; found {
vv := strconv.Itoa(v.(int))
u.Set("page", vv)
@@ -923,6 +931,13 @@ func (p *ListUsageRecordsParams) SetIncludetags(v bool) {
p.p["includetags"] = v
}
+func (p *ListUsageRecordsParams) SetIsrecursive(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["isrecursive"] = v
+}
+
func (p *ListUsageRecordsParams) SetKeyword(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -930,6 +945,13 @@ func (p *ListUsageRecordsParams) SetKeyword(v string) {
p.p["keyword"] = v
}
+func (p *ListUsageRecordsParams) SetOldformat(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["oldformat"] = v
+}
+
func (p *ListUsageRecordsParams) SetPage(v int) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1020,6 +1042,10 @@ type UsageRecord struct {
Name string `json:"name"`
Networkid string `json:"networkid"`
Offeringid string `json:"offeringid"`
+ Oscategoryid string `json:"oscategoryid"`
+ Oscategoryname string `json:"oscategoryname"`
+ Osdisplayname string `json:"osdisplayname"`
+ Ostypeid string `json:"ostypeid"`
Project string `json:"project"`
Projectid string `json:"projectid"`
Rawusage string `json:"rawusage"`
@@ -1033,9 +1059,37 @@ type UsageRecord struct {
Usagetype int `json:"usagetype"`
Virtualmachineid string `json:"virtualmachineid"`
Virtualsize int64 `json:"virtualsize"`
+ Vpcid string `json:"vpcid"`
Zoneid string `json:"zoneid"`
}
+func (r *UsageRecord) UnmarshalJSON(b []byte) error {
+ var m map[string]interface{}
+ err := json.Unmarshal(b, &m)
+ if err != nil {
+ return err
+ }
+
+ if success, ok := m["success"].(string); ok {
+ m["success"] = success == "true"
+ b, err = json.Marshal(m)
+ if err != nil {
+ return err
+ }
+ }
+
+ if ostypeid, ok := m["ostypeid"].(float64); ok {
+ m["ostypeid"] = strconv.Itoa(int(ostypeid))
+ b, err = json.Marshal(m)
+ if err != nil {
+ return err
+ }
+ }
+
+ type alias UsageRecord
+ return json.Unmarshal(b, (*alias)(r))
+}
+
type ListUsageTypesParams struct {
p map[string]interface{}
}
diff --git a/cloudstack/VPCService.go b/cloudstack/VPCService.go
index 178c03a..8418df6 100644
--- a/cloudstack/VPCService.go
+++ b/cloudstack/VPCService.go
@@ -39,6 +39,10 @@ func (p *CreatePrivateGatewayParams) toURLValues() url.Values {
if v, found := p.p["aclid"]; found {
u.Set("aclid", v.(string))
}
+ if v, found := p.p["bypassvlanoverlapcheck"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("bypassvlanoverlapcheck", vv)
+ }
if v, found := p.p["gateway"]; found {
u.Set("gateway", v.(string))
}
@@ -74,6 +78,13 @@ func (p *CreatePrivateGatewayParams) SetAclid(v string) {
p.p["aclid"] = v
}
+func (p *CreatePrivateGatewayParams) SetBypassvlanoverlapcheck(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["bypassvlanoverlapcheck"] = v
+}
+
func (p *CreatePrivateGatewayParams) SetGateway(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -181,6 +192,7 @@ func (s *VPCService) CreatePrivateGateway(p *CreatePrivateGatewayParams) (*Creat
type CreatePrivateGatewayResponse struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
Gateway string `json:"gateway"`
@@ -196,6 +208,7 @@ type CreatePrivateGatewayResponse struct {
State string `json:"state"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -489,6 +502,7 @@ type CreateVPCResponse struct {
State string `json:"state"`
Tags []Tags `json:"tags"`
Vpcofferingid string `json:"vpcofferingid"`
+ Vpcofferingname string `json:"vpcofferingname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -518,11 +532,13 @@ type CreateVPCResponseServiceCapability struct {
type CreateVPCResponseNetwork struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -563,6 +579,7 @@ type CreateVPCResponseNetwork struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -602,6 +619,10 @@ func (p *CreateVPCOfferingParams) toURLValues() url.Values {
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", v.(string))
}
+ if v, found := p.p["domainid"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("domainid", vv)
+ }
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
@@ -626,6 +647,10 @@ func (p *CreateVPCOfferingParams) toURLValues() url.Values {
vv := strings.Join(v.([]string), ",")
u.Set("supportedservices", vv)
}
+ if v, found := p.p["zoneid"]; found {
+ vv := strings.Join(v.([]string), ",")
+ u.Set("zoneid", vv)
+ }
return u
}
@@ -636,6 +661,13 @@ func (p *CreateVPCOfferingParams) SetDisplaytext(v string) {
p.p["displaytext"] = v
}
+func (p *CreateVPCOfferingParams) SetDomainid(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
func (p *CreateVPCOfferingParams) SetName(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -671,6 +703,13 @@ func (p *CreateVPCOfferingParams) SetSupportedservices(v []string) {
p.p["supportedservices"] = v
}
+func (p *CreateVPCOfferingParams) SetZoneid(v []string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new CreateVPCOfferingParams instance,
// as then you are sure you have configured all required params
func (s *VPCService) NewCreateVPCOfferingParams(displaytext string, name string, supportedservices []string) *CreateVPCOfferingParams {
@@ -721,6 +760,8 @@ type CreateVPCOfferingResponse struct {
Created string `json:"created"`
Displaytext string `json:"displaytext"`
Distributedvpcrouter bool `json:"distributedvpcrouter"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
Id string `json:"id"`
Isdefault bool `json:"isdefault"`
JobID string `json:"jobid"`
@@ -729,6 +770,8 @@ type CreateVPCOfferingResponse struct {
Service []CreateVPCOfferingResponseService `json:"service"`
State string `json:"state"`
SupportsregionLevelvpc bool `json:"supportsregionLevelvpc"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type CreateVPCOfferingResponseService struct {
@@ -1235,6 +1278,7 @@ type ListPrivateGatewaysResponse struct {
type PrivateGateway struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Domain string `json:"domain"`
Domainid string `json:"domainid"`
Gateway string `json:"gateway"`
@@ -1250,6 +1294,7 @@ type PrivateGateway struct {
State string `json:"state"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -1297,6 +1342,9 @@ func (p *ListStaticRoutesParams) toURLValues() url.Values {
if v, found := p.p["projectid"]; found {
u.Set("projectid", v.(string))
}
+ if v, found := p.p["state"]; found {
+ u.Set("state", v.(string))
+ }
if v, found := p.p["tags"]; found {
m := v.(map[string]string)
for i, k := range getSortedKeysFromMap(m) {
@@ -1380,6 +1428,13 @@ func (p *ListStaticRoutesParams) SetProjectid(v string) {
p.p["projectid"] = v
}
+func (p *ListStaticRoutesParams) SetState(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["state"] = v
+}
+
func (p *ListStaticRoutesParams) SetTags(v map[string]string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1511,6 +1566,9 @@ func (p *ListVPCOfferingsParams) toURLValues() url.Values {
vv := strings.Join(v.([]string), ",")
u.Set("supportedservices", vv)
}
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
return u
}
@@ -1577,6 +1635,13 @@ func (p *ListVPCOfferingsParams) SetSupportedservices(v []string) {
p.p["supportedservices"] = v
}
+func (p *ListVPCOfferingsParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new ListVPCOfferingsParams instance,
// as then you are sure you have configured all required params
func (s *VPCService) NewListVPCOfferingsParams() *ListVPCOfferingsParams {
@@ -1692,6 +1757,8 @@ type VPCOffering struct {
Created string `json:"created"`
Displaytext string `json:"displaytext"`
Distributedvpcrouter bool `json:"distributedvpcrouter"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
Id string `json:"id"`
Isdefault bool `json:"isdefault"`
JobID string `json:"jobid"`
@@ -1700,6 +1767,8 @@ type VPCOffering struct {
Service []VPCOfferingService `json:"service"`
State string `json:"state"`
SupportsregionLevelvpc bool `json:"supportsregionLevelvpc"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type VPCOfferingService struct {
@@ -2072,6 +2141,7 @@ type VPC struct {
State string `json:"state"`
Tags []Tags `json:"tags"`
Vpcofferingid string `json:"vpcofferingid"`
+ Vpcofferingname string `json:"vpcofferingname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -2101,11 +2171,13 @@ type VPCServiceInternalCapability struct {
type VPCNetwork struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -2146,6 +2218,7 @@ type VPCNetwork struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -2285,6 +2358,7 @@ type RestartVPCResponse struct {
State string `json:"state"`
Tags []Tags `json:"tags"`
Vpcofferingid string `json:"vpcofferingid"`
+ Vpcofferingname string `json:"vpcofferingname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -2314,11 +2388,13 @@ type RestartVPCResponseServiceCapability struct {
type RestartVPCResponseNetwork struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -2359,6 +2435,7 @@ type RestartVPCResponseNetwork struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -2517,6 +2594,7 @@ type UpdateVPCResponse struct {
State string `json:"state"`
Tags []Tags `json:"tags"`
Vpcofferingid string `json:"vpcofferingid"`
+ Vpcofferingname string `json:"vpcofferingname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
}
@@ -2546,11 +2624,13 @@ type UpdateVPCResponseServiceCapability struct {
type UpdateVPCResponseNetwork struct {
Account string `json:"account"`
Aclid string `json:"aclid"`
+ Aclname string `json:"aclname"`
Acltype string `json:"acltype"`
Broadcastdomaintype string `json:"broadcastdomaintype"`
Broadcasturi string `json:"broadcasturi"`
Canusefordeploy bool `json:"canusefordeploy"`
Cidr string `json:"cidr"`
+ Details map[string]string `json:"details"`
Displaynetwork bool `json:"displaynetwork"`
Displaytext string `json:"displaytext"`
Dns1 string `json:"dns1"`
@@ -2591,6 +2671,7 @@ type UpdateVPCResponseNetwork struct {
Type string `json:"type"`
Vlan string `json:"vlan"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
Zoneid string `json:"zoneid"`
Zonename string `json:"zonename"`
Zonesnetworkspans []interface{} `json:"zonesnetworkspans"`
@@ -2630,15 +2711,25 @@ func (p *UpdateVPCOfferingParams) toURLValues() url.Values {
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", 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["name"]; found {
u.Set("name", v.(string))
}
+ if v, found := p.p["sortkey"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("sortkey", vv)
+ }
if v, found := p.p["state"]; found {
u.Set("state", v.(string))
}
+ if v, found := p.p["zoneid"]; found {
+ u.Set("zoneid", v.(string))
+ }
return u
}
@@ -2649,6 +2740,13 @@ func (p *UpdateVPCOfferingParams) SetDisplaytext(v string) {
p.p["displaytext"] = v
}
+func (p *UpdateVPCOfferingParams) SetDomainid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["domainid"] = v
+}
+
func (p *UpdateVPCOfferingParams) SetId(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2663,6 +2761,13 @@ func (p *UpdateVPCOfferingParams) SetName(v string) {
p.p["name"] = v
}
+func (p *UpdateVPCOfferingParams) SetSortkey(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["sortkey"] = v
+}
+
func (p *UpdateVPCOfferingParams) SetState(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2670,6 +2775,13 @@ func (p *UpdateVPCOfferingParams) SetState(v string) {
p.p["state"] = v
}
+func (p *UpdateVPCOfferingParams) SetZoneid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["zoneid"] = v
+}
+
// You should always use this function to get a new UpdateVPCOfferingParams instance,
// as then you are sure you have configured all required params
func (s *VPCService) NewUpdateVPCOfferingParams(id string) *UpdateVPCOfferingParams {
@@ -2718,6 +2830,8 @@ type UpdateVPCOfferingResponse struct {
Created string `json:"created"`
Displaytext string `json:"displaytext"`
Distributedvpcrouter bool `json:"distributedvpcrouter"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
Id string `json:"id"`
Isdefault bool `json:"isdefault"`
JobID string `json:"jobid"`
@@ -2726,6 +2840,8 @@ type UpdateVPCOfferingResponse struct {
Service []UpdateVPCOfferingResponseService `json:"service"`
State string `json:"state"`
SupportsregionLevelvpc bool `json:"supportsregionLevelvpc"`
+ Zone string `json:"zone"`
+ Zoneid string `json:"zoneid"`
}
type UpdateVPCOfferingResponseService struct {
diff --git a/cloudstack/VPNService.go b/cloudstack/VPNService.go
index 147c00e..005c957 100644
--- a/cloudstack/VPNService.go
+++ b/cloudstack/VPNService.go
@@ -396,6 +396,7 @@ type CreateVpnConnectionResponse struct {
Id string `json:"id"`
Ikelifetime int64 `json:"ikelifetime"`
Ikepolicy string `json:"ikepolicy"`
+ Ikeversion string `json:"ikeversion"`
Ipsecpsk string `json:"ipsecpsk"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
@@ -406,6 +407,7 @@ type CreateVpnConnectionResponse struct {
Removed string `json:"removed"`
S2scustomergatewayid string `json:"s2scustomergatewayid"`
S2svpngatewayid string `json:"s2svpngatewayid"`
+ Splitconnections bool `json:"splitconnections"`
State string `json:"state"`
}
@@ -452,6 +454,9 @@ func (p *CreateVpnCustomerGatewayParams) toURLValues() url.Values {
if v, found := p.p["ikepolicy"]; found {
u.Set("ikepolicy", v.(string))
}
+ if v, found := p.p["ikeversion"]; found {
+ u.Set("ikeversion", v.(string))
+ }
if v, found := p.p["ipsecpsk"]; found {
u.Set("ipsecpsk", v.(string))
}
@@ -461,6 +466,10 @@ func (p *CreateVpnCustomerGatewayParams) toURLValues() url.Values {
if v, found := p.p["projectid"]; found {
u.Set("projectid", v.(string))
}
+ if v, found := p.p["splitconnections"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("splitconnections", vv)
+ }
return u
}
@@ -534,6 +543,13 @@ func (p *CreateVpnCustomerGatewayParams) SetIkepolicy(v string) {
p.p["ikepolicy"] = v
}
+func (p *CreateVpnCustomerGatewayParams) SetIkeversion(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["ikeversion"] = v
+}
+
func (p *CreateVpnCustomerGatewayParams) SetIpsecpsk(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -555,6 +571,13 @@ func (p *CreateVpnCustomerGatewayParams) SetProjectid(v string) {
p.p["projectid"] = v
}
+func (p *CreateVpnCustomerGatewayParams) SetSplitconnections(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["splitconnections"] = v
+}
+
// You should always use this function to get a new CreateVpnCustomerGatewayParams instance,
// as then you are sure you have configured all required params
func (s *VPNService) NewCreateVpnCustomerGatewayParams(cidrlist string, esppolicy string, gateway string, ikepolicy string, ipsecpsk string) *CreateVpnCustomerGatewayParams {
@@ -604,26 +627,28 @@ func (s *VPNService) CreateVpnCustomerGateway(p *CreateVpnCustomerGatewayParams)
}
type CreateVpnCustomerGatewayResponse struct {
- Account string `json:"account"`
- Cidrlist string `json:"cidrlist"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Dpd bool `json:"dpd"`
- Esplifetime int64 `json:"esplifetime"`
- Esppolicy string `json:"esppolicy"`
- Forceencap bool `json:"forceencap"`
- Gateway string `json:"gateway"`
- Id string `json:"id"`
- Ikelifetime int64 `json:"ikelifetime"`
- Ikepolicy string `json:"ikepolicy"`
- Ipaddress string `json:"ipaddress"`
- Ipsecpsk string `json:"ipsecpsk"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Removed string `json:"removed"`
+ Account string `json:"account"`
+ Cidrlist string `json:"cidrlist"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Dpd bool `json:"dpd"`
+ Esplifetime int64 `json:"esplifetime"`
+ Esppolicy string `json:"esppolicy"`
+ Forceencap bool `json:"forceencap"`
+ Gateway string `json:"gateway"`
+ Id string `json:"id"`
+ Ikelifetime int64 `json:"ikelifetime"`
+ Ikepolicy string `json:"ikepolicy"`
+ Ikeversion string `json:"ikeversion"`
+ Ipaddress string `json:"ipaddress"`
+ Ipsecpsk string `json:"ipsecpsk"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Removed string `json:"removed"`
+ Splitconnections bool `json:"splitconnections"`
}
type CreateVpnGatewayParams struct {
@@ -716,6 +741,7 @@ type CreateVpnGatewayResponse struct {
Publicip string `json:"publicip"`
Removed string `json:"removed"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
}
type DeleteRemoteAccessVpnParams struct {
@@ -1408,6 +1434,7 @@ type VpnConnection struct {
Id string `json:"id"`
Ikelifetime int64 `json:"ikelifetime"`
Ikepolicy string `json:"ikepolicy"`
+ Ikeversion string `json:"ikeversion"`
Ipsecpsk string `json:"ipsecpsk"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
@@ -1418,6 +1445,7 @@ type VpnConnection struct {
Removed string `json:"removed"`
S2scustomergatewayid string `json:"s2scustomergatewayid"`
S2svpngatewayid string `json:"s2svpngatewayid"`
+ Splitconnections bool `json:"splitconnections"`
State string `json:"state"`
}
@@ -1639,26 +1667,28 @@ type ListVpnCustomerGatewaysResponse struct {
}
type VpnCustomerGateway struct {
- Account string `json:"account"`
- Cidrlist string `json:"cidrlist"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Dpd bool `json:"dpd"`
- Esplifetime int64 `json:"esplifetime"`
- Esppolicy string `json:"esppolicy"`
- Forceencap bool `json:"forceencap"`
- Gateway string `json:"gateway"`
- Id string `json:"id"`
- Ikelifetime int64 `json:"ikelifetime"`
- Ikepolicy string `json:"ikepolicy"`
- Ipaddress string `json:"ipaddress"`
- Ipsecpsk string `json:"ipsecpsk"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Removed string `json:"removed"`
+ Account string `json:"account"`
+ Cidrlist string `json:"cidrlist"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Dpd bool `json:"dpd"`
+ Esplifetime int64 `json:"esplifetime"`
+ Esppolicy string `json:"esppolicy"`
+ Forceencap bool `json:"forceencap"`
+ Gateway string `json:"gateway"`
+ Id string `json:"id"`
+ Ikelifetime int64 `json:"ikelifetime"`
+ Ikepolicy string `json:"ikepolicy"`
+ Ikeversion string `json:"ikeversion"`
+ Ipaddress string `json:"ipaddress"`
+ Ipsecpsk string `json:"ipsecpsk"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Removed string `json:"removed"`
+ Splitconnections bool `json:"splitconnections"`
}
type ListVpnGatewaysParams struct {
@@ -1862,6 +1892,7 @@ type VpnGateway struct {
Publicip string `json:"publicip"`
Removed string `json:"removed"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
}
type ListVpnUsersParams struct {
@@ -2253,6 +2284,7 @@ type ResetVpnConnectionResponse struct {
Id string `json:"id"`
Ikelifetime int64 `json:"ikelifetime"`
Ikepolicy string `json:"ikepolicy"`
+ Ikeversion string `json:"ikeversion"`
Ipsecpsk string `json:"ipsecpsk"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
@@ -2263,6 +2295,7 @@ type ResetVpnConnectionResponse struct {
Removed string `json:"removed"`
S2scustomergatewayid string `json:"s2scustomergatewayid"`
S2svpngatewayid string `json:"s2svpngatewayid"`
+ Splitconnections bool `json:"splitconnections"`
State string `json:"state"`
}
@@ -2472,6 +2505,7 @@ type UpdateVpnConnectionResponse struct {
Id string `json:"id"`
Ikelifetime int64 `json:"ikelifetime"`
Ikepolicy string `json:"ikepolicy"`
+ Ikeversion string `json:"ikeversion"`
Ipsecpsk string `json:"ipsecpsk"`
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
@@ -2482,6 +2516,7 @@ type UpdateVpnConnectionResponse struct {
Removed string `json:"removed"`
S2scustomergatewayid string `json:"s2scustomergatewayid"`
S2svpngatewayid string `json:"s2svpngatewayid"`
+ Splitconnections bool `json:"splitconnections"`
State string `json:"state"`
}
@@ -2531,12 +2566,19 @@ func (p *UpdateVpnCustomerGatewayParams) toURLValues() url.Values {
if v, found := p.p["ikepolicy"]; found {
u.Set("ikepolicy", v.(string))
}
+ if v, found := p.p["ikeversion"]; found {
+ u.Set("ikeversion", v.(string))
+ }
if v, found := p.p["ipsecpsk"]; found {
u.Set("ipsecpsk", v.(string))
}
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
+ if v, found := p.p["splitconnections"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("splitconnections", vv)
+ }
return u
}
@@ -2617,6 +2659,13 @@ func (p *UpdateVpnCustomerGatewayParams) SetIkepolicy(v string) {
p.p["ikepolicy"] = v
}
+func (p *UpdateVpnCustomerGatewayParams) SetIkeversion(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["ikeversion"] = v
+}
+
func (p *UpdateVpnCustomerGatewayParams) SetIpsecpsk(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2631,6 +2680,13 @@ func (p *UpdateVpnCustomerGatewayParams) SetName(v string) {
p.p["name"] = v
}
+func (p *UpdateVpnCustomerGatewayParams) SetSplitconnections(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["splitconnections"] = v
+}
+
// You should always use this function to get a new UpdateVpnCustomerGatewayParams instance,
// as then you are sure you have configured all required params
func (s *VPNService) NewUpdateVpnCustomerGatewayParams(cidrlist string, esppolicy string, gateway string, id string, ikepolicy string, ipsecpsk string) *UpdateVpnCustomerGatewayParams {
@@ -2681,26 +2737,28 @@ func (s *VPNService) UpdateVpnCustomerGateway(p *UpdateVpnCustomerGatewayParams)
}
type UpdateVpnCustomerGatewayResponse struct {
- Account string `json:"account"`
- Cidrlist string `json:"cidrlist"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Dpd bool `json:"dpd"`
- Esplifetime int64 `json:"esplifetime"`
- Esppolicy string `json:"esppolicy"`
- Forceencap bool `json:"forceencap"`
- Gateway string `json:"gateway"`
- Id string `json:"id"`
- Ikelifetime int64 `json:"ikelifetime"`
- Ikepolicy string `json:"ikepolicy"`
- Ipaddress string `json:"ipaddress"`
- Ipsecpsk string `json:"ipsecpsk"`
- JobID string `json:"jobid"`
- Jobstatus int `json:"jobstatus"`
- Name string `json:"name"`
- Project string `json:"project"`
- Projectid string `json:"projectid"`
- Removed string `json:"removed"`
+ Account string `json:"account"`
+ Cidrlist string `json:"cidrlist"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Dpd bool `json:"dpd"`
+ Esplifetime int64 `json:"esplifetime"`
+ Esppolicy string `json:"esppolicy"`
+ Forceencap bool `json:"forceencap"`
+ Gateway string `json:"gateway"`
+ Id string `json:"id"`
+ Ikelifetime int64 `json:"ikelifetime"`
+ Ikepolicy string `json:"ikepolicy"`
+ Ikeversion string `json:"ikeversion"`
+ Ipaddress string `json:"ipaddress"`
+ Ipsecpsk string `json:"ipsecpsk"`
+ JobID string `json:"jobid"`
+ Jobstatus int `json:"jobstatus"`
+ Name string `json:"name"`
+ Project string `json:"project"`
+ Projectid string `json:"projectid"`
+ Removed string `json:"removed"`
+ Splitconnections bool `json:"splitconnections"`
}
type UpdateVpnGatewayParams struct {
@@ -2803,4 +2861,5 @@ type UpdateVpnGatewayResponse struct {
Publicip string `json:"publicip"`
Removed string `json:"removed"`
Vpcid string `json:"vpcid"`
+ Vpcname string `json:"vpcname"`
}
diff --git a/cloudstack/VirtualMachineService.go b/cloudstack/VirtualMachineService.go
index d478294..600fe96 100644
--- a/cloudstack/VirtualMachineService.go
+++ b/cloudstack/VirtualMachineService.go
@@ -141,6 +141,10 @@ func (s *VirtualMachineService) AddNicToVirtualMachine(p *AddNicToVirtualMachine
type AddNicToVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []AddNicToVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -181,6 +185,7 @@ type AddNicToVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -188,6 +193,7 @@ type AddNicToVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []AddNicToVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -376,6 +382,10 @@ func (s *VirtualMachineService) AssignVirtualMachine(p *AssignVirtualMachinePara
type AssignVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []AssignVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -416,6 +426,7 @@ type AssignVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -423,6 +434,7 @@ type AssignVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []AssignVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -583,6 +595,10 @@ func (s *VirtualMachineService) ChangeServiceForVirtualMachine(p *ChangeServiceF
type ChangeServiceForVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []ChangeServiceForVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -623,6 +639,7 @@ type ChangeServiceForVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -630,6 +647,7 @@ type ChangeServiceForVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []ChangeServiceForVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -794,6 +812,23 @@ func (p *DeployVirtualMachineParams) toURLValues() url.Values {
vv := strings.Join(v.([]string), ",")
u.Set("affinitygroupnames", vv)
}
+ if v, found := p.p["bootintosetup"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("bootintosetup", vv)
+ }
+ if v, found := p.p["bootmode"]; found {
+ u.Set("bootmode", v.(string))
+ }
+ if v, found := p.p["boottype"]; found {
+ u.Set("boottype", v.(string))
+ }
+ if v, found := p.p["clusterid"]; found {
+ u.Set("clusterid", v.(string))
+ }
+ if v, found := p.p["copyimagetags"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("copyimagetags", vv)
+ }
if v, found := p.p["customid"]; found {
u.Set("customid", v.(string))
}
@@ -874,9 +909,26 @@ func (p *DeployVirtualMachineParams) toURLValues() url.Values {
vv := strings.Join(v.([]string), ",")
u.Set("networkids", vv)
}
+ if v, found := p.p["nicnetworklist"]; found {
+ m := v.(map[string]string)
+ for i, k := range getSortedKeysFromMap(m) {
+ u.Set(fmt.Sprintf("nicnetworklist[%d].key", i), k)
+ u.Set(fmt.Sprintf("nicnetworklist[%d].value", i), m[k])
+ }
+ }
+ if v, found := p.p["podid"]; found {
+ u.Set("podid", v.(string))
+ }
if v, found := p.p["projectid"]; found {
u.Set("projectid", v.(string))
}
+ if v, found := p.p["properties"]; found {
+ m := v.(map[string]string)
+ for i, k := range getSortedKeysFromMap(m) {
+ u.Set(fmt.Sprintf("properties[%d].key", i), k)
+ u.Set(fmt.Sprintf("properties[%d].value", i), m[k])
+ }
+ }
if v, found := p.p["rootdisksize"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("rootdisksize", vv)
@@ -933,6 +985,41 @@ func (p *DeployVirtualMachineParams) SetAffinitygroupnames(v []string) {
p.p["affinitygroupnames"] = v
}
+func (p *DeployVirtualMachineParams) SetBootintosetup(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["bootintosetup"] = v
+}
+
+func (p *DeployVirtualMachineParams) SetBootmode(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["bootmode"] = v
+}
+
+func (p *DeployVirtualMachineParams) SetBoottype(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["boottype"] = v
+}
+
+func (p *DeployVirtualMachineParams) SetClusterid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["clusterid"] = v
+}
+
+func (p *DeployVirtualMachineParams) SetCopyimagetags(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["copyimagetags"] = v
+}
+
func (p *DeployVirtualMachineParams) SetCustomid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1080,6 +1167,20 @@ func (p *DeployVirtualMachineParams) SetNetworkids(v []string) {
p.p["networkids"] = v
}
+func (p *DeployVirtualMachineParams) SetNicnetworklist(v map[string]string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["nicnetworklist"] = v
+}
+
+func (p *DeployVirtualMachineParams) SetPodid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["podid"] = v
+}
+
func (p *DeployVirtualMachineParams) SetProjectid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1087,6 +1188,13 @@ func (p *DeployVirtualMachineParams) SetProjectid(v string) {
p.p["projectid"] = v
}
+func (p *DeployVirtualMachineParams) SetProperties(v map[string]string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["properties"] = v
+}
+
func (p *DeployVirtualMachineParams) SetRootdisksize(v int64) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1199,6 +1307,10 @@ func (s *VirtualMachineService) DeployVirtualMachine(p *DeployVirtualMachinePara
type DeployVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []DeployVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -1239,6 +1351,7 @@ type DeployVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -1246,6 +1359,7 @@ type DeployVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []DeployVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -1386,7 +1500,7 @@ func (s *VirtualMachineService) NewDestroyVirtualMachineParams(id string) *Destr
return p
}
-// Destroys a virtual machine.
+// Destroys a virtual machine. Once destroyed, only the administrator can recover it.
func (s *VirtualMachineService) DestroyVirtualMachine(p *DestroyVirtualMachineParams) (*DestroyVirtualMachineResponse, error) {
resp, err := s.cs.newRequest("destroyVirtualMachine", p.toURLValues())
if err != nil {
@@ -1424,6 +1538,10 @@ func (s *VirtualMachineService) DestroyVirtualMachine(p *DestroyVirtualMachinePa
type DestroyVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []DestroyVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -1464,6 +1582,7 @@ type DestroyVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -1471,6 +1590,7 @@ type DestroyVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []DestroyVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -1711,6 +1831,13 @@ func (p *ListVirtualMachinesParams) toURLValues() url.Values {
if v, found := p.p["groupid"]; found {
u.Set("groupid", v.(string))
}
+ if v, found := p.p["haenable"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("haenable", vv)
+ }
+ if v, found := p.p["hostid"]; found {
+ u.Set("hostid", v.(string))
+ }
if v, found := p.p["hostid"]; found {
u.Set("hostid", v.(string))
}
@@ -1758,9 +1885,15 @@ func (p *ListVirtualMachinesParams) toURLValues() url.Values {
if v, found := p.p["podid"]; found {
u.Set("podid", v.(string))
}
+ if v, found := p.p["podid"]; found {
+ u.Set("podid", v.(string))
+ }
if v, found := p.p["projectid"]; found {
u.Set("projectid", v.(string))
}
+ if v, found := p.p["securitygroupid"]; found {
+ u.Set("securitygroupid", v.(string))
+ }
if v, found := p.p["serviceofferingid"]; found {
u.Set("serviceofferingid", v.(string))
}
@@ -1770,6 +1903,9 @@ func (p *ListVirtualMachinesParams) toURLValues() url.Values {
if v, found := p.p["storageid"]; found {
u.Set("storageid", v.(string))
}
+ if v, found := p.p["storageid"]; found {
+ u.Set("storageid", v.(string))
+ }
if v, found := p.p["tags"]; found {
m := v.(map[string]string)
for i, k := range getSortedKeysFromMap(m) {
@@ -1841,6 +1977,13 @@ func (p *ListVirtualMachinesParams) SetGroupid(v string) {
p.p["groupid"] = v
}
+func (p *ListVirtualMachinesParams) SetHaenable(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["haenable"] = v
+}
+
func (p *ListVirtualMachinesParams) SetHostid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1946,6 +2089,13 @@ func (p *ListVirtualMachinesParams) SetProjectid(v string) {
p.p["projectid"] = v
}
+func (p *ListVirtualMachinesParams) SetSecuritygroupid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["securitygroupid"] = v
+}
+
func (p *ListVirtualMachinesParams) SetServiceofferingid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2116,6 +2266,10 @@ type ListVirtualMachinesResponse struct {
type VirtualMachine struct {
Account string `json:"account"`
Affinitygroup []VirtualMachineAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -2156,6 +2310,7 @@ type VirtualMachine struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -2163,6 +2318,7 @@ type VirtualMachine struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []VirtualMachineSecuritygroup `json:"securitygroup"`
@@ -2283,8 +2439,9 @@ func (p *ListVirtualMachinesMetricsParams) toURLValues() url.Values {
if v, found := p.p["groupid"]; found {
u.Set("groupid", v.(string))
}
- if v, found := p.p["hostid"]; found {
- u.Set("hostid", v.(string))
+ if v, found := p.p["haenable"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("haenable", vv)
}
if v, found := p.p["hostid"]; found {
u.Set("hostid", v.(string))
@@ -2333,12 +2490,12 @@ func (p *ListVirtualMachinesMetricsParams) toURLValues() url.Values {
if v, found := p.p["podid"]; found {
u.Set("podid", v.(string))
}
- if v, found := p.p["podid"]; found {
- u.Set("podid", v.(string))
- }
if v, found := p.p["projectid"]; found {
u.Set("projectid", v.(string))
}
+ if v, found := p.p["securitygroupid"]; found {
+ u.Set("securitygroupid", v.(string))
+ }
if v, found := p.p["serviceofferingid"]; found {
u.Set("serviceofferingid", v.(string))
}
@@ -2348,9 +2505,6 @@ func (p *ListVirtualMachinesMetricsParams) toURLValues() url.Values {
if v, found := p.p["storageid"]; found {
u.Set("storageid", v.(string))
}
- if v, found := p.p["storageid"]; found {
- u.Set("storageid", v.(string))
- }
if v, found := p.p["tags"]; found {
m := v.(map[string]string)
for i, k := range getSortedKeysFromMap(m) {
@@ -2422,6 +2576,13 @@ func (p *ListVirtualMachinesMetricsParams) SetGroupid(v string) {
p.p["groupid"] = v
}
+func (p *ListVirtualMachinesMetricsParams) SetHaenable(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["haenable"] = v
+}
+
func (p *ListVirtualMachinesMetricsParams) SetHostid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2527,6 +2688,13 @@ func (p *ListVirtualMachinesMetricsParams) SetProjectid(v string) {
p.p["projectid"] = v
}
+func (p *ListVirtualMachinesMetricsParams) SetSecuritygroupid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["securitygroupid"] = v
+}
+
func (p *ListVirtualMachinesMetricsParams) SetServiceofferingid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -2697,6 +2865,10 @@ type ListVirtualMachinesMetricsResponse struct {
type VirtualMachinesMetric struct {
Account string `json:"account"`
Affinitygroup []VirtualMachinesMetricAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cputotal string `json:"cputotal"`
@@ -2745,6 +2917,7 @@ type VirtualMachinesMetric struct {
Networkread string `json:"networkread"`
Networkwrite string `json:"networkwrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -2752,6 +2925,7 @@ type VirtualMachinesMetric struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []VirtualMachinesMetricSecuritygroup `json:"securitygroup"`
@@ -2928,6 +3102,10 @@ func (s *VirtualMachineService) MigrateVirtualMachine(p *MigrateVirtualMachinePa
type MigrateVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []MigrateVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -2968,6 +3146,7 @@ type MigrateVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -2975,6 +3154,7 @@ type MigrateVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []MigrateVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -3156,6 +3336,10 @@ func (s *VirtualMachineService) MigrateVirtualMachineWithVolume(p *MigrateVirtua
type MigrateVirtualMachineWithVolumeResponse struct {
Account string `json:"account"`
Affinitygroup []MigrateVirtualMachineWithVolumeResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -3196,6 +3380,7 @@ type MigrateVirtualMachineWithVolumeResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -3203,6 +3388,7 @@ type MigrateVirtualMachineWithVolumeResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []MigrateVirtualMachineWithVolumeResponseSecuritygroup `json:"securitygroup"`
@@ -3299,12 +3485,23 @@ func (p *RebootVirtualMachineParams) toURLValues() url.Values {
if p.p == nil {
return u
}
+ if v, found := p.p["bootintosetup"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("bootintosetup", vv)
+ }
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
return u
}
+func (p *RebootVirtualMachineParams) SetBootintosetup(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["bootintosetup"] = v
+}
+
func (p *RebootVirtualMachineParams) SetId(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -3359,6 +3556,10 @@ func (s *VirtualMachineService) RebootVirtualMachine(p *RebootVirtualMachinePara
type RebootVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []RebootVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -3399,6 +3600,7 @@ type RebootVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -3406,6 +3608,7 @@ type RebootVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []RebootVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -3542,6 +3745,10 @@ func (s *VirtualMachineService) RecoverVirtualMachine(p *RecoverVirtualMachinePa
type RecoverVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []RecoverVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -3582,6 +3789,7 @@ type RecoverVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -3589,6 +3797,7 @@ type RecoverVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []RecoverVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -3756,6 +3965,10 @@ func (s *VirtualMachineService) RemoveNicFromVirtualMachine(p *RemoveNicFromVirt
type RemoveNicFromVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []RemoveNicFromVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -3796,6 +4009,7 @@ type RemoveNicFromVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -3803,6 +4017,7 @@ type RemoveNicFromVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []RemoveNicFromVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -3959,6 +4174,10 @@ func (s *VirtualMachineService) ResetPasswordForVirtualMachine(p *ResetPasswordF
type ResetPasswordForVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []ResetPasswordForVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -3999,6 +4218,7 @@ type ResetPasswordForVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -4006,6 +4226,7 @@ type ResetPasswordForVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []ResetPasswordForVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -4172,6 +4393,10 @@ func (s *VirtualMachineService) RestoreVirtualMachine(p *RestoreVirtualMachinePa
type RestoreVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []RestoreVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -4212,6 +4437,7 @@ type RestoreVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -4219,6 +4445,7 @@ type RestoreVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []RestoreVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -4407,6 +4634,13 @@ func (p *StartVirtualMachineParams) toURLValues() url.Values {
if p.p == nil {
return u
}
+ if v, found := p.p["bootintosetup"]; found {
+ vv := strconv.FormatBool(v.(bool))
+ u.Set("bootintosetup", vv)
+ }
+ if v, found := p.p["clusterid"]; found {
+ u.Set("clusterid", v.(string))
+ }
if v, found := p.p["deploymentplanner"]; found {
u.Set("deploymentplanner", v.(string))
}
@@ -4416,9 +4650,26 @@ func (p *StartVirtualMachineParams) toURLValues() url.Values {
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
+ if v, found := p.p["podid"]; found {
+ u.Set("podid", v.(string))
+ }
return u
}
+func (p *StartVirtualMachineParams) SetBootintosetup(v bool) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["bootintosetup"] = v
+}
+
+func (p *StartVirtualMachineParams) SetClusterid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["clusterid"] = v
+}
+
func (p *StartVirtualMachineParams) SetDeploymentplanner(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -4440,6 +4691,13 @@ func (p *StartVirtualMachineParams) SetId(v string) {
p.p["id"] = v
}
+func (p *StartVirtualMachineParams) SetPodid(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["podid"] = v
+}
+
// You should always use this function to get a new StartVirtualMachineParams instance,
// as then you are sure you have configured all required params
func (s *VirtualMachineService) NewStartVirtualMachineParams(id string) *StartVirtualMachineParams {
@@ -4487,6 +4745,10 @@ func (s *VirtualMachineService) StartVirtualMachine(p *StartVirtualMachineParams
type StartVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []StartVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -4527,6 +4789,7 @@ type StartVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -4534,6 +4797,7 @@ type StartVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []StartVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -4701,6 +4965,10 @@ func (s *VirtualMachineService) StopVirtualMachine(p *StopVirtualMachineParams)
type StopVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []StopVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -4741,6 +5009,7 @@ type StopVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -4748,6 +5017,7 @@ type StopVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []StopVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -4915,6 +5185,10 @@ func (s *VirtualMachineService) UpdateDefaultNicForVirtualMachine(p *UpdateDefau
type UpdateDefaultNicForVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []UpdateDefaultNicForVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -4955,6 +5229,7 @@ type UpdateDefaultNicForVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -4962,6 +5237,7 @@ type UpdateDefaultNicForVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []UpdateDefaultNicForVirtualMachineResponseSecuritygroup `json:"securitygroup"`
@@ -5271,6 +5547,10 @@ func (s *VirtualMachineService) UpdateVirtualMachine(p *UpdateVirtualMachinePara
type UpdateVirtualMachineResponse struct {
Account string `json:"account"`
Affinitygroup []UpdateVirtualMachineResponseAffinitygroup `json:"affinitygroup"`
+ Backupofferingid string `json:"backupofferingid"`
+ Backupofferingname string `json:"backupofferingname"`
+ Bootmode string `json:"bootmode"`
+ Boottype string `json:"boottype"`
Cpunumber int `json:"cpunumber"`
Cpuspeed int `json:"cpuspeed"`
Cpuused string `json:"cpuused"`
@@ -5311,6 +5591,7 @@ type UpdateVirtualMachineResponse struct {
Networkkbsread int64 `json:"networkkbsread"`
Networkkbswrite int64 `json:"networkkbswrite"`
Nic []Nic `json:"nic"`
+ Osdisplayname string `json:"osdisplayname"`
Ostypeid string `json:"ostypeid"`
Password string `json:"password"`
Passwordenabled bool `json:"passwordenabled"`
@@ -5318,6 +5599,7 @@ type UpdateVirtualMachineResponse struct {
Projectid string `json:"projectid"`
Publicip string `json:"publicip"`
Publicipid string `json:"publicipid"`
+ Readonlyuidetails string `json:"readonlyuidetails"`
Rootdeviceid int64 `json:"rootdeviceid"`
Rootdevicetype string `json:"rootdevicetype"`
Securitygroup []UpdateVirtualMachineResponseSecuritygroup `json:"securitygroup"`
diff --git a/cloudstack/VolumeService.go b/cloudstack/VolumeService.go
index 435dfd1..9298078 100644
--- a/cloudstack/VolumeService.go
+++ b/cloudstack/VolumeService.go
@@ -128,6 +128,10 @@ type AttachVolumeResponse struct {
DiskBytesWriteRate int64 `json:"diskBytesWriteRate"`
DiskIopsReadRate int64 `json:"diskIopsReadRate"`
DiskIopsWriteRate int64 `json:"diskIopsWriteRate"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
Diskofferingdisplaytext string `json:"diskofferingdisplaytext"`
Diskofferingid string `json:"diskofferingid"`
Diskofferingname string `json:"diskofferingname"`
@@ -380,6 +384,10 @@ type CreateVolumeResponse struct {
DiskBytesWriteRate int64 `json:"diskBytesWriteRate"`
DiskIopsReadRate int64 `json:"diskIopsReadRate"`
DiskIopsWriteRate int64 `json:"diskIopsWriteRate"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
Diskofferingdisplaytext string `json:"diskofferingdisplaytext"`
Diskofferingid string `json:"diskofferingid"`
Diskofferingname string `json:"diskofferingname"`
@@ -609,6 +617,10 @@ type DetachVolumeResponse struct {
DiskBytesWriteRate int64 `json:"diskBytesWriteRate"`
DiskIopsReadRate int64 `json:"diskIopsReadRate"`
DiskIopsWriteRate int64 `json:"diskIopsWriteRate"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
Diskofferingdisplaytext string `json:"diskofferingdisplaytext"`
Diskofferingid string `json:"diskofferingid"`
Diskofferingname string `json:"diskofferingname"`
@@ -1133,6 +1145,9 @@ func (p *ListVolumesParams) toURLValues() url.Values {
if v, found := p.p["projectid"]; found {
u.Set("projectid", v.(string))
}
+ if v, found := p.p["state"]; found {
+ u.Set("state", v.(string))
+ }
if v, found := p.p["storageid"]; found {
u.Set("storageid", v.(string))
}
@@ -1267,6 +1282,13 @@ func (p *ListVolumesParams) SetProjectid(v string) {
p.p["projectid"] = v
}
+func (p *ListVolumesParams) SetState(v string) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["state"] = v
+}
+
func (p *ListVolumesParams) SetStorageid(v string) {
if p.p == nil {
p.p = make(map[string]interface{})
@@ -1426,6 +1448,10 @@ type Volume struct {
DiskBytesWriteRate int64 `json:"diskBytesWriteRate"`
DiskIopsReadRate int64 `json:"diskIopsReadRate"`
DiskIopsWriteRate int64 `json:"diskIopsWriteRate"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
Diskofferingdisplaytext string `json:"diskofferingdisplaytext"`
Diskofferingid string `json:"diskofferingid"`
Diskofferingname string `json:"diskofferingname"`
@@ -1587,6 +1613,10 @@ type MigrateVolumeResponse struct {
DiskBytesWriteRate int64 `json:"diskBytesWriteRate"`
DiskIopsReadRate int64 `json:"diskIopsReadRate"`
DiskIopsWriteRate int64 `json:"diskIopsWriteRate"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
Diskofferingdisplaytext string `json:"diskofferingdisplaytext"`
Diskofferingid string `json:"diskofferingid"`
Diskofferingname string `json:"diskofferingname"`
@@ -1770,6 +1800,10 @@ type ResizeVolumeResponse struct {
DiskBytesWriteRate int64 `json:"diskBytesWriteRate"`
DiskIopsReadRate int64 `json:"diskIopsReadRate"`
DiskIopsWriteRate int64 `json:"diskIopsWriteRate"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
Diskofferingdisplaytext string `json:"diskofferingdisplaytext"`
Diskofferingid string `json:"diskofferingid"`
Diskofferingname string `json:"diskofferingname"`
@@ -1959,6 +1993,10 @@ type UpdateVolumeResponse struct {
DiskBytesWriteRate int64 `json:"diskBytesWriteRate"`
DiskIopsReadRate int64 `json:"diskIopsReadRate"`
DiskIopsWriteRate int64 `json:"diskIopsWriteRate"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
Diskofferingdisplaytext string `json:"diskofferingdisplaytext"`
Diskofferingid string `json:"diskofferingid"`
Diskofferingname string `json:"diskofferingname"`
@@ -2181,6 +2219,10 @@ type UploadVolumeResponse struct {
DiskBytesWriteRate int64 `json:"diskBytesWriteRate"`
DiskIopsReadRate int64 `json:"diskIopsReadRate"`
DiskIopsWriteRate int64 `json:"diskIopsWriteRate"`
+ Diskioread int64 `json:"diskioread"`
+ Diskiowrite int64 `json:"diskiowrite"`
+ Diskkbsread int64 `json:"diskkbsread"`
+ Diskkbswrite int64 `json:"diskkbswrite"`
Diskofferingdisplaytext string `json:"diskofferingdisplaytext"`
Diskofferingid string `json:"diskofferingid"`
Diskofferingname string `json:"diskofferingname"`
diff --git a/cloudstack/ZoneService.go b/cloudstack/ZoneService.go
index a121544..d0b2d59 100644
--- a/cloudstack/ZoneService.go
+++ b/cloudstack/ZoneService.go
@@ -1122,6 +1122,10 @@ func (p *UpdateZoneParams) toURLValues() url.Values {
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
+ if v, found := p.p["sortkey"]; found {
+ vv := strconv.Itoa(v.(int))
+ u.Set("sortkey", vv)
+ }
return u
}
@@ -1237,6 +1241,13 @@ func (p *UpdateZoneParams) SetName(v string) {
p.p["name"] = v
}
+func (p *UpdateZoneParams) SetSortkey(v int) {
+ if p.p == nil {
+ p.p = make(map[string]interface{})
+ }
+ p.p["sortkey"] = v
+}
+
// You should always use this function to get a new UpdateZoneParams instance,
// as then you are sure you have configured all required params
func (s *ZoneService) NewUpdateZoneParams(id string) *UpdateZoneParams {
diff --git a/cloudstack/cloudstack.go b/cloudstack/cloudstack.go
index 6b98415..5b6b0ed 100644
--- a/cloudstack/cloudstack.go
+++ b/cloudstack/cloudstack.go
@@ -112,7 +112,6 @@ type CloudStackClient struct {
Network *NetworkService
Nic *NicService
NiciraNVP *NiciraNVPService
- NuageVSP *NuageVSPService
OutofbandManagement *OutofbandManagementService
OvsElement *OvsElementService
Pod *PodService
@@ -216,7 +215,6 @@ func newClient(apiurl string, apikey string, secret string, async bool, verifyss
cs.Network = NewNetworkService(cs)
cs.Nic = NewNicService(cs)
cs.NiciraNVP = NewNiciraNVPService(cs)
- cs.NuageVSP = NewNuageVSPService(cs)
cs.OutofbandManagement = NewOutofbandManagementService(cs)
cs.OvsElement = NewOvsElementService(cs)
cs.Pod = NewPodService(cs)
@@ -853,14 +851,6 @@ func NewNiciraNVPService(cs *CloudStackClient) *NiciraNVPService {
return &NiciraNVPService{cs: cs}
}
-type NuageVSPService struct {
- cs *CloudStackClient
-}
-
-func NewNuageVSPService(cs *CloudStackClient) *NuageVSPService {
- return &NuageVSPService{cs: cs}
-}
-
type OutofbandManagementService struct {
cs *CloudStackClient
}