Skip to content

Latest commit

 

History

History
568 lines (519 loc) · 60.1 KB

README.md

File metadata and controls

568 lines (519 loc) · 60.1 KB

Go API client for compute

IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the "Data Center Designer" (DCD) browser-based tool.

Both methods employ consistent concepts and features, deliver similar power and flexibility, and can be used to perform a multitude of management tasks, including adding servers, volumes, configuring networks, and so on.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 6.0
  • Package version: products/compute/v0.1.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sw "./compute"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identifield by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.ionos.com/cloudapi/v6

Class Method HTTP request Description
DefaultApi ApiInfoGet Get / Display API information
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersDelete Delete /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId} Delete Application Load Balancers
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersFindByApplicationLoadBalancerId Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId} Retrieve Application Load Balancers
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersFlowlogsDelete Delete /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs/{flowLogId} Delete ALB Flow Logs
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersFlowlogsFindByFlowLogId Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs/{flowLogId} Retrieve ALB Flow Logs
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersFlowlogsGet Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs List ALB Flow Logs
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersFlowlogsPatch Patch /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs/{flowLogId} Partially modify ALB Flow Logs
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersFlowlogsPost Post /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs Create ALB Flow Logs
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersFlowlogsPut Put /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs/{flowLogId} Modify ALB Flow Logs
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersForwardingrulesDelete Delete /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules/{forwardingRuleId} Delete ALB forwarding rules
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersForwardingrulesFindByForwardingRuleId Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules/{forwardingRuleId} Retrieve ALB forwarding rules
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersForwardingrulesGet Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules List ALB forwarding rules
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersForwardingrulesPatch Patch /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules/{forwardingRuleId} Partially modify ALB forwarding rules
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersForwardingrulesPost Post /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules Create ALB forwarding rules
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersForwardingrulesPut Put /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules/{forwardingRuleId} Modify ALB forwarding rules
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersGet Get /datacenters/{datacenterId}/applicationloadbalancers List Application Load Balancers
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersPatch Patch /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId} Partially modify Application Load Balancers
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersPost Post /datacenters/{datacenterId}/applicationloadbalancers Create Application Load Balancers
ApplicationLoadBalancersApi DatacentersApplicationloadbalancersPut Put /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId} Modify Application Load Balancers
BackupUnitsApi BackupunitsDelete Delete /backupunits/{backupunitId} Delete backup units
BackupUnitsApi BackupunitsFindById Get /backupunits/{backupunitId} Retrieve backup units
BackupUnitsApi BackupunitsGet Get /backupunits List backup units
BackupUnitsApi BackupunitsPatch Patch /backupunits/{backupunitId} Partially modify backup units
BackupUnitsApi BackupunitsPost Post /backupunits Create backup units
BackupUnitsApi BackupunitsPut Put /backupunits/{backupunitId} Modify backup units
BackupUnitsApi BackupunitsSsourlGet Get /backupunits/{backupunitId}/ssourl Retrieve BU single sign-on URLs
ContractResourcesApi ContractsGet Get /contracts Retrieve contracts
DataCentersApi DatacentersDelete Delete /datacenters/{datacenterId} Delete data centers
DataCentersApi DatacentersFindById Get /datacenters/{datacenterId} Retrieve data centers
DataCentersApi DatacentersGet Get /datacenters List your data centers
DataCentersApi DatacentersPatch Patch /datacenters/{datacenterId} Partially modify data centers
DataCentersApi DatacentersPost Post /datacenters Create data centers
DataCentersApi DatacentersPut Put /datacenters/{datacenterId} Modify data centers
FirewallRulesApi DatacentersServersNicsFirewallrulesDelete Delete /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId} Delete firewall rules
FirewallRulesApi DatacentersServersNicsFirewallrulesFindById Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId} Retrieve firewall rules
FirewallRulesApi DatacentersServersNicsFirewallrulesGet Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules List firewall rules
FirewallRulesApi DatacentersServersNicsFirewallrulesPatch Patch /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId} Partially modify firewall rules
FirewallRulesApi DatacentersServersNicsFirewallrulesPost Post /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules Create firewall rules
FirewallRulesApi DatacentersServersNicsFirewallrulesPut Put /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId} Modify firewall rules
FlowLogsApi DatacentersServersNicsFlowlogsDelete Delete /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs/{flowlogId} Delete Flow Logs
FlowLogsApi DatacentersServersNicsFlowlogsFindById Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs/{flowlogId} Retrieve Flow Logs
FlowLogsApi DatacentersServersNicsFlowlogsGet Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs List Flow Logs
FlowLogsApi DatacentersServersNicsFlowlogsPatch Patch /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs/{flowlogId} Partially modify Flow Logs
FlowLogsApi DatacentersServersNicsFlowlogsPost Post /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs Create Flow Logs
FlowLogsApi DatacentersServersNicsFlowlogsPut Put /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs/{flowlogId} Modify Flow Logs
IPBlocksApi IpblocksDelete Delete /ipblocks/{ipblockId} Delete IP blocks
IPBlocksApi IpblocksFindById Get /ipblocks/{ipblockId} Retrieve IP blocks
IPBlocksApi IpblocksGet Get /ipblocks List IP blocks
IPBlocksApi IpblocksPatch Patch /ipblocks/{ipblockId} Partially modify IP blocks
IPBlocksApi IpblocksPost Post /ipblocks Reserve IP blocks
IPBlocksApi IpblocksPut Put /ipblocks/{ipblockId} Modify IP blocks
ImagesApi ImagesDelete Delete /images/{imageId} Delete images
ImagesApi ImagesFindById Get /images/{imageId} Retrieve images
ImagesApi ImagesGet Get /images List images
ImagesApi ImagesPatch Patch /images/{imageId} Partially modify images
ImagesApi ImagesPut Put /images/{imageId} Modify images
KubernetesApi K8sDelete Delete /k8s/{k8sClusterId} Delete Kubernetes clusters
KubernetesApi K8sFindByClusterId Get /k8s/{k8sClusterId} Retrieve Kubernetes clusters
KubernetesApi K8sGet Get /k8s List Kubernetes clusters
KubernetesApi K8sKubeconfigGet Get /k8s/{k8sClusterId}/kubeconfig Retrieve Kubernetes configuration files
KubernetesApi K8sNodepoolsDelete Delete /k8s/{k8sClusterId}/nodepools/{nodepoolId} Delete Kubernetes node pools
KubernetesApi K8sNodepoolsFindById Get /k8s/{k8sClusterId}/nodepools/{nodepoolId} Retrieve Kubernetes node pools
KubernetesApi K8sNodepoolsGet Get /k8s/{k8sClusterId}/nodepools List Kubernetes node pools
KubernetesApi K8sNodepoolsNodesDelete Delete /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId} Delete Kubernetes nodes
KubernetesApi K8sNodepoolsNodesFindById Get /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId} Retrieve Kubernetes nodes
KubernetesApi K8sNodepoolsNodesGet Get /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes List Kubernetes nodes
KubernetesApi K8sNodepoolsNodesReplacePost Post /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}/replace Recreate Kubernetes nodes
KubernetesApi K8sNodepoolsPost Post /k8s/{k8sClusterId}/nodepools Create Kubernetes node pools
KubernetesApi K8sNodepoolsPut Put /k8s/{k8sClusterId}/nodepools/{nodepoolId} Modify Kubernetes node pools
KubernetesApi K8sPost Post /k8s Create Kubernetes clusters
KubernetesApi K8sPut Put /k8s/{k8sClusterId} Modify Kubernetes clusters
KubernetesApi K8sVersionsDefaultGet Get /k8s/versions/default Retrieve current default Kubernetes version
KubernetesApi K8sVersionsGet Get /k8s/versions List Kubernetes versions
LANsApi DatacentersLansDelete Delete /datacenters/{datacenterId}/lans/{lanId} Delete LANs
LANsApi DatacentersLansFindById Get /datacenters/{datacenterId}/lans/{lanId} Retrieve LANs
LANsApi DatacentersLansGet Get /datacenters/{datacenterId}/lans List LANs
LANsApi DatacentersLansNicsFindById Get /datacenters/{datacenterId}/lans/{lanId}/nics/{nicId} Retrieve attached NICs
LANsApi DatacentersLansNicsGet Get /datacenters/{datacenterId}/lans/{lanId}/nics List LAN members
LANsApi DatacentersLansNicsPost Post /datacenters/{datacenterId}/lans/{lanId}/nics Attach NICs
LANsApi DatacentersLansPatch Patch /datacenters/{datacenterId}/lans/{lanId} Partially modify LANs
LANsApi DatacentersLansPost Post /datacenters/{datacenterId}/lans Create LANs
LANsApi DatacentersLansPut Put /datacenters/{datacenterId}/lans/{lanId} Modify LANs
LabelsApi DatacentersLabelsDelete Delete /datacenters/{datacenterId}/labels/{key} Delete data center labels
LabelsApi DatacentersLabelsFindByKey Get /datacenters/{datacenterId}/labels/{key} Retrieve data center labels
LabelsApi DatacentersLabelsGet Get /datacenters/{datacenterId}/labels List data center labels
LabelsApi DatacentersLabelsPost Post /datacenters/{datacenterId}/labels Create data center labels
LabelsApi DatacentersLabelsPut Put /datacenters/{datacenterId}/labels/{key} Modify data center labels
LabelsApi DatacentersServersLabelsDelete Delete /datacenters/{datacenterId}/servers/{serverId}/labels/{key} Delete server labels
LabelsApi DatacentersServersLabelsFindByKey Get /datacenters/{datacenterId}/servers/{serverId}/labels/{key} Retrieve server labels
LabelsApi DatacentersServersLabelsGet Get /datacenters/{datacenterId}/servers/{serverId}/labels List server labels
LabelsApi DatacentersServersLabelsPost Post /datacenters/{datacenterId}/servers/{serverId}/labels Create server labels
LabelsApi DatacentersServersLabelsPut Put /datacenters/{datacenterId}/servers/{serverId}/labels/{key} Modify server labels
LabelsApi DatacentersVolumesLabelsDelete Delete /datacenters/{datacenterId}/volumes/{volumeId}/labels/{key} Delete volume labels
LabelsApi DatacentersVolumesLabelsFindByKey Get /datacenters/{datacenterId}/volumes/{volumeId}/labels/{key} Retrieve volume labels
LabelsApi DatacentersVolumesLabelsGet Get /datacenters/{datacenterId}/volumes/{volumeId}/labels List volume labels
LabelsApi DatacentersVolumesLabelsPost Post /datacenters/{datacenterId}/volumes/{volumeId}/labels Create volume labels
LabelsApi DatacentersVolumesLabelsPut Put /datacenters/{datacenterId}/volumes/{volumeId}/labels/{key} Modify volume labels
LabelsApi IpblocksLabelsDelete Delete /ipblocks/{ipblockId}/labels/{key} Delete IP block labels
LabelsApi IpblocksLabelsFindByKey Get /ipblocks/{ipblockId}/labels/{key} Retrieve IP block labels
LabelsApi IpblocksLabelsGet Get /ipblocks/{ipblockId}/labels List IP block labels
LabelsApi IpblocksLabelsPost Post /ipblocks/{ipblockId}/labels Create IP block labels
LabelsApi IpblocksLabelsPut Put /ipblocks/{ipblockId}/labels/{key} Modify IP block labels
LabelsApi LabelsFindByUrn Get /labels/{labelurn} Retrieve labels by URN
LabelsApi LabelsGet Get /labels List labels
LabelsApi SnapshotsLabelsDelete Delete /snapshots/{snapshotId}/labels/{key} Delete snapshot labels
LabelsApi SnapshotsLabelsFindByKey Get /snapshots/{snapshotId}/labels/{key} Retrieve snapshot labels
LabelsApi SnapshotsLabelsGet Get /snapshots/{snapshotId}/labels List snapshot labels
LabelsApi SnapshotsLabelsPost Post /snapshots/{snapshotId}/labels Create snapshot labels
LabelsApi SnapshotsLabelsPut Put /snapshots/{snapshotId}/labels/{key} Modify snapshot labels
LoadBalancersApi DatacentersLoadbalancersBalancednicsDelete Delete /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}/balancednics/{nicId} Detach balanced NICs
LoadBalancersApi DatacentersLoadbalancersBalancednicsFindByNicId Get /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}/balancednics/{nicId} Retrieve balanced NICs
LoadBalancersApi DatacentersLoadbalancersBalancednicsGet Get /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}/balancednics List balanced NICs
LoadBalancersApi DatacentersLoadbalancersBalancednicsPost Post /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}/balancednics Attach balanced NICs
LoadBalancersApi DatacentersLoadbalancersDelete Delete /datacenters/{datacenterId}/loadbalancers/{loadbalancerId} Delete Load Balancers
LoadBalancersApi DatacentersLoadbalancersFindById Get /datacenters/{datacenterId}/loadbalancers/{loadbalancerId} Retrieve Load Balancers
LoadBalancersApi DatacentersLoadbalancersGet Get /datacenters/{datacenterId}/loadbalancers List Load Balancers
LoadBalancersApi DatacentersLoadbalancersPatch Patch /datacenters/{datacenterId}/loadbalancers/{loadbalancerId} Partially modify Load Balancers
LoadBalancersApi DatacentersLoadbalancersPost Post /datacenters/{datacenterId}/loadbalancers Create Load Balancers
LoadBalancersApi DatacentersLoadbalancersPut Put /datacenters/{datacenterId}/loadbalancers/{loadbalancerId} Modify Load Balancers
LocationsApi LocationsFindByRegionId Get /locations/{regionId} List locations within regions
LocationsApi LocationsFindByRegionIdAndId Get /locations/{regionId}/{locationId} Retrieve specified locations
LocationsApi LocationsGet Get /locations List locations
NATGatewaysApi DatacentersNatgatewaysDelete Delete /datacenters/{datacenterId}/natgateways/{natGatewayId} Delete NAT Gateways
NATGatewaysApi DatacentersNatgatewaysFindByNatGatewayId Get /datacenters/{datacenterId}/natgateways/{natGatewayId} Retrieve NAT Gateways
NATGatewaysApi DatacentersNatgatewaysFlowlogsDelete Delete /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs/{flowLogId} Delete NAT Gateway Flow Logs
NATGatewaysApi DatacentersNatgatewaysFlowlogsFindByFlowLogId Get /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs/{flowLogId} Retrieve NAT Gateway Flow Logs
NATGatewaysApi DatacentersNatgatewaysFlowlogsGet Get /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs List NAT Gateway Flow Logs
NATGatewaysApi DatacentersNatgatewaysFlowlogsPatch Patch /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs/{flowLogId} Partially modify NAT Gateway Flow Logs
NATGatewaysApi DatacentersNatgatewaysFlowlogsPost Post /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs Create NAT Gateway Flow Logs
NATGatewaysApi DatacentersNatgatewaysFlowlogsPut Put /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs/{flowLogId} Modify NAT Gateway Flow Logs
NATGatewaysApi DatacentersNatgatewaysGet Get /datacenters/{datacenterId}/natgateways List NAT Gateways
NATGatewaysApi DatacentersNatgatewaysPatch Patch /datacenters/{datacenterId}/natgateways/{natGatewayId} Partially modify NAT Gateways
NATGatewaysApi DatacentersNatgatewaysPost Post /datacenters/{datacenterId}/natgateways Create NAT Gateways
NATGatewaysApi DatacentersNatgatewaysPut Put /datacenters/{datacenterId}/natgateways/{natGatewayId} Modify NAT Gateways
NATGatewaysApi DatacentersNatgatewaysRulesDelete Delete /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules/{natGatewayRuleId} Delete NAT Gateway rules
NATGatewaysApi DatacentersNatgatewaysRulesFindByNatGatewayRuleId Get /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules/{natGatewayRuleId} Retrieve NAT Gateway rules
NATGatewaysApi DatacentersNatgatewaysRulesGet Get /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules List NAT Gateway rules
NATGatewaysApi DatacentersNatgatewaysRulesPatch Patch /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules/{natGatewayRuleId} Partially modify NAT Gateway rules
NATGatewaysApi DatacentersNatgatewaysRulesPost Post /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules Create NAT Gateway rules
NATGatewaysApi DatacentersNatgatewaysRulesPut Put /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules/{natGatewayRuleId} Modify NAT Gateway rules
NetworkInterfacesApi DatacentersServersNicsDelete Delete /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId} Delete NICs
NetworkInterfacesApi DatacentersServersNicsFindById Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId} Retrieve NICs
NetworkInterfacesApi DatacentersServersNicsGet Get /datacenters/{datacenterId}/servers/{serverId}/nics List NICs
NetworkInterfacesApi DatacentersServersNicsPatch Patch /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId} Partially modify NICs
NetworkInterfacesApi DatacentersServersNicsPost Post /datacenters/{datacenterId}/servers/{serverId}/nics Create NICs
NetworkInterfacesApi DatacentersServersNicsPut Put /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId} Modify NICs
NetworkLoadBalancersApi DatacentersNetworkloadbalancersDelete Delete /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId} Delete Network Load Balancers
NetworkLoadBalancersApi DatacentersNetworkloadbalancersFindByNetworkLoadBalancerId Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId} Retrieve Network Load Balancers
NetworkLoadBalancersApi DatacentersNetworkloadbalancersFlowlogsDelete Delete /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId} Delete NLB Flow Logs
NetworkLoadBalancersApi DatacentersNetworkloadbalancersFlowlogsFindByFlowLogId Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId} Retrieve NLB Flow Logs
NetworkLoadBalancersApi DatacentersNetworkloadbalancersFlowlogsGet Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs List NLB Flow Logs
NetworkLoadBalancersApi DatacentersNetworkloadbalancersFlowlogsPatch Patch /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId} Partially modify NLB Flow Logs
NetworkLoadBalancersApi DatacentersNetworkloadbalancersFlowlogsPost Post /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs Create NLB Flow Logs
NetworkLoadBalancersApi DatacentersNetworkloadbalancersFlowlogsPut Put /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId} Modify NLB Flow Logs
NetworkLoadBalancersApi DatacentersNetworkloadbalancersForwardingrulesDelete Delete /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId} Delete NLB forwarding rules
NetworkLoadBalancersApi DatacentersNetworkloadbalancersForwardingrulesFindByForwardingRuleId Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId} Retrieve NLB forwarding rules
NetworkLoadBalancersApi DatacentersNetworkloadbalancersForwardingrulesGet Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules List NLB forwarding rules
NetworkLoadBalancersApi DatacentersNetworkloadbalancersForwardingrulesPatch Patch /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId} Partially modify NLB forwarding rules
NetworkLoadBalancersApi DatacentersNetworkloadbalancersForwardingrulesPost Post /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules Create NLB forwarding rules
NetworkLoadBalancersApi DatacentersNetworkloadbalancersForwardingrulesPut Put /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId} Modify NLB forwarding rules
NetworkLoadBalancersApi DatacentersNetworkloadbalancersGet Get /datacenters/{datacenterId}/networkloadbalancers List Network Load Balancers
NetworkLoadBalancersApi DatacentersNetworkloadbalancersPatch Patch /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId} Partially modify Network Load Balancers
NetworkLoadBalancersApi DatacentersNetworkloadbalancersPost Post /datacenters/{datacenterId}/networkloadbalancers Create Network Load Balancers
NetworkLoadBalancersApi DatacentersNetworkloadbalancersPut Put /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId} Modify Network Load Balancers
PrivateCrossConnectsApi PccsDelete Delete /pccs/{pccId} Delete private Cross-Connects
PrivateCrossConnectsApi PccsFindById Get /pccs/{pccId} Retrieve private Cross-Connects
PrivateCrossConnectsApi PccsGet Get /pccs List private Cross-Connects
PrivateCrossConnectsApi PccsPatch Patch /pccs/{pccId} Partially modify private Cross-Connects
PrivateCrossConnectsApi PccsPost Post /pccs Create private Cross-Connects
RequestsApi RequestsFindById Get /requests/{requestId} Retrieve requests
RequestsApi RequestsGet Get /requests List requests
RequestsApi RequestsStatusGet Get /requests/{requestId}/status Retrieve request status
ServersApi DatacentersServersCdromsDelete Delete /datacenters/{datacenterId}/servers/{serverId}/cdroms/{cdromId} Detach CD-ROMs
ServersApi DatacentersServersCdromsFindById Get /datacenters/{datacenterId}/servers/{serverId}/cdroms/{cdromId} Retrieve attached CD-ROMs
ServersApi DatacentersServersCdromsGet Get /datacenters/{datacenterId}/servers/{serverId}/cdroms List attached CD-ROMs
ServersApi DatacentersServersCdromsPost Post /datacenters/{datacenterId}/servers/{serverId}/cdroms Attach CD-ROMs
ServersApi DatacentersServersDelete Delete /datacenters/{datacenterId}/servers/{serverId} Delete servers
ServersApi DatacentersServersFindById Get /datacenters/{datacenterId}/servers/{serverId} Retrieve servers by ID
ServersApi DatacentersServersGet Get /datacenters/{datacenterId}/servers List servers
ServersApi DatacentersServersPatch Patch /datacenters/{datacenterId}/servers/{serverId} Partially modify servers
ServersApi DatacentersServersPost Post /datacenters/{datacenterId}/servers Create servers
ServersApi DatacentersServersPut Put /datacenters/{datacenterId}/servers/{serverId} Modify servers
ServersApi DatacentersServersRebootPost Post /datacenters/{datacenterId}/servers/{serverId}/reboot Reboot servers
ServersApi DatacentersServersRemoteConsoleGet Get /datacenters/{datacenterId}/servers/{serverId}/remoteconsole Get Remote Console link
ServersApi DatacentersServersResumePost Post /datacenters/{datacenterId}/servers/{serverId}/resume Resume Cubes instances
ServersApi DatacentersServersStartPost Post /datacenters/{datacenterId}/servers/{serverId}/start Start servers
ServersApi DatacentersServersStopPost Post /datacenters/{datacenterId}/servers/{serverId}/stop Stop VMs
ServersApi DatacentersServersSuspendPost Post /datacenters/{datacenterId}/servers/{serverId}/suspend Suspend Cubes instances
ServersApi DatacentersServersTokenGet Get /datacenters/{datacenterId}/servers/{serverId}/token Get JASON Web Token
ServersApi DatacentersServersUpgradePost Post /datacenters/{datacenterId}/servers/{serverId}/upgrade Upgrade servers
ServersApi DatacentersServersVolumesDelete Delete /datacenters/{datacenterId}/servers/{serverId}/volumes/{volumeId} Detach volumes
ServersApi DatacentersServersVolumesFindById Get /datacenters/{datacenterId}/servers/{serverId}/volumes/{volumeId} Retrieve attached volumes
ServersApi DatacentersServersVolumesGet Get /datacenters/{datacenterId}/servers/{serverId}/volumes List attached volumes
ServersApi DatacentersServersVolumesPost Post /datacenters/{datacenterId}/servers/{serverId}/volumes Attach volumes
SnapshotsApi SnapshotsDelete Delete /snapshots/{snapshotId} Delete snapshots
SnapshotsApi SnapshotsFindById Get /snapshots/{snapshotId} Retrieve snapshots by ID
SnapshotsApi SnapshotsGet Get /snapshots List snapshots
SnapshotsApi SnapshotsPatch Patch /snapshots/{snapshotId} Partially modify snapshots
SnapshotsApi SnapshotsPut Put /snapshots/{snapshotId} Modify snapshots
TargetGroupsApi TargetGroupsDelete Delete /targetgroups/{targetGroupId} Remove target groups
TargetGroupsApi TargetgroupsFindByTargetGroupId Get /targetgroups/{targetGroupId} Retrieve target groups
TargetGroupsApi TargetgroupsGet Get /targetgroups List target groups
TargetGroupsApi TargetgroupsPatch Patch /targetgroups/{targetGroupId} Partially modify target groups
TargetGroupsApi TargetgroupsPost Post /targetgroups Create target groups
TargetGroupsApi TargetgroupsPut Put /targetgroups/{targetGroupId} Modify target groups
TemplatesApi TemplatesFindById Get /templates/{templateId} Retrieve Cubes Templates
TemplatesApi TemplatesGet Get /templates List Cubes Templates
UserManagementApi UmGroupsDelete Delete /um/groups/{groupId} Delete groups
UserManagementApi UmGroupsFindById Get /um/groups/{groupId} Retrieve groups
UserManagementApi UmGroupsGet Get /um/groups List all groups
UserManagementApi UmGroupsPost Post /um/groups Create groups
UserManagementApi UmGroupsPut Put /um/groups/{groupId} Modify groups
UserManagementApi UmGroupsResourcesGet Get /um/groups/{groupId}/resources Retrieve group resources
UserManagementApi UmGroupsSharesDelete Delete /um/groups/{groupId}/shares/{resourceId} Remove group shares
UserManagementApi UmGroupsSharesFindByResourceId Get /um/groups/{groupId}/shares/{resourceId} Retrieve group shares
UserManagementApi UmGroupsSharesGet Get /um/groups/{groupId}/shares List group shares
UserManagementApi UmGroupsSharesPost Post /um/groups/{groupId}/shares/{resourceId} Add group shares
UserManagementApi UmGroupsSharesPut Put /um/groups/{groupId}/shares/{resourceId} Modify group share privileges
UserManagementApi UmGroupsUsersDelete Delete /um/groups/{groupId}/users/{userId} Remove users from groups
UserManagementApi UmGroupsUsersGet Get /um/groups/{groupId}/users List group members
UserManagementApi UmGroupsUsersPost Post /um/groups/{groupId}/users Add group members
UserManagementApi UmResourcesFindByType Get /um/resources/{resourceType} List resources by type
UserManagementApi UmResourcesFindByTypeAndId Get /um/resources/{resourceType}/{resourceId} Retrieve resources by type
UserManagementApi UmResourcesGet Get /um/resources List all resources
UserManagementApi UmUsersDelete Delete /um/users/{userId} Delete users
UserManagementApi UmUsersFindById Get /um/users/{userId} Retrieve users
UserManagementApi UmUsersGet Get /um/users List all users
UserManagementApi UmUsersGroupsGet Get /um/users/{userId}/groups Retrieve group resources by user ID
UserManagementApi UmUsersOwnsGet Get /um/users/{userId}/owns Retrieve user resources by user ID
UserManagementApi UmUsersPost Post /um/users Create users
UserManagementApi UmUsersPut Put /um/users/{userId} Modify users
UserS3KeysApi UmUsersS3keysDelete Delete /um/users/{userId}/s3keys/{keyId} Delete S3 keys
UserS3KeysApi UmUsersS3keysFindByKeyId Get /um/users/{userId}/s3keys/{keyId} Retrieve user S3 keys by key ID
UserS3KeysApi UmUsersS3keysGet Get /um/users/{userId}/s3keys List user S3 keys
UserS3KeysApi UmUsersS3keysPost Post /um/users/{userId}/s3keys Create user S3 keys
UserS3KeysApi UmUsersS3keysPut Put /um/users/{userId}/s3keys/{keyId} Modify S3 keys by key ID
UserS3KeysApi UmUsersS3ssourlGet Get /um/users/{userId}/s3ssourl Retrieve S3 single sign-on URLs
VolumesApi DatacentersVolumesCreateSnapshotPost Post /datacenters/{datacenterId}/volumes/{volumeId}/create-snapshot Create volume snapshots
VolumesApi DatacentersVolumesDelete Delete /datacenters/{datacenterId}/volumes/{volumeId} Delete volumes
VolumesApi DatacentersVolumesFindById Get /datacenters/{datacenterId}/volumes/{volumeId} Retrieve volumes
VolumesApi DatacentersVolumesGet Get /datacenters/{datacenterId}/volumes List volumes
VolumesApi DatacentersVolumesPatch Patch /datacenters/{datacenterId}/volumes/{volumeId} Partially modify volumes
VolumesApi DatacentersVolumesPost Post /datacenters/{datacenterId}/volumes Create volumes
VolumesApi DatacentersVolumesPut Put /datacenters/{datacenterId}/volumes/{volumeId} Modify volumes
VolumesApi DatacentersVolumesRestoreSnapshotPost Post /datacenters/{datacenterId}/volumes/{volumeId}/restore-snapshot Restore volume snapshots

Documentation For Models

Documentation For Authorization

Basic Authentication

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Token Authentication

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author