Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
All URIs are relative to https://api.ionos.com/cloudapi/v6
Get /
Get API information
var result Info = ApiInfoGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get API information
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.DefaultApi.ApiInfoGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiInfoGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiInfoGet`: Info
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiInfoGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiApiInfoGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Get Contract Information
Other parameters are passed through a pointer to a apiContractsGetRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
Get /contracts
Get Contract Information
var result Contracts = ContractsGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ContractResourcesApi.ContractsGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ContractResourcesApi.ContractsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ContractsGet`: Contracts
fmt.Fprintf(os.Stdout, "Response from `ContractResourcesApi.ContractsGet`: %v\n", resp)
}pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
renamed LanPost and LanPropertiesPost to Lan and LanProperties
Add ImagesLabelsDelete, ImagesLabelsFindByKey, ImagesLabelsGet, ImagesLabelsPost, ImagesLabelsPut
New parameters on NetworkLoadBalancerProperties: CentralLogging, LoggingFormat
New parameters on ApplicationBalancerProperties: CentralLogging, LoggingFormat
New parameter on TargetGroupProperties: ProtocolVersion
New parameter on ServerProperties: Hostname
Add proxyProtocol parameter for ALB and NLB targets
Allow setting Host and Scheme when creating a client with a serverUrl (@maxbischoff)
Remove usage of deprecated ioutil package (@avorima)
Move docs for Url with context to api_doc.mustache
Support injecting x-contract-number header through environment variable.
Added support for IPv6:
New parameter on DatacenterProperties: Ipv6CidrBlock
New parameter on LanProperties and LanPropertiesPost: Ipv6CidrBlock
New parameters on NicProperties: Dhcpv6, Ipv6CidrBlock and Ipv6Ips
More details about IPv6 configuration can be found here.
Go client backoff now respects context cancellation
Full Changelog: https://github.com/ionos-cloud/sdk-go/compare/v6.1.7...v6.1.8
New licenceType supported: RHEL
Added generic functions for utility package
Removed swagger
Library dependencies
Added placementGroupId and vnet parameters.
Allow multiple values to be set for the same filter key
Fix return type of NewGenericOpenAPIError
Changed from manageDbaas to manageDBaaS field in model_group_properties.go : provides privilege for a group to manage DBaaS related functionality. Admin users already have it enabled by default.
Issue #26
Added manageDbaas field in model_group_properties.go : provides privilege for a group to manage DBaaS related functionality. Admin users already here this enabled by default.
Added deleteVolumes to DatacentersServersDelete function: If true, all attached storage volumes will also be deleted.
Added bootOrder to model_volume_properties : Determines whether the volume will be used as a boot volume. Set to `NONE`, the volume will not be used as boot volume. Set to `PRIMARY`, the volume will be used as boot volume and all other volumes must be set to `NONE`. Set to `AUTO` or `null` requires all volumes to be set to `AUTO` or `null`; this will use the legacy behavior, which is to use the volume as a boot volume only if there are no other volumes or cdrom devices. | [optional] [default to 'AUTO'] |
Logger interface with log levels for the sdk. Allows user to inject it's own logger that implements Printf. More information here
Added helper function HttpNotFound in response.go
added Application Load Balancer and Target Group, 18 new models and 2 new apis
new parameter on KubernetesClusterProperties, KubernetesClusterPropertiesForPost: public
new parameter on KubernetesNodePoolProperties, KubernetesNodePoolPropertiesForPost: gatewayIp
allow fields that are explicitly nullable to be sent with null values
updated oauth import
depth parameter:
new method SetDepth on configuration that allows setting a value for the depth parameter on all the API calls for the client
changed the default value of depth parameter from 10 to 0
this affects the amount of data that is returned on GET methods. If there is a need to change the value, please do it with caution and only if it is needed.
changed structure ApiK8sNodepoolsPostRequest, changed name of kubernetesNodePool field from KubernetesNodePool to KubernetesNodePoolForPost
changed structure ApiK8sNodepoolsPutRequest, changed type of KubernetesNodePoolForPut field from kubernetesNodePoolForPut to kubernetesNodePool
fixed sporadic EOF error seen from server
fixed overwriting https with http for host endpoint that starts with http. It now allows user to enter a url that starts with http
added Password field to UserPropertiesPut to allow user password update
added support for maxResults query parameter on GET requests
renamed Apis services: LansApi to LANsApi
renamed BackupUnitProperties to BackupUnit on BackupunitsPatch method
updated descriptions
improved code in sync with Sonar Cloud requirements:
added global constant FilterQueryParam
renamed global constant FORMAT_STRING to FormatStringErr
added support for filter query parameters on GET requests: Filter()
added support for overwriting the host-url value via IONOS_API_URL environment variable
added gofmt check's results
added Offset, Limit and Links to IpBlocks
removed Public parameter from KubernetesClusterProperties
removed GatewayIp parameter from KubernetesNodePoolProperties
added imageAlias to VolumeProperties
added Offset, Limit and Links to User
removed gatewayIp parameter from KubernetesClusterProperties
added GatewayIp parameter from KubernetesNodePoolProperties
Forwardingrules
Pointer to
[optional]
func NewApplicationLoadBalancerEntities() *ApplicationLoadBalancerEntities
NewApplicationLoadBalancerEntities instantiates a new ApplicationLoadBalancerEntities object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerEntitiesWithDefaults() *ApplicationLoadBalancerEntities
NewApplicationLoadBalancerEntitiesWithDefaults instantiates a new ApplicationLoadBalancerEntities object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancerEntities) GetForwardingrules() ApplicationLoadBalancerForwardingRules
GetForwardingrules returns the Forwardingrules field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerEntities) GetForwardingrulesOk() (*ApplicationLoadBalancerForwardingRules, bool)
GetForwardingrulesOk returns a tuple with the Forwardingrules field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerEntities) SetForwardingrules(v ApplicationLoadBalancerForwardingRules)
SetForwardingrules sets Forwardingrules field to given value.
func (o *ApplicationLoadBalancerEntities) HasForwardingrules() bool
HasForwardingrules returns a boolean if a field has been set.
Properties
Entities
Pointer to
[optional]
func NewDatacenterPut(properties DatacenterPropertiesPut, ) *DatacenterPut
NewDatacenterPut instantiates a new DatacenterPut object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDatacenterPutWithDefaults() *DatacenterPut
NewDatacenterPutWithDefaults instantiates a new DatacenterPut object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *DatacenterPut) GetProperties() DatacenterPropertiesPut
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *DatacenterPut) GetPropertiesOk() (*DatacenterPropertiesPut, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPut) SetProperties(v DatacenterPropertiesPut)
SetProperties sets Properties field to given value.
func (o *DatacenterPut) GetEntities() DataCenterEntities
GetEntities returns the Entities field if non-nil, zero value otherwise.
func (o *DatacenterPut) GetEntitiesOk() (*DataCenterEntities, bool)
GetEntitiesOk returns a tuple with the Entities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPut) SetEntities(v DataCenterEntities)
SetEntities sets Entities field to given value.
func (o *DatacenterPut) HasEntities() bool
HasEntities returns a boolean if a field has been set.
Nodepools
Pointer to
[optional]
func NewKubernetesClusterEntities() *KubernetesClusterEntities
NewKubernetesClusterEntities instantiates a new KubernetesClusterEntities object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewKubernetesClusterEntitiesWithDefaults() *KubernetesClusterEntities
NewKubernetesClusterEntitiesWithDefaults instantiates a new KubernetesClusterEntities object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *KubernetesClusterEntities) GetNodepools() KubernetesNodePools
GetNodepools returns the Nodepools field if non-nil, zero value otherwise.
func (o *KubernetesClusterEntities) GetNodepoolsOk() (*KubernetesNodePools, bool)
GetNodepoolsOk returns a tuple with the Nodepools field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterEntities) SetNodepools(v KubernetesNodePools)
SetNodepools sets Nodepools field to given value.
func (o *KubernetesClusterEntities) HasNodepools() bool
HasNodepools returns a boolean if a field has been set.
Properties
Pointer to
[optional]
func NewCreateSnapshot() *CreateSnapshot
NewCreateSnapshot instantiates a new CreateSnapshot object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCreateSnapshotWithDefaults() *CreateSnapshot
NewCreateSnapshotWithDefaults instantiates a new CreateSnapshot object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *CreateSnapshot) GetProperties() CreateSnapshotProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *CreateSnapshot) GetPropertiesOk() (*CreateSnapshotProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSnapshot) SetProperties(v CreateSnapshotProperties)
SetProperties sets Properties field to given value.
func (o *CreateSnapshot) HasProperties() bool
HasProperties returns a boolean if a field has been set.
func NewGroupEntities() *GroupEntities
NewGroupEntities instantiates a new GroupEntities object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGroupEntitiesWithDefaults() *GroupEntities
NewGroupEntitiesWithDefaults instantiates a new GroupEntities object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *GroupEntities) GetUsers() GroupMembers
GetUsers returns the Users field if non-nil, zero value otherwise.
func (o *GroupEntities) GetUsersOk() (*GroupMembers, bool)
GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupEntities) SetUsers(v GroupMembers)
SetUsers sets Users field to given value.
func (o *GroupEntities) HasUsers() bool
HasUsers returns a boolean if a field has been set.
func (o *GroupEntities) GetResources() ResourceGroups
GetResources returns the Resources field if non-nil, zero value otherwise.
func (o *GroupEntities) GetResourcesOk() (*ResourceGroups, bool)
GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupEntities) SetResources(v ResourceGroups)
SetResources sets Resources field to given value.
func (o *GroupEntities) HasResources() bool
HasResources returns a boolean if a field has been set.
func NewBackupUnitSSO() *BackupUnitSSO
NewBackupUnitSSO instantiates a new BackupUnitSSO object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewBackupUnitSSOWithDefaults() *BackupUnitSSO
NewBackupUnitSSOWithDefaults instantiates a new BackupUnitSSO object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *BackupUnitSSO) GetSsoUrl() string
GetSsoUrl returns the SsoUrl field if non-nil, zero value otherwise.
func (o *BackupUnitSSO) GetSsoUrlOk() (*string, bool)
GetSsoUrlOk returns a tuple with the SsoUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnitSSO) SetSsoUrl(v string)
SetSsoUrl sets SsoUrl field to given value.
func (o *BackupUnitSSO) HasSsoUrl() bool
HasSsoUrl returns a boolean if a field has been set.
func NewIPFailover() *IPFailover
NewIPFailover instantiates a new IPFailover object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewIPFailoverWithDefaults() *IPFailover
NewIPFailoverWithDefaults instantiates a new IPFailover object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *IPFailover) GetIp() string
GetIp returns the Ip field if non-nil, zero value otherwise.
func (o *IPFailover) GetIpOk() (*string, bool)
GetIpOk returns a tuple with the Ip field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IPFailover) SetIp(v string)
SetIp sets Ip field to given value.
func (o *IPFailover) HasIp() bool
HasIp returns a boolean if a field has been set.
func (o *IPFailover) GetNicUuid() string
GetNicUuid returns the NicUuid field if non-nil, zero value otherwise.
func (o *IPFailover) GetNicUuidOk() (*string, bool)
GetNicUuidOk returns a tuple with the NicUuid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IPFailover) SetNicUuid(v string)
SetNicUuid sets NicUuid field to given value.
func (o *IPFailover) HasNicUuid() bool
HasNicUuid returns a boolean if a field has been set.
func NewDatacenterPost(properties DatacenterPropertiesPost, ) *DatacenterPost
NewDatacenterPost instantiates a new DatacenterPost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDatacenterPostWithDefaults() *DatacenterPost
NewDatacenterPostWithDefaults instantiates a new DatacenterPost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *DatacenterPost) GetProperties() DatacenterPropertiesPost
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *DatacenterPost) GetPropertiesOk() (*DatacenterPropertiesPost, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPost) SetProperties(v DatacenterPropertiesPost)
SetProperties sets Properties field to given value.
func (o *DatacenterPost) GetEntities() DataCenterEntities
GetEntities returns the Entities field if non-nil, zero value otherwise.
func (o *DatacenterPost) GetEntitiesOk() (*DataCenterEntities, bool)
GetEntitiesOk returns a tuple with the Entities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPost) SetEntities(v DataCenterEntities)
SetEntities sets Entities field to given value.
func (o *DatacenterPost) HasEntities() bool
HasEntities returns a boolean if a field has been set.
func NewKubernetesAutoScaling(minNodeCount int32, maxNodeCount int32, ) *KubernetesAutoScaling
NewKubernetesAutoScaling instantiates a new KubernetesAutoScaling object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewKubernetesAutoScalingWithDefaults() *KubernetesAutoScaling
NewKubernetesAutoScalingWithDefaults instantiates a new KubernetesAutoScaling object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *KubernetesAutoScaling) GetMinNodeCount() int32
GetMinNodeCount returns the MinNodeCount field if non-nil, zero value otherwise.
func (o *KubernetesAutoScaling) GetMinNodeCountOk() (*int32, bool)
GetMinNodeCountOk returns a tuple with the MinNodeCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesAutoScaling) SetMinNodeCount(v int32)
SetMinNodeCount sets MinNodeCount field to given value.
func (o *KubernetesAutoScaling) GetMaxNodeCount() int32
GetMaxNodeCount returns the MaxNodeCount field if non-nil, zero value otherwise.
func (o *KubernetesAutoScaling) GetMaxNodeCountOk() (*int32, bool)
GetMaxNodeCountOk returns a tuple with the MaxNodeCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesAutoScaling) SetMaxNodeCount(v int32)
SetMaxNodeCount sets MaxNodeCount field to given value.
func NewErrorMessage() *ErrorMessage
NewErrorMessage instantiates a new ErrorMessage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewErrorMessageWithDefaults() *ErrorMessage
NewErrorMessageWithDefaults instantiates a new ErrorMessage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ErrorMessage) GetErrorCode() string
GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise.
func (o *ErrorMessage) GetErrorCodeOk() (*string, bool)
GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ErrorMessage) SetErrorCode(v string)
SetErrorCode sets ErrorCode field to given value.
func (o *ErrorMessage) HasErrorCode() bool
HasErrorCode returns a boolean if a field has been set.
func (o *ErrorMessage) GetMessage() string
GetMessage returns the Message field if non-nil, zero value otherwise.
func (o *ErrorMessage) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ErrorMessage) SetMessage(v string)
SetMessage sets Message field to given value.
func (o *ErrorMessage) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func NewGroupShareProperties() *GroupShareProperties
NewGroupShareProperties instantiates a new GroupShareProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGroupSharePropertiesWithDefaults() *GroupShareProperties
NewGroupSharePropertiesWithDefaults instantiates a new GroupShareProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *GroupShareProperties) GetEditPrivilege() bool
GetEditPrivilege returns the EditPrivilege field if non-nil, zero value otherwise.
func (o *GroupShareProperties) GetEditPrivilegeOk() (*bool, bool)
GetEditPrivilegeOk returns a tuple with the EditPrivilege field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShareProperties) SetEditPrivilege(v bool)
SetEditPrivilege sets EditPrivilege field to given value.
func (o *GroupShareProperties) HasEditPrivilege() bool
HasEditPrivilege returns a boolean if a field has been set.
func (o *GroupShareProperties) GetSharePrivilege() bool
GetSharePrivilege returns the SharePrivilege field if non-nil, zero value otherwise.
func (o *GroupShareProperties) GetSharePrivilegeOk() (*bool, bool)
GetSharePrivilegeOk returns a tuple with the SharePrivilege field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShareProperties) SetSharePrivilege(v bool)
SetSharePrivilege sets SharePrivilege field to given value.
func (o *GroupShareProperties) HasSharePrivilege() bool
HasSharePrivilege returns a boolean if a field has been set.
func NewContract(properties ContractProperties, ) *Contract
NewContract instantiates a new Contract object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewContractWithDefaults() *Contract
NewContractWithDefaults instantiates a new Contract object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Contract) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Contract) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Contract) SetType(v Type)
SetType sets Type field to given value.
func (o *Contract) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Contract) GetProperties() ContractProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *Contract) GetPropertiesOk() (*ContractProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Contract) SetProperties(v ContractProperties)
SetProperties sets Properties field to given value.
Users
Pointer to GroupMembers
[optional]
Resources
Pointer to ResourceGroups
[optional]
SsoUrl
Pointer to string
The backup unit single sign on url
[optional] [readonly]
Ip
Pointer to string
[optional]
NicUuid
Pointer to string
[optional]
Properties
Entities
Pointer to DataCenterEntities
[optional]
MinNodeCount
int32
The minimum number of working nodes that the managed node pool can scale must be >= 1 and >= nodeCount. Required if autoScaling is specified.
MaxNodeCount
int32
The maximum number of worker nodes that the managed node pool can scale in. Must be >= minNodeCount and must be >= nodeCount. Required if autoScaling is specified.
ErrorCode
Pointer to string
Application internal error code.
[optional] [readonly]
Message
Pointer to string
A human-readable message.
[optional] [readonly]
EditPrivilege
Pointer to bool
edit privilege on a resource
[optional]
SharePrivilege
Pointer to bool
share privilege on a resource
[optional]
Type
Pointer to Type
The type of the resource.
[optional]
Properties
Id
Pointer to string
Identifier of the virtual data center that can be connected to the Cross Connect.
[optional]
Name
Pointer to string
Name of the virtual data center that can be connected to the Cross Connect.
[optional]
Location
Pointer to string
Location of the virtual data center that can be connected to the Cross Connect.
[optional]
func NewConnectableDatacenter() *ConnectableDatacenter
NewConnectableDatacenter instantiates a new ConnectableDatacenter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewConnectableDatacenterWithDefaults() *ConnectableDatacenter
NewConnectableDatacenterWithDefaults instantiates a new ConnectableDatacenter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ConnectableDatacenter) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *ConnectableDatacenter) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ConnectableDatacenter) SetId(v string)
SetId sets Id field to given value.
func (o *ConnectableDatacenter) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ConnectableDatacenter) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *ConnectableDatacenter) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ConnectableDatacenter) SetName(v string)
SetName sets Name field to given value.
func (o *ConnectableDatacenter) HasName() bool
HasName returns a boolean if a field has been set.
func (o *ConnectableDatacenter) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *ConnectableDatacenter) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ConnectableDatacenter) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *ConnectableDatacenter) HasLocation() bool
HasLocation returns a boolean if a field has been set.
Name
Pointer to string
The name of the snapshot
[optional]
Description
Pointer to string
The description of the snapshot
[optional]
SecAuthProtection
Pointer to bool
Flag representing if extra protection is enabled on snapshot e.g. Two Factor protection etc.
[optional]
LicenceType
Pointer to string
OS type of this Snapshot
[optional]
func NewCreateSnapshotProperties() *CreateSnapshotProperties
NewCreateSnapshotProperties instantiates a new CreateSnapshotProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCreateSnapshotPropertiesWithDefaults() *CreateSnapshotProperties
NewCreateSnapshotPropertiesWithDefaults instantiates a new CreateSnapshotProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *CreateSnapshotProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *CreateSnapshotProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSnapshotProperties) SetName(v string)
SetName sets Name field to given value.
func (o *CreateSnapshotProperties) HasName() bool
HasName returns a boolean if a field has been set.
func (o *CreateSnapshotProperties) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *CreateSnapshotProperties) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSnapshotProperties) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *CreateSnapshotProperties) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CreateSnapshotProperties) GetSecAuthProtection() bool
GetSecAuthProtection returns the SecAuthProtection field if non-nil, zero value otherwise.
func (o *CreateSnapshotProperties) GetSecAuthProtectionOk() (*bool, bool)
GetSecAuthProtectionOk returns a tuple with the SecAuthProtection field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSnapshotProperties) SetSecAuthProtection(v bool)
SetSecAuthProtection sets SecAuthProtection field to given value.
func (o *CreateSnapshotProperties) HasSecAuthProtection() bool
HasSecAuthProtection returns a boolean if a field has been set.
func (o *CreateSnapshotProperties) GetLicenceType() string
GetLicenceType returns the LicenceType field if non-nil, zero value otherwise.
func (o *CreateSnapshotProperties) GetLicenceTypeOk() (*string, bool)
GetLicenceTypeOk returns a tuple with the LicenceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSnapshotProperties) SetLicenceType(v string)
SetLicenceType sets LicenceType field to given value.
func (o *CreateSnapshotProperties) HasLicenceType() bool
HasLicenceType returns a boolean if a field has been set.
Name
string
The name of the resource (alphanumeric characters only).
Password
Pointer to string
The password associated with that resource.
[optional]
Pointer to string
The email associated with the backup unit. Bear in mind that this email does not be the same email as of the user.
[optional]
func NewBackupUnitProperties(name string, ) *BackupUnitProperties
NewBackupUnitProperties instantiates a new BackupUnitProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewBackupUnitPropertiesWithDefaults() *BackupUnitProperties
NewBackupUnitPropertiesWithDefaults instantiates a new BackupUnitProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *BackupUnitProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *BackupUnitProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnitProperties) SetName(v string)
SetName sets Name field to given value.
func (o *BackupUnitProperties) GetPassword() string
GetPassword returns the Password field if non-nil, zero value otherwise.
func (o *BackupUnitProperties) GetPasswordOk() (*string, bool)
GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnitProperties) SetPassword(v string)
SetPassword sets Password field to given value.
func (o *BackupUnitProperties) HasPassword() bool
HasPassword returns a boolean if a field has been set.
func (o *BackupUnitProperties) GetEmail() string
GetEmail returns the Email field if non-nil, zero value otherwise.
func (o *BackupUnitProperties) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnitProperties) SetEmail(v string)
SetEmail sets Email field to given value.
func (o *BackupUnitProperties) HasEmail() bool
HasEmail returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Properties
func NewApplicationLoadBalancerForwardingRulePut(properties ApplicationLoadBalancerForwardingRuleProperties, ) *ApplicationLoadBalancerForwardingRulePut
NewApplicationLoadBalancerForwardingRulePut instantiates a new ApplicationLoadBalancerForwardingRulePut object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerForwardingRulePutWithDefaults() *ApplicationLoadBalancerForwardingRulePut
NewApplicationLoadBalancerForwardingRulePutWithDefaults instantiates a new ApplicationLoadBalancerForwardingRulePut object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancerForwardingRulePut) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRulePut) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRulePut) SetId(v string)
SetId sets Id field to given value.
func (o *ApplicationLoadBalancerForwardingRulePut) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRulePut) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRulePut) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRulePut) SetType(v Type)
SetType sets Type field to given value.
func (o *ApplicationLoadBalancerForwardingRulePut) HasType() bool
HasType returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRulePut) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRulePut) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRulePut) SetHref(v string)
SetHref sets Href field to given value.
func (o *ApplicationLoadBalancerForwardingRulePut) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRulePut) GetProperties() ApplicationLoadBalancerForwardingRuleProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRulePut) GetPropertiesOk() (*ApplicationLoadBalancerForwardingRuleProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRulePut) SetProperties(v ApplicationLoadBalancerForwardingRuleProperties)
SetProperties sets Properties field to given value.
HttpStatus
Pointer to int32
HTTP status code of the operation.
[optional] [readonly]
Messages
Pointer to
[optional]
func NewError() *Error
NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewErrorWithDefaults() *Error
NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Error) GetHttpStatus() int32
GetHttpStatus returns the HttpStatus field if non-nil, zero value otherwise.
func (o *Error) GetHttpStatusOk() (*int32, bool)
GetHttpStatusOk returns a tuple with the HttpStatus field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Error) SetHttpStatus(v int32)
SetHttpStatus sets HttpStatus field to given value.
func (o *Error) HasHttpStatus() bool
HasHttpStatus returns a boolean if a field has been set.
func (o *Error) GetMessages() []ErrorMessage
GetMessages returns the Messages field if non-nil, zero value otherwise.
func (o *Error) GetMessagesOk() (*[]ErrorMessage, bool)
GetMessagesOk returns a tuple with the Messages field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Error) SetMessages(v []ErrorMessage)
SetMessages sets Messages field to given value.
func (o *Error) HasMessages() bool
HasMessages returns a boolean if a field has been set.
func NewApplicationLoadBalancerForwardingRule(properties ApplicationLoadBalancerForwardingRuleProperties, ) *ApplicationLoadBalancerForwardingRule
NewApplicationLoadBalancerForwardingRule instantiates a new ApplicationLoadBalancerForwardingRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerForwardingRuleWithDefaults() *ApplicationLoadBalancerForwardingRule
NewApplicationLoadBalancerForwardingRuleWithDefaults instantiates a new ApplicationLoadBalancerForwardingRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancerForwardingRule) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRule) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRule) SetId(v string)
SetId sets Id field to given value.
func (o *ApplicationLoadBalancerForwardingRule) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRule) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRule) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRule) SetType(v Type)
SetType sets Type field to given value.
func (o *ApplicationLoadBalancerForwardingRule) HasType() bool
HasType returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRule) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRule) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRule) SetHref(v string)
SetHref sets Href field to given value.
func (o *ApplicationLoadBalancerForwardingRule) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRule) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRule) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRule) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *ApplicationLoadBalancerForwardingRule) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRule) GetProperties() ApplicationLoadBalancerForwardingRuleProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRule) GetPropertiesOk() (*ApplicationLoadBalancerForwardingRuleProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRule) SetProperties(v ApplicationLoadBalancerForwardingRuleProperties)
SetProperties sets Properties field to given value.
func NewBackupUnit(properties BackupUnitProperties, ) *BackupUnit
NewBackupUnit instantiates a new BackupUnit object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewBackupUnitWithDefaults() *BackupUnit
NewBackupUnitWithDefaults instantiates a new BackupUnit object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *BackupUnit) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *BackupUnit) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnit) SetId(v string)
SetId sets Id field to given value.
func (o *BackupUnit) HasId() bool
HasId returns a boolean if a field has been set.
func (o *BackupUnit) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *BackupUnit) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnit) SetType(v string)
SetType sets Type field to given value.
func (o *BackupUnit) HasType() bool
HasType returns a boolean if a field has been set.
func (o *BackupUnit) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *BackupUnit) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnit) SetHref(v string)
SetHref sets Href field to given value.
func (o *BackupUnit) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *BackupUnit) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *BackupUnit) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnit) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *BackupUnit) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *BackupUnit) GetProperties() BackupUnitProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *BackupUnit) GetPropertiesOk() (*BackupUnitProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnit) SetProperties(v BackupUnitProperties)
SetProperties sets Properties field to given value.
func NewCpuArchitectureProperties() *CpuArchitectureProperties
NewCpuArchitectureProperties instantiates a new CpuArchitectureProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCpuArchitecturePropertiesWithDefaults() *CpuArchitectureProperties
NewCpuArchitecturePropertiesWithDefaults instantiates a new CpuArchitectureProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *CpuArchitectureProperties) GetCpuFamily() string
GetCpuFamily returns the CpuFamily field if non-nil, zero value otherwise.
func (o *CpuArchitectureProperties) GetCpuFamilyOk() (*string, bool)
GetCpuFamilyOk returns a tuple with the CpuFamily field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CpuArchitectureProperties) SetCpuFamily(v string)
SetCpuFamily sets CpuFamily field to given value.
func (o *CpuArchitectureProperties) HasCpuFamily() bool
HasCpuFamily returns a boolean if a field has been set.
func (o *CpuArchitectureProperties) GetMaxCores() int32
GetMaxCores returns the MaxCores field if non-nil, zero value otherwise.
func (o *CpuArchitectureProperties) GetMaxCoresOk() (*int32, bool)
GetMaxCoresOk returns a tuple with the MaxCores field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CpuArchitectureProperties) SetMaxCores(v int32)
SetMaxCores sets MaxCores field to given value.
func (o *CpuArchitectureProperties) HasMaxCores() bool
HasMaxCores returns a boolean if a field has been set.
func (o *CpuArchitectureProperties) GetMaxRam() int32
GetMaxRam returns the MaxRam field if non-nil, zero value otherwise.
func (o *CpuArchitectureProperties) GetMaxRamOk() (*int32, bool)
GetMaxRamOk returns a tuple with the MaxRam field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CpuArchitectureProperties) SetMaxRam(v int32)
SetMaxRam sets MaxRam field to given value.
func (o *CpuArchitectureProperties) HasMaxRam() bool
HasMaxRam returns a boolean if a field has been set.
func (o *CpuArchitectureProperties) GetVendor() string
GetVendor returns the Vendor field if non-nil, zero value otherwise.
func (o *CpuArchitectureProperties) GetVendorOk() (*string, bool)
GetVendorOk returns a tuple with the Vendor field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CpuArchitectureProperties) SetVendor(v string)
SetVendor sets Vendor field to given value.
func (o *CpuArchitectureProperties) HasVendor() bool
HasVendor returns a boolean if a field has been set.
func NewContracts() *Contracts
NewContracts instantiates a new Contracts object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewContractsWithDefaults() *Contracts
NewContractsWithDefaults instantiates a new Contracts object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Contracts) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Contracts) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Contracts) SetId(v string)
SetId sets Id field to given value.
func (o *Contracts) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Contracts) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Contracts) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Contracts) SetType(v Type)
SetType sets Type field to given value.
func (o *Contracts) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Contracts) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *Contracts) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Contracts) SetHref(v string)
SetHref sets Href field to given value.
func (o *Contracts) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *Contracts) GetItems() []Contract
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *Contracts) GetItemsOk() (*[]Contract, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Contracts) SetItems(v []Contract)
SetItems sets Items field to given value.
func (o *Contracts) HasItems() bool
HasItems returns a boolean if a field has been set.
func NewBackupUnits() *BackupUnits
NewBackupUnits instantiates a new BackupUnits object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewBackupUnitsWithDefaults() *BackupUnits
NewBackupUnitsWithDefaults instantiates a new BackupUnits object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *BackupUnits) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *BackupUnits) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnits) SetId(v string)
SetId sets Id field to given value.
func (o *BackupUnits) HasId() bool
HasId returns a boolean if a field has been set.
func (o *BackupUnits) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *BackupUnits) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnits) SetType(v string)
SetType sets Type field to given value.
func (o *BackupUnits) HasType() bool
HasType returns a boolean if a field has been set.
func (o *BackupUnits) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *BackupUnits) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnits) SetHref(v string)
SetHref sets Href field to given value.
func (o *BackupUnits) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *BackupUnits) GetItems() []BackupUnit
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *BackupUnits) GetItemsOk() (*[]BackupUnit, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BackupUnits) SetItems(v []BackupUnit)
SetItems sets Items field to given value.
func (o *BackupUnits) HasItems() bool
HasItems returns a boolean if a field has been set.
func NewGroup(properties GroupProperties, ) *Group
NewGroup instantiates a new Group object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGroupWithDefaults() *Group
NewGroupWithDefaults instantiates a new Group object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Group) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Group) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Group) SetId(v string)
SetId sets Id field to given value.
func (o *Group) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Group) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Group) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Group) SetType(v Type)
SetType sets Type field to given value.
func (o *Group) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Group) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *Group) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Group) SetHref(v string)
SetHref sets Href field to given value.
func (o *Group) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *Group) GetProperties() GroupProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *Group) GetPropertiesOk() (*GroupProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Group) SetProperties(v GroupProperties)
SetProperties sets Properties field to given value.
func (o *Group) GetEntities() GroupEntities
GetEntities returns the Entities field if non-nil, zero value otherwise.
func (o *Group) GetEntitiesOk() (*GroupEntities, bool)
GetEntitiesOk returns a tuple with the Entities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Group) SetEntities(v GroupEntities)
SetEntities sets Entities field to given value.
func (o *Group) HasEntities() bool
HasEntities returns a boolean if a field has been set.
func NewFlowLogProperties(name string, action string, direction string, bucket string, ) *FlowLogProperties
NewFlowLogProperties instantiates a new FlowLogProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewFlowLogPropertiesWithDefaults() *FlowLogProperties
NewFlowLogPropertiesWithDefaults instantiates a new FlowLogProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *FlowLogProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *FlowLogProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogProperties) SetName(v string)
SetName sets Name field to given value.
func (o *FlowLogProperties) GetAction() string
GetAction returns the Action field if non-nil, zero value otherwise.
func (o *FlowLogProperties) GetActionOk() (*string, bool)
GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogProperties) SetAction(v string)
SetAction sets Action field to given value.
func (o *FlowLogProperties) GetDirection() string
GetDirection returns the Direction field if non-nil, zero value otherwise.
func (o *FlowLogProperties) GetDirectionOk() (*string, bool)
GetDirectionOk returns a tuple with the Direction field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogProperties) SetDirection(v string)
SetDirection sets Direction field to given value.
func (o *FlowLogProperties) GetBucket() string
GetBucket returns the Bucket field if non-nil, zero value otherwise.
func (o *FlowLogProperties) GetBucketOk() (*string, bool)
GetBucketOk returns a tuple with the Bucket field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogProperties) SetBucket(v string)
SetBucket sets Bucket field to given value.
func NewGroupShare(properties GroupShareProperties, ) *GroupShare
NewGroupShare instantiates a new GroupShare object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGroupShareWithDefaults() *GroupShare
NewGroupShareWithDefaults instantiates a new GroupShare object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *GroupShare) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *GroupShare) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShare) SetId(v string)
SetId sets Id field to given value.
func (o *GroupShare) HasId() bool
HasId returns a boolean if a field has been set.
func (o *GroupShare) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *GroupShare) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShare) SetType(v Type)
SetType sets Type field to given value.
func (o *GroupShare) HasType() bool
HasType returns a boolean if a field has been set.
func (o *GroupShare) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *GroupShare) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShare) SetHref(v string)
SetHref sets Href field to given value.
func (o *GroupShare) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *GroupShare) GetProperties() GroupShareProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *GroupShare) GetPropertiesOk() (*GroupShareProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShare) SetProperties(v GroupShareProperties)
SetProperties sets Properties field to given value.
func NewGroupUsers() *GroupUsers
NewGroupUsers instantiates a new GroupUsers object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGroupUsersWithDefaults() *GroupUsers
NewGroupUsersWithDefaults instantiates a new GroupUsers object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *GroupUsers) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *GroupUsers) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupUsers) SetId(v string)
SetId sets Id field to given value.
func (o *GroupUsers) HasId() bool
HasId returns a boolean if a field has been set.
func (o *GroupUsers) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *GroupUsers) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupUsers) SetType(v Type)
SetType sets Type field to given value.
func (o *GroupUsers) HasType() bool
HasType returns a boolean if a field has been set.
func (o *GroupUsers) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *GroupUsers) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupUsers) SetHref(v string)
SetHref sets Href field to given value.
func (o *GroupUsers) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *GroupUsers) GetItems() []Group
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *GroupUsers) GetItemsOk() (*[]Group, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupUsers) SetItems(v []Group)
SetItems sets Items field to given value.
func (o *GroupUsers) HasItems() bool
HasItems returns a boolean if a field has been set.
func NewGroupShares() *GroupShares
NewGroupShares instantiates a new GroupShares object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGroupSharesWithDefaults() *GroupShares
NewGroupSharesWithDefaults instantiates a new GroupShares object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *GroupShares) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *GroupShares) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShares) SetId(v string)
SetId sets Id field to given value.
func (o *GroupShares) HasId() bool
HasId returns a boolean if a field has been set.
func (o *GroupShares) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *GroupShares) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShares) SetType(v Type)
SetType sets Type field to given value.
func (o *GroupShares) HasType() bool
HasType returns a boolean if a field has been set.
func (o *GroupShares) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *GroupShares) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShares) SetHref(v string)
SetHref sets Href field to given value.
func (o *GroupShares) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *GroupShares) GetItems() []GroupShare
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *GroupShares) GetItemsOk() (*[]GroupShare, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupShares) SetItems(v []GroupShare)
SetItems sets Items field to given value.
func (o *GroupShares) HasItems() bool
HasItems returns a boolean if a field has been set.
func NewGroups() *Groups
NewGroups instantiates a new Groups object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGroupsWithDefaults() *Groups
NewGroupsWithDefaults instantiates a new Groups object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Groups) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Groups) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Groups) SetId(v string)
SetId sets Id field to given value.
func (o *Groups) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Groups) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Groups) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Groups) SetType(v Type)
SetType sets Type field to given value.
func (o *Groups) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Groups) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *Groups) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Groups) SetHref(v string)
SetHref sets Href field to given value.
func (o *Groups) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *Groups) GetItems() []Group
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *Groups) GetItemsOk() (*[]Group, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Groups) SetItems(v []Group)
SetItems sets Items field to given value.
func (o *Groups) HasItems() bool
HasItems returns a boolean if a field has been set.
func NewInfo() *Info
NewInfo instantiates a new Info object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewInfoWithDefaults() *Info
NewInfoWithDefaults instantiates a new Info object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Info) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *Info) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Info) SetHref(v string)
SetHref sets Href field to given value.
func (o *Info) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *Info) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *Info) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Info) SetName(v string)
SetName sets Name field to given value.
func (o *Info) HasName() bool
HasName returns a boolean if a field has been set.
func (o *Info) GetVersion() string
GetVersion returns the Version field if non-nil, zero value otherwise.
func (o *Info) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Info) SetVersion(v string)
SetVersion sets Version field to given value.
func (o *Info) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func NewGroupMembers() *GroupMembers
NewGroupMembers instantiates a new GroupMembers object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGroupMembersWithDefaults() *GroupMembers
NewGroupMembersWithDefaults instantiates a new GroupMembers object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *GroupMembers) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *GroupMembers) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupMembers) SetId(v string)
SetId sets Id field to given value.
func (o *GroupMembers) HasId() bool
HasId returns a boolean if a field has been set.
func (o *GroupMembers) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *GroupMembers) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupMembers) SetType(v Type)
SetType sets Type field to given value.
func (o *GroupMembers) HasType() bool
HasType returns a boolean if a field has been set.
func (o *GroupMembers) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *GroupMembers) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupMembers) SetHref(v string)
SetHref sets Href field to given value.
func (o *GroupMembers) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *GroupMembers) GetItems() []User
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *GroupMembers) GetItemsOk() (*[]User, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupMembers) SetItems(v []User)
SetItems sets Items field to given value.
func (o *GroupMembers) HasItems() bool
HasItems returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to DatacenterElementMetadata
[optional]
Properties
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to string
The type of object that has been created.
[optional] [readonly]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to DatacenterElementMetadata
[optional]
Properties
CpuFamily
Pointer to string
A valid CPU family name.
[optional]
MaxCores
Pointer to int32
The maximum number of cores available.
[optional]
MaxRam
Pointer to int32
The maximum RAM size in MB.
[optional]
Vendor
Pointer to string
A valid CPU vendor name.
[optional]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to []Contract
Array of items in the collection.
[optional] [readonly]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to string
The type of object that has been created.
[optional] [readonly]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to []BackupUnit
Array of items in the collection.
[optional] [readonly]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of the resource.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Properties
Entities
Pointer to GroupEntities
[optional]
Name
string
The resource name.
Action
string
Specifies the traffic action pattern.
Direction
string
Specifies the traffic direction pattern.
Bucket
string
The bucket name of an existing IONOS Cloud Object storage bucket.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
resource as generic type
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Properties
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of the resource.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to []Group
Array of items in the collection.
[optional] [readonly]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
Share representing groups and resource relationship
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to []GroupShare
Array of items in the collection.
[optional] [readonly]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of the resource.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to []Group
Array of items in the collection.
[optional] [readonly]
Href
Pointer to string
The API entry point.
[optional] [readonly]
Name
Pointer to string
The API name.
[optional] [readonly]
Version
Pointer to string
The API version.
[optional] [readonly]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to []User
Array of items in the collection.
[optional] [readonly]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Properties
func NewApplicationLoadBalancerPut(properties ApplicationLoadBalancerProperties, ) *ApplicationLoadBalancerPut
NewApplicationLoadBalancerPut instantiates a new ApplicationLoadBalancerPut object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerPutWithDefaults() *ApplicationLoadBalancerPut
NewApplicationLoadBalancerPutWithDefaults instantiates a new ApplicationLoadBalancerPut object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancerPut) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerPut) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerPut) SetId(v string)
SetId sets Id field to given value.
func (o *ApplicationLoadBalancerPut) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerPut) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerPut) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerPut) SetType(v Type)
SetType sets Type field to given value.
func (o *ApplicationLoadBalancerPut) HasType() bool
HasType returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerPut) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerPut) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerPut) SetHref(v string)
SetHref sets Href field to given value.
func (o *ApplicationLoadBalancerPut) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerPut) GetProperties() ApplicationLoadBalancerProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerPut) GetPropertiesOk() (*ApplicationLoadBalancerProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerPut) SetProperties(v ApplicationLoadBalancerProperties)
SetProperties sets Properties field to given value.
ContractNumber
Pointer to int64
The contract number.
[optional] [readonly]
Owner
Pointer to string
The contract owner's user name.
[optional] [readonly]
Status
Pointer to string
The contract status.
[optional] [readonly]
RegDomain
Pointer to string
The registration domain of the contract.
[optional] [readonly]
ResourceLimits
Pointer to
[optional]
func NewContractProperties() *ContractProperties
NewContractProperties instantiates a new ContractProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewContractPropertiesWithDefaults() *ContractProperties
NewContractPropertiesWithDefaults instantiates a new ContractProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ContractProperties) GetContractNumber() int64
GetContractNumber returns the ContractNumber field if non-nil, zero value otherwise.
func (o *ContractProperties) GetContractNumberOk() (*int64, bool)
GetContractNumberOk returns a tuple with the ContractNumber field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContractProperties) SetContractNumber(v int64)
SetContractNumber sets ContractNumber field to given value.
func (o *ContractProperties) HasContractNumber() bool
HasContractNumber returns a boolean if a field has been set.
func (o *ContractProperties) GetOwner() string
GetOwner returns the Owner field if non-nil, zero value otherwise.
func (o *ContractProperties) GetOwnerOk() (*string, bool)
GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContractProperties) SetOwner(v string)
SetOwner sets Owner field to given value.
func (o *ContractProperties) HasOwner() bool
HasOwner returns a boolean if a field has been set.
func (o *ContractProperties) GetStatus() string
GetStatus returns the Status field if non-nil, zero value otherwise.
func (o *ContractProperties) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContractProperties) SetStatus(v string)
SetStatus sets Status field to given value.
func (o *ContractProperties) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *ContractProperties) GetRegDomain() string
GetRegDomain returns the RegDomain field if non-nil, zero value otherwise.
func (o *ContractProperties) GetRegDomainOk() (*string, bool)
GetRegDomainOk returns a tuple with the RegDomain field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContractProperties) SetRegDomain(v string)
SetRegDomain sets RegDomain field to given value.
func (o *ContractProperties) HasRegDomain() bool
HasRegDomain returns a boolean if a field has been set.
func (o *ContractProperties) GetResourceLimits() ResourceLimits
GetResourceLimits returns the ResourceLimits field if non-nil, zero value otherwise.
func (o *ContractProperties) GetResourceLimitsOk() (*ResourceLimits, bool)
GetResourceLimitsOk returns a tuple with the ResourceLimits field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContractProperties) SetResourceLimits(v ResourceLimits)
SetResourceLimits sets ResourceLimits field to given value.
func (o *ContractProperties) HasResourceLimits() bool
HasResourceLimits returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to
[optional]
Properties
Entities
Pointer to
[optional]
func NewDatacenter(properties DatacenterProperties, ) *Datacenter
NewDatacenter instantiates a new Datacenter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDatacenterWithDefaults() *Datacenter
NewDatacenterWithDefaults instantiates a new Datacenter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Datacenter) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Datacenter) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenter) SetId(v string)
SetId sets Id field to given value.
func (o *Datacenter) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Datacenter) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Datacenter) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenter) SetType(v Type)
SetType sets Type field to given value.
func (o *Datacenter) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Datacenter) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *Datacenter) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenter) SetHref(v string)
SetHref sets Href field to given value.
func (o *Datacenter) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *Datacenter) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *Datacenter) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenter) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *Datacenter) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *Datacenter) GetProperties() DatacenterProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *Datacenter) GetPropertiesOk() (*DatacenterProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenter) SetProperties(v DatacenterProperties)
SetProperties sets Properties field to given value.
func (o *Datacenter) GetEntities() DataCenterEntities
GetEntities returns the Entities field if non-nil, zero value otherwise.
func (o *Datacenter) GetEntitiesOk() (*DataCenterEntities, bool)
GetEntitiesOk returns a tuple with the Entities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenter) SetEntities(v DataCenterEntities)
SetEntities sets Entities field to given value.
func (o *Datacenter) HasEntities() bool
HasEntities returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Properties
func NewFlowLogPut(properties FlowLogProperties, ) *FlowLogPut
NewFlowLogPut instantiates a new FlowLogPut object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewFlowLogPutWithDefaults() *FlowLogPut
NewFlowLogPutWithDefaults instantiates a new FlowLogPut object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *FlowLogPut) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *FlowLogPut) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogPut) SetId(v string)
SetId sets Id field to given value.
func (o *FlowLogPut) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FlowLogPut) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *FlowLogPut) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogPut) SetType(v Type)
SetType sets Type field to given value.
func (o *FlowLogPut) HasType() bool
HasType returns a boolean if a field has been set.
func (o *FlowLogPut) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *FlowLogPut) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogPut) SetHref(v string)
SetHref sets Href field to given value.
func (o *FlowLogPut) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *FlowLogPut) GetProperties() FlowLogProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *FlowLogPut) GetPropertiesOk() (*FlowLogProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogPut) SetProperties(v FlowLogProperties)
SetProperties sets Properties field to given value.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to
[optional]
Properties
func NewImage(properties ImageProperties, ) *Image
NewImage instantiates a new Image object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewImageWithDefaults() *Image
NewImageWithDefaults instantiates a new Image object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Image) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Image) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Image) SetId(v string)
SetId sets Id field to given value.
func (o *Image) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Image) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Image) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Image) SetType(v Type)
SetType sets Type field to given value.
func (o *Image) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Image) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *Image) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Image) SetHref(v string)
SetHref sets Href field to given value.
func (o *Image) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *Image) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *Image) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Image) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *Image) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *Image) GetProperties() ImageProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *Image) GetPropertiesOk() (*ImageProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Image) SetProperties(v ImageProperties)
SetProperties sets Properties field to given value.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to
Array of items in the collection.
[optional] [readonly]
func NewImages() *Images
NewImages instantiates a new Images object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewImagesWithDefaults() *Images
NewImagesWithDefaults instantiates a new Images object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Images) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Images) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Images) SetId(v string)
SetId sets Id field to given value.
func (o *Images) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Images) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Images) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Images) SetType(v Type)
SetType sets Type field to given value.
func (o *Images) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Images) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *Images) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Images) SetHref(v string)
SetHref sets Href field to given value.
func (o *Images) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *Images) GetItems() []Image
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *Images) GetItemsOk() (*[]Image, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Images) SetItems(v []Image)
SetItems sets Items field to given value.
func (o *Images) HasItems() bool
HasItems returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to
[optional]
Properties
func NewFlowLog(properties FlowLogProperties, ) *FlowLog
NewFlowLog instantiates a new FlowLog object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewFlowLogWithDefaults() *FlowLog
NewFlowLogWithDefaults instantiates a new FlowLog object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *FlowLog) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *FlowLog) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLog) SetId(v string)
SetId sets Id field to given value.
func (o *FlowLog) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FlowLog) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *FlowLog) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLog) SetType(v Type)
SetType sets Type field to given value.
func (o *FlowLog) HasType() bool
HasType returns a boolean if a field has been set.
func (o *FlowLog) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *FlowLog) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLog) SetHref(v string)
SetHref sets Href field to given value.
func (o *FlowLog) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *FlowLog) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *FlowLog) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLog) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *FlowLog) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *FlowLog) GetProperties() FlowLogProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *FlowLog) GetPropertiesOk() (*FlowLogProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLog) SetProperties(v FlowLogProperties)
SetProperties sets Properties field to given value.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to
[optional]
Properties
func NewIpBlock(properties IpBlockProperties, ) *IpBlock
NewIpBlock instantiates a new IpBlock object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewIpBlockWithDefaults() *IpBlock
NewIpBlockWithDefaults instantiates a new IpBlock object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *IpBlock) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *IpBlock) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlock) SetId(v string)
SetId sets Id field to given value.
func (o *IpBlock) HasId() bool
HasId returns a boolean if a field has been set.
func (o *IpBlock) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *IpBlock) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlock) SetType(v Type)
SetType sets Type field to given value.
func (o *IpBlock) HasType() bool
HasType returns a boolean if a field has been set.
func (o *IpBlock) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *IpBlock) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlock) SetHref(v string)
SetHref sets Href field to given value.
func (o *IpBlock) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *IpBlock) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *IpBlock) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlock) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *IpBlock) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *IpBlock) GetProperties() IpBlockProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *IpBlock) GetPropertiesOk() (*IpBlockProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlock) SetProperties(v IpBlockProperties)
SetProperties sets Properties field to given value.
Ips
Pointer to []string
Collection of IPs, associated with the IP Block.
[optional] [readonly]
Location
string
Location of that IP block. Property cannot be modified after it is created (disallowed in update requests).
Size
int32
The size of the IP block.
Name
Pointer to string
The name of the resource.
[optional]
IpConsumers
Pointer to
Read-Only attribute. Lists consumption detail for an individual IP
[optional] [readonly]
func NewIpBlockProperties(location string, size int32, ) *IpBlockProperties
NewIpBlockProperties instantiates a new IpBlockProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewIpBlockPropertiesWithDefaults() *IpBlockProperties
NewIpBlockPropertiesWithDefaults instantiates a new IpBlockProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *IpBlockProperties) GetIps() []string
GetIps returns the Ips field if non-nil, zero value otherwise.
func (o *IpBlockProperties) GetIpsOk() (*[]string, bool)
GetIpsOk returns a tuple with the Ips field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlockProperties) SetIps(v []string)
SetIps sets Ips field to given value.
func (o *IpBlockProperties) HasIps() bool
HasIps returns a boolean if a field has been set.
func (o *IpBlockProperties) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *IpBlockProperties) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlockProperties) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *IpBlockProperties) GetSize() int32
GetSize returns the Size field if non-nil, zero value otherwise.
func (o *IpBlockProperties) GetSizeOk() (*int32, bool)
GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlockProperties) SetSize(v int32)
SetSize sets Size field to given value.
func (o *IpBlockProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *IpBlockProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlockProperties) SetName(v string)
SetName sets Name field to given value.
func (o *IpBlockProperties) HasName() bool
HasName returns a boolean if a field has been set.
func (o *IpBlockProperties) GetIpConsumers() []IpConsumer
GetIpConsumers returns the IpConsumers field if non-nil, zero value otherwise.
func (o *IpBlockProperties) GetIpConsumersOk() (*[]IpConsumer, bool)
GetIpConsumersOk returns a tuple with the IpConsumers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlockProperties) SetIpConsumers(v []IpConsumer)
SetIpConsumers sets IpConsumers field to given value.
func (o *IpBlockProperties) HasIpConsumers() bool
HasIpConsumers returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to
[optional]
Properties
func NewFirewallRule(properties FirewallruleProperties, ) *FirewallRule
NewFirewallRule instantiates a new FirewallRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewFirewallRuleWithDefaults() *FirewallRule
NewFirewallRuleWithDefaults instantiates a new FirewallRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *FirewallRule) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *FirewallRule) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRule) SetId(v string)
SetId sets Id field to given value.
func (o *FirewallRule) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FirewallRule) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *FirewallRule) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRule) SetType(v Type)
SetType sets Type field to given value.
func (o *FirewallRule) HasType() bool
HasType returns a boolean if a field has been set.
func (o *FirewallRule) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *FirewallRule) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRule) SetHref(v string)
SetHref sets Href field to given value.
func (o *FirewallRule) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *FirewallRule) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *FirewallRule) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRule) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *FirewallRule) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *FirewallRule) GetProperties() FirewallruleProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *FirewallRule) GetPropertiesOk() (*FirewallruleProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRule) SetProperties(v FirewallruleProperties)
SetProperties sets Properties field to given value.
Name
string
A Kubernetes cluster name. Valid Kubernetes cluster name must be 63 characters or less and must be empty or begin and end with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
K8sVersion
Pointer to string
The Kubernetes version that the cluster is running. This limits which Kubernetes versions can run in a cluster's node pools. Also, not all Kubernetes versions are suitable upgrade targets for all earlier versions.
[optional]
MaintenanceWindow
Pointer to
[optional]
ApiSubnetAllowList
Pointer to []string
Access to the K8s API server is restricted to these CIDRs. Intra-cluster traffic is not affected by this restriction. If no AllowList is specified, access is not limited. If an IP is specified without a subnet mask, the default value is 32 for IPv4 and 128 for IPv6.
[optional]
S3Buckets
Pointer to
List of Object storage buckets configured for K8s usage. At the moment, it contains only one bucket that is used to store K8s API audit logs.
[optional]
func NewKubernetesClusterPropertiesForPut(name string, ) *KubernetesClusterPropertiesForPut
NewKubernetesClusterPropertiesForPut instantiates a new KubernetesClusterPropertiesForPut object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewKubernetesClusterPropertiesForPutWithDefaults() *KubernetesClusterPropertiesForPut
NewKubernetesClusterPropertiesForPutWithDefaults instantiates a new KubernetesClusterPropertiesForPut object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *KubernetesClusterPropertiesForPut) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPut) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPut) SetName(v string)
SetName sets Name field to given value.
func (o *KubernetesClusterPropertiesForPut) GetK8sVersion() string
GetK8sVersion returns the K8sVersion field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPut) GetK8sVersionOk() (*string, bool)
GetK8sVersionOk returns a tuple with the K8sVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPut) SetK8sVersion(v string)
SetK8sVersion sets K8sVersion field to given value.
func (o *KubernetesClusterPropertiesForPut) HasK8sVersion() bool
HasK8sVersion returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPut) GetMaintenanceWindow() KubernetesMaintenanceWindow
GetMaintenanceWindow returns the MaintenanceWindow field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPut) GetMaintenanceWindowOk() (*KubernetesMaintenanceWindow, bool)
GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPut) SetMaintenanceWindow(v KubernetesMaintenanceWindow)
SetMaintenanceWindow sets MaintenanceWindow field to given value.
func (o *KubernetesClusterPropertiesForPut) HasMaintenanceWindow() bool
HasMaintenanceWindow returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPut) GetApiSubnetAllowList() []string
GetApiSubnetAllowList returns the ApiSubnetAllowList field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPut) GetApiSubnetAllowListOk() (*[]string, bool)
GetApiSubnetAllowListOk returns a tuple with the ApiSubnetAllowList field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPut) SetApiSubnetAllowList(v []string)
SetApiSubnetAllowList sets ApiSubnetAllowList field to given value.
func (o *KubernetesClusterPropertiesForPut) HasApiSubnetAllowList() bool
HasApiSubnetAllowList returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPut) GetS3Buckets() []S3Bucket
GetS3Buckets returns the S3Buckets field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPut) GetS3BucketsOk() (*[]S3Bucket, bool)
GetS3BucketsOk returns a tuple with the S3Buckets field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPut) SetS3Buckets(v []S3Bucket)
SetS3Buckets sets S3Buckets field to given value.
func (o *KubernetesClusterPropertiesForPut) HasS3Buckets() bool
HasS3Buckets returns a boolean if a field has been set.
func NewApplicationLoadBalancers() *ApplicationLoadBalancers
NewApplicationLoadBalancers instantiates a new ApplicationLoadBalancers object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancersWithDefaults() *ApplicationLoadBalancers
NewApplicationLoadBalancersWithDefaults instantiates a new ApplicationLoadBalancers object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancers) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancers) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancers) SetId(v string)
SetId sets Id field to given value.
func (o *ApplicationLoadBalancers) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ApplicationLoadBalancers) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancers) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancers) SetType(v Type)
SetType sets Type field to given value.
func (o *ApplicationLoadBalancers) HasType() bool
HasType returns a boolean if a field has been set.
func (o *ApplicationLoadBalancers) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancers) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancers) SetHref(v string)
SetHref sets Href field to given value.
func (o *ApplicationLoadBalancers) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *ApplicationLoadBalancers) GetItems() []ApplicationLoadBalancer
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancers) GetItemsOk() (*[]ApplicationLoadBalancer, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancers) SetItems(v []ApplicationLoadBalancer)
SetItems sets Items field to given value.
func (o *ApplicationLoadBalancers) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *ApplicationLoadBalancers) GetOffset() float32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancers) GetOffsetOk() (*float32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancers) SetOffset(v float32)
SetOffset sets Offset field to given value.
func (o *ApplicationLoadBalancers) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *ApplicationLoadBalancers) GetLimit() float32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancers) GetLimitOk() (*float32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancers) SetLimit(v float32)
SetLimit sets Limit field to given value.
func (o *ApplicationLoadBalancers) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *ApplicationLoadBalancers) GetLinks() PaginationLinks
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancers) GetLinksOk() (*PaginationLinks, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancers) SetLinks(v PaginationLinks)
SetLinks sets Links field to given value.
func (o *ApplicationLoadBalancers) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func NewApplicationLoadBalancer(properties ApplicationLoadBalancerProperties, ) *ApplicationLoadBalancer
NewApplicationLoadBalancer instantiates a new ApplicationLoadBalancer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerWithDefaults() *ApplicationLoadBalancer
NewApplicationLoadBalancerWithDefaults instantiates a new ApplicationLoadBalancer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancer) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancer) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancer) SetId(v string)
SetId sets Id field to given value.
func (o *ApplicationLoadBalancer) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ApplicationLoadBalancer) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancer) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancer) SetType(v Type)
SetType sets Type field to given value.
func (o *ApplicationLoadBalancer) HasType() bool
HasType returns a boolean if a field has been set.
func (o *ApplicationLoadBalancer) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancer) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancer) SetHref(v string)
SetHref sets Href field to given value.
func (o *ApplicationLoadBalancer) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *ApplicationLoadBalancer) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancer) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancer) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *ApplicationLoadBalancer) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *ApplicationLoadBalancer) GetProperties() ApplicationLoadBalancerProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancer) GetPropertiesOk() (*ApplicationLoadBalancerProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancer) SetProperties(v ApplicationLoadBalancerProperties)
SetProperties sets Properties field to given value.
func (o *ApplicationLoadBalancer) GetEntities() ApplicationLoadBalancerEntities
GetEntities returns the Entities field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancer) GetEntitiesOk() (*ApplicationLoadBalancerEntities, bool)
GetEntitiesOk returns a tuple with the Entities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancer) SetEntities(v ApplicationLoadBalancerEntities)
SetEntities sets Entities field to given value.
func (o *ApplicationLoadBalancer) HasEntities() bool
HasEntities returns a boolean if a field has been set.
func NewApplicationLoadBalancerHttpRuleCondition(type_ string, condition string, ) *ApplicationLoadBalancerHttpRuleCondition
NewApplicationLoadBalancerHttpRuleCondition instantiates a new ApplicationLoadBalancerHttpRuleCondition object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerHttpRuleConditionWithDefaults() *ApplicationLoadBalancerHttpRuleCondition
NewApplicationLoadBalancerHttpRuleConditionWithDefaults instantiates a new ApplicationLoadBalancerHttpRuleCondition object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancerHttpRuleCondition) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRuleCondition) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRuleCondition) SetType(v string)
SetType sets Type field to given value.
func (o *ApplicationLoadBalancerHttpRuleCondition) GetCondition() string
GetCondition returns the Condition field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRuleCondition) GetConditionOk() (*string, bool)
GetConditionOk returns a tuple with the Condition field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRuleCondition) SetCondition(v string)
SetCondition sets Condition field to given value.
func (o *ApplicationLoadBalancerHttpRuleCondition) GetNegate() bool
GetNegate returns the Negate field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRuleCondition) GetNegateOk() (*bool, bool)
GetNegateOk returns a tuple with the Negate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRuleCondition) SetNegate(v bool)
SetNegate sets Negate field to given value.
func (o *ApplicationLoadBalancerHttpRuleCondition) HasNegate() bool
HasNegate returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerHttpRuleCondition) GetKey() string
GetKey returns the Key field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRuleCondition) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRuleCondition) SetKey(v string)
SetKey sets Key field to given value.
func (o *ApplicationLoadBalancerHttpRuleCondition) HasKey() bool
HasKey returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerHttpRuleCondition) GetValue() string
GetValue returns the Value field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRuleCondition) GetValueOk() (*string, bool)
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRuleCondition) SetValue(v string)
SetValue sets Value field to given value.
func (o *ApplicationLoadBalancerHttpRuleCondition) HasValue() bool
HasValue returns a boolean if a field has been set.
func NewKubernetesClusterForPut(properties KubernetesClusterPropertiesForPut, ) *KubernetesClusterForPut
NewKubernetesClusterForPut instantiates a new KubernetesClusterForPut object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewKubernetesClusterForPutWithDefaults() *KubernetesClusterForPut
NewKubernetesClusterForPutWithDefaults instantiates a new KubernetesClusterForPut object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *KubernetesClusterForPut) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPut) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPut) SetId(v string)
SetId sets Id field to given value.
func (o *KubernetesClusterForPut) HasId() bool
HasId returns a boolean if a field has been set.
func (o *KubernetesClusterForPut) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPut) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPut) SetType(v string)
SetType sets Type field to given value.
func (o *KubernetesClusterForPut) HasType() bool
HasType returns a boolean if a field has been set.
func (o *KubernetesClusterForPut) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPut) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPut) SetHref(v string)
SetHref sets Href field to given value.
func (o *KubernetesClusterForPut) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *KubernetesClusterForPut) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPut) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPut) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *KubernetesClusterForPut) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *KubernetesClusterForPut) GetProperties() KubernetesClusterPropertiesForPut
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPut) GetPropertiesOk() (*KubernetesClusterPropertiesForPut, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPut) SetProperties(v KubernetesClusterPropertiesForPut)
SetProperties sets Properties field to given value.
func (o *KubernetesClusterForPut) GetEntities() KubernetesClusterEntities
GetEntities returns the Entities field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPut) GetEntitiesOk() (*KubernetesClusterEntities, bool)
GetEntitiesOk returns a tuple with the Entities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPut) SetEntities(v KubernetesClusterEntities)
SetEntities sets Entities field to given value.
func (o *KubernetesClusterForPut) HasEntities() bool
HasEntities returns a boolean if a field has been set.
func NewKubernetesClusterForPost(properties KubernetesClusterPropertiesForPost, ) *KubernetesClusterForPost
NewKubernetesClusterForPost instantiates a new KubernetesClusterForPost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewKubernetesClusterForPostWithDefaults() *KubernetesClusterForPost
NewKubernetesClusterForPostWithDefaults instantiates a new KubernetesClusterForPost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *KubernetesClusterForPost) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPost) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPost) SetId(v string)
SetId sets Id field to given value.
func (o *KubernetesClusterForPost) HasId() bool
HasId returns a boolean if a field has been set.
func (o *KubernetesClusterForPost) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPost) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPost) SetType(v string)
SetType sets Type field to given value.
func (o *KubernetesClusterForPost) HasType() bool
HasType returns a boolean if a field has been set.
func (o *KubernetesClusterForPost) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPost) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPost) SetHref(v string)
SetHref sets Href field to given value.
func (o *KubernetesClusterForPost) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *KubernetesClusterForPost) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPost) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPost) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *KubernetesClusterForPost) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *KubernetesClusterForPost) GetProperties() KubernetesClusterPropertiesForPost
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPost) GetPropertiesOk() (*KubernetesClusterPropertiesForPost, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPost) SetProperties(v KubernetesClusterPropertiesForPost)
SetProperties sets Properties field to given value.
func (o *KubernetesClusterForPost) GetEntities() KubernetesClusterEntities
GetEntities returns the Entities field if non-nil, zero value otherwise.
func (o *KubernetesClusterForPost) GetEntitiesOk() (*KubernetesClusterEntities, bool)
GetEntitiesOk returns a tuple with the Entities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterForPost) SetEntities(v KubernetesClusterEntities)
SetEntities sets Entities field to given value.
func (o *KubernetesClusterForPost) HasEntities() bool
HasEntities returns a boolean if a field has been set.
func NewDatacenterPropertiesPost(location string, ) *DatacenterPropertiesPost
NewDatacenterPropertiesPost instantiates a new DatacenterPropertiesPost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDatacenterPropertiesPostWithDefaults() *DatacenterPropertiesPost
NewDatacenterPropertiesPostWithDefaults instantiates a new DatacenterPropertiesPost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *DatacenterPropertiesPost) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPost) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPost) SetName(v string)
SetName sets Name field to given value.
func (o *DatacenterPropertiesPost) HasName() bool
HasName returns a boolean if a field has been set.
func (o *DatacenterPropertiesPost) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPost) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPost) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *DatacenterPropertiesPost) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *DatacenterPropertiesPost) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPost) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPost) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *DatacenterPropertiesPost) GetVersion() int32
GetVersion returns the Version field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPost) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPost) SetVersion(v int32)
SetVersion sets Version field to given value.
func (o *DatacenterPropertiesPost) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o *DatacenterPropertiesPost) GetFeatures() []string
GetFeatures returns the Features field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPost) GetFeaturesOk() (*[]string, bool)
GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPost) SetFeatures(v []string)
SetFeatures sets Features field to given value.
func (o *DatacenterPropertiesPost) HasFeatures() bool
HasFeatures returns a boolean if a field has been set.
func (o *DatacenterPropertiesPost) GetSecAuthProtection() bool
GetSecAuthProtection returns the SecAuthProtection field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPost) GetSecAuthProtectionOk() (*bool, bool)
GetSecAuthProtectionOk returns a tuple with the SecAuthProtection field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPost) SetSecAuthProtection(v bool)
SetSecAuthProtection sets SecAuthProtection field to given value.
func (o *DatacenterPropertiesPost) HasSecAuthProtection() bool
HasSecAuthProtection returns a boolean if a field has been set.
func (o *DatacenterPropertiesPost) GetCpuArchitecture() []CpuArchitectureProperties
GetCpuArchitecture returns the CpuArchitecture field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPost) GetCpuArchitectureOk() (*[]CpuArchitectureProperties, bool)
GetCpuArchitectureOk returns a tuple with the CpuArchitecture field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPost) SetCpuArchitecture(v []CpuArchitectureProperties)
SetCpuArchitecture sets CpuArchitecture field to given value.
func (o *DatacenterPropertiesPost) HasCpuArchitecture() bool
HasCpuArchitecture returns a boolean if a field has been set.
func (o *DatacenterPropertiesPost) GetCreateDefaultSecurityGroup() bool
GetCreateDefaultSecurityGroup returns the CreateDefaultSecurityGroup field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPost) GetCreateDefaultSecurityGroupOk() (*bool, bool)
GetCreateDefaultSecurityGroupOk returns a tuple with the CreateDefaultSecurityGroup field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPost) SetCreateDefaultSecurityGroup(v bool)
SetCreateDefaultSecurityGroup sets CreateDefaultSecurityGroup field to given value.
func (o *DatacenterPropertiesPost) HasCreateDefaultSecurityGroup() bool
HasCreateDefaultSecurityGroup returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to []ApplicationLoadBalancer
Array of items in the collection.
[optional] [readonly]
Offset
Pointer to float32
The offset (if specified in the request).
[optional]
Limit
Pointer to float32
The limit (if specified in the request).
[optional]
Links
Pointer to PaginationLinks
[optional]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to DatacenterElementMetadata
[optional]
Properties
Entities
Pointer to ApplicationLoadBalancerEntities
[optional]
Type
string
The HTTP rule condition type.
Condition
string
The matching rule for the HTTP rule condition attribute; this parameter is mandatory for 'HEADER', 'PATH', 'QUERY', 'METHOD', 'HOST', and 'COOKIE' types. It must be 'null' if the type is 'SOURCE_IP'.
Negate
Pointer to bool
Specifies whether the condition should be negated; the default value is 'FALSE'.
[optional]
Key
Pointer to string
The key can only be set when the HTTP rule condition type is 'COOKIES', 'HEADER', or 'QUERY'. For the type 'PATH', 'METHOD', 'HOST', or 'SOURCE_IP' the value must be 'null'.
[optional]
Value
Pointer to string
This parameter is mandatory for the conditions 'CONTAINS', 'EQUALS', 'MATCHES', 'STARTS_WITH', 'ENDS_WITH', or if the type is 'SOURCE_IP'. Specify a valid CIDR. If the condition is 'EXISTS', the value must be 'null'.
[optional]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to string
The type of object.
[optional] [readonly]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to DatacenterElementMetadata
[optional]
Properties
Entities
Pointer to KubernetesClusterEntities
[optional]
Id
Pointer to string
The resource unique identifier.
[optional] [readonly]
Type
Pointer to string
The object type.
[optional] [readonly]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to DatacenterElementMetadata
[optional]
Properties
Entities
Pointer to KubernetesClusterEntities
[optional]
Name
Pointer to string
The name of the resource.
[optional]
Description
Pointer to string
A description for the datacenter, such as staging, production.
[optional]
Location
string
The physical location where the datacenter will be created. This will be where all of your servers live. Property cannot be modified after datacenter creation (disallowed in update requests).
Version
Pointer to int32
The version of the data center; incremented with every change.
[optional] [readonly]
Features
Pointer to []string
List of features supported by the location where this data center is provisioned.
[optional] [readonly]
SecAuthProtection
Pointer to bool
Boolean value representing if the data center requires extra protection, such as two-step verification.
[optional]
CpuArchitecture
Pointer to []CpuArchitectureProperties
Array of features and CPU families available in a location
[optional] [readonly]
CreateDefaultSecurityGroup
Pointer to bool
If true, a default security group, with predefined rules, will be created for the datacenter. Default value is false.
[optional]
Name
string
The Application Load Balancer name.
ListenerLan
int32
The ID of the listening (inbound) LAN.
Ips
Pointer to []string
Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the 'listenerLan' are customer-reserved public IPs for the public load balancers, and private IPs for the private load balancers.
[optional]
TargetLan
int32
The ID of the balanced private target LAN (outbound).
LbPrivateIps
Pointer to []string
Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
[optional]
CentralLogging
Pointer to bool
Turn logging on and off for this product. Default value is 'false'.
[optional]
LoggingFormat
Pointer to string
Specifies the format of the logs.
[optional]
func NewApplicationLoadBalancerProperties(name string, listenerLan int32, targetLan int32, ) *ApplicationLoadBalancerProperties
NewApplicationLoadBalancerProperties instantiates a new ApplicationLoadBalancerProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerPropertiesWithDefaults() *ApplicationLoadBalancerProperties
NewApplicationLoadBalancerPropertiesWithDefaults instantiates a new ApplicationLoadBalancerProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancerProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerProperties) SetName(v string)
SetName sets Name field to given value.
func (o *ApplicationLoadBalancerProperties) GetListenerLan() int32
GetListenerLan returns the ListenerLan field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerProperties) GetListenerLanOk() (*int32, bool)
GetListenerLanOk returns a tuple with the ListenerLan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerProperties) SetListenerLan(v int32)
SetListenerLan sets ListenerLan field to given value.
func (o *ApplicationLoadBalancerProperties) GetIps() []string
GetIps returns the Ips field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerProperties) GetIpsOk() (*[]string, bool)
GetIpsOk returns a tuple with the Ips field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerProperties) SetIps(v []string)
SetIps sets Ips field to given value.
func (o *ApplicationLoadBalancerProperties) HasIps() bool
HasIps returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerProperties) GetTargetLan() int32
GetTargetLan returns the TargetLan field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerProperties) GetTargetLanOk() (*int32, bool)
GetTargetLanOk returns a tuple with the TargetLan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerProperties) SetTargetLan(v int32)
SetTargetLan sets TargetLan field to given value.
func (o *ApplicationLoadBalancerProperties) GetLbPrivateIps() []string
GetLbPrivateIps returns the LbPrivateIps field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerProperties) GetLbPrivateIpsOk() (*[]string, bool)
GetLbPrivateIpsOk returns a tuple with the LbPrivateIps field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerProperties) SetLbPrivateIps(v []string)
SetLbPrivateIps sets LbPrivateIps field to given value.
func (o *ApplicationLoadBalancerProperties) HasLbPrivateIps() bool
HasLbPrivateIps returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerProperties) GetCentralLogging() bool
GetCentralLogging returns the CentralLogging field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerProperties) GetCentralLoggingOk() (*bool, bool)
GetCentralLoggingOk returns a tuple with the CentralLogging field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerProperties) SetCentralLogging(v bool)
SetCentralLogging sets CentralLogging field to given value.
func (o *ApplicationLoadBalancerProperties) HasCentralLogging() bool
HasCentralLogging returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerProperties) GetLoggingFormat() string
GetLoggingFormat returns the LoggingFormat field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerProperties) GetLoggingFormatOk() (*string, bool)
GetLoggingFormatOk returns a tuple with the LoggingFormat field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerProperties) SetLoggingFormat(v string)
SetLoggingFormat sets LoggingFormat field to given value.
func (o *ApplicationLoadBalancerProperties) HasLoggingFormat() bool
HasLoggingFormat returns a boolean if a field has been set.
Ip
Pointer to string
[optional]
Mac
Pointer to string
[optional]
NicId
Pointer to string
[optional]
ServerId
Pointer to string
[optional]
ServerName
Pointer to string
[optional]
DatacenterId
Pointer to string
[optional]
DatacenterName
Pointer to string
[optional]
K8sNodePoolUuid
Pointer to string
[optional]
K8sClusterUuid
Pointer to string
[optional]
func NewIpConsumer() *IpConsumer
NewIpConsumer instantiates a new IpConsumer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewIpConsumerWithDefaults() *IpConsumer
NewIpConsumerWithDefaults instantiates a new IpConsumer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *IpConsumer) GetIp() string
GetIp returns the Ip field if non-nil, zero value otherwise.
func (o *IpConsumer) GetIpOk() (*string, bool)
GetIpOk returns a tuple with the Ip field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpConsumer) SetIp(v string)
SetIp sets Ip field to given value.
func (o *IpConsumer) HasIp() bool
HasIp returns a boolean if a field has been set.
func (o *IpConsumer) GetMac() string
GetMac returns the Mac field if non-nil, zero value otherwise.
func (o *IpConsumer) GetMacOk() (*string, bool)
GetMacOk returns a tuple with the Mac field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpConsumer) SetMac(v string)
SetMac sets Mac field to given value.
func (o *IpConsumer) HasMac() bool
HasMac returns a boolean if a field has been set.
func (o *IpConsumer) GetNicId() string
GetNicId returns the NicId field if non-nil, zero value otherwise.
func (o *IpConsumer) GetNicIdOk() (*string, bool)
GetNicIdOk returns a tuple with the NicId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpConsumer) SetNicId(v string)
SetNicId sets NicId field to given value.
func (o *IpConsumer) HasNicId() bool
HasNicId returns a boolean if a field has been set.
func (o *IpConsumer) GetServerId() string
GetServerId returns the ServerId field if non-nil, zero value otherwise.
func (o *IpConsumer) GetServerIdOk() (*string, bool)
GetServerIdOk returns a tuple with the ServerId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpConsumer) SetServerId(v string)
SetServerId sets ServerId field to given value.
func (o *IpConsumer) HasServerId() bool
HasServerId returns a boolean if a field has been set.
func (o *IpConsumer) GetServerName() string
GetServerName returns the ServerName field if non-nil, zero value otherwise.
func (o *IpConsumer) GetServerNameOk() (*string, bool)
GetServerNameOk returns a tuple with the ServerName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpConsumer) SetServerName(v string)
SetServerName sets ServerName field to given value.
func (o *IpConsumer) HasServerName() bool
HasServerName returns a boolean if a field has been set.
func (o *IpConsumer) GetDatacenterId() string
GetDatacenterId returns the DatacenterId field if non-nil, zero value otherwise.
func (o *IpConsumer) GetDatacenterIdOk() (*string, bool)
GetDatacenterIdOk returns a tuple with the DatacenterId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpConsumer) SetDatacenterId(v string)
SetDatacenterId sets DatacenterId field to given value.
func (o *IpConsumer) HasDatacenterId() bool
HasDatacenterId returns a boolean if a field has been set.
func (o *IpConsumer) GetDatacenterName() string
GetDatacenterName returns the DatacenterName field if non-nil, zero value otherwise.
func (o *IpConsumer) GetDatacenterNameOk() (*string, bool)
GetDatacenterNameOk returns a tuple with the DatacenterName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpConsumer) SetDatacenterName(v string)
SetDatacenterName sets DatacenterName field to given value.
func (o *IpConsumer) HasDatacenterName() bool
HasDatacenterName returns a boolean if a field has been set.
func (o *IpConsumer) GetK8sNodePoolUuid() string
GetK8sNodePoolUuid returns the K8sNodePoolUuid field if non-nil, zero value otherwise.
func (o *IpConsumer) GetK8sNodePoolUuidOk() (*string, bool)
GetK8sNodePoolUuidOk returns a tuple with the K8sNodePoolUuid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpConsumer) SetK8sNodePoolUuid(v string)
SetK8sNodePoolUuid sets K8sNodePoolUuid field to given value.
func (o *IpConsumer) HasK8sNodePoolUuid() bool
HasK8sNodePoolUuid returns a boolean if a field has been set.
func (o *IpConsumer) GetK8sClusterUuid() string
GetK8sClusterUuid returns the K8sClusterUuid field if non-nil, zero value otherwise.
func (o *IpConsumer) GetK8sClusterUuidOk() (*string, bool)
GetK8sClusterUuidOk returns a tuple with the K8sClusterUuid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpConsumer) SetK8sClusterUuid(v string)
SetK8sClusterUuid sets K8sClusterUuid field to given value.
func (o *IpConsumer) HasK8sClusterUuid() bool
HasK8sClusterUuid returns a boolean if a field has been set.
All URIs are relative to https://api.ionos.com/cloudapi/v6
Get /templates/{templateId}
Get Cubes Template by ID
Get /templates
Get Cubes Templates
var result Template = TemplatesFindById(ctx, templateId)
.Depth(depth)
.Execute()Get Cubes Template by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
templateId := "templateId_example" // string | The unique template ID.
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.TemplatesApi.TemplatesFindById(context.Background(), templateId).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TemplatesApi.TemplatesFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TemplatesFindById`: Template
fmt.Fprintf(os.Stdout, "Response from `TemplatesApi.TemplatesFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
templateId
string
The unique template ID.
Other parameters are passed through a pointer to a apiTemplatesFindByIdRequest struct via the builder pattern
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: Not defined
Accept: application/json
var result Templates = TemplatesGet(ctx)
.Depth(depth)
.Execute()Get Cubes Templates
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.TemplatesApi.TemplatesGet(context.Background()).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TemplatesApi.TemplatesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TemplatesGet`: Templates
fmt.Fprintf(os.Stdout, "Response from `TemplatesApi.TemplatesGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiTemplatesGetRequest struct via the builder pattern
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: Not defined
Accept: application/json
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to
Array of items in the collection.
[optional] [readonly]
Offset
Pointer to float32
The offset (if specified in the request).
[optional]
Limit
Pointer to float32
The limit (if specified in the request).
[optional]
Links
Pointer to
[optional]
func NewApplicationLoadBalancerForwardingRules() *ApplicationLoadBalancerForwardingRules
NewApplicationLoadBalancerForwardingRules instantiates a new ApplicationLoadBalancerForwardingRules object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerForwardingRulesWithDefaults() *ApplicationLoadBalancerForwardingRules
NewApplicationLoadBalancerForwardingRulesWithDefaults instantiates a new ApplicationLoadBalancerForwardingRules object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancerForwardingRules) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRules) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRules) SetId(v string)
SetId sets Id field to given value.
func (o *ApplicationLoadBalancerForwardingRules) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRules) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRules) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRules) SetType(v Type)
SetType sets Type field to given value.
func (o *ApplicationLoadBalancerForwardingRules) HasType() bool
HasType returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRules) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRules) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRules) SetHref(v string)
SetHref sets Href field to given value.
func (o *ApplicationLoadBalancerForwardingRules) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRules) GetItems() []ApplicationLoadBalancerForwardingRule
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRules) GetItemsOk() (*[]ApplicationLoadBalancerForwardingRule, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRules) SetItems(v []ApplicationLoadBalancerForwardingRule)
SetItems sets Items field to given value.
func (o *ApplicationLoadBalancerForwardingRules) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRules) GetOffset() float32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRules) GetOffsetOk() (*float32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRules) SetOffset(v float32)
SetOffset sets Offset field to given value.
func (o *ApplicationLoadBalancerForwardingRules) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRules) GetLimit() float32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRules) GetLimitOk() (*float32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRules) SetLimit(v float32)
SetLimit sets Limit field to given value.
func (o *ApplicationLoadBalancerForwardingRules) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRules) GetLinks() PaginationLinks
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRules) GetLinksOk() (*PaginationLinks, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRules) SetLinks(v PaginationLinks)
SetLinks sets Links field to given value.
func (o *ApplicationLoadBalancerForwardingRules) HasLinks() bool
HasLinks returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to
Array of items in the collection.
[optional]
Offset
Pointer to float32
The offset (if specified in the request).
[optional]
Limit
Pointer to float32
The limit (if specified in the request).
[optional]
Links
Pointer to
[optional]
func NewAttachedVolumes() *AttachedVolumes
NewAttachedVolumes instantiates a new AttachedVolumes object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewAttachedVolumesWithDefaults() *AttachedVolumes
NewAttachedVolumesWithDefaults instantiates a new AttachedVolumes object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *AttachedVolumes) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *AttachedVolumes) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AttachedVolumes) SetId(v string)
SetId sets Id field to given value.
func (o *AttachedVolumes) HasId() bool
HasId returns a boolean if a field has been set.
func (o *AttachedVolumes) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *AttachedVolumes) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AttachedVolumes) SetType(v Type)
SetType sets Type field to given value.
func (o *AttachedVolumes) HasType() bool
HasType returns a boolean if a field has been set.
func (o *AttachedVolumes) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *AttachedVolumes) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AttachedVolumes) SetHref(v string)
SetHref sets Href field to given value.
func (o *AttachedVolumes) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *AttachedVolumes) GetItems() []Volume
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *AttachedVolumes) GetItemsOk() (*[]Volume, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AttachedVolumes) SetItems(v []Volume)
SetItems sets Items field to given value.
func (o *AttachedVolumes) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *AttachedVolumes) GetOffset() float32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *AttachedVolumes) GetOffsetOk() (*float32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AttachedVolumes) SetOffset(v float32)
SetOffset sets Offset field to given value.
func (o *AttachedVolumes) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *AttachedVolumes) GetLimit() float32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *AttachedVolumes) GetLimitOk() (*float32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AttachedVolumes) SetLimit(v float32)
SetLimit sets Limit field to given value.
func (o *AttachedVolumes) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *AttachedVolumes) GetLinks() PaginationLinks
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *AttachedVolumes) GetLinksOk() (*PaginationLinks, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AttachedVolumes) SetLinks(v PaginationLinks)
SetLinks sets Links field to given value.
func (o *AttachedVolumes) HasLinks() bool
HasLinks returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to
Array of items in the collection.
[optional] [readonly]
Offset
Pointer to float32
The offset (if specified in the request).
[optional]
Limit
Pointer to float32
The limit (if specified in the request).
[optional]
Links
Pointer to
[optional]
func NewFirewallRules() *FirewallRules
NewFirewallRules instantiates a new FirewallRules object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewFirewallRulesWithDefaults() *FirewallRules
NewFirewallRulesWithDefaults instantiates a new FirewallRules object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *FirewallRules) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *FirewallRules) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRules) SetId(v string)
SetId sets Id field to given value.
func (o *FirewallRules) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FirewallRules) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *FirewallRules) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRules) SetType(v Type)
SetType sets Type field to given value.
func (o *FirewallRules) HasType() bool
HasType returns a boolean if a field has been set.
func (o *FirewallRules) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *FirewallRules) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRules) SetHref(v string)
SetHref sets Href field to given value.
func (o *FirewallRules) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *FirewallRules) GetItems() []FirewallRule
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *FirewallRules) GetItemsOk() (*[]FirewallRule, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRules) SetItems(v []FirewallRule)
SetItems sets Items field to given value.
func (o *FirewallRules) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *FirewallRules) GetOffset() float32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *FirewallRules) GetOffsetOk() (*float32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRules) SetOffset(v float32)
SetOffset sets Offset field to given value.
func (o *FirewallRules) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *FirewallRules) GetLimit() float32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *FirewallRules) GetLimitOk() (*float32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRules) SetLimit(v float32)
SetLimit sets Limit field to given value.
func (o *FirewallRules) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *FirewallRules) GetLinks() PaginationLinks
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *FirewallRules) GetLinksOk() (*PaginationLinks, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallRules) SetLinks(v PaginationLinks)
SetLinks sets Links field to given value.
func (o *FirewallRules) HasLinks() bool
HasLinks returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to
Array of items in the collection.
[optional] [readonly]
Offset
Pointer to float32
The offset (if specified in the request).
[optional]
Limit
Pointer to float32
The limit (if specified in the request).
[optional]
Links
Pointer to
[optional]
func NewBalancedNics() *BalancedNics
NewBalancedNics instantiates a new BalancedNics object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewBalancedNicsWithDefaults() *BalancedNics
NewBalancedNicsWithDefaults instantiates a new BalancedNics object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *BalancedNics) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *BalancedNics) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BalancedNics) SetId(v string)
SetId sets Id field to given value.
func (o *BalancedNics) HasId() bool
HasId returns a boolean if a field has been set.
func (o *BalancedNics) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *BalancedNics) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BalancedNics) SetType(v Type)
SetType sets Type field to given value.
func (o *BalancedNics) HasType() bool
HasType returns a boolean if a field has been set.
func (o *BalancedNics) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *BalancedNics) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BalancedNics) SetHref(v string)
SetHref sets Href field to given value.
func (o *BalancedNics) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *BalancedNics) GetItems() []Nic
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *BalancedNics) GetItemsOk() (*[]Nic, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BalancedNics) SetItems(v []Nic)
SetItems sets Items field to given value.
func (o *BalancedNics) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *BalancedNics) GetOffset() float32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *BalancedNics) GetOffsetOk() (*float32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BalancedNics) SetOffset(v float32)
SetOffset sets Offset field to given value.
func (o *BalancedNics) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *BalancedNics) GetLimit() float32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *BalancedNics) GetLimitOk() (*float32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BalancedNics) SetLimit(v float32)
SetLimit sets Limit field to given value.
func (o *BalancedNics) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *BalancedNics) GetLinks() PaginationLinks
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *BalancedNics) GetLinksOk() (*PaginationLinks, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *BalancedNics) SetLinks(v PaginationLinks)
SetLinks sets Links field to given value.
func (o *BalancedNics) HasLinks() bool
HasLinks returns a boolean if a field has been set.
Name
Pointer to string
The name of the resource.
[optional]
Description
Pointer to string
A description for the datacenter, such as staging, production.
[optional]
Location
Pointer to string
The physical location where the datacenter will be created. This will be where all of your servers live. Property cannot be modified after datacenter creation (disallowed in update requests).
[optional]
Version
Pointer to int32
The version of the data center; incremented with every change.
[optional] [readonly]
Features
Pointer to []string
List of features supported by the location where this data center is provisioned.
[optional] [readonly]
SecAuthProtection
Pointer to bool
Boolean value representing if the data center requires extra protection, such as two-step verification.
[optional]
CpuArchitecture
Pointer to
Array of features and CPU families available in a location
[optional] [readonly]
DefaultSecurityGroupId
Pointer to string
This will become the default security group for the datacenter, replacing the old one if already exists. This security group must already exists prior to this request. Provide this field only if the `createDefaultSecurityGroup` field is missing. You cannot provide both of them
[optional]
CreateDefaultSecurityGroup
Pointer to bool
If this field is set on true and this datacenter has no default security group then a default security group, with predefined rules, will be created for this datacenter. Default value is false. Provide this field only if the `defaultSecurityGroupId` field is missing. You cannot provide both of them
[optional]
func NewDatacenterPropertiesPut() *DatacenterPropertiesPut
NewDatacenterPropertiesPut instantiates a new DatacenterPropertiesPut object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDatacenterPropertiesPutWithDefaults() *DatacenterPropertiesPut
NewDatacenterPropertiesPutWithDefaults instantiates a new DatacenterPropertiesPut object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *DatacenterPropertiesPut) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPut) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPut) SetName(v string)
SetName sets Name field to given value.
func (o *DatacenterPropertiesPut) HasName() bool
HasName returns a boolean if a field has been set.
func (o *DatacenterPropertiesPut) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPut) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPut) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *DatacenterPropertiesPut) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *DatacenterPropertiesPut) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPut) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPut) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *DatacenterPropertiesPut) HasLocation() bool
HasLocation returns a boolean if a field has been set.
func (o *DatacenterPropertiesPut) GetVersion() int32
GetVersion returns the Version field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPut) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPut) SetVersion(v int32)
SetVersion sets Version field to given value.
func (o *DatacenterPropertiesPut) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o *DatacenterPropertiesPut) GetFeatures() []string
GetFeatures returns the Features field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPut) GetFeaturesOk() (*[]string, bool)
GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPut) SetFeatures(v []string)
SetFeatures sets Features field to given value.
func (o *DatacenterPropertiesPut) HasFeatures() bool
HasFeatures returns a boolean if a field has been set.
func (o *DatacenterPropertiesPut) GetSecAuthProtection() bool
GetSecAuthProtection returns the SecAuthProtection field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPut) GetSecAuthProtectionOk() (*bool, bool)
GetSecAuthProtectionOk returns a tuple with the SecAuthProtection field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPut) SetSecAuthProtection(v bool)
SetSecAuthProtection sets SecAuthProtection field to given value.
func (o *DatacenterPropertiesPut) HasSecAuthProtection() bool
HasSecAuthProtection returns a boolean if a field has been set.
func (o *DatacenterPropertiesPut) GetCpuArchitecture() []CpuArchitectureProperties
GetCpuArchitecture returns the CpuArchitecture field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPut) GetCpuArchitectureOk() (*[]CpuArchitectureProperties, bool)
GetCpuArchitectureOk returns a tuple with the CpuArchitecture field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPut) SetCpuArchitecture(v []CpuArchitectureProperties)
SetCpuArchitecture sets CpuArchitecture field to given value.
func (o *DatacenterPropertiesPut) HasCpuArchitecture() bool
HasCpuArchitecture returns a boolean if a field has been set.
func (o *DatacenterPropertiesPut) GetDefaultSecurityGroupId() string
GetDefaultSecurityGroupId returns the DefaultSecurityGroupId field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPut) GetDefaultSecurityGroupIdOk() (*string, bool)
GetDefaultSecurityGroupIdOk returns a tuple with the DefaultSecurityGroupId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPut) SetDefaultSecurityGroupId(v string)
SetDefaultSecurityGroupId sets DefaultSecurityGroupId field to given value.
func (o *DatacenterPropertiesPut) HasDefaultSecurityGroupId() bool
HasDefaultSecurityGroupId returns a boolean if a field has been set.
func (o *DatacenterPropertiesPut) GetCreateDefaultSecurityGroup() bool
GetCreateDefaultSecurityGroup returns the CreateDefaultSecurityGroup field if non-nil, zero value otherwise.
func (o *DatacenterPropertiesPut) GetCreateDefaultSecurityGroupOk() (*bool, bool)
GetCreateDefaultSecurityGroupOk returns a tuple with the CreateDefaultSecurityGroup field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterPropertiesPut) SetCreateDefaultSecurityGroup(v bool)
SetCreateDefaultSecurityGroup sets CreateDefaultSecurityGroup field to given value.
func (o *DatacenterPropertiesPut) HasCreateDefaultSecurityGroup() bool
HasCreateDefaultSecurityGroup returns a boolean if a field has been set.
Servers
Pointer to
[optional]
Volumes
Pointer to
[optional]
Loadbalancers
Pointer to
[optional]
Lans
Pointer to
[optional]
Networkloadbalancers
Pointer to
[optional]
Natgateways
Pointer to
[optional]
Securitygroups
Pointer to
[optional]
func NewDataCenterEntities() *DataCenterEntities
NewDataCenterEntities instantiates a new DataCenterEntities object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDataCenterEntitiesWithDefaults() *DataCenterEntities
NewDataCenterEntitiesWithDefaults instantiates a new DataCenterEntities object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *DataCenterEntities) GetServers() Servers
GetServers returns the Servers field if non-nil, zero value otherwise.
func (o *DataCenterEntities) GetServersOk() (*Servers, bool)
GetServersOk returns a tuple with the Servers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DataCenterEntities) SetServers(v Servers)
SetServers sets Servers field to given value.
func (o *DataCenterEntities) HasServers() bool
HasServers returns a boolean if a field has been set.
func (o *DataCenterEntities) GetVolumes() Volumes
GetVolumes returns the Volumes field if non-nil, zero value otherwise.
func (o *DataCenterEntities) GetVolumesOk() (*Volumes, bool)
GetVolumesOk returns a tuple with the Volumes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DataCenterEntities) SetVolumes(v Volumes)
SetVolumes sets Volumes field to given value.
func (o *DataCenterEntities) HasVolumes() bool
HasVolumes returns a boolean if a field has been set.
func (o *DataCenterEntities) GetLoadbalancers() Loadbalancers
GetLoadbalancers returns the Loadbalancers field if non-nil, zero value otherwise.
func (o *DataCenterEntities) GetLoadbalancersOk() (*Loadbalancers, bool)
GetLoadbalancersOk returns a tuple with the Loadbalancers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DataCenterEntities) SetLoadbalancers(v Loadbalancers)
SetLoadbalancers sets Loadbalancers field to given value.
func (o *DataCenterEntities) HasLoadbalancers() bool
HasLoadbalancers returns a boolean if a field has been set.
func (o *DataCenterEntities) GetLans() Lans
GetLans returns the Lans field if non-nil, zero value otherwise.
func (o *DataCenterEntities) GetLansOk() (*Lans, bool)
GetLansOk returns a tuple with the Lans field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DataCenterEntities) SetLans(v Lans)
SetLans sets Lans field to given value.
func (o *DataCenterEntities) HasLans() bool
HasLans returns a boolean if a field has been set.
func (o *DataCenterEntities) GetNetworkloadbalancers() NetworkLoadBalancers
GetNetworkloadbalancers returns the Networkloadbalancers field if non-nil, zero value otherwise.
func (o *DataCenterEntities) GetNetworkloadbalancersOk() (*NetworkLoadBalancers, bool)
GetNetworkloadbalancersOk returns a tuple with the Networkloadbalancers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DataCenterEntities) SetNetworkloadbalancers(v NetworkLoadBalancers)
SetNetworkloadbalancers sets Networkloadbalancers field to given value.
func (o *DataCenterEntities) HasNetworkloadbalancers() bool
HasNetworkloadbalancers returns a boolean if a field has been set.
func (o *DataCenterEntities) GetNatgateways() NatGateways
GetNatgateways returns the Natgateways field if non-nil, zero value otherwise.
func (o *DataCenterEntities) GetNatgatewaysOk() (*NatGateways, bool)
GetNatgatewaysOk returns a tuple with the Natgateways field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DataCenterEntities) SetNatgateways(v NatGateways)
SetNatgateways sets Natgateways field to given value.
func (o *DataCenterEntities) HasNatgateways() bool
HasNatgateways returns a boolean if a field has been set.
func (o *DataCenterEntities) GetSecuritygroups() SecurityGroups
GetSecuritygroups returns the Securitygroups field if non-nil, zero value otherwise.
func (o *DataCenterEntities) GetSecuritygroupsOk() (*SecurityGroups, bool)
GetSecuritygroupsOk returns a tuple with the Securitygroups field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DataCenterEntities) SetSecuritygroups(v SecurityGroups)
SetSecuritygroups sets Securitygroups field to given value.
func (o *DataCenterEntities) HasSecuritygroups() bool
HasSecuritygroups returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to
Array of items in the collection.
[optional]
Offset
Pointer to float32
The offset (if specified in the request).
[optional]
Limit
Pointer to float32
The limit (if specified in the request).
[optional]
Links
Pointer to
[optional]
func NewCdroms() *Cdroms
NewCdroms instantiates a new Cdroms object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCdromsWithDefaults() *Cdroms
NewCdromsWithDefaults instantiates a new Cdroms object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Cdroms) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Cdroms) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Cdroms) SetId(v string)
SetId sets Id field to given value.
func (o *Cdroms) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Cdroms) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Cdroms) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Cdroms) SetType(v Type)
SetType sets Type field to given value.
func (o *Cdroms) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Cdroms) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *Cdroms) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Cdroms) SetHref(v string)
SetHref sets Href field to given value.
func (o *Cdroms) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *Cdroms) GetItems() []Image
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *Cdroms) GetItemsOk() (*[]Image, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Cdroms) SetItems(v []Image)
SetItems sets Items field to given value.
func (o *Cdroms) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *Cdroms) GetOffset() float32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *Cdroms) GetOffsetOk() (*float32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Cdroms) SetOffset(v float32)
SetOffset sets Offset field to given value.
func (o *Cdroms) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *Cdroms) GetLimit() float32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *Cdroms) GetLimitOk() (*float32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Cdroms) SetLimit(v float32)
SetLimit sets Limit field to given value.
func (o *Cdroms) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *Cdroms) GetLinks() PaginationLinks
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *Cdroms) GetLinksOk() (*PaginationLinks, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Cdroms) SetLinks(v PaginationLinks)
SetLinks sets Links field to given value.
func (o *Cdroms) HasLinks() bool
HasLinks returns a boolean if a field has been set.
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to
Array of items in the collection.
[optional] [readonly]
Offset
Pointer to float32
The offset, specified in the request (if not is specified, 0 is used by default).
[optional]
Limit
Pointer to float32
The limit, specified in the request (if not specified, the endpoint's default pagination limit is used).
[optional]
Links
Pointer to
[optional]
func NewIpBlocks() *IpBlocks
NewIpBlocks instantiates a new IpBlocks object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewIpBlocksWithDefaults() *IpBlocks
NewIpBlocksWithDefaults instantiates a new IpBlocks object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *IpBlocks) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *IpBlocks) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlocks) SetId(v string)
SetId sets Id field to given value.
func (o *IpBlocks) HasId() bool
HasId returns a boolean if a field has been set.
func (o *IpBlocks) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *IpBlocks) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlocks) SetType(v Type)
SetType sets Type field to given value.
func (o *IpBlocks) HasType() bool
HasType returns a boolean if a field has been set.
func (o *IpBlocks) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *IpBlocks) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlocks) SetHref(v string)
SetHref sets Href field to given value.
func (o *IpBlocks) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *IpBlocks) GetItems() []IpBlock
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *IpBlocks) GetItemsOk() (*[]IpBlock, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlocks) SetItems(v []IpBlock)
SetItems sets Items field to given value.
func (o *IpBlocks) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *IpBlocks) GetOffset() float32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *IpBlocks) GetOffsetOk() (*float32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlocks) SetOffset(v float32)
SetOffset sets Offset field to given value.
func (o *IpBlocks) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *IpBlocks) GetLimit() float32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *IpBlocks) GetLimitOk() (*float32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlocks) SetLimit(v float32)
SetLimit sets Limit field to given value.
func (o *IpBlocks) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *IpBlocks) GetLinks() PaginationLinks
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *IpBlocks) GetLinksOk() (*PaginationLinks, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *IpBlocks) SetLinks(v PaginationLinks)
SetLinks sets Links field to given value.
func (o *IpBlocks) HasLinks() bool
HasLinks returns a boolean if a field has been set.
Id
Pointer to string
The resource unique identifier.
[optional] [readonly]
Type
Pointer to string
The object type.
[optional] [readonly]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Metadata
Pointer to
[optional]
Properties
Entities
Pointer to
[optional]
func NewKubernetesCluster(properties KubernetesClusterProperties, ) *KubernetesCluster
NewKubernetesCluster instantiates a new KubernetesCluster object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewKubernetesClusterWithDefaults() *KubernetesCluster
NewKubernetesClusterWithDefaults instantiates a new KubernetesCluster object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *KubernetesCluster) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *KubernetesCluster) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesCluster) SetId(v string)
SetId sets Id field to given value.
func (o *KubernetesCluster) HasId() bool
HasId returns a boolean if a field has been set.
func (o *KubernetesCluster) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *KubernetesCluster) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesCluster) SetType(v string)
SetType sets Type field to given value.
func (o *KubernetesCluster) HasType() bool
HasType returns a boolean if a field has been set.
func (o *KubernetesCluster) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *KubernetesCluster) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesCluster) SetHref(v string)
SetHref sets Href field to given value.
func (o *KubernetesCluster) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *KubernetesCluster) GetMetadata() DatacenterElementMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *KubernetesCluster) GetMetadataOk() (*DatacenterElementMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesCluster) SetMetadata(v DatacenterElementMetadata)
SetMetadata sets Metadata field to given value.
func (o *KubernetesCluster) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *KubernetesCluster) GetProperties() KubernetesClusterProperties
GetProperties returns the Properties field if non-nil, zero value otherwise.
func (o *KubernetesCluster) GetPropertiesOk() (*KubernetesClusterProperties, bool)
GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesCluster) SetProperties(v KubernetesClusterProperties)
SetProperties sets Properties field to given value.
func (o *KubernetesCluster) GetEntities() KubernetesClusterEntities
GetEntities returns the Entities field if non-nil, zero value otherwise.
func (o *KubernetesCluster) GetEntitiesOk() (*KubernetesClusterEntities, bool)
GetEntitiesOk returns a tuple with the Entities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesCluster) SetEntities(v KubernetesClusterEntities)
SetEntities sets Entities field to given value.
func (o *KubernetesCluster) HasEntities() bool
HasEntities returns a boolean if a field has been set.
func NewDatacenterElementMetadata() *DatacenterElementMetadata
NewDatacenterElementMetadata instantiates a new DatacenterElementMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDatacenterElementMetadataWithDefaults() *DatacenterElementMetadata
NewDatacenterElementMetadataWithDefaults instantiates a new DatacenterElementMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *DatacenterElementMetadata) GetEtag() string
GetEtag returns the Etag field if non-nil, zero value otherwise.
func (o *DatacenterElementMetadata) GetEtagOk() (*string, bool)
GetEtagOk returns a tuple with the Etag field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterElementMetadata) SetEtag(v string)
SetEtag sets Etag field to given value.
func (o *DatacenterElementMetadata) HasEtag() bool
HasEtag returns a boolean if a field has been set.
func (o *DatacenterElementMetadata) GetCreatedDate() time.Time
GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise.
func (o *DatacenterElementMetadata) GetCreatedDateOk() (*time.Time, bool)
GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterElementMetadata) SetCreatedDate(v time.Time)
SetCreatedDate sets CreatedDate field to given value.
func (o *DatacenterElementMetadata) HasCreatedDate() bool
HasCreatedDate returns a boolean if a field has been set.
func (o *DatacenterElementMetadata) GetCreatedBy() string
GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise.
func (o *DatacenterElementMetadata) GetCreatedByOk() (*string, bool)
GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterElementMetadata) SetCreatedBy(v string)
SetCreatedBy sets CreatedBy field to given value.
func (o *DatacenterElementMetadata) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *DatacenterElementMetadata) GetCreatedByUserId() string
GetCreatedByUserId returns the CreatedByUserId field if non-nil, zero value otherwise.
func (o *DatacenterElementMetadata) GetCreatedByUserIdOk() (*string, bool)
GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterElementMetadata) SetCreatedByUserId(v string)
SetCreatedByUserId sets CreatedByUserId field to given value.
func (o *DatacenterElementMetadata) HasCreatedByUserId() bool
HasCreatedByUserId returns a boolean if a field has been set.
func (o *DatacenterElementMetadata) GetLastModifiedDate() time.Time
GetLastModifiedDate returns the LastModifiedDate field if non-nil, zero value otherwise.
func (o *DatacenterElementMetadata) GetLastModifiedDateOk() (*time.Time, bool)
GetLastModifiedDateOk returns a tuple with the LastModifiedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterElementMetadata) SetLastModifiedDate(v time.Time)
SetLastModifiedDate sets LastModifiedDate field to given value.
func (o *DatacenterElementMetadata) HasLastModifiedDate() bool
HasLastModifiedDate returns a boolean if a field has been set.
func (o *DatacenterElementMetadata) GetLastModifiedBy() string
GetLastModifiedBy returns the LastModifiedBy field if non-nil, zero value otherwise.
func (o *DatacenterElementMetadata) GetLastModifiedByOk() (*string, bool)
GetLastModifiedByOk returns a tuple with the LastModifiedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterElementMetadata) SetLastModifiedBy(v string)
SetLastModifiedBy sets LastModifiedBy field to given value.
func (o *DatacenterElementMetadata) HasLastModifiedBy() bool
HasLastModifiedBy returns a boolean if a field has been set.
func (o *DatacenterElementMetadata) GetLastModifiedByUserId() string
GetLastModifiedByUserId returns the LastModifiedByUserId field if non-nil, zero value otherwise.
func (o *DatacenterElementMetadata) GetLastModifiedByUserIdOk() (*string, bool)
GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterElementMetadata) SetLastModifiedByUserId(v string)
SetLastModifiedByUserId sets LastModifiedByUserId field to given value.
func (o *DatacenterElementMetadata) HasLastModifiedByUserId() bool
HasLastModifiedByUserId returns a boolean if a field has been set.
func (o *DatacenterElementMetadata) GetState() string
GetState returns the State field if non-nil, zero value otherwise.
func (o *DatacenterElementMetadata) GetStateOk() (*string, bool)
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterElementMetadata) SetState(v string)
SetState sets State field to given value.
func (o *DatacenterElementMetadata) HasState() bool
HasState returns a boolean if a field has been set.
func NewApplicationLoadBalancerForwardingRuleProperties(name string, protocol string, listenerIp string, listenerPort int32, ) *ApplicationLoadBalancerForwardingRuleProperties
NewApplicationLoadBalancerForwardingRuleProperties instantiates a new ApplicationLoadBalancerForwardingRuleProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerForwardingRulePropertiesWithDefaults() *ApplicationLoadBalancerForwardingRuleProperties
NewApplicationLoadBalancerForwardingRulePropertiesWithDefaults instantiates a new ApplicationLoadBalancerForwardingRuleProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRuleProperties) SetName(v string)
SetName sets Name field to given value.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetProtocol() string
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetProtocolOk() (*string, bool)
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRuleProperties) SetProtocol(v string)
SetProtocol sets Protocol field to given value.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetListenerIp() string
GetListenerIp returns the ListenerIp field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetListenerIpOk() (*string, bool)
GetListenerIpOk returns a tuple with the ListenerIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRuleProperties) SetListenerIp(v string)
SetListenerIp sets ListenerIp field to given value.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetListenerPort() int32
GetListenerPort returns the ListenerPort field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetListenerPortOk() (*int32, bool)
GetListenerPortOk returns a tuple with the ListenerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRuleProperties) SetListenerPort(v int32)
SetListenerPort sets ListenerPort field to given value.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetClientTimeout() int32
GetClientTimeout returns the ClientTimeout field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetClientTimeoutOk() (*int32, bool)
GetClientTimeoutOk returns a tuple with the ClientTimeout field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRuleProperties) SetClientTimeout(v int32)
SetClientTimeout sets ClientTimeout field to given value.
func (o *ApplicationLoadBalancerForwardingRuleProperties) HasClientTimeout() bool
HasClientTimeout returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetServerCertificates() []string
GetServerCertificates returns the ServerCertificates field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetServerCertificatesOk() (*[]string, bool)
GetServerCertificatesOk returns a tuple with the ServerCertificates field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRuleProperties) SetServerCertificates(v []string)
SetServerCertificates sets ServerCertificates field to given value.
func (o *ApplicationLoadBalancerForwardingRuleProperties) HasServerCertificates() bool
HasServerCertificates returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetHttpRules() []ApplicationLoadBalancerHttpRule
GetHttpRules returns the HttpRules field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerForwardingRuleProperties) GetHttpRulesOk() (*[]ApplicationLoadBalancerHttpRule, bool)
GetHttpRulesOk returns a tuple with the HttpRules field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerForwardingRuleProperties) SetHttpRules(v []ApplicationLoadBalancerHttpRule)
SetHttpRules sets HttpRules field to given value.
func (o *ApplicationLoadBalancerForwardingRuleProperties) HasHttpRules() bool
HasHttpRules returns a boolean if a field has been set.
func NewDatacenters() *Datacenters
NewDatacenters instantiates a new Datacenters object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDatacentersWithDefaults() *Datacenters
NewDatacentersWithDefaults instantiates a new Datacenters object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Datacenters) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Datacenters) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenters) SetId(v string)
SetId sets Id field to given value.
func (o *Datacenters) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Datacenters) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Datacenters) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenters) SetType(v Type)
SetType sets Type field to given value.
func (o *Datacenters) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Datacenters) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *Datacenters) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenters) SetHref(v string)
SetHref sets Href field to given value.
func (o *Datacenters) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *Datacenters) GetItems() []Datacenter
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *Datacenters) GetItemsOk() (*[]Datacenter, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenters) SetItems(v []Datacenter)
SetItems sets Items field to given value.
func (o *Datacenters) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *Datacenters) GetOffset() float32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *Datacenters) GetOffsetOk() (*float32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenters) SetOffset(v float32)
SetOffset sets Offset field to given value.
func (o *Datacenters) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *Datacenters) GetLimit() float32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *Datacenters) GetLimitOk() (*float32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenters) SetLimit(v float32)
SetLimit sets Limit field to given value.
func (o *Datacenters) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *Datacenters) GetLinks() PaginationLinks
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *Datacenters) GetLinksOk() (*PaginationLinks, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Datacenters) SetLinks(v PaginationLinks)
SetLinks sets Links field to given value.
func (o *Datacenters) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func NewApplicationLoadBalancerHttpRule(name string, type_ string, ) *ApplicationLoadBalancerHttpRule
NewApplicationLoadBalancerHttpRule instantiates a new ApplicationLoadBalancerHttpRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApplicationLoadBalancerHttpRuleWithDefaults() *ApplicationLoadBalancerHttpRule
NewApplicationLoadBalancerHttpRuleWithDefaults instantiates a new ApplicationLoadBalancerHttpRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApplicationLoadBalancerHttpRule) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRule) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRule) SetName(v string)
SetName sets Name field to given value.
func (o *ApplicationLoadBalancerHttpRule) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRule) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRule) SetType(v string)
SetType sets Type field to given value.
func (o *ApplicationLoadBalancerHttpRule) GetTargetGroup() string
GetTargetGroup returns the TargetGroup field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRule) GetTargetGroupOk() (*string, bool)
GetTargetGroupOk returns a tuple with the TargetGroup field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRule) SetTargetGroup(v string)
SetTargetGroup sets TargetGroup field to given value.
func (o *ApplicationLoadBalancerHttpRule) HasTargetGroup() bool
HasTargetGroup returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerHttpRule) GetDropQuery() bool
GetDropQuery returns the DropQuery field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRule) GetDropQueryOk() (*bool, bool)
GetDropQueryOk returns a tuple with the DropQuery field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRule) SetDropQuery(v bool)
SetDropQuery sets DropQuery field to given value.
func (o *ApplicationLoadBalancerHttpRule) HasDropQuery() bool
HasDropQuery returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerHttpRule) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRule) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRule) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *ApplicationLoadBalancerHttpRule) HasLocation() bool
HasLocation returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerHttpRule) GetStatusCode() int32
GetStatusCode returns the StatusCode field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRule) GetStatusCodeOk() (*int32, bool)
GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRule) SetStatusCode(v int32)
SetStatusCode sets StatusCode field to given value.
func (o *ApplicationLoadBalancerHttpRule) HasStatusCode() bool
HasStatusCode returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerHttpRule) GetResponseMessage() string
GetResponseMessage returns the ResponseMessage field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRule) GetResponseMessageOk() (*string, bool)
GetResponseMessageOk returns a tuple with the ResponseMessage field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRule) SetResponseMessage(v string)
SetResponseMessage sets ResponseMessage field to given value.
func (o *ApplicationLoadBalancerHttpRule) HasResponseMessage() bool
HasResponseMessage returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerHttpRule) GetContentType() string
GetContentType returns the ContentType field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRule) GetContentTypeOk() (*string, bool)
GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRule) SetContentType(v string)
SetContentType sets ContentType field to given value.
func (o *ApplicationLoadBalancerHttpRule) HasContentType() bool
HasContentType returns a boolean if a field has been set.
func (o *ApplicationLoadBalancerHttpRule) GetConditions() []ApplicationLoadBalancerHttpRuleCondition
GetConditions returns the Conditions field if non-nil, zero value otherwise.
func (o *ApplicationLoadBalancerHttpRule) GetConditionsOk() (*[]ApplicationLoadBalancerHttpRuleCondition, bool)
GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApplicationLoadBalancerHttpRule) SetConditions(v []ApplicationLoadBalancerHttpRuleCondition)
SetConditions sets Conditions field to given value.
func (o *ApplicationLoadBalancerHttpRule) HasConditions() bool
HasConditions returns a boolean if a field has been set.
func NewFlowLogs() *FlowLogs
NewFlowLogs instantiates a new FlowLogs object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewFlowLogsWithDefaults() *FlowLogs
NewFlowLogsWithDefaults instantiates a new FlowLogs object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *FlowLogs) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *FlowLogs) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogs) SetId(v string)
SetId sets Id field to given value.
func (o *FlowLogs) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FlowLogs) GetType() Type
GetType returns the Type field if non-nil, zero value otherwise.
func (o *FlowLogs) GetTypeOk() (*Type, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogs) SetType(v Type)
SetType sets Type field to given value.
func (o *FlowLogs) HasType() bool
HasType returns a boolean if a field has been set.
func (o *FlowLogs) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
func (o *FlowLogs) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogs) SetHref(v string)
SetHref sets Href field to given value.
func (o *FlowLogs) HasHref() bool
HasHref returns a boolean if a field has been set.
func (o *FlowLogs) GetItems() []FlowLog
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *FlowLogs) GetItemsOk() (*[]FlowLog, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogs) SetItems(v []FlowLog)
SetItems sets Items field to given value.
func (o *FlowLogs) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *FlowLogs) GetOffset() float32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *FlowLogs) GetOffsetOk() (*float32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogs) SetOffset(v float32)
SetOffset sets Offset field to given value.
func (o *FlowLogs) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *FlowLogs) GetLimit() float32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *FlowLogs) GetLimitOk() (*float32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogs) SetLimit(v float32)
SetLimit sets Limit field to given value.
func (o *FlowLogs) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *FlowLogs) GetLinks() PaginationLinks
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *FlowLogs) GetLinksOk() (*PaginationLinks, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FlowLogs) SetLinks(v PaginationLinks)
SetLinks sets Links field to given value.
func (o *FlowLogs) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func NewDatacenterProperties(location string, ) *DatacenterProperties
NewDatacenterProperties instantiates a new DatacenterProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDatacenterPropertiesWithDefaults() *DatacenterProperties
NewDatacenterPropertiesWithDefaults instantiates a new DatacenterProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *DatacenterProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *DatacenterProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterProperties) SetName(v string)
SetName sets Name field to given value.
func (o *DatacenterProperties) HasName() bool
HasName returns a boolean if a field has been set.
func (o *DatacenterProperties) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *DatacenterProperties) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterProperties) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *DatacenterProperties) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *DatacenterProperties) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *DatacenterProperties) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterProperties) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *DatacenterProperties) GetVersion() int32
GetVersion returns the Version field if non-nil, zero value otherwise.
func (o *DatacenterProperties) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterProperties) SetVersion(v int32)
SetVersion sets Version field to given value.
func (o *DatacenterProperties) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o *DatacenterProperties) GetFeatures() []string
GetFeatures returns the Features field if non-nil, zero value otherwise.
func (o *DatacenterProperties) GetFeaturesOk() (*[]string, bool)
GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterProperties) SetFeatures(v []string)
SetFeatures sets Features field to given value.
func (o *DatacenterProperties) HasFeatures() bool
HasFeatures returns a boolean if a field has been set.
func (o *DatacenterProperties) GetSecAuthProtection() bool
GetSecAuthProtection returns the SecAuthProtection field if non-nil, zero value otherwise.
func (o *DatacenterProperties) GetSecAuthProtectionOk() (*bool, bool)
GetSecAuthProtectionOk returns a tuple with the SecAuthProtection field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterProperties) SetSecAuthProtection(v bool)
SetSecAuthProtection sets SecAuthProtection field to given value.
func (o *DatacenterProperties) HasSecAuthProtection() bool
HasSecAuthProtection returns a boolean if a field has been set.
func (o *DatacenterProperties) GetCpuArchitecture() []CpuArchitectureProperties
GetCpuArchitecture returns the CpuArchitecture field if non-nil, zero value otherwise.
func (o *DatacenterProperties) GetCpuArchitectureOk() (*[]CpuArchitectureProperties, bool)
GetCpuArchitectureOk returns a tuple with the CpuArchitecture field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterProperties) SetCpuArchitecture(v []CpuArchitectureProperties)
SetCpuArchitecture sets CpuArchitecture field to given value.
func (o *DatacenterProperties) HasCpuArchitecture() bool
HasCpuArchitecture returns a boolean if a field has been set.
func (o *DatacenterProperties) GetIpv6CidrBlock() string
GetIpv6CidrBlock returns the Ipv6CidrBlock field if non-nil, zero value otherwise.
func (o *DatacenterProperties) GetIpv6CidrBlockOk() (*string, bool)
GetIpv6CidrBlockOk returns a tuple with the Ipv6CidrBlock field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterProperties) SetIpv6CidrBlock(v string)
SetIpv6CidrBlock sets Ipv6CidrBlock field to given value.
func (o *DatacenterProperties) HasIpv6CidrBlock() bool
HasIpv6CidrBlock returns a boolean if a field has been set.
func (o *DatacenterProperties) SetIpv6CidrBlockNil()
SetIpv6CidrBlockNil sets the value for Ipv6CidrBlock to be marshalled as an explicit nil Alternatively Ipv6CidrBlock can be set directly to the address &Nilstring, which is a sentinel value that is checked when marshalling.
func (o *DatacenterProperties) UnsetIpv6CidrBlock()
func (o *DatacenterProperties) GetDefaultSecurityGroupId() string
GetDefaultSecurityGroupId returns the DefaultSecurityGroupId field if non-nil, zero value otherwise.
func (o *DatacenterProperties) GetDefaultSecurityGroupIdOk() (*string, bool)
GetDefaultSecurityGroupIdOk returns a tuple with the DefaultSecurityGroupId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DatacenterProperties) SetDefaultSecurityGroupId(v string)
SetDefaultSecurityGroupId sets DefaultSecurityGroupId field to given value.
func (o *DatacenterProperties) HasDefaultSecurityGroupId() bool
HasDefaultSecurityGroupId returns a boolean if a field has been set.
Etag
Pointer to string
Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter.
[optional] [readonly]
CreatedDate
Pointer to time.Time
The last time the resource was created.
[optional] [readonly]
CreatedBy
Pointer to string
The user who created the resource.
[optional] [readonly]
CreatedByUserId
Pointer to string
The unique ID of the user who created the resource.
[optional] [readonly]
LastModifiedDate
Pointer to time.Time
The last time the resource was modified.
[optional] [readonly]
LastModifiedBy
Pointer to string
The user who last modified the resource.
[optional] [readonly]
LastModifiedByUserId
Pointer to string
The unique ID of the user who last modified the resource.
[optional] [readonly]
State
Pointer to string
State of the resource. AVAILABLE There are no pending modification requests for this item; BUSY There is at least one modification request pending and all following requests will be queued; INACTIVE Resource has been de-provisioned; DEPLOYING Resource state DEPLOYING - relevant for Kubernetes cluster/nodepool; ACTIVE Resource state ACTIVE - relevant for Kubernetes cluster/nodepool; FAILED Resource state FAILED - relevant for Kubernetes cluster/nodepool; SUSPENDED Resource state SUSPENDED - relevant for Kubernetes cluster/nodepool; FAILED_SUSPENDED Resource state FAILED_SUSPENDED - relevant for Kubernetes cluster; UPDATING Resource state UPDATING - relevant for Kubernetes cluster/nodepool; FAILED_UPDATING Resource state FAILED_UPDATING - relevant for Kubernetes cluster/nodepool; DESTROYING Resource state DESTROYING - relevant for Kubernetes cluster; FAILED_DESTROYING Resource state FAILED_DESTROYING - relevant for Kubernetes cluster/nodepool; TERMINATED Resource state TERMINATED - relevant for Kubernetes cluster/nodepool; HIBERNATING Resource state HIBERNATING - relevant for Kubernetes cluster/nodepool; FAILED_HIBERNATING Resource state FAILED_HIBERNATING - relevant for Kubernetes cluster/nodepool; MAINTENANCE Resource state MAINTENANCE - relevant for Kubernetes cluster/nodepool; FAILED_HIBERNATING Resource state FAILED_HIBERNATING - relevant for Kubernetes cluster/nodepool.
[optional] [readonly]
Name
string
The name of the Application Load Balancer forwarding rule.
Protocol
string
The balancing protocol.
ListenerIp
string
The listening (inbound) IP.
ListenerPort
int32
The listening (inbound) port number; the valid range is 1 to 65535.
ClientTimeout
Pointer to int32
The maximum time in milliseconds to wait for the client to acknowledge or send data; default is 50,000 (50 seconds).
[optional]
ServerCertificates
Pointer to []string
Array of items in the collection.
[optional]
HttpRules
Pointer to []ApplicationLoadBalancerHttpRule
An array of items in the collection. The original order of rules is preserved during processing, except that rules of the 'FORWARD' type are processed after the rules with other defined actions. The relative order of the 'FORWARD' type rules is also preserved during the processing.
[optional]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of object that has been created.
[optional]
Href
Pointer to string
URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to []Datacenter
Array of items in the collection.
[optional] [readonly]
Offset
Pointer to float32
The offset (if specified in the request).
[optional]
Limit
Pointer to float32
The limit (if specified in the request).
[optional]
Links
Pointer to PaginationLinks
[optional]
Name
string
The unique name of the Application Load Balancer HTTP rule.
Type
string
The HTTP rule type.
TargetGroup
Pointer to string
The ID of the target group; this parameter is mandatory and is valid only for 'FORWARD' actions.
[optional]
DropQuery
Pointer to bool
Indicates whether the query part of the URI should be dropped and is valid only for 'REDIRECT' actions. Default value is 'FALSE', the redirect URI does not contain any query parameters.
[optional]
Location
Pointer to string
The location for the redirection; this parameter is mandatory and valid only for 'REDIRECT' actions.
[optional]
StatusCode
Pointer to int32
The status code is for 'REDIRECT' and 'STATIC' actions only. If the HTTP rule is 'REDIRECT' the valid values are: 301, 302, 303, 307, 308; default value is '301'. If the HTTP rule is 'STATIC' the valid values are from the range 200-599; default value is '503'.
[optional]
ResponseMessage
Pointer to string
The response message of the request; this parameter is mandatory for 'STATIC' actions.
[optional]
ContentType
Pointer to string
Specifies the content type and is valid only for 'STATIC' actions.
[optional]
Conditions
Pointer to []ApplicationLoadBalancerHttpRuleCondition
An array of items in the collection. The action will be executed only if each condition is met; the rule will always be applied if no conditions are set.
[optional]
Id
Pointer to string
The resource's unique identifier.
[optional] [readonly]
Type
Pointer to Type
The type of object that has been created.
[optional]
Href
Pointer to string
The URL to the object representation (absolute path).
[optional] [readonly]
Items
Pointer to []FlowLog
Array of items in the collection.
[optional] [readonly]
Offset
Pointer to float32
The offset (if specified in the request).
[optional]
Limit
Pointer to float32
The limit (if specified in the request).
[optional]
Links
Pointer to PaginationLinks
[optional]
Name
Pointer to string
The name of the resource.
[optional]
Description
Pointer to string
A description for the datacenter, such as staging, production.
[optional]
Location
string
The physical location where the datacenter will be created. This will be where all of your servers live. Property cannot be modified after datacenter creation (disallowed in update requests).
Version
Pointer to int32
The version of the data center; incremented with every change.
[optional] [readonly]
Features
Pointer to []string
List of features supported by the location where this data center is provisioned.
[optional] [readonly]
SecAuthProtection
Pointer to bool
Boolean value representing if the data center requires extra protection, such as two-step verification.
[optional]
CpuArchitecture
Pointer to []CpuArchitectureProperties
Array of features and CPU families available in a location
[optional] [readonly]
Ipv6CidrBlock
Pointer to NullableString
This value is either 'null' or contains an automatically-assigned /56 IPv6 CIDR block if IPv6 is enabled on this virtual data center. It can neither be changed nor removed.
[optional] [readonly]
DefaultSecurityGroupId
Pointer to string
Optional property to define the default security group of the datacenter.
[optional]
Name
string
A Kubernetes cluster name. Valid Kubernetes cluster name must be 63 characters or less and must be empty or begin and end with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
K8sVersion
Pointer to string
The Kubernetes version that the cluster is running. This limits which Kubernetes versions can run in a cluster's node pools. Also, not all Kubernetes versions are suitable upgrade targets for all earlier versions.
[optional]
MaintenanceWindow
Pointer to
[optional]
Public
Pointer to bool
The indicator whether the cluster is public or private. Note that the status FALSE is still in the beta phase.
[optional] [default to true]
Location
Pointer to string
This attribute is mandatory if the cluster is private and optional if the cluster is public. The location must be enabled for your contract, or you must have a data center at that location. This property is not adjustable.
[optional]
NatGatewayIp
Pointer to string
The nat gateway IP of the cluster if the cluster is private. This property is immutable. Must be a reserved IP in the same location as the cluster's location. This attribute is mandatory if the cluster is private.
[optional]
NodeSubnet
Pointer to string
The node subnet of the cluster, if the cluster is private. This property is optional and immutable. Must be a valid CIDR notation for an IPv4 network prefix of 16 bits length.
[optional]
ApiSubnetAllowList
Pointer to []string
Access to the K8s API server is restricted to these CIDRs. Intra-cluster traffic is not affected by this restriction. If no AllowList is specified, access is not limited. If an IP is specified without a subnet mask, the default value is 32 for IPv4 and 128 for IPv6.
[optional]
S3Buckets
Pointer to
List of Object storage buckets configured for K8s usage. At the moment, it contains only one bucket that is used to store K8s API audit logs.
[optional]
func NewKubernetesClusterPropertiesForPost(name string, ) *KubernetesClusterPropertiesForPost
NewKubernetesClusterPropertiesForPost instantiates a new KubernetesClusterPropertiesForPost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewKubernetesClusterPropertiesForPostWithDefaults() *KubernetesClusterPropertiesForPost
NewKubernetesClusterPropertiesForPostWithDefaults instantiates a new KubernetesClusterPropertiesForPost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *KubernetesClusterPropertiesForPost) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPost) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPost) SetName(v string)
SetName sets Name field to given value.
func (o *KubernetesClusterPropertiesForPost) GetK8sVersion() string
GetK8sVersion returns the K8sVersion field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPost) GetK8sVersionOk() (*string, bool)
GetK8sVersionOk returns a tuple with the K8sVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPost) SetK8sVersion(v string)
SetK8sVersion sets K8sVersion field to given value.
func (o *KubernetesClusterPropertiesForPost) HasK8sVersion() bool
HasK8sVersion returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPost) GetMaintenanceWindow() KubernetesMaintenanceWindow
GetMaintenanceWindow returns the MaintenanceWindow field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPost) GetMaintenanceWindowOk() (*KubernetesMaintenanceWindow, bool)
GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPost) SetMaintenanceWindow(v KubernetesMaintenanceWindow)
SetMaintenanceWindow sets MaintenanceWindow field to given value.
func (o *KubernetesClusterPropertiesForPost) HasMaintenanceWindow() bool
HasMaintenanceWindow returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPost) GetPublic() bool
GetPublic returns the Public field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPost) GetPublicOk() (*bool, bool)
GetPublicOk returns a tuple with the Public field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPost) SetPublic(v bool)
SetPublic sets Public field to given value.
func (o *KubernetesClusterPropertiesForPost) HasPublic() bool
HasPublic returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPost) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPost) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPost) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *KubernetesClusterPropertiesForPost) HasLocation() bool
HasLocation returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPost) GetNatGatewayIp() string
GetNatGatewayIp returns the NatGatewayIp field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPost) GetNatGatewayIpOk() (*string, bool)
GetNatGatewayIpOk returns a tuple with the NatGatewayIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPost) SetNatGatewayIp(v string)
SetNatGatewayIp sets NatGatewayIp field to given value.
func (o *KubernetesClusterPropertiesForPost) HasNatGatewayIp() bool
HasNatGatewayIp returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPost) GetNodeSubnet() string
GetNodeSubnet returns the NodeSubnet field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPost) GetNodeSubnetOk() (*string, bool)
GetNodeSubnetOk returns a tuple with the NodeSubnet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPost) SetNodeSubnet(v string)
SetNodeSubnet sets NodeSubnet field to given value.
func (o *KubernetesClusterPropertiesForPost) HasNodeSubnet() bool
HasNodeSubnet returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPost) GetApiSubnetAllowList() []string
GetApiSubnetAllowList returns the ApiSubnetAllowList field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPost) GetApiSubnetAllowListOk() (*[]string, bool)
GetApiSubnetAllowListOk returns a tuple with the ApiSubnetAllowList field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPost) SetApiSubnetAllowList(v []string)
SetApiSubnetAllowList sets ApiSubnetAllowList field to given value.
func (o *KubernetesClusterPropertiesForPost) HasApiSubnetAllowList() bool
HasApiSubnetAllowList returns a boolean if a field has been set.
func (o *KubernetesClusterPropertiesForPost) GetS3Buckets() []S3Bucket
GetS3Buckets returns the S3Buckets field if non-nil, zero value otherwise.
func (o *KubernetesClusterPropertiesForPost) GetS3BucketsOk() (*[]S3Bucket, bool)
GetS3BucketsOk returns a tuple with the S3Buckets field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterPropertiesForPost) SetS3Buckets(v []S3Bucket)
SetS3Buckets sets S3Buckets field to given value.
func (o *KubernetesClusterPropertiesForPost) HasS3Buckets() bool
HasS3Buckets returns a boolean if a field has been set.
Name
Pointer to string
The name of the resource.
[optional]
Protocol
Pointer to string
The protocol for the rule. Property cannot be modified after it is created (disallowed in update requests).
[optional]
SourceMac
Pointer to NullableString
Only traffic originating from the respective MAC address is allowed. Valid format: aa:bb:cc:dd:ee:ff. Value null allows traffic from any MAC address.
[optional]
IpVersion
Pointer to NullableString
The IP version for this rule. If sourceIp or targetIp are specified, you can omit this value - the IP version will then be deduced from the IP address(es) used; if you specify it anyway, it must match the specified IP address(es). If neither sourceIp nor targetIp are specified, this rule allows traffic only for the specified IP version. If neither sourceIp, targetIp nor ipVersion are specified, this rule will only allow IPv4 traffic.
[optional]
SourceIp
Pointer to NullableString
Only traffic originating from the respective IP address (or CIDR block) is allowed. Value null allows traffic from any IP address (according to the selected ipVersion).
[optional]
TargetIp
Pointer to NullableString
If the target NIC has multiple IP addresses, only the traffic directed to the respective IP address (or CIDR block) of the NIC is allowed. Value null allows traffic to any target IP address (according to the selected ipVersion).
[optional]
IcmpCode
Pointer to NullableInt32
Defines the allowed code (from 0 to 254) if protocol ICMP or ICMPv6 is chosen. Value null allows all codes.
[optional]
IcmpType
Pointer to NullableInt32
Defines the allowed type (from 0 to 254) if the protocol ICMP or ICMPv6 is chosen. Value null allows all types.
[optional]
PortRangeStart
Pointer to int32
Defines the start range of the allowed port (from 1 to 65535) if protocol TCP or UDP is chosen. Leave portRangeStart and portRangeEnd value null to allow all ports.
[optional]
PortRangeEnd
Pointer to int32
Defines the end range of the allowed port (from 1 to 65535) if the protocol TCP or UDP is chosen. Leave portRangeStart and portRangeEnd null to allow all ports.
[optional]
Type
Pointer to string
The type of the firewall rule. If not specified, the default INGRESS value is used.
[optional]
func NewFirewallruleProperties() *FirewallruleProperties
NewFirewallruleProperties instantiates a new FirewallruleProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewFirewallrulePropertiesWithDefaults() *FirewallruleProperties
NewFirewallrulePropertiesWithDefaults instantiates a new FirewallruleProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *FirewallruleProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetName(v string)
SetName sets Name field to given value.
func (o *FirewallruleProperties) HasName() bool
HasName returns a boolean if a field has been set.
func (o *FirewallruleProperties) GetProtocol() string
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetProtocolOk() (*string, bool)
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetProtocol(v string)
SetProtocol sets Protocol field to given value.
func (o *FirewallruleProperties) HasProtocol() bool
HasProtocol returns a boolean if a field has been set.
func (o *FirewallruleProperties) GetSourceMac() string
GetSourceMac returns the SourceMac field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetSourceMacOk() (*string, bool)
GetSourceMacOk returns a tuple with the SourceMac field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetSourceMac(v string)
SetSourceMac sets SourceMac field to given value.
func (o *FirewallruleProperties) HasSourceMac() bool
HasSourceMac returns a boolean if a field has been set.
func (o *FirewallruleProperties) SetSourceMacNil()
SetSourceMacNil sets the value for SourceMac to be marshalled as an explicit nil
Alternatively SourceMac can be set directly to the address &Nilstring, which is a sentinel value that is checked when marshalling.
func (o *FirewallruleProperties) UnsetSourceMac()
func (o *FirewallruleProperties) GetIpVersion() string
GetIpVersion returns the IpVersion field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetIpVersionOk() (*string, bool)
GetIpVersionOk returns a tuple with the IpVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetIpVersion(v string)
SetIpVersion sets IpVersion field to given value.
func (o *FirewallruleProperties) HasIpVersion() bool
HasIpVersion returns a boolean if a field has been set.
func (o *FirewallruleProperties) SetIpVersionNil()
SetIpVersionNil sets the value for IpVersion to be marshalled as an explicit nil
Alternatively IpVersion can be set directly to the address &Nilstring, which is a sentinel value that is checked when marshalling.
func (o *FirewallruleProperties) UnsetIpVersion()
func (o *FirewallruleProperties) GetSourceIp() string
GetSourceIp returns the SourceIp field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetSourceIpOk() (*string, bool)
GetSourceIpOk returns a tuple with the SourceIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetSourceIp(v string)
SetSourceIp sets SourceIp field to given value.
func (o *FirewallruleProperties) HasSourceIp() bool
HasSourceIp returns a boolean if a field has been set.
func (o *FirewallruleProperties) SetSourceIpNil()
SetSourceIpNil sets the value for SourceIp to be marshalled as an explicit nil
Alternatively SourceIp can be set directly to the address &Nilstring, which is a sentinel value that is checked when marshalling.
func (o *FirewallruleProperties) UnsetSourceIp()
func (o *FirewallruleProperties) GetTargetIp() string
GetTargetIp returns the TargetIp field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetTargetIpOk() (*string, bool)
GetTargetIpOk returns a tuple with the TargetIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetTargetIp(v string)
SetTargetIp sets TargetIp field to given value.
func (o *FirewallruleProperties) HasTargetIp() bool
HasTargetIp returns a boolean if a field has been set.
func (o *FirewallruleProperties) SetTargetIpNil()
SetTargetIpNil sets the value for TargetIp to be marshalled as an explicit nil
Alternatively TargetIp can be set directly to the address &Nilstring, which is a sentinel value that is checked when marshalling.
func (o *FirewallruleProperties) UnsetTargetIp()
func (o *FirewallruleProperties) GetIcmpCode() int32
GetIcmpCode returns the IcmpCode field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetIcmpCodeOk() (*int32, bool)
GetIcmpCodeOk returns a tuple with the IcmpCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetIcmpCode(v int32)
SetIcmpCode sets IcmpCode field to given value.
func (o *FirewallruleProperties) HasIcmpCode() bool
HasIcmpCode returns a boolean if a field has been set.
func (o *FirewallruleProperties) SetIcmpCodeNil()
SetIcmpCodeNil sets the value for IcmpCode to be marshalled as an explicit nil
Alternatively IcmpCode can be set directly to the address &Nilint32, which is a sentinel value that is checked when marshalling.
func (o *FirewallruleProperties) UnsetIcmpCode()
func (o *FirewallruleProperties) GetIcmpType() int32
GetIcmpType returns the IcmpType field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetIcmpTypeOk() (*int32, bool)
GetIcmpTypeOk returns a tuple with the IcmpType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetIcmpType(v int32)
SetIcmpType sets IcmpType field to given value.
func (o *FirewallruleProperties) HasIcmpType() bool
HasIcmpType returns a boolean if a field has been set.
func (o *FirewallruleProperties) SetIcmpTypeNil()
SetIcmpTypeNil sets the value for IcmpType to be marshalled as an explicit nil
Alternatively IcmpType can be set directly to the address &Nilint32, which is a sentinel value that is checked when marshalling.
func (o *FirewallruleProperties) UnsetIcmpType()
func (o *FirewallruleProperties) GetPortRangeStart() int32
GetPortRangeStart returns the PortRangeStart field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetPortRangeStartOk() (*int32, bool)
GetPortRangeStartOk returns a tuple with the PortRangeStart field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetPortRangeStart(v int32)
SetPortRangeStart sets PortRangeStart field to given value.
func (o *FirewallruleProperties) HasPortRangeStart() bool
HasPortRangeStart returns a boolean if a field has been set.
func (o *FirewallruleProperties) GetPortRangeEnd() int32
GetPortRangeEnd returns the PortRangeEnd field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetPortRangeEndOk() (*int32, bool)
GetPortRangeEndOk returns a tuple with the PortRangeEnd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetPortRangeEnd(v int32)
SetPortRangeEnd sets PortRangeEnd field to given value.
func (o *FirewallruleProperties) HasPortRangeEnd() bool
HasPortRangeEnd returns a boolean if a field has been set.
func (o *FirewallruleProperties) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *FirewallruleProperties) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *FirewallruleProperties) SetType(v string)
SetType sets Type field to given value.
func (o *FirewallruleProperties) HasType() bool
HasType returns a boolean if a field has been set.
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /backupunits/{backupunitId}
Delete backup units
Get /backupunits/{backupunitId}
Retrieve backup units
Get /backupunits
List backup units
Patch /backupunits/{backupunitId}
Partially modify backup units
Post /backupunits
Create backup units
Put /backupunits/{backupunitId}
Modify backup units
Get /backupunits/{backupunitId}/ssourl
Retrieve BU single sign-on URLs
var result = BackupunitsDelete(ctx, backupunitId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete backup units
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
backupunitId := "backupunitId_example" // string | The unique ID of the backup unit.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.BackupUnitsApi.BackupunitsDelete(context.Background(), backupunitId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupUnitsApi.BackupunitsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
backupunitId
string
The unique ID of the backup unit.
Other parameters are passed through a pointer to a apiBackupunitsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result BackupUnit = BackupunitsFindById(ctx, backupunitId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve backup units
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
backupunitId := "backupunitId_example" // string | The unique ID of the backup unit.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.BackupUnitsApi.BackupunitsFindById(context.Background(), backupunitId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupUnitsApi.BackupunitsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BackupunitsFindById`: BackupUnit
fmt.Fprintf(os.Stdout, "Response from `BackupUnitsApi.BackupunitsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
backupunitId
string
The unique ID of the backup unit.
Other parameters are passed through a pointer to a apiBackupunitsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result BackupUnits = BackupunitsGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List backup units
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.BackupUnitsApi.BackupunitsGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupUnitsApi.BackupunitsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BackupunitsGet`: BackupUnits
fmt.Fprintf(os.Stdout, "Response from `BackupUnitsApi.BackupunitsGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiBackupunitsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result BackupUnit = BackupunitsPatch(ctx, backupunitId)
.BackupUnit(backupUnit)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify backup units
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
backupunitId := "backupunitId_example" // string | The unique ID of the backup unit.
backupUnit := *openapiclient.NewBackupUnitProperties("BackupUnitName") // BackupUnitProperties | The properties of the backup unit to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.BackupUnitsApi.BackupunitsPatch(context.Background(), backupunitId).BackupUnit(backupUnit).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupUnitsApi.BackupunitsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BackupunitsPatch`: BackupUnit
fmt.Fprintf(os.Stdout, "Response from `BackupUnitsApi.BackupunitsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
backupunitId
string
The unique ID of the backup unit.
Other parameters are passed through a pointer to a apiBackupunitsPatchRequest struct via the builder pattern
backupUnit
The properties of the backup unit to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result BackupUnit = BackupunitsPost(ctx)
.BackupUnit(backupUnit)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create backup units
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
backupUnit := *openapiclient.NewBackupUnit(*openapiclient.NewBackupUnitProperties("BackupUnitName")) // BackupUnit | The backup unit to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.BackupUnitsApi.BackupunitsPost(context.Background()).BackupUnit(backupUnit).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupUnitsApi.BackupunitsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BackupunitsPost`: BackupUnit
fmt.Fprintf(os.Stdout, "Response from `BackupUnitsApi.BackupunitsPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiBackupunitsPostRequest struct via the builder pattern
backupUnit
The backup unit to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result BackupUnit = BackupunitsPut(ctx, backupunitId)
.BackupUnit(backupUnit)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify backup units
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
backupunitId := "backupunitId_example" // string | The unique ID of the backup unit.
backupUnit := *openapiclient.NewBackupUnit(*openapiclient.NewBackupUnitProperties("BackupUnitName")) // BackupUnit | The modified backup unit.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.BackupUnitsApi.BackupunitsPut(context.Background(), backupunitId).BackupUnit(backupUnit).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupUnitsApi.BackupunitsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BackupunitsPut`: BackupUnit
fmt.Fprintf(os.Stdout, "Response from `BackupUnitsApi.BackupunitsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
backupunitId
string
The unique ID of the backup unit.
Other parameters are passed through a pointer to a apiBackupunitsPutRequest struct via the builder pattern
backupUnit
The modified backup unit.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result BackupUnitSSO = BackupunitsSsourlGet(ctx, backupunitId)
.Pretty(pretty)
.XContractNumber(xContractNumber)
.Execute()Retrieve BU single sign-on URLs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
backupunitId := "backupunitId_example" // string | The unique ID of the backup unit.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.BackupUnitsApi.BackupunitsSsourlGet(context.Background(), backupunitId).Pretty(pretty).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupUnitsApi.BackupunitsSsourlGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BackupunitsSsourlGet`: BackupUnitSSO
fmt.Fprintf(os.Stdout, "Response from `BackupUnitsApi.BackupunitsSsourlGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
backupunitId
string
The unique ID of the backup unit.
Other parameters are passed through a pointer to a apiBackupunitsSsourlGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Get /locations/{regionId}
Get Locations within a Region
Get /locations/{regionId}/{locationId}
Get Location by ID
Get /locations
Get Locations
var result Locations = LocationsFindByRegionId(ctx, regionId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Locations within a Region
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
regionId := "regionId_example" // string | The unique ID of the region.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LocationsApi.LocationsFindByRegionId(context.Background(), regionId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LocationsApi.LocationsFindByRegionId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LocationsFindByRegionId`: Locations
fmt.Fprintf(os.Stdout, "Response from `LocationsApi.LocationsFindByRegionId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
regionId
string
The unique ID of the region.
Other parameters are passed through a pointer to a apiLocationsFindByRegionIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Location = LocationsFindByRegionIdAndId(ctx, regionId, locationId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Location by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
regionId := "regionId_example" // string | The unique ID of the region.
locationId := "locationId_example" // string | The unique ID of the location.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LocationsApi.LocationsFindByRegionIdAndId(context.Background(), regionId, locationId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LocationsApi.LocationsFindByRegionIdAndId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LocationsFindByRegionIdAndId`: Location
fmt.Fprintf(os.Stdout, "Response from `LocationsApi.LocationsFindByRegionIdAndId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
regionId
string
The unique ID of the region.
locationId
string
The unique ID of the location.
Other parameters are passed through a pointer to a apiLocationsFindByRegionIdAndIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Locations = LocationsGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Locations
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LocationsApi.LocationsGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LocationsApi.LocationsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LocationsGet`: Locations
fmt.Fprintf(os.Stdout, "Response from `LocationsApi.LocationsGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiLocationsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
Name
string
A Kubernetes cluster name. Valid Kubernetes cluster name must be 63 characters or less and must be empty or begin and end with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
K8sVersion
Pointer to string
The Kubernetes version the cluster is running. This imposes restrictions on what Kubernetes versions can be run in a cluster's nodepools. Additionally, not all Kubernetes versions are viable upgrade targets for all prior versions.
[optional]
MaintenanceWindow
Pointer to
[optional]
AvailableUpgradeVersions
Pointer to []string
List of available versions for upgrading the cluster
[optional]
ViableNodePoolVersions
Pointer to []string
List of versions that may be used for node pools under this cluster
[optional]
Public
Pointer to bool
The indicator if the cluster is public or private. Be aware that setting it to false is currently in beta phase.
[optional] [default to true]
Location
Pointer to string
The location of the cluster if the cluster is private. This property is immutable. The location must be enabled for your contract or you must have a Datacenter within that location. This attribute is mandatory if the cluster is private.
[optional]
NatGatewayIp
Pointer to string
The nat gateway IP of the cluster if the cluster is private. This property is immutable. Must be a reserved IP in the same location as the cluster's location. This attribute is mandatory if the cluster is private.
[optional]
NodeSubnet
Pointer to string
The node subnet of the cluster, if the cluster is private. This property is optional and immutable. Must be a valid CIDR notation for an IPv4 network prefix of 16 bits length.
[optional]
ApiSubnetAllowList
Pointer to []string
Access to the K8s API server is restricted to these CIDRs. Traffic, internal to the cluster, is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value is used: 32 for IPv4 and 128 for IPv6.
[optional]
S3Buckets
Pointer to
List of Object storage buckets configured for K8s usage. For now it contains only one bucket used to store K8s API audit logs
[optional]
func NewKubernetesClusterProperties(name string, ) *KubernetesClusterProperties
NewKubernetesClusterProperties instantiates a new KubernetesClusterProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewKubernetesClusterPropertiesWithDefaults() *KubernetesClusterProperties
NewKubernetesClusterPropertiesWithDefaults instantiates a new KubernetesClusterProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *KubernetesClusterProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetName(v string)
SetName sets Name field to given value.
func (o *KubernetesClusterProperties) GetK8sVersion() string
GetK8sVersion returns the K8sVersion field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetK8sVersionOk() (*string, bool)
GetK8sVersionOk returns a tuple with the K8sVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetK8sVersion(v string)
SetK8sVersion sets K8sVersion field to given value.
func (o *KubernetesClusterProperties) HasK8sVersion() bool
HasK8sVersion returns a boolean if a field has been set.
func (o *KubernetesClusterProperties) GetMaintenanceWindow() KubernetesMaintenanceWindow
GetMaintenanceWindow returns the MaintenanceWindow field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetMaintenanceWindowOk() (*KubernetesMaintenanceWindow, bool)
GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetMaintenanceWindow(v KubernetesMaintenanceWindow)
SetMaintenanceWindow sets MaintenanceWindow field to given value.
func (o *KubernetesClusterProperties) HasMaintenanceWindow() bool
HasMaintenanceWindow returns a boolean if a field has been set.
func (o *KubernetesClusterProperties) GetAvailableUpgradeVersions() []string
GetAvailableUpgradeVersions returns the AvailableUpgradeVersions field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetAvailableUpgradeVersionsOk() (*[]string, bool)
GetAvailableUpgradeVersionsOk returns a tuple with the AvailableUpgradeVersions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetAvailableUpgradeVersions(v []string)
SetAvailableUpgradeVersions sets AvailableUpgradeVersions field to given value.
func (o *KubernetesClusterProperties) HasAvailableUpgradeVersions() bool
HasAvailableUpgradeVersions returns a boolean if a field has been set.
func (o *KubernetesClusterProperties) GetViableNodePoolVersions() []string
GetViableNodePoolVersions returns the ViableNodePoolVersions field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetViableNodePoolVersionsOk() (*[]string, bool)
GetViableNodePoolVersionsOk returns a tuple with the ViableNodePoolVersions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetViableNodePoolVersions(v []string)
SetViableNodePoolVersions sets ViableNodePoolVersions field to given value.
func (o *KubernetesClusterProperties) HasViableNodePoolVersions() bool
HasViableNodePoolVersions returns a boolean if a field has been set.
func (o *KubernetesClusterProperties) GetPublic() bool
GetPublic returns the Public field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetPublicOk() (*bool, bool)
GetPublicOk returns a tuple with the Public field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetPublic(v bool)
SetPublic sets Public field to given value.
func (o *KubernetesClusterProperties) HasPublic() bool
HasPublic returns a boolean if a field has been set.
func (o *KubernetesClusterProperties) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *KubernetesClusterProperties) HasLocation() bool
HasLocation returns a boolean if a field has been set.
func (o *KubernetesClusterProperties) GetNatGatewayIp() string
GetNatGatewayIp returns the NatGatewayIp field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetNatGatewayIpOk() (*string, bool)
GetNatGatewayIpOk returns a tuple with the NatGatewayIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetNatGatewayIp(v string)
SetNatGatewayIp sets NatGatewayIp field to given value.
func (o *KubernetesClusterProperties) HasNatGatewayIp() bool
HasNatGatewayIp returns a boolean if a field has been set.
func (o *KubernetesClusterProperties) GetNodeSubnet() string
GetNodeSubnet returns the NodeSubnet field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetNodeSubnetOk() (*string, bool)
GetNodeSubnetOk returns a tuple with the NodeSubnet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetNodeSubnet(v string)
SetNodeSubnet sets NodeSubnet field to given value.
func (o *KubernetesClusterProperties) HasNodeSubnet() bool
HasNodeSubnet returns a boolean if a field has been set.
func (o *KubernetesClusterProperties) GetApiSubnetAllowList() []string
GetApiSubnetAllowList returns the ApiSubnetAllowList field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetApiSubnetAllowListOk() (*[]string, bool)
GetApiSubnetAllowListOk returns a tuple with the ApiSubnetAllowList field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetApiSubnetAllowList(v []string)
SetApiSubnetAllowList sets ApiSubnetAllowList field to given value.
func (o *KubernetesClusterProperties) HasApiSubnetAllowList() bool
HasApiSubnetAllowList returns a boolean if a field has been set.
func (o *KubernetesClusterProperties) GetS3Buckets() []S3Bucket
GetS3Buckets returns the S3Buckets field if non-nil, zero value otherwise.
func (o *KubernetesClusterProperties) GetS3BucketsOk() (*[]S3Bucket, bool)
GetS3BucketsOk returns a tuple with the S3Buckets field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KubernetesClusterProperties) SetS3Buckets(v []S3Bucket)
SetS3Buckets sets S3Buckets field to given value.
func (o *KubernetesClusterProperties) HasS3Buckets() bool
HasS3Buckets returns a boolean if a field has been set.
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete data centers
Other parameters are passed through a pointer to a apiDatacentersDeleteRequest struct via the builder pattern
(empty response body)
Content-Type: Not defined
Accept: application/json
Retrieve data centers
Other parameters are passed through a pointer to a apiDatacentersFindByIdRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
List your data centers
Other parameters are passed through a pointer to a apiDatacentersGetRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
Partially modify a Data Center by ID
Other parameters are passed through a pointer to a apiDatacentersPatchRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Create a Data Center
Other parameters are passed through a pointer to a apiDatacentersPostRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Modify a Data Center by ID
Other parameters are passed through a pointer to a apiDatacentersPutRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Delete /datacenters/{datacenterId}
Delete data centers
Get /datacenters/{datacenterId}
Retrieve data centers
Get /datacenters
List your data centers
Patch /datacenters/{datacenterId}
Partially modify a Data Center by ID
Post /datacenters
Create a Data Center
Put /datacenters/{datacenterId}
Modify a Data Center by ID
var result = DatacentersDelete(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.DataCentersApi.DatacentersDelete(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataCentersApi.DatacentersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Datacenter = DatacentersFindById(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.DataCentersApi.DatacentersFindById(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataCentersApi.DatacentersFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersFindById`: Datacenter
fmt.Fprintf(os.Stdout, "Response from `DataCentersApi.DatacentersFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Datacenters = DatacentersGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.DataCentersApi.DatacentersGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataCentersApi.DatacentersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersGet`: Datacenters
fmt.Fprintf(os.Stdout, "Response from `DataCentersApi.DatacentersGet`: %v\n", resp)
}pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
var result Datacenter = DatacentersPatch(ctx, datacenterId)
.Datacenter(datacenter)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
datacenter := *openapiclient.NewDatacenterPropertiesPut() // DatacenterPropertiesPut | The properties of the data center to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.DataCentersApi.DatacentersPatch(context.Background(), datacenterId).Datacenter(datacenter).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataCentersApi.DatacentersPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersPatch`: Datacenter
fmt.Fprintf(os.Stdout, "Response from `DataCentersApi.DatacentersPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
datacenter
The properties of the data center to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Datacenter = DatacentersPost(ctx)
.Datacenter(datacenter)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenter := *openapiclient.NewDatacenterPost(*openapiclient.NewDatacenterPropertiesPost("us/las")) // DatacenterPost | The data center to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.DataCentersApi.DatacentersPost(context.Background()).Datacenter(datacenter).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataCentersApi.DatacentersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersPost`: Datacenter
fmt.Fprintf(os.Stdout, "Response from `DataCentersApi.DatacentersPost`: %v\n", resp)
}datacenter
The data center to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Datacenter = DatacentersPut(ctx, datacenterId)
.Datacenter(datacenter)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
datacenter := *openapiclient.NewDatacenterPut(*openapiclient.NewDatacenterPropertiesPut()) // DatacenterPut | The modified data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.DataCentersApi.DatacentersPut(context.Background(), datacenterId).Datacenter(datacenter).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataCentersApi.DatacentersPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersPut`: Datacenter
fmt.Fprintf(os.Stdout, "Response from `DataCentersApi.DatacentersPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
datacenter
The modified data center.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
All URIs are relative to https://api.ionos.com/cloudapi/v6
Get /requests/{requestId}
Retrieve requests
Get /requests
List requests
Get /requests/{requestId}/status
Retrieve request status
var result Request = RequestsFindById(ctx, requestId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve requests
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
requestId := "requestId_example" // string | The unique ID of the request.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.RequestsApi.RequestsFindById(context.Background(), requestId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RequestsApi.RequestsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RequestsFindById`: Request
fmt.Fprintf(os.Stdout, "Response from `RequestsApi.RequestsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
requestId
string
The unique ID of the request.
Other parameters are passed through a pointer to a apiRequestsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Requests = RequestsGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.FilterStatus(filterStatus)
.FilterCreatedAfter(filterCreatedAfter)
.FilterCreatedBefore(filterCreatedBefore)
.FilterCreatedDate(filterCreatedDate)
.FilterCreatedBy(filterCreatedBy)
.FilterEtag(filterEtag)
.FilterRequestStatus(filterRequestStatus)
.FilterMethod(filterMethod)
.FilterHeaders(filterHeaders)
.FilterBody(filterBody)
.FilterUrl(filterUrl)
.Offset(offset)
.Limit(limit)
.Execute()List requests
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
filterStatus := "filterStatus_example" // string | Filter the list by request status [QUEUED, RUNNING, DONE, FAILED]. Filter is not affected by the depth query parameter. (optional)
filterCreatedAfter := "filterCreatedAfter_example" // string | Filter the list to only include the requests created after the date, specified in the yyyy-MM-dd HH:mm:ss format. Filter is not affected by the depth query parameter. (optional)
filterCreatedBefore := "filterCreatedBefore_example" // string | Filter the list to only include the requests created before the date, specified in the yyyy-MM-dd HH:mm:ss format. Filter is not affected by the depth query parameter. (optional)
filterCreatedDate := "filterCreatedDate_example" // string | Filter the list to only include the requests that contain the createdDate, specified in the yyyy-MM-dd HH:mm:ss format. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero. (optional)
filterCreatedBy := "filterCreatedBy_example" // string | Filter the list to only include the requests that contain the createdBy, specified in the yyyy-MM-dd HH:mm:ss format. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero. (optional)
filterEtag := "filterEtag_example" // string | Filter the list to only include the requests that contain the specified etag. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero. (optional)
filterRequestStatus := "filterRequestStatus_example" // string | Filter the list to only include the requests that contain the specified requestStatus. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero. (optional)
filterMethod := "filterMethod_example" // string | Filter the list to only include the requests that contain the specified method. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero. (optional)
filterHeaders := "filterHeaders_example" // string | Filter the list to only include the requests that contain the specified headers. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero. (optional)
filterBody := "filterBody_example" // string | Filter the list to only include the requests that contain the specified body. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero. (optional)
filterUrl := "filterUrl_example" // string | Filter the list to only include the requests that contain the specified URL. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.RequestsApi.RequestsGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).FilterStatus(filterStatus).FilterCreatedAfter(filterCreatedAfter).FilterCreatedBefore(filterCreatedBefore).FilterCreatedDate(filterCreatedDate).FilterCreatedBy(filterCreatedBy).FilterEtag(filterEtag).FilterRequestStatus(filterRequestStatus).FilterMethod(filterMethod).FilterHeaders(filterHeaders).FilterBody(filterBody).FilterUrl(filterUrl).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RequestsApi.RequestsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RequestsGet`: Requests
fmt.Fprintf(os.Stdout, "Response from `RequestsApi.RequestsGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiRequestsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
filterStatus
string
Filter the list by request status [QUEUED, RUNNING, DONE, FAILED]. Filter is not affected by the depth query parameter.
filterCreatedAfter
string
Filter the list to only include the requests created after the date, specified in the yyyy-MM-dd HH:mm:ss format. Filter is not affected by the depth query parameter.
filterCreatedBefore
string
Filter the list to only include the requests created before the date, specified in the yyyy-MM-dd HH:mm:ss format. Filter is not affected by the depth query parameter.
filterCreatedDate
string
Filter the list to only include the requests that contain the createdDate, specified in the yyyy-MM-dd HH:mm:ss format. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
filterCreatedBy
string
Filter the list to only include the requests that contain the createdBy, specified in the yyyy-MM-dd HH:mm:ss format. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
filterEtag
string
Filter the list to only include the requests that contain the specified etag. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
filterRequestStatus
string
Filter the list to only include the requests that contain the specified requestStatus. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
filterMethod
string
Filter the list to only include the requests that contain the specified method. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
filterHeaders
string
Filter the list to only include the requests that contain the specified headers. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
filterBody
string
Filter the list to only include the requests that contain the specified body. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
filterUrl
string
Filter the list to only include the requests that contain the specified URL. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result RequestStatus = RequestsStatusGet(ctx, requestId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve request status
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
requestId := "requestId_example" // string | The unique ID of the request.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.RequestsApi.RequestsStatusGet(context.Background(), requestId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RequestsApi.RequestsStatusGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RequestsStatusGet`: RequestStatus
fmt.Fprintf(os.Stdout, "Response from `RequestsApi.RequestsStatusGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
requestId
string
The unique ID of the request.
Other parameters are passed through a pointer to a apiRequestsStatusGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
Name
Pointer to string
The resource name.
[optional]
Description
Pointer to string
Human-readable description.
[optional]
Location
Pointer to string
The location of this image/snapshot.
[optional] [readonly]
Size
Pointer to float32
The image size in GB.
[optional] [readonly]
CpuHotPlug
Pointer to bool
Hot-plug capable CPU (no reboot required).
[optional]
CpuHotUnplug
Pointer to bool
Hot-unplug capable CPU (no reboot required).
[optional]
RamHotPlug
Pointer to bool
Hot-plug capable RAM (no reboot required).
[optional]
RamHotUnplug
Pointer to bool
Hot-unplug capable RAM (no reboot required).
[optional]
NicHotPlug
Pointer to bool
Hot-plug capable NIC (no reboot required).
[optional]
NicHotUnplug
Pointer to bool
Hot-unplug capable NIC (no reboot required).
[optional]
DiscVirtioHotPlug
Pointer to bool
Hot-plug capable Virt-IO drive (no reboot required).
[optional]
DiscVirtioHotUnplug
Pointer to bool
Hot-unplug capable Virt-IO drive (no reboot required). Not supported with Windows VMs.
[optional]
DiscScsiHotPlug
Pointer to bool
Hot-plug capable SCSI drive (no reboot required).
[optional]
DiscScsiHotUnplug
Pointer to bool
Hot-unplug capable SCSI drive (no reboot required). Not supported with Windows VMs.
[optional]
ExposeSerial
Pointer to bool
If set to `true` will expose the serial id of the disk attached to the server. If set to `false` will not expose the serial id. Some operating systems or software solutions require the serial id to be exposed to work properly. Exposing the serial can influence licensed software (e.g. Windows) behavior
[optional] [default to false]
LicenceType
string
The OS type of this image.
ImageType
Pointer to string
The image type.
[optional] [readonly]
Public
Pointer to bool
Indicates whether the image is part of a public repository.
[optional] [readonly]
ImageAliases
Pointer to []string
List of image aliases mapped for this image
[optional] [readonly]
CloudInit
Pointer to string
Cloud init compatibility.
[optional]
func NewImageProperties(licenceType string, ) *ImageProperties
NewImageProperties instantiates a new ImageProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewImagePropertiesWithDefaults() *ImageProperties
NewImagePropertiesWithDefaults instantiates a new ImageProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ImageProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *ImageProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetName(v string)
SetName sets Name field to given value.
func (o *ImageProperties) HasName() bool
HasName returns a boolean if a field has been set.
func (o *ImageProperties) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *ImageProperties) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *ImageProperties) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *ImageProperties) GetLocation() string
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *ImageProperties) GetLocationOk() (*string, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetLocation(v string)
SetLocation sets Location field to given value.
func (o *ImageProperties) HasLocation() bool
HasLocation returns a boolean if a field has been set.
func (o *ImageProperties) GetSize() float32
GetSize returns the Size field if non-nil, zero value otherwise.
func (o *ImageProperties) GetSizeOk() (*float32, bool)
GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetSize(v float32)
SetSize sets Size field to given value.
func (o *ImageProperties) HasSize() bool
HasSize returns a boolean if a field has been set.
func (o *ImageProperties) GetCpuHotPlug() bool
GetCpuHotPlug returns the CpuHotPlug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetCpuHotPlugOk() (*bool, bool)
GetCpuHotPlugOk returns a tuple with the CpuHotPlug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetCpuHotPlug(v bool)
SetCpuHotPlug sets CpuHotPlug field to given value.
func (o *ImageProperties) HasCpuHotPlug() bool
HasCpuHotPlug returns a boolean if a field has been set.
func (o *ImageProperties) GetCpuHotUnplug() bool
GetCpuHotUnplug returns the CpuHotUnplug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetCpuHotUnplugOk() (*bool, bool)
GetCpuHotUnplugOk returns a tuple with the CpuHotUnplug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetCpuHotUnplug(v bool)
SetCpuHotUnplug sets CpuHotUnplug field to given value.
func (o *ImageProperties) HasCpuHotUnplug() bool
HasCpuHotUnplug returns a boolean if a field has been set.
func (o *ImageProperties) GetRamHotPlug() bool
GetRamHotPlug returns the RamHotPlug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetRamHotPlugOk() (*bool, bool)
GetRamHotPlugOk returns a tuple with the RamHotPlug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetRamHotPlug(v bool)
SetRamHotPlug sets RamHotPlug field to given value.
func (o *ImageProperties) HasRamHotPlug() bool
HasRamHotPlug returns a boolean if a field has been set.
func (o *ImageProperties) GetRamHotUnplug() bool
GetRamHotUnplug returns the RamHotUnplug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetRamHotUnplugOk() (*bool, bool)
GetRamHotUnplugOk returns a tuple with the RamHotUnplug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetRamHotUnplug(v bool)
SetRamHotUnplug sets RamHotUnplug field to given value.
func (o *ImageProperties) HasRamHotUnplug() bool
HasRamHotUnplug returns a boolean if a field has been set.
func (o *ImageProperties) GetNicHotPlug() bool
GetNicHotPlug returns the NicHotPlug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetNicHotPlugOk() (*bool, bool)
GetNicHotPlugOk returns a tuple with the NicHotPlug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetNicHotPlug(v bool)
SetNicHotPlug sets NicHotPlug field to given value.
func (o *ImageProperties) HasNicHotPlug() bool
HasNicHotPlug returns a boolean if a field has been set.
func (o *ImageProperties) GetNicHotUnplug() bool
GetNicHotUnplug returns the NicHotUnplug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetNicHotUnplugOk() (*bool, bool)
GetNicHotUnplugOk returns a tuple with the NicHotUnplug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetNicHotUnplug(v bool)
SetNicHotUnplug sets NicHotUnplug field to given value.
func (o *ImageProperties) HasNicHotUnplug() bool
HasNicHotUnplug returns a boolean if a field has been set.
func (o *ImageProperties) GetDiscVirtioHotPlug() bool
GetDiscVirtioHotPlug returns the DiscVirtioHotPlug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetDiscVirtioHotPlugOk() (*bool, bool)
GetDiscVirtioHotPlugOk returns a tuple with the DiscVirtioHotPlug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetDiscVirtioHotPlug(v bool)
SetDiscVirtioHotPlug sets DiscVirtioHotPlug field to given value.
func (o *ImageProperties) HasDiscVirtioHotPlug() bool
HasDiscVirtioHotPlug returns a boolean if a field has been set.
func (o *ImageProperties) GetDiscVirtioHotUnplug() bool
GetDiscVirtioHotUnplug returns the DiscVirtioHotUnplug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetDiscVirtioHotUnplugOk() (*bool, bool)
GetDiscVirtioHotUnplugOk returns a tuple with the DiscVirtioHotUnplug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetDiscVirtioHotUnplug(v bool)
SetDiscVirtioHotUnplug sets DiscVirtioHotUnplug field to given value.
func (o *ImageProperties) HasDiscVirtioHotUnplug() bool
HasDiscVirtioHotUnplug returns a boolean if a field has been set.
func (o *ImageProperties) GetDiscScsiHotPlug() bool
GetDiscScsiHotPlug returns the DiscScsiHotPlug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetDiscScsiHotPlugOk() (*bool, bool)
GetDiscScsiHotPlugOk returns a tuple with the DiscScsiHotPlug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetDiscScsiHotPlug(v bool)
SetDiscScsiHotPlug sets DiscScsiHotPlug field to given value.
func (o *ImageProperties) HasDiscScsiHotPlug() bool
HasDiscScsiHotPlug returns a boolean if a field has been set.
func (o *ImageProperties) GetDiscScsiHotUnplug() bool
GetDiscScsiHotUnplug returns the DiscScsiHotUnplug field if non-nil, zero value otherwise.
func (o *ImageProperties) GetDiscScsiHotUnplugOk() (*bool, bool)
GetDiscScsiHotUnplugOk returns a tuple with the DiscScsiHotUnplug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetDiscScsiHotUnplug(v bool)
SetDiscScsiHotUnplug sets DiscScsiHotUnplug field to given value.
func (o *ImageProperties) HasDiscScsiHotUnplug() bool
HasDiscScsiHotUnplug returns a boolean if a field has been set.
func (o *ImageProperties) GetExposeSerial() bool
GetExposeSerial returns the ExposeSerial field if non-nil, zero value otherwise.
func (o *ImageProperties) GetExposeSerialOk() (*bool, bool)
GetExposeSerialOk returns a tuple with the ExposeSerial field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetExposeSerial(v bool)
SetExposeSerial sets ExposeSerial field to given value.
func (o *ImageProperties) HasExposeSerial() bool
HasExposeSerial returns a boolean if a field has been set.
func (o *ImageProperties) GetLicenceType() string
GetLicenceType returns the LicenceType field if non-nil, zero value otherwise.
func (o *ImageProperties) GetLicenceTypeOk() (*string, bool)
GetLicenceTypeOk returns a tuple with the LicenceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetLicenceType(v string)
SetLicenceType sets LicenceType field to given value.
func (o *ImageProperties) GetImageType() string
GetImageType returns the ImageType field if non-nil, zero value otherwise.
func (o *ImageProperties) GetImageTypeOk() (*string, bool)
GetImageTypeOk returns a tuple with the ImageType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetImageType(v string)
SetImageType sets ImageType field to given value.
func (o *ImageProperties) HasImageType() bool
HasImageType returns a boolean if a field has been set.
func (o *ImageProperties) GetPublic() bool
GetPublic returns the Public field if non-nil, zero value otherwise.
func (o *ImageProperties) GetPublicOk() (*bool, bool)
GetPublicOk returns a tuple with the Public field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetPublic(v bool)
SetPublic sets Public field to given value.
func (o *ImageProperties) HasPublic() bool
HasPublic returns a boolean if a field has been set.
func (o *ImageProperties) GetImageAliases() []string
GetImageAliases returns the ImageAliases field if non-nil, zero value otherwise.
func (o *ImageProperties) GetImageAliasesOk() (*[]string, bool)
GetImageAliasesOk returns a tuple with the ImageAliases field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetImageAliases(v []string)
SetImageAliases sets ImageAliases field to given value.
func (o *ImageProperties) HasImageAliases() bool
HasImageAliases returns a boolean if a field has been set.
func (o *ImageProperties) GetCloudInit() string
GetCloudInit returns the CloudInit field if non-nil, zero value otherwise.
func (o *ImageProperties) GetCloudInitOk() (*string, bool)
GetCloudInitOk returns a tuple with the CloudInit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ImageProperties) SetCloudInit(v string)
SetCloudInit sets CloudInit field to given value.
func (o *ImageProperties) HasCloudInit() bool
HasCloudInit returns a boolean if a field has been set.
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete Private Cross-Connects
Other parameters are passed through a pointer to a apiPccsDeleteRequest struct via the builder pattern
(empty response body)
Content-Type: Not defined
Accept: application/json
Retrieve a Cross Connect
Other parameters are passed through a pointer to a apiPccsFindByIdRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
List Private Cross-Connects
Other parameters are passed through a pointer to a apiPccsGetRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
Partially modify a Private Cross-Connects
Other parameters are passed through a pointer to a apiPccsPatchRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Create a Cross Connect
Other parameters are passed through a pointer to a apiPccsPostRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Delete /pccs/{pccId}
Delete Private Cross-Connects
Get /pccs/{pccId}
Retrieve a Cross Connect
Get /pccs
List Private Cross-Connects
Patch /pccs/{pccId}
Partially modify a Private Cross-Connects
Post /pccs
Create a Cross Connect
var result = PccsDelete(ctx, pccId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pccId := "pccId_example" // string | The unique ID of the Cross Connect.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.PrivateCrossConnectsApi.PccsDelete(context.Background(), pccId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PrivateCrossConnectsApi.PccsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pccId
string
The unique ID of the Cross Connect.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result PrivateCrossConnect = PccsFindById(ctx, pccId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pccId := "pccId_example" // string | The unique ID of the Cross Connect.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.PrivateCrossConnectsApi.PccsFindById(context.Background(), pccId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PrivateCrossConnectsApi.PccsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PccsFindById`: PrivateCrossConnect
fmt.Fprintf(os.Stdout, "Response from `PrivateCrossConnectsApi.PccsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pccId
string
The unique ID of the Cross Connect.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result PrivateCrossConnects = PccsGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.PrivateCrossConnectsApi.PccsGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PrivateCrossConnectsApi.PccsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PccsGet`: PrivateCrossConnects
fmt.Fprintf(os.Stdout, "Response from `PrivateCrossConnectsApi.PccsGet`: %v\n", resp)
}pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result PrivateCrossConnect = PccsPatch(ctx, pccId)
.Pcc(pcc)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pccId := "pccId_example" // string | The unique ID of the Cross Connect.
pcc := *openapiclient.NewPrivateCrossConnectProperties() // PrivateCrossConnectProperties | The properties of the Cross Connect to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.PrivateCrossConnectsApi.PccsPatch(context.Background(), pccId).Pcc(pcc).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PrivateCrossConnectsApi.PccsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PccsPatch`: PrivateCrossConnect
fmt.Fprintf(os.Stdout, "Response from `PrivateCrossConnectsApi.PccsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pccId
string
The unique ID of the Cross Connect.
pcc
The properties of the Cross Connect to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result PrivateCrossConnect = PccsPost(ctx)
.Pcc(pcc)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pcc := *openapiclient.NewPrivateCrossConnect(*openapiclient.NewPrivateCrossConnectProperties()) // PrivateCrossConnect | The Cross Connect to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.PrivateCrossConnectsApi.PccsPost(context.Background()).Pcc(pcc).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PrivateCrossConnectsApi.PccsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PccsPost`: PrivateCrossConnect
fmt.Fprintf(os.Stdout, "Response from `PrivateCrossConnectsApi.PccsPost`: %v\n", resp)
}pcc
The Cross Connect to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete images
Other parameters are passed through a pointer to a apiImagesDeleteRequest struct via the builder pattern
(empty response body)
Content-Type: Not defined
Accept: application/json
Retrieve images
Other parameters are passed through a pointer to a apiImagesFindByIdRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
List images
Other parameters are passed through a pointer to a apiImagesGetRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
Partially modify images
Other parameters are passed through a pointer to a apiImagesPatchRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Modify an Image by ID
Other parameters are passed through a pointer to a apiImagesPutRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
func NewGroupProperties() *GroupProperties
NewGroupProperties instantiates a new GroupProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGroupPropertiesWithDefaults() *GroupProperties
NewGroupPropertiesWithDefaults instantiates a new GroupProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *GroupProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *GroupProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetName(v string)
SetName sets Name field to given value.
func (o *GroupProperties) HasName() bool
HasName returns a boolean if a field has been set.
func (o *GroupProperties) GetCreateDataCenter() bool
GetCreateDataCenter returns the CreateDataCenter field if non-nil, zero value otherwise.
func (o *GroupProperties) GetCreateDataCenterOk() (*bool, bool)
GetCreateDataCenterOk returns a tuple with the CreateDataCenter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetCreateDataCenter(v bool)
SetCreateDataCenter sets CreateDataCenter field to given value.
func (o *GroupProperties) HasCreateDataCenter() bool
HasCreateDataCenter returns a boolean if a field has been set.
func (o *GroupProperties) GetCreateSnapshot() bool
GetCreateSnapshot returns the CreateSnapshot field if non-nil, zero value otherwise.
func (o *GroupProperties) GetCreateSnapshotOk() (*bool, bool)
GetCreateSnapshotOk returns a tuple with the CreateSnapshot field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetCreateSnapshot(v bool)
SetCreateSnapshot sets CreateSnapshot field to given value.
func (o *GroupProperties) HasCreateSnapshot() bool
HasCreateSnapshot returns a boolean if a field has been set.
func (o *GroupProperties) GetReserveIp() bool
GetReserveIp returns the ReserveIp field if non-nil, zero value otherwise.
func (o *GroupProperties) GetReserveIpOk() (*bool, bool)
GetReserveIpOk returns a tuple with the ReserveIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetReserveIp(v bool)
SetReserveIp sets ReserveIp field to given value.
func (o *GroupProperties) HasReserveIp() bool
HasReserveIp returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessActivityLog() bool
GetAccessActivityLog returns the AccessActivityLog field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessActivityLogOk() (*bool, bool)
GetAccessActivityLogOk returns a tuple with the AccessActivityLog field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessActivityLog(v bool)
SetAccessActivityLog sets AccessActivityLog field to given value.
func (o *GroupProperties) HasAccessActivityLog() bool
HasAccessActivityLog returns a boolean if a field has been set.
func (o *GroupProperties) GetCreatePcc() bool
GetCreatePcc returns the CreatePcc field if non-nil, zero value otherwise.
func (o *GroupProperties) GetCreatePccOk() (*bool, bool)
GetCreatePccOk returns a tuple with the CreatePcc field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetCreatePcc(v bool)
SetCreatePcc sets CreatePcc field to given value.
func (o *GroupProperties) HasCreatePcc() bool
HasCreatePcc returns a boolean if a field has been set.
func (o *GroupProperties) GetS3Privilege() bool
GetS3Privilege returns the S3Privilege field if non-nil, zero value otherwise.
func (o *GroupProperties) GetS3PrivilegeOk() (*bool, bool)
GetS3PrivilegeOk returns a tuple with the S3Privilege field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetS3Privilege(v bool)
SetS3Privilege sets S3Privilege field to given value.
func (o *GroupProperties) HasS3Privilege() bool
HasS3Privilege returns a boolean if a field has been set.
func (o *GroupProperties) GetCreateBackupUnit() bool
GetCreateBackupUnit returns the CreateBackupUnit field if non-nil, zero value otherwise.
func (o *GroupProperties) GetCreateBackupUnitOk() (*bool, bool)
GetCreateBackupUnitOk returns a tuple with the CreateBackupUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetCreateBackupUnit(v bool)
SetCreateBackupUnit sets CreateBackupUnit field to given value.
func (o *GroupProperties) HasCreateBackupUnit() bool
HasCreateBackupUnit returns a boolean if a field has been set.
func (o *GroupProperties) GetCreateInternetAccess() bool
GetCreateInternetAccess returns the CreateInternetAccess field if non-nil, zero value otherwise.
func (o *GroupProperties) GetCreateInternetAccessOk() (*bool, bool)
GetCreateInternetAccessOk returns a tuple with the CreateInternetAccess field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetCreateInternetAccess(v bool)
SetCreateInternetAccess sets CreateInternetAccess field to given value.
func (o *GroupProperties) HasCreateInternetAccess() bool
HasCreateInternetAccess returns a boolean if a field has been set.
func (o *GroupProperties) GetCreateK8sCluster() bool
GetCreateK8sCluster returns the CreateK8sCluster field if non-nil, zero value otherwise.
func (o *GroupProperties) GetCreateK8sClusterOk() (*bool, bool)
GetCreateK8sClusterOk returns a tuple with the CreateK8sCluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetCreateK8sCluster(v bool)
SetCreateK8sCluster sets CreateK8sCluster field to given value.
func (o *GroupProperties) HasCreateK8sCluster() bool
HasCreateK8sCluster returns a boolean if a field has been set.
func (o *GroupProperties) GetCreateFlowLog() bool
GetCreateFlowLog returns the CreateFlowLog field if non-nil, zero value otherwise.
func (o *GroupProperties) GetCreateFlowLogOk() (*bool, bool)
GetCreateFlowLogOk returns a tuple with the CreateFlowLog field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetCreateFlowLog(v bool)
SetCreateFlowLog sets CreateFlowLog field to given value.
func (o *GroupProperties) HasCreateFlowLog() bool
HasCreateFlowLog returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageMonitoring() bool
GetAccessAndManageMonitoring returns the AccessAndManageMonitoring field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageMonitoringOk() (*bool, bool)
GetAccessAndManageMonitoringOk returns a tuple with the AccessAndManageMonitoring field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageMonitoring(v bool)
SetAccessAndManageMonitoring sets AccessAndManageMonitoring field to given value.
func (o *GroupProperties) HasAccessAndManageMonitoring() bool
HasAccessAndManageMonitoring returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageCertificates() bool
GetAccessAndManageCertificates returns the AccessAndManageCertificates field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageCertificatesOk() (*bool, bool)
GetAccessAndManageCertificatesOk returns a tuple with the AccessAndManageCertificates field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageCertificates(v bool)
SetAccessAndManageCertificates sets AccessAndManageCertificates field to given value.
func (o *GroupProperties) HasAccessAndManageCertificates() bool
HasAccessAndManageCertificates returns a boolean if a field has been set.
func (o *GroupProperties) GetManageDBaaS() bool
GetManageDBaaS returns the ManageDBaaS field if non-nil, zero value otherwise.
func (o *GroupProperties) GetManageDBaaSOk() (*bool, bool)
GetManageDBaaSOk returns a tuple with the ManageDBaaS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetManageDBaaS(v bool)
SetManageDBaaS sets ManageDBaaS field to given value.
func (o *GroupProperties) HasManageDBaaS() bool
HasManageDBaaS returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageDns() bool
GetAccessAndManageDns returns the AccessAndManageDns field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageDnsOk() (*bool, bool)
GetAccessAndManageDnsOk returns a tuple with the AccessAndManageDns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageDns(v bool)
SetAccessAndManageDns sets AccessAndManageDns field to given value.
func (o *GroupProperties) HasAccessAndManageDns() bool
HasAccessAndManageDns returns a boolean if a field has been set.
func (o *GroupProperties) GetManageRegistry() bool
GetManageRegistry returns the ManageRegistry field if non-nil, zero value otherwise.
func (o *GroupProperties) GetManageRegistryOk() (*bool, bool)
GetManageRegistryOk returns a tuple with the ManageRegistry field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetManageRegistry(v bool)
SetManageRegistry sets ManageRegistry field to given value.
func (o *GroupProperties) HasManageRegistry() bool
HasManageRegistry returns a boolean if a field has been set.
func (o *GroupProperties) GetManageDataplatform() bool
GetManageDataplatform returns the ManageDataplatform field if non-nil, zero value otherwise.
func (o *GroupProperties) GetManageDataplatformOk() (*bool, bool)
GetManageDataplatformOk returns a tuple with the ManageDataplatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetManageDataplatform(v bool)
SetManageDataplatform sets ManageDataplatform field to given value.
func (o *GroupProperties) HasManageDataplatform() bool
HasManageDataplatform returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageLogging() bool
GetAccessAndManageLogging returns the AccessAndManageLogging field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageLoggingOk() (*bool, bool)
GetAccessAndManageLoggingOk returns a tuple with the AccessAndManageLogging field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageLogging(v bool)
SetAccessAndManageLogging sets AccessAndManageLogging field to given value.
func (o *GroupProperties) HasAccessAndManageLogging() bool
HasAccessAndManageLogging returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageCdn() bool
GetAccessAndManageCdn returns the AccessAndManageCdn field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageCdnOk() (*bool, bool)
GetAccessAndManageCdnOk returns a tuple with the AccessAndManageCdn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageCdn(v bool)
SetAccessAndManageCdn sets AccessAndManageCdn field to given value.
func (o *GroupProperties) HasAccessAndManageCdn() bool
HasAccessAndManageCdn returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageVpn() bool
GetAccessAndManageVpn returns the AccessAndManageVpn field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageVpnOk() (*bool, bool)
GetAccessAndManageVpnOk returns a tuple with the AccessAndManageVpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageVpn(v bool)
SetAccessAndManageVpn sets AccessAndManageVpn field to given value.
func (o *GroupProperties) HasAccessAndManageVpn() bool
HasAccessAndManageVpn returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageApiGateway() bool
GetAccessAndManageApiGateway returns the AccessAndManageApiGateway field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageApiGatewayOk() (*bool, bool)
GetAccessAndManageApiGatewayOk returns a tuple with the AccessAndManageApiGateway field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageApiGateway(v bool)
SetAccessAndManageApiGateway sets AccessAndManageApiGateway field to given value.
func (o *GroupProperties) HasAccessAndManageApiGateway() bool
HasAccessAndManageApiGateway returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageKaas() bool
GetAccessAndManageKaas returns the AccessAndManageKaas field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageKaasOk() (*bool, bool)
GetAccessAndManageKaasOk returns a tuple with the AccessAndManageKaas field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageKaas(v bool)
SetAccessAndManageKaas sets AccessAndManageKaas field to given value.
func (o *GroupProperties) HasAccessAndManageKaas() bool
HasAccessAndManageKaas returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageNetworkFileStorage() bool
GetAccessAndManageNetworkFileStorage returns the AccessAndManageNetworkFileStorage field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageNetworkFileStorageOk() (*bool, bool)
GetAccessAndManageNetworkFileStorageOk returns a tuple with the AccessAndManageNetworkFileStorage field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageNetworkFileStorage(v bool)
SetAccessAndManageNetworkFileStorage sets AccessAndManageNetworkFileStorage field to given value.
func (o *GroupProperties) HasAccessAndManageNetworkFileStorage() bool
HasAccessAndManageNetworkFileStorage returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageAiModelHub() bool
GetAccessAndManageAiModelHub returns the AccessAndManageAiModelHub field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageAiModelHubOk() (*bool, bool)
GetAccessAndManageAiModelHubOk returns a tuple with the AccessAndManageAiModelHub field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageAiModelHub(v bool)
SetAccessAndManageAiModelHub sets AccessAndManageAiModelHub field to given value.
func (o *GroupProperties) HasAccessAndManageAiModelHub() bool
HasAccessAndManageAiModelHub returns a boolean if a field has been set.
func (o *GroupProperties) GetAccessAndManageIamResources() bool
GetAccessAndManageIamResources returns the AccessAndManageIamResources field if non-nil, zero value otherwise.
func (o *GroupProperties) GetAccessAndManageIamResourcesOk() (*bool, bool)
GetAccessAndManageIamResourcesOk returns a tuple with the AccessAndManageIamResources field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetAccessAndManageIamResources(v bool)
SetAccessAndManageIamResources sets AccessAndManageIamResources field to given value.
func (o *GroupProperties) HasAccessAndManageIamResources() bool
HasAccessAndManageIamResources returns a boolean if a field has been set.
func (o *GroupProperties) GetCreateNetworkSecurityGroups() bool
GetCreateNetworkSecurityGroups returns the CreateNetworkSecurityGroups field if non-nil, zero value otherwise.
func (o *GroupProperties) GetCreateNetworkSecurityGroupsOk() (*bool, bool)
GetCreateNetworkSecurityGroupsOk returns a tuple with the CreateNetworkSecurityGroups field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GroupProperties) SetCreateNetworkSecurityGroups(v bool)
SetCreateNetworkSecurityGroups sets CreateNetworkSecurityGroups field to given value.
func (o *GroupProperties) HasCreateNetworkSecurityGroups() bool
HasCreateNetworkSecurityGroups returns a boolean if a field has been set.
Name
Pointer to string
The name of the resource.
[optional]
CreateDataCenter
Pointer to bool
Create data center privilege.
[optional]
CreateSnapshot
Pointer to bool
Create snapshot privilege.
[optional]
ReserveIp
Pointer to bool
Reserve IP block privilege.
[optional]
AccessActivityLog
Pointer to bool
Activity log access privilege.
[optional]
CreatePcc
Pointer to bool
User privilege to create a cross connect.
[optional]
S3Privilege
Pointer to bool
S3 privilege.
[optional]
CreateBackupUnit
Pointer to bool
Create backup unit privilege.
[optional]
CreateInternetAccess
Pointer to bool
Create internet access privilege.
[optional]
CreateK8sCluster
Pointer to bool
Create Kubernetes cluster privilege.
[optional]
CreateFlowLog
Pointer to bool
Create Flow Logs privilege.
[optional]
AccessAndManageMonitoring
Pointer to bool
Privilege for a group to access and manage monitoring related functionality (access metrics, CRUD on alarms, alarm-actions etc) using Monotoring-as-a-Service (MaaS).
[optional]
AccessAndManageCertificates
Pointer to bool
Privilege for a group to access and manage certificates.
[optional]
ManageDBaaS
Pointer to bool
Privilege for a group to manage DBaaS related functionality.
[optional]
AccessAndManageDns
Pointer to bool
Privilege for a group to access and manage dns records.
[optional]
ManageRegistry
Pointer to bool
Privilege for group accessing container registry related functionality.
[optional]
ManageDataplatform
Pointer to bool
Privilege for a group to access and manage the Data Platform.
[optional]
AccessAndManageLogging
Pointer to bool
Privilege for a group to access and manage Logs.
[optional]
AccessAndManageCdn
Pointer to bool
Privilege for a group to access and manage CDN.
[optional]
AccessAndManageVpn
Pointer to bool
Privilege for a group to access and manage VPN.
[optional]
AccessAndManageApiGateway
Pointer to bool
Privilege for a group to access and manage API Gateway.
[optional]
AccessAndManageKaas
Pointer to bool
Privilege for a group to access and manage KaaS.
[optional]
AccessAndManageNetworkFileStorage
Pointer to bool
Privilege for a group to access and manage Network File Storage.
[optional]
AccessAndManageAiModelHub
Pointer to bool
Privilege for a group to access and manage AI Model Hub.
[optional]
AccessAndManageIamResources
Pointer to bool
Privilege for a group to access and manage Password Policies.
[optional]
CreateNetworkSecurityGroups
Pointer to bool
Privilege for a group to access and manage Network Security Groups.
[optional]
Delete /images/{imageId}
Delete images
Get /images/{imageId}
Retrieve images
Get /images
List images
Patch /images/{imageId}
Partially modify images
Put /images/{imageId}
Modify an Image by ID
var result = ImagesDelete(ctx, imageId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
imageId := "imageId_example" // string | The unique ID of the image.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.ImagesApi.ImagesDelete(context.Background(), imageId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ImagesApi.ImagesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
imageId
string
The unique ID of the image.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Image = ImagesFindById(ctx, imageId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
imageId := "imageId_example" // string | The unique ID of the image.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ImagesApi.ImagesFindById(context.Background(), imageId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ImagesApi.ImagesFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImagesFindById`: Image
fmt.Fprintf(os.Stdout, "Response from `ImagesApi.ImagesFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
imageId
string
The unique ID of the image.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Images = ImagesGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ImagesApi.ImagesGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ImagesApi.ImagesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImagesGet`: Images
fmt.Fprintf(os.Stdout, "Response from `ImagesApi.ImagesGet`: %v\n", resp)
}pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Image = ImagesPatch(ctx, imageId)
.Image(image)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
imageId := "imageId_example" // string | The unique ID of the image.
image := *openapiclient.NewImageProperties("LINUX") // ImageProperties | The image properties to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ImagesApi.ImagesPatch(context.Background(), imageId).Image(image).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ImagesApi.ImagesPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImagesPatch`: Image
fmt.Fprintf(os.Stdout, "Response from `ImagesApi.ImagesPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
imageId
string
The unique ID of the image.
image
The image properties to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Image = ImagesPut(ctx, imageId)
.Image(image)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
imageId := "imageId_example" // string | The unique ID of the image.
image := *openapiclient.NewImage(*openapiclient.NewImageProperties("LINUX")) // Image | The modified image
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ImagesApi.ImagesPut(context.Background(), imageId).Image(image).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ImagesApi.ImagesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImagesPut`: Image
fmt.Fprintf(os.Stdout, "Response from `ImagesApi.ImagesPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
imageId
string
The unique ID of the image.
image
The modified image
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /snapshots/{snapshotId}
Delete snapshots
Get /snapshots/{snapshotId}
Retrieve snapshots by ID
Get /snapshots
List snapshots
Patch /snapshots/{snapshotId}
Partially modify snapshots
Put /snapshots/{snapshotId}
Modify a Snapshot by ID
var result = SnapshotsDelete(ctx, snapshotId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete snapshots
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
snapshotId := "snapshotId_example" // string | The unique ID of the snapshot.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.SnapshotsApi.SnapshotsDelete(context.Background(), snapshotId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SnapshotsApi.SnapshotsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId
string
The unique ID of the snapshot.
Other parameters are passed through a pointer to a apiSnapshotsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result Snapshot = SnapshotsFindById(ctx, snapshotId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve snapshots by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
snapshotId := "snapshotId_example" // string | The unique ID of the snapshot.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SnapshotsApi.SnapshotsFindById(context.Background(), snapshotId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SnapshotsApi.SnapshotsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SnapshotsFindById`: Snapshot
fmt.Fprintf(os.Stdout, "Response from `SnapshotsApi.SnapshotsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId
string
The unique ID of the snapshot.
Other parameters are passed through a pointer to a apiSnapshotsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Snapshots = SnapshotsGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List snapshots
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SnapshotsApi.SnapshotsGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SnapshotsApi.SnapshotsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SnapshotsGet`: Snapshots
fmt.Fprintf(os.Stdout, "Response from `SnapshotsApi.SnapshotsGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiSnapshotsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Snapshot = SnapshotsPatch(ctx, snapshotId)
.Snapshot(snapshot)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify snapshots
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
snapshotId := "snapshotId_example" // string | The unique ID of the snapshot.
snapshot := *openapiclient.NewSnapshotProperties() // SnapshotProperties | The properties of the snapshot to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SnapshotsApi.SnapshotsPatch(context.Background(), snapshotId).Snapshot(snapshot).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SnapshotsApi.SnapshotsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SnapshotsPatch`: Snapshot
fmt.Fprintf(os.Stdout, "Response from `SnapshotsApi.SnapshotsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId
string
The unique ID of the snapshot.
Other parameters are passed through a pointer to a apiSnapshotsPatchRequest struct via the builder pattern
snapshot
The properties of the snapshot to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Snapshot = SnapshotsPut(ctx, snapshotId)
.Snapshot(snapshot)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Snapshot by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
snapshotId := "snapshotId_example" // string | The unique ID of the snapshot.
snapshot := *openapiclient.NewSnapshot(*openapiclient.NewSnapshotProperties()) // Snapshot | The modified snapshot
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SnapshotsApi.SnapshotsPut(context.Background(), snapshotId).Snapshot(snapshot).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SnapshotsApi.SnapshotsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SnapshotsPut`: Snapshot
fmt.Fprintf(os.Stdout, "Response from `SnapshotsApi.SnapshotsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId
string
The unique ID of the snapshot.
Other parameters are passed through a pointer to a apiSnapshotsPutRequest struct via the builder pattern
snapshot
The modified snapshot
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /um/users/{userId}/s3keys/{keyId}
Delete Object storage keys
Get /um/users/{userId}/s3keys/{keyId}
Retrieve user Object storage keys by key ID
Get /um/users/{userId}/s3keys
List user Object storage keys
Post /um/users/{userId}/s3keys
Create user Object storage keys
Put /um/users/{userId}/s3keys/{keyId}
Modify a Object storage Key by Key ID
Get /um/users/{userId}/s3ssourl
Retrieve Object storage single sign-on URLs
var result = UmUsersS3keysDelete(ctx, userId, keyId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete Object storage keys
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
keyId := "keyId_example" // string | The unique ID of the Object storage key.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.UserS3KeysApi.UmUsersS3keysDelete(context.Background(), userId, keyId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserS3KeysApi.UmUsersS3keysDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
keyId
string
The unique ID of the Object storage key.
Other parameters are passed through a pointer to a apiUmUsersS3keysDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result S3Key = UmUsersS3keysFindByKeyId(ctx, userId, keyId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve user Object storage keys by key ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
keyId := "keyId_example" // string | The unique ID of the Object storage key.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserS3KeysApi.UmUsersS3keysFindByKeyId(context.Background(), userId, keyId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserS3KeysApi.UmUsersS3keysFindByKeyId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersS3keysFindByKeyId`: S3Key
fmt.Fprintf(os.Stdout, "Response from `UserS3KeysApi.UmUsersS3keysFindByKeyId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
keyId
string
The unique ID of the Object storage key.
Other parameters are passed through a pointer to a apiUmUsersS3keysFindByKeyIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result S3Keys = UmUsersS3keysGet(ctx, userId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List user Object storage keys
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserS3KeysApi.UmUsersS3keysGet(context.Background(), userId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserS3KeysApi.UmUsersS3keysGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersS3keysGet`: S3Keys
fmt.Fprintf(os.Stdout, "Response from `UserS3KeysApi.UmUsersS3keysGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
Other parameters are passed through a pointer to a apiUmUsersS3keysGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result S3Key = UmUsersS3keysPost(ctx, userId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create user Object storage keys
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserS3KeysApi.UmUsersS3keysPost(context.Background(), userId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserS3KeysApi.UmUsersS3keysPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersS3keysPost`: S3Key
fmt.Fprintf(os.Stdout, "Response from `UserS3KeysApi.UmUsersS3keysPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
Other parameters are passed through a pointer to a apiUmUsersS3keysPostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result S3Key = UmUsersS3keysPut(ctx, userId, keyId)
.S3Key(s3Key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Object storage Key by Key ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
keyId := "keyId_example" // string | The unique ID of the Object storage key.
s3Key := *openapiclient.NewS3Key(*openapiclient.NewS3KeyProperties()) // S3Key | The modified Object storage key.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserS3KeysApi.UmUsersS3keysPut(context.Background(), userId, keyId).S3Key(s3Key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserS3KeysApi.UmUsersS3keysPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersS3keysPut`: S3Key
fmt.Fprintf(os.Stdout, "Response from `UserS3KeysApi.UmUsersS3keysPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
keyId
string
The unique ID of the Object storage key.
Other parameters are passed through a pointer to a apiUmUsersS3keysPutRequest struct via the builder pattern
s3Key
The modified Object storage key.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result S3ObjectStorageSSO = UmUsersS3ssourlGet(ctx, userId)
.Pretty(pretty)
.XContractNumber(xContractNumber)
.Execute()Retrieve Object storage single sign-on URLs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserS3KeysApi.UmUsersS3ssourlGet(context.Background(), userId).Pretty(pretty).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserS3KeysApi.UmUsersS3ssourlGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersS3ssourlGet`: S3ObjectStorageSSO
fmt.Fprintf(os.Stdout, "Response from `UserS3KeysApi.UmUsersS3ssourlGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
Other parameters are passed through a pointer to a apiUmUsersS3ssourlGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete IP blocks
Other parameters are passed through a pointer to a apiIpblocksDeleteRequest struct via the builder pattern
(empty response body)
Content-Type: Not defined
Accept: application/json
Retrieve IP blocks
Other parameters are passed through a pointer to a apiIpblocksFindByIdRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
List IP blocks
Other parameters are passed through a pointer to a apiIpblocksGetRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
Partially modify IP blocks
Other parameters are passed through a pointer to a apiIpblocksPatchRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Reserve a IP Block
Other parameters are passed through a pointer to a apiIpblocksPostRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Modify a IP Block by ID
Other parameters are passed through a pointer to a apiIpblocksPutRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Delete /ipblocks/{ipblockId}
Delete IP blocks
Get /ipblocks/{ipblockId}
Retrieve IP blocks
Get /ipblocks
List IP blocks
Patch /ipblocks/{ipblockId}
Partially modify IP blocks
Post /ipblocks
Reserve a IP Block
Put /ipblocks/{ipblockId}
Modify a IP Block by ID
var result = IpblocksDelete(ctx, ipblockId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblockId := "ipblockId_example" // string | The unique ID of the IP block.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.IPBlocksApi.IpblocksDelete(context.Background(), ipblockId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IPBlocksApi.IpblocksDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
ipblockId
string
The unique ID of the IP block.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result IpBlock = IpblocksFindById(ctx, ipblockId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblockId := "ipblockId_example" // string | The unique ID of the IP block.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.IPBlocksApi.IpblocksFindById(context.Background(), ipblockId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IPBlocksApi.IpblocksFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IpblocksFindById`: IpBlock
fmt.Fprintf(os.Stdout, "Response from `IPBlocksApi.IpblocksFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
ipblockId
string
The unique ID of the IP block.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result IpBlocks = IpblocksGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 100)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.IPBlocksApi.IpblocksGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IPBlocksApi.IpblocksGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IpblocksGet`: IpBlocks
fmt.Fprintf(os.Stdout, "Response from `IPBlocksApi.IpblocksGet`: %v\n", resp)
}pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 100]
var result IpBlock = IpblocksPatch(ctx, ipblockId)
.Ipblock(ipblock)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblockId := "ipblockId_example" // string | The unique ID of the IP block.
ipblock := *openapiclient.NewIpBlockProperties("us/las", int32(5)) // IpBlockProperties | The properties of the IP block to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.IPBlocksApi.IpblocksPatch(context.Background(), ipblockId).Ipblock(ipblock).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IPBlocksApi.IpblocksPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IpblocksPatch`: IpBlock
fmt.Fprintf(os.Stdout, "Response from `IPBlocksApi.IpblocksPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
ipblockId
string
The unique ID of the IP block.
ipblock
The properties of the IP block to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result IpBlock = IpblocksPost(ctx)
.Ipblock(ipblock)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblock := *openapiclient.NewIpBlock(*openapiclient.NewIpBlockProperties("us/las", int32(5))) // IpBlock | The IP block to be reserved.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.IPBlocksApi.IpblocksPost(context.Background()).Ipblock(ipblock).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IPBlocksApi.IpblocksPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IpblocksPost`: IpBlock
fmt.Fprintf(os.Stdout, "Response from `IPBlocksApi.IpblocksPost`: %v\n", resp)
}ipblock
The IP block to be reserved.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result IpBlock = IpblocksPut(ctx, ipblockId)
.Ipblock(ipblock)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblockId := "ipblockId_example" // string | The unique ID of the IP block.
ipblock := *openapiclient.NewIpBlock(*openapiclient.NewIpBlockProperties("us/las", int32(5))) // IpBlock | The modified IP block.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.IPBlocksApi.IpblocksPut(context.Background(), ipblockId).Ipblock(ipblock).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IPBlocksApi.IpblocksPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IpblocksPut`: IpBlock
fmt.Fprintf(os.Stdout, "Response from `IPBlocksApi.IpblocksPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
ipblockId
string
The unique ID of the IP block.
ipblock
The modified IP block.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /targetgroups/{targetGroupId}
Delete a Target Group by ID
Get /targetgroups/{targetGroupId}
Get a Target Group by ID
Get /targetgroups
Get Target Groups
Patch /targetgroups/{targetGroupId}
Partially Modify a Target Group by ID
Post /targetgroups
Create a Target Group
Put /targetgroups/{targetGroupId}
Modify a Target Group by ID
var result = TargetGroupsDelete(ctx, targetGroupId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete a Target Group by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
targetGroupId := "targetGroupId_example" // string | The unique ID of the target group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.TargetGroupsApi.TargetGroupsDelete(context.Background(), targetGroupId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TargetGroupsApi.TargetGroupsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
targetGroupId
string
The unique ID of the target group.
Other parameters are passed through a pointer to a apiTargetGroupsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result TargetGroup = TargetgroupsFindByTargetGroupId(ctx, targetGroupId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get a Target Group by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
targetGroupId := "targetGroupId_example" // string | The unique ID of the target group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.TargetGroupsApi.TargetgroupsFindByTargetGroupId(context.Background(), targetGroupId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TargetGroupsApi.TargetgroupsFindByTargetGroupId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TargetgroupsFindByTargetGroupId`: TargetGroup
fmt.Fprintf(os.Stdout, "Response from `TargetGroupsApi.TargetgroupsFindByTargetGroupId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
targetGroupId
string
The unique ID of the target group.
Other parameters are passed through a pointer to a apiTargetgroupsFindByTargetGroupIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result TargetGroups = TargetgroupsGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()Get Target Groups
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (used together with <b><i>offset</i></b> for pagination). It must not exceed <b><i>200</i></b>. (optional) (default to 100)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.TargetGroupsApi.TargetgroupsGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TargetGroupsApi.TargetgroupsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TargetgroupsGet`: TargetGroups
fmt.Fprintf(os.Stdout, "Response from `TargetGroupsApi.TargetgroupsGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiTargetgroupsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (used together with <b><i>offset</i></b> for pagination). It must not exceed <b><i>200</i></b>.
[default to 100]
Content-Type: Not defined
Accept: application/json
var result TargetGroup = TargetgroupsPatch(ctx, targetGroupId)
.TargetGroupProperties(targetGroupProperties)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially Modify a Target Group by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
targetGroupId := "targetGroupId_example" // string | The unique ID of the target group.
targetGroupProperties := *openapiclient.NewTargetGroupProperties("My target group", "ROUND_ROBIN", "HTTP") // TargetGroupProperties | The target group properties to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.TargetGroupsApi.TargetgroupsPatch(context.Background(), targetGroupId).TargetGroupProperties(targetGroupProperties).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TargetGroupsApi.TargetgroupsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TargetgroupsPatch`: TargetGroup
fmt.Fprintf(os.Stdout, "Response from `TargetGroupsApi.TargetgroupsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
targetGroupId
string
The unique ID of the target group.
Other parameters are passed through a pointer to a apiTargetgroupsPatchRequest struct via the builder pattern
targetGroupProperties
The target group properties to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result TargetGroup = TargetgroupsPost(ctx)
.TargetGroup(targetGroup)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Target Group
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
targetGroup := *openapiclient.NewTargetGroup(*openapiclient.NewTargetGroupProperties("My target group", "ROUND_ROBIN", "HTTP")) // TargetGroup | The target group to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.TargetGroupsApi.TargetgroupsPost(context.Background()).TargetGroup(targetGroup).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TargetGroupsApi.TargetgroupsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TargetgroupsPost`: TargetGroup
fmt.Fprintf(os.Stdout, "Response from `TargetGroupsApi.TargetgroupsPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiTargetgroupsPostRequest struct via the builder pattern
targetGroup
The target group to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result TargetGroup = TargetgroupsPut(ctx, targetGroupId)
.TargetGroup(targetGroup)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Target Group by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
targetGroupId := "targetGroupId_example" // string | The unique ID of the target group.
targetGroup := *openapiclient.NewTargetGroupPut(*openapiclient.NewTargetGroupProperties("My target group", "ROUND_ROBIN", "HTTP")) // TargetGroupPut | The modified target group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.TargetGroupsApi.TargetgroupsPut(context.Background(), targetGroupId).TargetGroup(targetGroup).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TargetGroupsApi.TargetgroupsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TargetgroupsPut`: TargetGroup
fmt.Fprintf(os.Stdout, "Response from `TargetGroupsApi.TargetgroupsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
targetGroupId
string
The unique ID of the target group.
Other parameters are passed through a pointer to a apiTargetgroupsPutRequest struct via the builder pattern
targetGroup
The modified target group.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs/{flowlogId}
Delete Flow Logs
Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs/{flowlogId}
Retrieve Flow Logs
Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs
List Flow Logs
Patch /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs/{flowlogId}
Partially modify Flow Logs
Post /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs
Create a Flow Log
Put /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/flowlogs/{flowlogId}
Modify Flow Logs
var result = DatacentersServersNicsFlowlogsDelete(ctx, datacenterId, serverId, nicId, flowlogId)
.Pretty(pretty)
.Depth(depth)
.Execute()Delete Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
flowlogId := "flowlogId_example" // string | The unique ID of the Flow Log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.FlowLogsApi.DatacentersServersNicsFlowlogsDelete(context.Background(), datacenterId, serverId, nicId, flowlogId).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowLogsApi.DatacentersServersNicsFlowlogsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
flowlogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFlowlogsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
(empty response body)
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersServersNicsFlowlogsFindById(ctx, datacenterId, serverId, nicId, flowlogId)
.Pretty(pretty)
.Depth(depth)
.Execute()Retrieve Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
flowlogId := "flowlogId_example" // string | The unique ID of the Flow Log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FlowLogsApi.DatacentersServersNicsFlowlogsFindById(context.Background(), datacenterId, serverId, nicId, flowlogId).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowLogsApi.DatacentersServersNicsFlowlogsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFlowlogsFindById`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `FlowLogsApi.DatacentersServersNicsFlowlogsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
flowlogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFlowlogsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: Not defined
Accept: application/json
var result FlowLogs = DatacentersServersNicsFlowlogsGet(ctx, datacenterId, serverId, nicId)
.Pretty(pretty)
.Depth(depth)
.Offset(offset)
.Limit(limit)
.Execute()List Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FlowLogsApi.DatacentersServersNicsFlowlogsGet(context.Background(), datacenterId, serverId, nicId).Pretty(pretty).Depth(depth).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowLogsApi.DatacentersServersNicsFlowlogsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFlowlogsGet`: FlowLogs
fmt.Fprintf(os.Stdout, "Response from `FlowLogsApi.DatacentersServersNicsFlowlogsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFlowlogsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersServersNicsFlowlogsPatch(ctx, datacenterId, serverId, nicId, flowlogId)
.Flowlog(flowlog)
.Pretty(pretty)
.Depth(depth)
.Execute()Partially modify Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
flowlogId := "flowlogId_example" // string | The unique ID of the Flow Log.
flowlog := *openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key") // FlowLogProperties | The Flow Log record to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FlowLogsApi.DatacentersServersNicsFlowlogsPatch(context.Background(), datacenterId, serverId, nicId, flowlogId).Flowlog(flowlog).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowLogsApi.DatacentersServersNicsFlowlogsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFlowlogsPatch`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `FlowLogsApi.DatacentersServersNicsFlowlogsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
flowlogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFlowlogsPatchRequest struct via the builder pattern
flowlog
The Flow Log record to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result FlowLog = DatacentersServersNicsFlowlogsPost(ctx, datacenterId, serverId, nicId)
.Flowlog(flowlog)
.Pretty(pretty)
.Depth(depth)
.Execute()Create a Flow Log
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
flowlog := *openapiclient.NewFlowLog(*openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key")) // FlowLog | The Flow Log to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FlowLogsApi.DatacentersServersNicsFlowlogsPost(context.Background(), datacenterId, serverId, nicId).Flowlog(flowlog).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowLogsApi.DatacentersServersNicsFlowlogsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFlowlogsPost`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `FlowLogsApi.DatacentersServersNicsFlowlogsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFlowlogsPostRequest struct via the builder pattern
flowlog
The Flow Log to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result FlowLog = DatacentersServersNicsFlowlogsPut(ctx, datacenterId, serverId, nicId, flowlogId)
.Flowlog(flowlog)
.Pretty(pretty)
.Depth(depth)
.Execute()Modify Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
flowlogId := "flowlogId_example" // string | The unique ID of the Flow Log.
flowlog := *openapiclient.NewFlowLogPut(*openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key")) // FlowLogPut | The modified Flow Log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FlowLogsApi.DatacentersServersNicsFlowlogsPut(context.Background(), datacenterId, serverId, nicId, flowlogId).Flowlog(flowlog).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowLogsApi.DatacentersServersNicsFlowlogsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFlowlogsPut`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `FlowLogsApi.DatacentersServersNicsFlowlogsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
flowlogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFlowlogsPutRequest struct via the builder pattern
flowlog
The modified Flow Log.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}
Delete NICs
Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}
Retrieve NICs
Get /datacenters/{datacenterId}/servers/{serverId}/nics
List NICs
Patch /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}
Partially modify NICs
Post /datacenters/{datacenterId}/servers/{serverId}/nics
Create a NIC
Put /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}
Modify NICs
var result = DatacentersServersNicsDelete(ctx, datacenterId, serverId, nicId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete NICs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.NetworkInterfacesApi.DatacentersServersNicsDelete(context.Background(), datacenterId, serverId, nicId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkInterfacesApi.DatacentersServersNicsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
Other parameters are passed through a pointer to a apiDatacentersServersNicsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result Nic = DatacentersServersNicsFindById(ctx, datacenterId, serverId, nicId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve NICs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkInterfacesApi.DatacentersServersNicsFindById(context.Background(), datacenterId, serverId, nicId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkInterfacesApi.DatacentersServersNicsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFindById`: Nic
fmt.Fprintf(os.Stdout, "Response from `NetworkInterfacesApi.DatacentersServersNicsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Nics = DatacentersServersNicsGet(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()List NICs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkInterfacesApi.DatacentersServersNicsGet(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkInterfacesApi.DatacentersServersNicsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsGet`: Nics
fmt.Fprintf(os.Stdout, "Response from `NetworkInterfacesApi.DatacentersServersNicsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersNicsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result Nic = DatacentersServersNicsPatch(ctx, datacenterId, serverId, nicId)
.Nic(nic)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify NICs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
nic := *openapiclient.NewNicProperties(int32(2)) // NicProperties | The properties of the NIC to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkInterfacesApi.DatacentersServersNicsPatch(context.Background(), datacenterId, serverId, nicId).Nic(nic).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkInterfacesApi.DatacentersServersNicsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsPatch`: Nic
fmt.Fprintf(os.Stdout, "Response from `NetworkInterfacesApi.DatacentersServersNicsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
Other parameters are passed through a pointer to a apiDatacentersServersNicsPatchRequest struct via the builder pattern
nic
The properties of the NIC to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Nic = DatacentersServersNicsPost(ctx, datacenterId, serverId)
.Nic(nic)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a NIC
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nic := *openapiclient.NewNic(*openapiclient.NewNicProperties(int32(2))) // Nic | The NIC to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkInterfacesApi.DatacentersServersNicsPost(context.Background(), datacenterId, serverId).Nic(nic).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkInterfacesApi.DatacentersServersNicsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsPost`: Nic
fmt.Fprintf(os.Stdout, "Response from `NetworkInterfacesApi.DatacentersServersNicsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersNicsPostRequest struct via the builder pattern
nic
The NIC to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Nic = DatacentersServersNicsPut(ctx, datacenterId, serverId, nicId)
.Nic(nic)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify NICs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
nic := *openapiclient.NewNicPut(*openapiclient.NewNicProperties(int32(2))) // NicPut | The modified NIC
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkInterfacesApi.DatacentersServersNicsPut(context.Background(), datacenterId, serverId, nicId).Nic(nic).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkInterfacesApi.DatacentersServersNicsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsPut`: Nic
fmt.Fprintf(os.Stdout, "Response from `NetworkInterfacesApi.DatacentersServersNicsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
Other parameters are passed through a pointer to a apiDatacentersServersNicsPutRequest struct via the builder pattern
nic
The modified NIC
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId}
Delete firewall rules
Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId}
Retrieve firewall rules
Get /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules
List firewall rules
Patch /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId}
Partially modify firewall rules
Post /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules
Create a Firewall Rule
Put /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId}
Modify a Firewall Rule
var result = DatacentersServersNicsFirewallrulesDelete(ctx, datacenterId, serverId, nicId, firewallruleId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete firewall rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
firewallruleId := "firewallruleId_example" // string | The unique ID of the firewall rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.FirewallRulesApi.DatacentersServersNicsFirewallrulesDelete(context.Background(), datacenterId, serverId, nicId, firewallruleId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallRulesApi.DatacentersServersNicsFirewallrulesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
firewallruleId
string
The unique ID of the firewall rule.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFirewallrulesDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result FirewallRule = DatacentersServersNicsFirewallrulesFindById(ctx, datacenterId, serverId, nicId, firewallruleId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve firewall rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
firewallruleId := "firewallruleId_example" // string | The unique ID of the firewall rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FirewallRulesApi.DatacentersServersNicsFirewallrulesFindById(context.Background(), datacenterId, serverId, nicId, firewallruleId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallRulesApi.DatacentersServersNicsFirewallrulesFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFirewallrulesFindById`: FirewallRule
fmt.Fprintf(os.Stdout, "Response from `FirewallRulesApi.DatacentersServersNicsFirewallrulesFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
firewallruleId
string
The unique ID of the firewall rule.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFirewallrulesFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result FirewallRules = DatacentersServersNicsFirewallrulesGet(ctx, datacenterId, serverId, nicId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()List firewall rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FirewallRulesApi.DatacentersServersNicsFirewallrulesGet(context.Background(), datacenterId, serverId, nicId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallRulesApi.DatacentersServersNicsFirewallrulesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFirewallrulesGet`: FirewallRules
fmt.Fprintf(os.Stdout, "Response from `FirewallRulesApi.DatacentersServersNicsFirewallrulesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFirewallrulesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result FirewallRule = DatacentersServersNicsFirewallrulesPatch(ctx, datacenterId, serverId, nicId, firewallruleId)
.Firewallrule(firewallrule)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify firewall rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
firewallruleId := "firewallruleId_example" // string | The unique ID of the firewall rule.
firewallrule := *openapiclient.NewFirewallruleProperties() // FirewallruleProperties | The properties of the firewall rule to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FirewallRulesApi.DatacentersServersNicsFirewallrulesPatch(context.Background(), datacenterId, serverId, nicId, firewallruleId).Firewallrule(firewallrule).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallRulesApi.DatacentersServersNicsFirewallrulesPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFirewallrulesPatch`: FirewallRule
fmt.Fprintf(os.Stdout, "Response from `FirewallRulesApi.DatacentersServersNicsFirewallrulesPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
firewallruleId
string
The unique ID of the firewall rule.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFirewallrulesPatchRequest struct via the builder pattern
firewallrule
The properties of the firewall rule to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result FirewallRule = DatacentersServersNicsFirewallrulesPost(ctx, datacenterId, serverId, nicId)
.Firewallrule(firewallrule)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Firewall Rule
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
firewallrule := *openapiclient.NewFirewallRule(*openapiclient.NewFirewallruleProperties()) // FirewallRule | The firewall rule to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FirewallRulesApi.DatacentersServersNicsFirewallrulesPost(context.Background(), datacenterId, serverId, nicId).Firewallrule(firewallrule).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallRulesApi.DatacentersServersNicsFirewallrulesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFirewallrulesPost`: FirewallRule
fmt.Fprintf(os.Stdout, "Response from `FirewallRulesApi.DatacentersServersNicsFirewallrulesPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFirewallrulesPostRequest struct via the builder pattern
firewallrule
The firewall rule to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result FirewallRule = DatacentersServersNicsFirewallrulesPut(ctx, datacenterId, serverId, nicId, firewallruleId)
.Firewallrule(firewallrule)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Firewall Rule
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the NIC.
firewallruleId := "firewallruleId_example" // string | The unique ID of the firewall rule.
firewallrule := *openapiclient.NewFirewallRule(*openapiclient.NewFirewallruleProperties()) // FirewallRule | The modified firewall rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.FirewallRulesApi.DatacentersServersNicsFirewallrulesPut(context.Background(), datacenterId, serverId, nicId, firewallruleId).Firewallrule(firewallrule).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallRulesApi.DatacentersServersNicsFirewallrulesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsFirewallrulesPut`: FirewallRule
fmt.Fprintf(os.Stdout, "Response from `FirewallRulesApi.DatacentersServersNicsFirewallrulesPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the NIC.
firewallruleId
string
The unique ID of the firewall rule.
Other parameters are passed through a pointer to a apiDatacentersServersNicsFirewallrulesPutRequest struct via the builder pattern
firewallrule
The modified firewall rule.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Post /datacenters/{datacenterId}/volumes/{volumeId}/create-snapshot
Create volume snapshots
Delete /datacenters/{datacenterId}/volumes/{volumeId}
Delete volumes
Get /datacenters/{datacenterId}/volumes/{volumeId}
Retrieve volumes
Get /datacenters/{datacenterId}/volumes
List volumes
Patch /datacenters/{datacenterId}/volumes/{volumeId}
Partially modify volumes
Post /datacenters/{datacenterId}/volumes
Create a Volume
Put /datacenters/{datacenterId}/volumes/{volumeId}
Modify a Volume by ID
Post /datacenters/{datacenterId}/volumes/{volumeId}/restore-snapshot
Restore volume snapshots
var result Snapshot = DatacentersVolumesCreateSnapshotPost(ctx, datacenterId, volumeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Snapshot(snapshot)
.Execute()Create volume snapshots
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
snapshot := *openapiclient.NewCreateSnapshot() // CreateSnapshot | The payload of the snapshot. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.VolumesApi.DatacentersVolumesCreateSnapshotPost(context.Background(), datacenterId, volumeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Snapshot(snapshot).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VolumesApi.DatacentersVolumesCreateSnapshotPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesCreateSnapshotPost`: Snapshot
fmt.Fprintf(os.Stdout, "Response from `VolumesApi.DatacentersVolumesCreateSnapshotPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersVolumesCreateSnapshotPostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
snapshot
The payload of the snapshot.
Content-Type: application/json
Accept: application/json
var result = DatacentersVolumesDelete(ctx, datacenterId, volumeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete volumes
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.VolumesApi.DatacentersVolumesDelete(context.Background(), datacenterId, volumeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VolumesApi.DatacentersVolumesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersVolumesDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result Volume = DatacentersVolumesFindById(ctx, datacenterId, volumeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve volumes
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.VolumesApi.DatacentersVolumesFindById(context.Background(), datacenterId, volumeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VolumesApi.DatacentersVolumesFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesFindById`: Volume
fmt.Fprintf(os.Stdout, "Response from `VolumesApi.DatacentersVolumesFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersVolumesFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Volumes = DatacentersVolumesGet(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()List volumes
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.VolumesApi.DatacentersVolumesGet(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VolumesApi.DatacentersVolumesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesGet`: Volumes
fmt.Fprintf(os.Stdout, "Response from `VolumesApi.DatacentersVolumesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersVolumesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result Volume = DatacentersVolumesPatch(ctx, datacenterId, volumeId)
.Volume(volume)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify volumes
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
volume := *openapiclient.NewVolumeProperties() // VolumeProperties | The properties of the volume to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.VolumesApi.DatacentersVolumesPatch(context.Background(), datacenterId, volumeId).Volume(volume).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VolumesApi.DatacentersVolumesPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesPatch`: Volume
fmt.Fprintf(os.Stdout, "Response from `VolumesApi.DatacentersVolumesPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersVolumesPatchRequest struct via the builder pattern
volume
The properties of the volume to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Volume = DatacentersVolumesPost(ctx, datacenterId)
.Volume(volume)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Volume
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volume := *openapiclient.NewVolume() // Volume | The volume to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.VolumesApi.DatacentersVolumesPost(context.Background(), datacenterId).Volume(volume).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VolumesApi.DatacentersVolumesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesPost`: Volume
fmt.Fprintf(os.Stdout, "Response from `VolumesApi.DatacentersVolumesPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersVolumesPostRequest struct via the builder pattern
volume
The volume to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Volume = DatacentersVolumesPut(ctx, datacenterId, volumeId)
.Volume(volume)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Volume by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
volume := *openapiclient.NewVolume() // Volume | The modified volume
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.VolumesApi.DatacentersVolumesPut(context.Background(), datacenterId, volumeId).Volume(volume).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VolumesApi.DatacentersVolumesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesPut`: Volume
fmt.Fprintf(os.Stdout, "Response from `VolumesApi.DatacentersVolumesPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersVolumesPutRequest struct via the builder pattern
volume
The modified volume
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = DatacentersVolumesRestoreSnapshotPost(ctx, datacenterId, volumeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.RestoreSnapshot(restoreSnapshot)
.Execute()Restore volume snapshots
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
restoreSnapshot := *openapiclient.NewRestoreSnapshot() // RestoreSnapshot | The payload used to restore a snapshot. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.VolumesApi.DatacentersVolumesRestoreSnapshotPost(context.Background(), datacenterId, volumeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).RestoreSnapshot(restoreSnapshot).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VolumesApi.DatacentersVolumesRestoreSnapshotPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersVolumesRestoreSnapshotPostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
restoreSnapshot
The payload used to restore a snapshot.
(empty response body)
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/lans/{lanId}
Delete LANs
Get /datacenters/{datacenterId}/lans/{lanId}
Retrieve LANs
Get /datacenters/{datacenterId}/lans
List LANs
Get /datacenters/{datacenterId}/lans/{lanId}/nics/{nicId}
Retrieve attached NICs
Get /datacenters/{datacenterId}/lans/{lanId}/nics
List LAN members
Post /datacenters/{datacenterId}/lans/{lanId}/nics
Attach NICs
Patch /datacenters/{datacenterId}/lans/{lanId}
Partially modify LANs
Post /datacenters/{datacenterId}/lans
Create LANs
Put /datacenters/{datacenterId}/lans/{lanId}
Modify LANs
var result = DatacentersLansDelete(ctx, datacenterId, lanId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete LANs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
lanId := "lanId_example" // string | The unique ID of the LAN.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.LANsApi.DatacentersLansDelete(context.Background(), datacenterId, lanId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LANsApi.DatacentersLansDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
lanId
string
The unique ID of the LAN.
Other parameters are passed through a pointer to a apiDatacentersLansDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result Lan = DatacentersLansFindById(ctx, datacenterId, lanId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve LANs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
lanId := "lanId_example" // string | The unique ID of the LAN.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LANsApi.DatacentersLansFindById(context.Background(), datacenterId, lanId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LANsApi.DatacentersLansFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLansFindById`: Lan
fmt.Fprintf(os.Stdout, "Response from `LANsApi.DatacentersLansFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
lanId
string
The unique ID of the LAN.
Other parameters are passed through a pointer to a apiDatacentersLansFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Lans = DatacentersLansGet(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()List LANs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LANsApi.DatacentersLansGet(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LANsApi.DatacentersLansGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLansGet`: Lans
fmt.Fprintf(os.Stdout, "Response from `LANsApi.DatacentersLansGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersLansGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result Nic = DatacentersLansNicsFindById(ctx, datacenterId, lanId, nicId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve attached NICs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
lanId := "lanId_example" // string | The unique ID of the LAN.
nicId := "nicId_example" // string | The unique ID of the NIC.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LANsApi.DatacentersLansNicsFindById(context.Background(), datacenterId, lanId, nicId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LANsApi.DatacentersLansNicsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLansNicsFindById`: Nic
fmt.Fprintf(os.Stdout, "Response from `LANsApi.DatacentersLansNicsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
lanId
string
The unique ID of the LAN.
nicId
string
The unique ID of the NIC.
Other parameters are passed through a pointer to a apiDatacentersLansNicsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LanNics = DatacentersLansNicsGet(ctx, datacenterId, lanId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()List LAN members
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
lanId := "lanId_example" // string | The unique ID of the LAN.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LANsApi.DatacentersLansNicsGet(context.Background(), datacenterId, lanId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LANsApi.DatacentersLansNicsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLansNicsGet`: LanNics
fmt.Fprintf(os.Stdout, "Response from `LANsApi.DatacentersLansNicsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
lanId
string
The unique ID of the LAN.
Other parameters are passed through a pointer to a apiDatacentersLansNicsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result Nic = DatacentersLansNicsPost(ctx, datacenterId, lanId)
.Nic(nic)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Attach NICs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
lanId := "lanId_example" // string | The unique ID of the LAN.
nic := *openapiclient.NewNic(*openapiclient.NewNicProperties(int32(2))) // Nic | The NIC to be attached.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LANsApi.DatacentersLansNicsPost(context.Background(), datacenterId, lanId).Nic(nic).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LANsApi.DatacentersLansNicsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLansNicsPost`: Nic
fmt.Fprintf(os.Stdout, "Response from `LANsApi.DatacentersLansNicsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
lanId
string
The unique ID of the LAN.
Other parameters are passed through a pointer to a apiDatacentersLansNicsPostRequest struct via the builder pattern
nic
The NIC to be attached.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Lan = DatacentersLansPatch(ctx, datacenterId, lanId)
.Lan(lan)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify LANs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
lanId := "lanId_example" // string | The unique ID of the LAN.
lan := *openapiclient.NewLanProperties() // LanProperties | The properties of the LAN to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LANsApi.DatacentersLansPatch(context.Background(), datacenterId, lanId).Lan(lan).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LANsApi.DatacentersLansPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLansPatch`: Lan
fmt.Fprintf(os.Stdout, "Response from `LANsApi.DatacentersLansPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
lanId
string
The unique ID of the LAN.
Other parameters are passed through a pointer to a apiDatacentersLansPatchRequest struct via the builder pattern
lan
The properties of the LAN to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Lan = DatacentersLansPost(ctx, datacenterId)
.Lan(lan)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create LANs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
lan := *openapiclient.NewLan(*openapiclient.NewLanProperties()) // Lan | The LAN to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LANsApi.DatacentersLansPost(context.Background(), datacenterId).Lan(lan).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LANsApi.DatacentersLansPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLansPost`: Lan
fmt.Fprintf(os.Stdout, "Response from `LANsApi.DatacentersLansPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersLansPostRequest struct via the builder pattern
lan
The LAN to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Lan = DatacentersLansPut(ctx, datacenterId, lanId)
.Lan(lan)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify LANs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
lanId := "lanId_example" // string | The unique ID of the LAN.
lan := *openapiclient.NewLan(*openapiclient.NewLanProperties()) // Lan | The modified LAN
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LANsApi.DatacentersLansPut(context.Background(), datacenterId, lanId).Lan(lan).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LANsApi.DatacentersLansPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLansPut`: Lan
fmt.Fprintf(os.Stdout, "Response from `LANsApi.DatacentersLansPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
lanId
string
The unique ID of the LAN.
Other parameters are passed through a pointer to a apiDatacentersLansPutRequest struct via the builder pattern
lan
The modified LAN
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}
Delete an Application Load Balancer by ID
Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}
Get an Application Load Balancer by ID
Delete /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs/{flowLogId}
Delete an ALB Flow Log by ID
Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs/{flowLogId}
Get an ALB Flow Log by ID
Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs
Get ALB Flow Logs
Patch /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs/{flowLogId}
Partially Modify an ALB Flow Log by ID
Post /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs
Create an ALB Flow Log
Put /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/flowlogs/{flowLogId}
Modify an ALB Flow Log by ID
Delete /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules/{forwardingRuleId}
Delete an ALB Forwarding Rule by ID
Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules/{forwardingRuleId}
Get an ALB Forwarding Rule by ID
Get /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules
Get ALB Forwarding Rules
Patch /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules/{forwardingRuleId}
Partially modify an ALB Forwarding Rule by ID
Post /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules
Create an ALB Forwarding Rule
Put /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}/forwardingrules/{forwardingRuleId}
Modify an ALB Forwarding Rule by ID
Get /datacenters/{datacenterId}/applicationloadbalancers
Get Application Load Balancers
Patch /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}
Partially Modify an Application Load Balancer by ID
Post /datacenters/{datacenterId}/applicationloadbalancers
Create an Application Load Balancer
Put /datacenters/{datacenterId}/applicationloadbalancers/{applicationLoadBalancerId}
Modify an Application Load Balancer by ID
var result = DatacentersApplicationloadbalancersDelete(ctx, datacenterId, applicationLoadBalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete an Application Load Balancer by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersDelete(context.Background(), datacenterId, applicationLoadBalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result ApplicationLoadBalancer = DatacentersApplicationloadbalancersFindByApplicationLoadBalancerId(ctx, datacenterId, applicationLoadBalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get an Application Load Balancer by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFindByApplicationLoadBalancerId(context.Background(), datacenterId, applicationLoadBalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFindByApplicationLoadBalancerId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersFindByApplicationLoadBalancerId`: ApplicationLoadBalancer
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFindByApplicationLoadBalancerId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersFindByApplicationLoadBalancerIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = DatacentersApplicationloadbalancersFlowlogsDelete(ctx, datacenterId, applicationLoadBalancerId, flowLogId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete an ALB Flow Log by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
flowLogId := "flowLogId_example" // string | The unique ID of the flow log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsDelete(context.Background(), datacenterId, applicationLoadBalancerId, flowLogId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
flowLogId
string
The unique ID of the flow log.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersFlowlogsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersApplicationloadbalancersFlowlogsFindByFlowLogId(ctx, datacenterId, applicationLoadBalancerId, flowLogId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get an ALB Flow Log by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
flowLogId := "flowLogId_example" // string | The unique ID of the flow log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsFindByFlowLogId(context.Background(), datacenterId, applicationLoadBalancerId, flowLogId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsFindByFlowLogId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersFlowlogsFindByFlowLogId`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsFindByFlowLogId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
flowLogId
string
The unique ID of the flow log.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersFlowlogsFindByFlowLogIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result FlowLogs = DatacentersApplicationloadbalancersFlowlogsGet(ctx, datacenterId, applicationLoadBalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get ALB Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsGet(context.Background(), datacenterId, applicationLoadBalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersFlowlogsGet`: FlowLogs
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersFlowlogsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersApplicationloadbalancersFlowlogsPatch(ctx, datacenterId, applicationLoadBalancerId, flowLogId)
.ApplicationLoadBalancerFlowLogProperties(applicationLoadBalancerFlowLogProperties)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially Modify an ALB Flow Log by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
flowLogId := "flowLogId_example" // string | The unique ID of the flow log.
applicationLoadBalancerFlowLogProperties := *openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key") // FlowLogProperties | The properties of the ALB flow log to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsPatch(context.Background(), datacenterId, applicationLoadBalancerId, flowLogId).ApplicationLoadBalancerFlowLogProperties(applicationLoadBalancerFlowLogProperties).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersFlowlogsPatch`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
flowLogId
string
The unique ID of the flow log.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersFlowlogsPatchRequest struct via the builder pattern
applicationLoadBalancerFlowLogProperties
The properties of the ALB flow log to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersApplicationloadbalancersFlowlogsPost(ctx, datacenterId, applicationLoadBalancerId)
.ApplicationLoadBalancerFlowLog(applicationLoadBalancerFlowLog)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create an ALB Flow Log
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
applicationLoadBalancerFlowLog := *openapiclient.NewFlowLog(*openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key")) // FlowLog | The flow log to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsPost(context.Background(), datacenterId, applicationLoadBalancerId).ApplicationLoadBalancerFlowLog(applicationLoadBalancerFlowLog).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersFlowlogsPost`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersFlowlogsPostRequest struct via the builder pattern
applicationLoadBalancerFlowLog
The flow log to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result FlowLog = DatacentersApplicationloadbalancersFlowlogsPut(ctx, datacenterId, applicationLoadBalancerId, flowLogId)
.ApplicationLoadBalancerFlowLog(applicationLoadBalancerFlowLog)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify an ALB Flow Log by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
flowLogId := "flowLogId_example" // string | The unique ID of the flow log.
applicationLoadBalancerFlowLog := *openapiclient.NewFlowLogPut(*openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key")) // FlowLogPut | The modified ALB flow log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsPut(context.Background(), datacenterId, applicationLoadBalancerId, flowLogId).ApplicationLoadBalancerFlowLog(applicationLoadBalancerFlowLog).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersFlowlogsPut`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersFlowlogsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
flowLogId
string
The unique ID of the flow log.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersFlowlogsPutRequest struct via the builder pattern
applicationLoadBalancerFlowLog
The modified ALB flow log.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = DatacentersApplicationloadbalancersForwardingrulesDelete(ctx, datacenterId, applicationLoadBalancerId, forwardingRuleId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete an ALB Forwarding Rule by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
forwardingRuleId := "forwardingRuleId_example" // string | The unique ID of the forwarding rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesDelete(context.Background(), datacenterId, applicationLoadBalancerId, forwardingRuleId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
forwardingRuleId
string
The unique ID of the forwarding rule.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersForwardingrulesDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result ApplicationLoadBalancerForwardingRule = DatacentersApplicationloadbalancersForwardingrulesFindByForwardingRuleId(ctx, datacenterId, applicationLoadBalancerId, forwardingRuleId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get an ALB Forwarding Rule by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
forwardingRuleId := "forwardingRuleId_example" // string | The unique ID of the forwarding rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesFindByForwardingRuleId(context.Background(), datacenterId, applicationLoadBalancerId, forwardingRuleId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesFindByForwardingRuleId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersForwardingrulesFindByForwardingRuleId`: ApplicationLoadBalancerForwardingRule
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesFindByForwardingRuleId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
forwardingRuleId
string
The unique ID of the forwarding rule.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersForwardingrulesFindByForwardingRuleIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
ApplicationLoadBalancerForwardingRule
Content-Type: Not defined
Accept: application/json
var result ApplicationLoadBalancerForwardingRules = DatacentersApplicationloadbalancersForwardingrulesGet(ctx, datacenterId, applicationLoadBalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get ALB Forwarding Rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesGet(context.Background(), datacenterId, applicationLoadBalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersForwardingrulesGet`: ApplicationLoadBalancerForwardingRules
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersForwardingrulesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
ApplicationLoadBalancerForwardingRules
Content-Type: Not defined
Accept: application/json
var result ApplicationLoadBalancerForwardingRule = DatacentersApplicationloadbalancersForwardingrulesPatch(ctx, datacenterId, applicationLoadBalancerId, forwardingRuleId)
.ApplicationLoadBalancerForwardingRuleProperties(applicationLoadBalancerForwardingRuleProperties)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify an ALB Forwarding Rule by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
forwardingRuleId := "forwardingRuleId_example" // string | The unique ID of the forwarding rule.
applicationLoadBalancerForwardingRuleProperties := *openapiclient.NewApplicationLoadBalancerForwardingRuleProperties("My Application Load Balancer forwarding rule", "HTTP", "81.173.1.2", int32(8080)) // ApplicationLoadBalancerForwardingRuleProperties | The properties of the forwarding rule to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesPatch(context.Background(), datacenterId, applicationLoadBalancerId, forwardingRuleId).ApplicationLoadBalancerForwardingRuleProperties(applicationLoadBalancerForwardingRuleProperties).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersForwardingrulesPatch`: ApplicationLoadBalancerForwardingRule
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
forwardingRuleId
string
The unique ID of the forwarding rule.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersForwardingrulesPatchRequest struct via the builder pattern
applicationLoadBalancerForwardingRuleProperties
The properties of the forwarding rule to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
ApplicationLoadBalancerForwardingRule
Content-Type: Not defined
Accept: application/json
var result ApplicationLoadBalancerForwardingRule = DatacentersApplicationloadbalancersForwardingrulesPost(ctx, datacenterId, applicationLoadBalancerId)
.ApplicationLoadBalancerForwardingRule(applicationLoadBalancerForwardingRule)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create an ALB Forwarding Rule
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
applicationLoadBalancerForwardingRule := *openapiclient.NewApplicationLoadBalancerForwardingRule(*openapiclient.NewApplicationLoadBalancerForwardingRuleProperties("My Application Load Balancer forwarding rule", "HTTP", "81.173.1.2", int32(8080))) // ApplicationLoadBalancerForwardingRule | The forwarding rule to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesPost(context.Background(), datacenterId, applicationLoadBalancerId).ApplicationLoadBalancerForwardingRule(applicationLoadBalancerForwardingRule).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersForwardingrulesPost`: ApplicationLoadBalancerForwardingRule
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersForwardingrulesPostRequest struct via the builder pattern
applicationLoadBalancerForwardingRule
The forwarding rule to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
ApplicationLoadBalancerForwardingRule
Content-Type: application/json
Accept: application/json
var result ApplicationLoadBalancerForwardingRule = DatacentersApplicationloadbalancersForwardingrulesPut(ctx, datacenterId, applicationLoadBalancerId, forwardingRuleId)
.ApplicationLoadBalancerForwardingRule(applicationLoadBalancerForwardingRule)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify an ALB Forwarding Rule by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
forwardingRuleId := "forwardingRuleId_example" // string | The unique ID of the forwarding rule.
applicationLoadBalancerForwardingRule := *openapiclient.NewApplicationLoadBalancerForwardingRulePut(*openapiclient.NewApplicationLoadBalancerForwardingRuleProperties("My Application Load Balancer forwarding rule", "HTTP", "81.173.1.2", int32(8080))) // ApplicationLoadBalancerForwardingRulePut | The modified ALB forwarding rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesPut(context.Background(), datacenterId, applicationLoadBalancerId, forwardingRuleId).ApplicationLoadBalancerForwardingRule(applicationLoadBalancerForwardingRule).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersForwardingrulesPut`: ApplicationLoadBalancerForwardingRule
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersForwardingrulesPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
forwardingRuleId
string
The unique ID of the forwarding rule.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersForwardingrulesPutRequest struct via the builder pattern
applicationLoadBalancerForwardingRule
The modified ALB forwarding rule.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
ApplicationLoadBalancerForwardingRule
Content-Type: application/json
Accept: application/json
var result ApplicationLoadBalancers = DatacentersApplicationloadbalancersGet(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()Get Application Load Balancers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersGet(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersGet`: ApplicationLoadBalancers
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result ApplicationLoadBalancer = DatacentersApplicationloadbalancersPatch(ctx, datacenterId, applicationLoadBalancerId)
.ApplicationLoadBalancerProperties(applicationLoadBalancerProperties)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially Modify an Application Load Balancer by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
applicationLoadBalancerProperties := *openapiclient.NewApplicationLoadBalancerProperties("My Application Load Balancer", int32(1), int32(2)) // ApplicationLoadBalancerProperties | The Application Load Balancer properties to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersPatch(context.Background(), datacenterId, applicationLoadBalancerId).ApplicationLoadBalancerProperties(applicationLoadBalancerProperties).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersPatch`: ApplicationLoadBalancer
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersPatchRequest struct via the builder pattern
applicationLoadBalancerProperties
The Application Load Balancer properties to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result ApplicationLoadBalancer = DatacentersApplicationloadbalancersPost(ctx, datacenterId)
.ApplicationLoadBalancer(applicationLoadBalancer)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create an Application Load Balancer
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancer := *openapiclient.NewApplicationLoadBalancer(*openapiclient.NewApplicationLoadBalancerProperties("My Application Load Balancer", int32(1), int32(2))) // ApplicationLoadBalancer | The Application Load Balancer to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersPost(context.Background(), datacenterId).ApplicationLoadBalancer(applicationLoadBalancer).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersPost`: ApplicationLoadBalancer
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersPostRequest struct via the builder pattern
applicationLoadBalancer
The Application Load Balancer to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result ApplicationLoadBalancer = DatacentersApplicationloadbalancersPut(ctx, datacenterId, applicationLoadBalancerId)
.ApplicationLoadBalancer(applicationLoadBalancer)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify an Application Load Balancer by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
applicationLoadBalancerId := "applicationLoadBalancerId_example" // string | The unique ID of the Application Load Balancer.
applicationLoadBalancer := *openapiclient.NewApplicationLoadBalancerPut(*openapiclient.NewApplicationLoadBalancerProperties("My Application Load Balancer", int32(1), int32(2))) // ApplicationLoadBalancerPut | The modified Application Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersPut(context.Background(), datacenterId, applicationLoadBalancerId).ApplicationLoadBalancer(applicationLoadBalancer).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersApplicationloadbalancersPut`: ApplicationLoadBalancer
fmt.Fprintf(os.Stdout, "Response from `ApplicationLoadBalancersApi.DatacentersApplicationloadbalancersPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
applicationLoadBalancerId
string
The unique ID of the Application Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersApplicationloadbalancersPutRequest struct via the builder pattern
applicationLoadBalancer
The modified Application Load Balancer.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Detach balanced NICs
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersBalancednicsDeleteRequest struct via the builder pattern
(empty response body)
Content-Type: Not defined
Accept: application/json
Retrieve balanced NICs
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersBalancednicsFindByNicIdRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
List balanced NICs
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersBalancednicsGetRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
Attach balanced NICs
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersBalancednicsPostRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Delete Load Balancers
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersDeleteRequest struct via the builder pattern
(empty response body)
Content-Type: Not defined
Accept: application/json
Retrieve Load Balancers
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersFindByIdRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
List Load Balancers
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersGetRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/json
Partially modify Load Balancers
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersPatchRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Create a Load Balancer
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersPostRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Modify a Load Balancer by ID
Other parameters are passed through a pointer to a apiDatacentersLoadbalancersPutRequest struct via the builder pattern
Content-Type: application/json
Accept: application/json
Delete /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}/balancednics/{nicId}
Detach balanced NICs
Get /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}/balancednics/{nicId}
Retrieve balanced NICs
Get /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}/balancednics
List balanced NICs
Post /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}/balancednics
Attach balanced NICs
Delete /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}
Delete Load Balancers
Get /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}
Retrieve Load Balancers
Get /datacenters/{datacenterId}/loadbalancers
List Load Balancers
Patch /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}
Partially modify Load Balancers
Post /datacenters/{datacenterId}/loadbalancers
Create a Load Balancer
Put /datacenters/{datacenterId}/loadbalancers/{loadbalancerId}
Modify a Load Balancer by ID
var result = DatacentersLoadbalancersBalancednicsDelete(ctx, datacenterId, loadbalancerId, nicId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
loadbalancerId := "loadbalancerId_example" // string | The unique ID of the Load Balancer.
nicId := "nicId_example" // string | The unique ID of the NIC.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersBalancednicsDelete(context.Background(), datacenterId, loadbalancerId, nicId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersBalancednicsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
loadbalancerId
string
The unique ID of the Load Balancer.
nicId
string
The unique ID of the NIC.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Nic = DatacentersLoadbalancersBalancednicsFindByNicId(ctx, datacenterId, loadbalancerId, nicId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
loadbalancerId := "loadbalancerId_example" // string | The unique ID of the Load Balancer.
nicId := "nicId_example" // string | The unique ID of the NIC.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersBalancednicsFindByNicId(context.Background(), datacenterId, loadbalancerId, nicId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersBalancednicsFindByNicId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLoadbalancersBalancednicsFindByNicId`: Nic
fmt.Fprintf(os.Stdout, "Response from `LoadBalancersApi.DatacentersLoadbalancersBalancednicsFindByNicId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
loadbalancerId
string
The unique ID of the Load Balancer.
nicId
string
The unique ID of the NIC.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result BalancedNics = DatacentersLoadbalancersBalancednicsGet(ctx, datacenterId, loadbalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
loadbalancerId := "loadbalancerId_example" // string | The unique ID of the Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersBalancednicsGet(context.Background(), datacenterId, loadbalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersBalancednicsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLoadbalancersBalancednicsGet`: BalancedNics
fmt.Fprintf(os.Stdout, "Response from `LoadBalancersApi.DatacentersLoadbalancersBalancednicsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
loadbalancerId
string
The unique ID of the Load Balancer.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Nic = DatacentersLoadbalancersBalancednicsPost(ctx, datacenterId, loadbalancerId)
.Nic(nic)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
loadbalancerId := "loadbalancerId_example" // string | The unique ID of the Load Balancer.
nic := *openapiclient.NewNic(*openapiclient.NewNicProperties(int32(2))) // Nic | The NIC to be attached.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersBalancednicsPost(context.Background(), datacenterId, loadbalancerId).Nic(nic).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersBalancednicsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLoadbalancersBalancednicsPost`: Nic
fmt.Fprintf(os.Stdout, "Response from `LoadBalancersApi.DatacentersLoadbalancersBalancednicsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
loadbalancerId
string
The unique ID of the Load Balancer.
nic
The NIC to be attached.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result = DatacentersLoadbalancersDelete(ctx, datacenterId, loadbalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
loadbalancerId := "loadbalancerId_example" // string | The unique ID of the Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersDelete(context.Background(), datacenterId, loadbalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
loadbalancerId
string
The unique ID of the Load Balancer.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Loadbalancer = DatacentersLoadbalancersFindById(ctx, datacenterId, loadbalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
loadbalancerId := "loadbalancerId_example" // string | The unique ID of the Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersFindById(context.Background(), datacenterId, loadbalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLoadbalancersFindById`: Loadbalancer
fmt.Fprintf(os.Stdout, "Response from `LoadBalancersApi.DatacentersLoadbalancersFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
loadbalancerId
string
The unique ID of the Load Balancer.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Loadbalancers = DatacentersLoadbalancersGet(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersGet(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLoadbalancersGet`: Loadbalancers
fmt.Fprintf(os.Stdout, "Response from `LoadBalancersApi.DatacentersLoadbalancersGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
var result Loadbalancer = DatacentersLoadbalancersPatch(ctx, datacenterId, loadbalancerId)
.Loadbalancer(loadbalancer)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
loadbalancerId := "loadbalancerId_example" // string | The unique ID of the Load Balancer.
loadbalancer := *openapiclient.NewLoadbalancerProperties() // LoadbalancerProperties | The properties of the Load Balancer to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersPatch(context.Background(), datacenterId, loadbalancerId).Loadbalancer(loadbalancer).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLoadbalancersPatch`: Loadbalancer
fmt.Fprintf(os.Stdout, "Response from `LoadBalancersApi.DatacentersLoadbalancersPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
loadbalancerId
string
The unique ID of the Load Balancer.
loadbalancer
The properties of the Load Balancer to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Loadbalancer = DatacentersLoadbalancersPost(ctx, datacenterId)
.Loadbalancer(loadbalancer)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
loadbalancer := *openapiclient.NewLoadbalancer(*openapiclient.NewLoadbalancerProperties()) // Loadbalancer | The Load Balancer to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersPost(context.Background(), datacenterId).Loadbalancer(loadbalancer).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLoadbalancersPost`: Loadbalancer
fmt.Fprintf(os.Stdout, "Response from `LoadBalancersApi.DatacentersLoadbalancersPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
loadbalancer
The Load Balancer to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
var result Loadbalancer = DatacentersLoadbalancersPut(ctx, datacenterId, loadbalancerId)
.Loadbalancer(loadbalancer)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
loadbalancerId := "loadbalancerId_example" // string | The unique ID of the Load Balancer.
loadbalancer := *openapiclient.NewLoadbalancer(*openapiclient.NewLoadbalancerProperties()) // Loadbalancer | The modified Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LoadBalancersApi.DatacentersLoadbalancersPut(context.Background(), datacenterId, loadbalancerId).Loadbalancer(loadbalancer).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoadBalancersApi.DatacentersLoadbalancersPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLoadbalancersPut`: Loadbalancer
fmt.Fprintf(os.Stdout, "Response from `LoadBalancersApi.DatacentersLoadbalancersPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
loadbalancerId
string
The unique ID of the Load Balancer.
loadbalancer
The modified Load Balancer.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/securitygroups/{securityGroupId}
Delete a Security Group
Get /datacenters/{datacenterId}/securitygroups/{securityGroupId}
Retrieve a Security Group
Delete /datacenters/{datacenterId}/securitygroups/{securityGroupId}/rules/{ruleId}
Remove a Firewall Rule from a Security Group
Post /datacenters/{datacenterId}/securitygroups/{securityGroupId}/rules
Create Firewall rule to a Security Group
Get /datacenters/{datacenterId}/securitygroups
List Security Groups
Patch /datacenters/{datacenterId}/securitygroups/{securityGroupId}
Partially modify Security Group
Post /datacenters/{datacenterId}/securitygroups
Create a Security Group
Put /datacenters/{datacenterId}/securitygroups/{securityGroupId}
Modify Security Group
Get /datacenters/{datacenterId}/securitygroups/{securityGroupId}/rules/{ruleId}
Retrieve security group rule by id
Get /datacenters/{datacenterId}/securitygroups/{securityGroupId}/rules
List Security Group rules
Patch /datacenters/{datacenterId}/securitygroups/{securityGroupId}/rules/{ruleId}
Partially modify Security Group Rules
Put /datacenters/{datacenterId}/securitygroups/{securityGroupId}/rules/{ruleId}
Modify a Security Group Rule
Put /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/securitygroups
Attach a list of Security Groups to a NIC
Put /datacenters/{datacenterId}/servers/{serverId}/securitygroups
Attach a list of Security Groups to a Server
var result = DatacentersSecuritygroupsDelete(ctx, datacenterId, securityGroupId)
.Pretty(pretty)
.Execute()Delete a Security Group
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
securityGroupId := "securityGroupId_example" // string | The unique ID of the Security Group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsDelete(context.Background(), datacenterId, securityGroupId).Pretty(pretty).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
securityGroupId
string
The unique ID of the Security Group.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
(empty response body)
Content-Type: Not defined
Accept: application/json
var result SecurityGroup = DatacentersSecuritygroupsFindById(ctx, datacenterId, securityGroupId)
.Pretty(pretty)
.Depth(depth)
.Execute()Retrieve a Security Group
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center
securityGroupId := "securityGroupId_example" // string | The unique ID of the security group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsFindById(context.Background(), datacenterId, securityGroupId).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsFindById`: SecurityGroup
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center
securityGroupId
string
The unique ID of the security group.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: Not defined
Accept: application/json
var result = DatacentersSecuritygroupsFirewallrulesDelete(ctx, datacenterId, securityGroupId, ruleId)
.Execute()Remove a Firewall Rule from a Security Group
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center
securityGroupId := "securityGroupId_example" // string | The unique ID of the security group.
ruleId := "ruleId_example" // string | The unique ID of the firewall rule.
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsFirewallrulesDelete(context.Background(), datacenterId, securityGroupId, ruleId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsFirewallrulesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center
securityGroupId
string
The unique ID of the security group.
ruleId
string
The unique ID of the firewall rule.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsFirewallrulesDeleteRequest struct via the builder pattern
(empty response body)
Content-Type: Not defined
Accept: application/json
var result FirewallRule = DatacentersSecuritygroupsFirewallrulesPost(ctx, datacenterId, securityGroupId)
.FirewallRule(firewallRule)
.Execute()Create Firewall rule to a Security Group
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center
securityGroupId := "securityGroupId_example" // string | The unique ID of the security group.
firewallRule := *openapiclient.NewFirewallRule(*openapiclient.NewFirewallruleProperties()) // FirewallRule | The firewall to be attached (or created and attached).
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsFirewallrulesPost(context.Background(), datacenterId, securityGroupId).FirewallRule(firewallRule).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsFirewallrulesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsFirewallrulesPost`: FirewallRule
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsFirewallrulesPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center
securityGroupId
string
The unique ID of the security group.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsFirewallrulesPostRequest struct via the builder pattern
firewallRule
The firewall to be attached (or created and attached).
Content-Type: application/json
Accept: application/json
var result SecurityGroups = DatacentersSecuritygroupsGet(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.Offset(offset)
.Limit(limit)
.Execute()List Security Groups
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsGet(context.Background(), datacenterId).Pretty(pretty).Depth(depth).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsGet`: SecurityGroups
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result SecurityGroup = DatacentersSecuritygroupsPatch(ctx, datacenterId, securityGroupId)
.SecurityGroup(securityGroup)
.Pretty(pretty)
.Depth(depth)
.Execute()Partially modify Security Group
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
securityGroupId := "securityGroupId_example" // string | The unique ID of the Security Group.
securityGroup := *openapiclient.NewSecurityGroupProperties("My security group") // SecurityGroupProperties | The modified Security Group
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsPatch(context.Background(), datacenterId, securityGroupId).SecurityGroup(securityGroup).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsPatch`: SecurityGroup
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
securityGroupId
string
The unique ID of the Security Group.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsPatchRequest struct via the builder pattern
securityGroup
The modified Security Group
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result SecurityGroup = DatacentersSecuritygroupsPost(ctx, datacenterId)
.SecurityGroup(securityGroup)
.Pretty(pretty)
.Depth(depth)
.Execute()Create a Security Group
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
securityGroup := *openapiclient.NewSecurityGroupRequest(*openapiclient.NewSecurityGroupProperties("My security group")) // SecurityGroupRequest | The security group to be created
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsPost(context.Background(), datacenterId).SecurityGroup(securityGroup).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsPost`: SecurityGroup
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsPostRequest struct via the builder pattern
securityGroup
The security group to be created
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result SecurityGroup = DatacentersSecuritygroupsPut(ctx, datacenterId, securityGroupId)
.SecurityGroup(securityGroup)
.Pretty(pretty)
.Depth(depth)
.Execute()Modify Security Group
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
securityGroupId := "securityGroupId_example" // string | The unique ID of the Security Group.
securityGroup := *openapiclient.NewSecurityGroupRequest(*openapiclient.NewSecurityGroupProperties("My security group")) // SecurityGroupRequest | The modified Security Group
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsPut(context.Background(), datacenterId, securityGroupId).SecurityGroup(securityGroup).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsPut`: SecurityGroup
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
securityGroupId
string
The unique ID of the Security Group.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsPutRequest struct via the builder pattern
securityGroup
The modified Security Group
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result FirewallRule = DatacentersSecuritygroupsRulesFindById(ctx, datacenterId, securityGroupId, ruleId)
.Pretty(pretty)
.Depth(depth)
.Execute()Retrieve security group rule by id
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
securityGroupId := "securityGroupId_example" // string | The unique ID of the Security Group.
ruleId := "ruleId_example" // string | The unique ID of the Security Group rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsRulesFindById(context.Background(), datacenterId, securityGroupId, ruleId).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsRulesFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsRulesFindById`: FirewallRule
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsRulesFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
securityGroupId
string
The unique ID of the Security Group.
ruleId
string
The unique ID of the Security Group rule.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsRulesFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: Not defined
Accept: application/json
var result FirewallRules = DatacentersSecuritygroupsRulesGet(ctx, datacenterId, securityGroupId)
.Pretty(pretty)
.Depth(depth)
.Offset(offset)
.Limit(limit)
.Execute()List Security Group rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
securityGroupId := "securityGroupId_example" // string | The unique ID of the security group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsRulesGet(context.Background(), datacenterId, securityGroupId).Pretty(pretty).Depth(depth).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsRulesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsRulesGet`: FirewallRules
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsRulesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
securityGroupId
string
The unique ID of the security group.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsRulesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result FirewallRule = DatacentersSecuritygroupsRulesPatch(ctx, datacenterId, securityGroupId, ruleId)
.Rule(rule)
.Pretty(pretty)
.Depth(depth)
.Execute()Partially modify Security Group Rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
securityGroupId := "securityGroupId_example" // string | The unique ID of the security group.
ruleId := "ruleId_example" // string | The unique ID of the Security Group Rule.
rule := *openapiclient.NewFirewallruleProperties() // FirewallruleProperties | The properties of the Security Group Rule to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsRulesPatch(context.Background(), datacenterId, securityGroupId, ruleId).Rule(rule).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsRulesPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsRulesPatch`: FirewallRule
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsRulesPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
securityGroupId
string
The unique ID of the security group.
ruleId
string
The unique ID of the Security Group Rule.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsRulesPatchRequest struct via the builder pattern
rule
The properties of the Security Group Rule to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result FirewallRule = DatacentersSecuritygroupsRulesPut(ctx, datacenterId, securityGroupId, ruleId)
.Rule(rule)
.Pretty(pretty)
.Depth(depth)
.Execute()Modify a Security Group Rule
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
securityGroupId := "securityGroupId_example" // string | The unique ID of the security group.
ruleId := "ruleId_example" // string | The unique ID of the Security Group Rule.
rule := *openapiclient.NewFirewallRule(*openapiclient.NewFirewallruleProperties()) // FirewallRule | The modified Security Group Rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersSecuritygroupsRulesPut(context.Background(), datacenterId, securityGroupId, ruleId).Rule(rule).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersSecuritygroupsRulesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersSecuritygroupsRulesPut`: FirewallRule
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersSecuritygroupsRulesPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
securityGroupId
string
The unique ID of the security group.
ruleId
string
The unique ID of the Security Group Rule.
Other parameters are passed through a pointer to a apiDatacentersSecuritygroupsRulesPutRequest struct via the builder pattern
rule
The modified Security Group Rule.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result SecurityGroups = DatacentersServersNicsSecuritygroupsPut(ctx, datacenterId, serverId, nicId)
.Securitygroups(securitygroups)
.Pretty(pretty)
.Depth(depth)
.Execute()Attach a list of Security Groups to a NIC
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
nicId := "nicId_example" // string | The unique ID of the server.
securitygroups := *openapiclient.NewListOfIds([]string{"15f67991-0f51-4efc-a8ad-ef1fb31a480c"}) // ListOfIds | The list of NIC attached Security Groups IDs.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersServersNicsSecuritygroupsPut(context.Background(), datacenterId, serverId, nicId).Securitygroups(securitygroups).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersServersNicsSecuritygroupsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersNicsSecuritygroupsPut`: SecurityGroups
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersServersNicsSecuritygroupsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
nicId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersNicsSecuritygroupsPutRequest struct via the builder pattern
securitygroups
The list of NIC attached Security Groups IDs.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result SecurityGroups = DatacentersServersSecuritygroupsPut(ctx, datacenterId, serverId)
.Securitygroups(securitygroups)
.Pretty(pretty)
.Depth(depth)
.Execute()Attach a list of Security Groups to a Server
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
securitygroups := *openapiclient.NewListOfIds([]string{"15f67991-0f51-4efc-a8ad-ef1fb31a480c"}) // ListOfIds | The list of server attached Security Groups IDs.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.SecurityGroupsApi.DatacentersServersSecuritygroupsPut(context.Background(), datacenterId, serverId).Securitygroups(securitygroups).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityGroupsApi.DatacentersServersSecuritygroupsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersSecuritygroupsPut`: SecurityGroups
fmt.Fprintf(os.Stdout, "Response from `SecurityGroupsApi.DatacentersServersSecuritygroupsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersSecuritygroupsPutRequest struct via the builder pattern
securitygroups
The list of server attached Security Groups IDs.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /k8s/{k8sClusterId}
Delete a Kubernetes Cluster by ID
Get /k8s/{k8sClusterId}
Get a Kubernetes Cluster by ID
Get /k8s
Get Kubernetes Clusters
Get /k8s/{k8sClusterId}/kubeconfig
Get Kubernetes Configuration File
Delete /k8s/{k8sClusterId}/nodepools/{nodepoolId}
Delete a Kubernetes Node Pool by ID
Get /k8s/{k8sClusterId}/nodepools/{nodepoolId}
Get a Kubernetes Node Pool by ID
Get /k8s/{k8sClusterId}/nodepools
Get Kubernetes Node Pools
Delete /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}
Delete a Kubernetes Node by ID
Get /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}
Get Kubernetes Node by ID
Get /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes
Get Kubernetes Nodes
Post /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}/replace
Recreate a Kubernetes Node by ID
Post /k8s/{k8sClusterId}/nodepools
Create a Kubernetes Node Pool
Put /k8s/{k8sClusterId}/nodepools/{nodepoolId}
Modify a Kubernetes Node Pool by ID
Post /k8s
Create a Kubernetes Cluster
Put /k8s/{k8sClusterId}
Modify a Kubernetes Cluster by ID
Get /k8s/versions/default
Get Default Kubernetes Version
Get /k8s/versions
Get Kubernetes Versions
var result = K8sDelete(ctx, k8sClusterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete a Kubernetes Cluster by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.KubernetesApi.K8sDelete(context.Background(), k8sClusterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
Other parameters are passed through a pointer to a apiK8sDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result KubernetesCluster = K8sFindByClusterId(ctx, k8sClusterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get a Kubernetes Cluster by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the K8s cluster to be retrieved.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sFindByClusterId(context.Background(), k8sClusterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sFindByClusterId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sFindByClusterId`: KubernetesCluster
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sFindByClusterId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the K8s cluster to be retrieved.
Other parameters are passed through a pointer to a apiK8sFindByClusterIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result KubernetesClusters = K8sGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Kubernetes Clusters
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sGet`: KubernetesClusters
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiK8sGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result string = K8sKubeconfigGet(ctx, k8sClusterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Kubernetes Configuration File
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sKubeconfigGet(context.Background(), k8sClusterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sKubeconfigGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sKubeconfigGet`: string
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sKubeconfigGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
Other parameters are passed through a pointer to a apiK8sKubeconfigGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
string
Content-Type: Not defined
Accept: application/yamlapplication/x-yamlapplication/json
var result = K8sNodepoolsDelete(ctx, k8sClusterId, nodepoolId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete a Kubernetes Node Pool by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
nodepoolId := "nodepoolId_example" // string | The unique ID of the Kubernetes node pool.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.KubernetesApi.K8sNodepoolsDelete(context.Background(), k8sClusterId, nodepoolId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sNodepoolsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
nodepoolId
string
The unique ID of the Kubernetes node pool.
Other parameters are passed through a pointer to a apiK8sNodepoolsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result KubernetesNodePool = K8sNodepoolsFindById(ctx, k8sClusterId, nodepoolId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get a Kubernetes Node Pool by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
nodepoolId := "nodepoolId_example" // string | The unique ID of the Kubernetes node pool.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sNodepoolsFindById(context.Background(), k8sClusterId, nodepoolId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sNodepoolsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sNodepoolsFindById`: KubernetesNodePool
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sNodepoolsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
nodepoolId
string
The unique ID of the Kubernetes node pool.
Other parameters are passed through a pointer to a apiK8sNodepoolsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result KubernetesNodePools = K8sNodepoolsGet(ctx, k8sClusterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Kubernetes Node Pools
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sNodepoolsGet(context.Background(), k8sClusterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sNodepoolsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sNodepoolsGet`: KubernetesNodePools
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sNodepoolsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
Other parameters are passed through a pointer to a apiK8sNodepoolsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = K8sNodepoolsNodesDelete(ctx, k8sClusterId, nodepoolId, nodeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete a Kubernetes Node by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
nodepoolId := "nodepoolId_example" // string | The unique ID of the Kubernetes node pool.
nodeId := "nodeId_example" // string | The unique ID of the Kubernetes node.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.KubernetesApi.K8sNodepoolsNodesDelete(context.Background(), k8sClusterId, nodepoolId, nodeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sNodepoolsNodesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
nodepoolId
string
The unique ID of the Kubernetes node pool.
nodeId
string
The unique ID of the Kubernetes node.
Other parameters are passed through a pointer to a apiK8sNodepoolsNodesDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result KubernetesNode = K8sNodepoolsNodesFindById(ctx, k8sClusterId, nodepoolId, nodeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Kubernetes Node by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
nodepoolId := "nodepoolId_example" // string | The unique ID of the Kubernetes node pool.
nodeId := "nodeId_example" // string | The unique ID of the Kubernetes node.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sNodepoolsNodesFindById(context.Background(), k8sClusterId, nodepoolId, nodeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sNodepoolsNodesFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sNodepoolsNodesFindById`: KubernetesNode
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sNodepoolsNodesFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
nodepoolId
string
The unique ID of the Kubernetes node pool.
nodeId
string
The unique ID of the Kubernetes node.
Other parameters are passed through a pointer to a apiK8sNodepoolsNodesFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result KubernetesNodes = K8sNodepoolsNodesGet(ctx, k8sClusterId, nodepoolId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Kubernetes Nodes
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
nodepoolId := "nodepoolId_example" // string | The unique ID of the Kubernetes node pool.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sNodepoolsNodesGet(context.Background(), k8sClusterId, nodepoolId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sNodepoolsNodesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sNodepoolsNodesGet`: KubernetesNodes
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sNodepoolsNodesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
nodepoolId
string
The unique ID of the Kubernetes node pool.
Other parameters are passed through a pointer to a apiK8sNodepoolsNodesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = K8sNodepoolsNodesReplacePost(ctx, k8sClusterId, nodepoolId, nodeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Recreate a Kubernetes Node by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
nodepoolId := "nodepoolId_example" // string | The unique ID of the Kubernetes node pool.
nodeId := "nodeId_example" // string | The unique ID of the Kubernetes node.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sNodepoolsNodesReplacePost(context.Background(), k8sClusterId, nodepoolId, nodeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sNodepoolsNodesReplacePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
nodepoolId
string
The unique ID of the Kubernetes node pool.
nodeId
string
The unique ID of the Kubernetes node.
Other parameters are passed through a pointer to a apiK8sNodepoolsNodesReplacePostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result KubernetesNodePool = K8sNodepoolsPost(ctx, k8sClusterId)
.KubernetesNodePool(kubernetesNodePool)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Kubernetes Node Pool
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
kubernetesNodePool := *openapiclient.NewKubernetesNodePoolForPost(*openapiclient.NewKubernetesNodePoolPropertiesForPost("K8s-node-pool", "1e072e52-2ed3-492f-b6b6-c6b116907521", int32(2), int32(4), int32(2048), "AUTO", "HDD", int32(100))) // KubernetesNodePoolForPost | The Kubernetes node pool to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sNodepoolsPost(context.Background(), k8sClusterId).KubernetesNodePool(kubernetesNodePool).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sNodepoolsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sNodepoolsPost`: KubernetesNodePool
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sNodepoolsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
Other parameters are passed through a pointer to a apiK8sNodepoolsPostRequest struct via the builder pattern
kubernetesNodePool
The Kubernetes node pool to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result KubernetesNodePool = K8sNodepoolsPut(ctx, k8sClusterId, nodepoolId)
.KubernetesNodePool(kubernetesNodePool)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Kubernetes Node Pool by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
nodepoolId := "nodepoolId_example" // string | The unique ID of the Kubernetes node pool.
kubernetesNodePool := *openapiclient.NewKubernetesNodePoolForPut(*openapiclient.NewKubernetesNodePoolPropertiesForPut(int32(2))) // KubernetesNodePoolForPut | Details of the Kubernetes Node Pool
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sNodepoolsPut(context.Background(), k8sClusterId, nodepoolId).KubernetesNodePool(kubernetesNodePool).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sNodepoolsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sNodepoolsPut`: KubernetesNodePool
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sNodepoolsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
nodepoolId
string
The unique ID of the Kubernetes node pool.
Other parameters are passed through a pointer to a apiK8sNodepoolsPutRequest struct via the builder pattern
kubernetesNodePool
Details of the Kubernetes Node Pool
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result KubernetesCluster = K8sPost(ctx)
.KubernetesCluster(kubernetesCluster)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Kubernetes Cluster
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
kubernetesCluster := *openapiclient.NewKubernetesClusterForPost(*openapiclient.NewKubernetesClusterPropertiesForPost("k8s")) // KubernetesClusterForPost | The Kubernetes cluster to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sPost(context.Background()).KubernetesCluster(kubernetesCluster).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sPost`: KubernetesCluster
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiK8sPostRequest struct via the builder pattern
kubernetesCluster
The Kubernetes cluster to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result KubernetesCluster = K8sPut(ctx, k8sClusterId)
.KubernetesCluster(kubernetesCluster)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Kubernetes Cluster by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
k8sClusterId := "k8sClusterId_example" // string | The unique ID of the Kubernetes cluster.
kubernetesCluster := *openapiclient.NewKubernetesClusterForPut(*openapiclient.NewKubernetesClusterPropertiesForPut("k8s")) // KubernetesClusterForPut | The modified Kubernetes cluster.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sPut(context.Background(), k8sClusterId).KubernetesCluster(kubernetesCluster).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sPut`: KubernetesCluster
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
k8sClusterId
string
The unique ID of the Kubernetes cluster.
Other parameters are passed through a pointer to a apiK8sPutRequest struct via the builder pattern
kubernetesCluster
The modified Kubernetes cluster.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result string = K8sVersionsDefaultGet(ctx)
.Execute()Get Default Kubernetes Version
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sVersionsDefaultGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sVersionsDefaultGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sVersionsDefaultGet`: string
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sVersionsDefaultGet`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiK8sVersionsDefaultGetRequest struct via the builder pattern
string
Content-Type: Not defined
Accept: application/json
var result []string = K8sVersionsGet(ctx)
.Execute()Get Kubernetes Versions
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.KubernetesApi.K8sVersionsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KubernetesApi.K8sVersionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `K8sVersionsGet`: []string
fmt.Fprintf(os.Stdout, "Response from `KubernetesApi.K8sVersionsGet`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiK8sVersionsGetRequest struct via the builder pattern
[]string
Content-Type: Not defined
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/natgateways/{natGatewayId}
Delete NAT Gateways
Get /datacenters/{datacenterId}/natgateways/{natGatewayId}
Retrieve NAT Gateways
Delete /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs/{flowLogId}
Delete NAT Gateway Flow Logs
Get /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs/{flowLogId}
Retrieve NAT Gateway Flow Logs
Get /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs
List NAT Gateway Flow Logs
Patch /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs/{flowLogId}
Partially modify NAT Gateway Flow Logs
Post /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs
Create a NAT Gateway Flow Log
Put /datacenters/{datacenterId}/natgateways/{natGatewayId}/flowlogs/{flowLogId}
Modify NAT Gateway Flow Logs
Get /datacenters/{datacenterId}/natgateways
List NAT Gateways
Patch /datacenters/{datacenterId}/natgateways/{natGatewayId}
Partially modify NAT Gateways
Post /datacenters/{datacenterId}/natgateways
Create a NAT Gateway
Put /datacenters/{datacenterId}/natgateways/{natGatewayId}
Modify NAT Gateways
Delete /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules/{natGatewayRuleId}
Delete NAT Gateway rules
Get /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules/{natGatewayRuleId}
Retrieve NAT Gateway rules
Get /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules
List NAT Gateway rules
Patch /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules/{natGatewayRuleId}
Partially Modify a NAT Gateway Rule by ID
Post /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules
Create a NAT Gateway Rule
Put /datacenters/{datacenterId}/natgateways/{natGatewayId}/rules/{natGatewayRuleId}
Modify a NAT Gateway Rule by ID
var result = DatacentersNatgatewaysDelete(ctx, datacenterId, natGatewayId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete NAT Gateways
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysDelete(context.Background(), datacenterId, natGatewayId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result NatGateway = DatacentersNatgatewaysFindByNatGatewayId(ctx, datacenterId, natGatewayId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve NAT Gateways
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysFindByNatGatewayId(context.Background(), datacenterId, natGatewayId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysFindByNatGatewayId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysFindByNatGatewayId`: NatGateway
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysFindByNatGatewayId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysFindByNatGatewayIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = DatacentersNatgatewaysFlowlogsDelete(ctx, datacenterId, natGatewayId, flowLogId)
.Pretty(pretty)
.Depth(depth)
.Execute()Delete NAT Gateway Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
flowLogId := "flowLogId_example" // string | The unique ID of the Flow Log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysFlowlogsDelete(context.Background(), datacenterId, natGatewayId, flowLogId).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysFlowlogsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
flowLogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysFlowlogsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
(empty response body)
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersNatgatewaysFlowlogsFindByFlowLogId(ctx, datacenterId, natGatewayId, flowLogId)
.Pretty(pretty)
.Depth(depth)
.Execute()Retrieve NAT Gateway Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
flowLogId := "flowLogId_example" // string | The unique ID of the Flow Log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysFlowlogsFindByFlowLogId(context.Background(), datacenterId, natGatewayId, flowLogId).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysFlowlogsFindByFlowLogId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysFlowlogsFindByFlowLogId`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysFlowlogsFindByFlowLogId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
flowLogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysFlowlogsFindByFlowLogIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: Not defined
Accept: application/json
var result FlowLogs = DatacentersNatgatewaysFlowlogsGet(ctx, datacenterId, natGatewayId)
.Pretty(pretty)
.Depth(depth)
.Offset(offset)
.Limit(limit)
.Execute()List NAT Gateway Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysFlowlogsGet(context.Background(), datacenterId, natGatewayId).Pretty(pretty).Depth(depth).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysFlowlogsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysFlowlogsGet`: FlowLogs
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysFlowlogsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysFlowlogsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersNatgatewaysFlowlogsPatch(ctx, datacenterId, natGatewayId, flowLogId)
.NatGatewayFlowLogProperties(natGatewayFlowLogProperties)
.Pretty(pretty)
.Depth(depth)
.Execute()Partially modify NAT Gateway Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
flowLogId := "flowLogId_example" // string | The unique ID of the Flow Log.
natGatewayFlowLogProperties := *openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key") // FlowLogProperties | The properties of the Flow Log to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysFlowlogsPatch(context.Background(), datacenterId, natGatewayId, flowLogId).NatGatewayFlowLogProperties(natGatewayFlowLogProperties).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysFlowlogsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysFlowlogsPatch`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysFlowlogsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
flowLogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysFlowlogsPatchRequest struct via the builder pattern
natGatewayFlowLogProperties
The properties of the Flow Log to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersNatgatewaysFlowlogsPost(ctx, datacenterId, natGatewayId)
.NatGatewayFlowLog(natGatewayFlowLog)
.Pretty(pretty)
.Depth(depth)
.Execute()Create a NAT Gateway Flow Log
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
natGatewayFlowLog := *openapiclient.NewFlowLog(*openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key")) // FlowLog | The Flow Log to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysFlowlogsPost(context.Background(), datacenterId, natGatewayId).NatGatewayFlowLog(natGatewayFlowLog).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysFlowlogsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysFlowlogsPost`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysFlowlogsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysFlowlogsPostRequest struct via the builder pattern
natGatewayFlowLog
The Flow Log to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result FlowLog = DatacentersNatgatewaysFlowlogsPut(ctx, datacenterId, natGatewayId, flowLogId)
.NatGatewayFlowLog(natGatewayFlowLog)
.Pretty(pretty)
.Depth(depth)
.Execute()Modify NAT Gateway Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
flowLogId := "flowLogId_example" // string | The unique ID of the Flow Log.
natGatewayFlowLog := *openapiclient.NewFlowLogPut(*openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key")) // FlowLogPut | The modified NAT Gateway Flow Log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysFlowlogsPut(context.Background(), datacenterId, natGatewayId, flowLogId).NatGatewayFlowLog(natGatewayFlowLog).Pretty(pretty).Depth(depth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysFlowlogsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysFlowlogsPut`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysFlowlogsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
flowLogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysFlowlogsPutRequest struct via the builder pattern
natGatewayFlowLog
The modified NAT Gateway Flow Log.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
Content-Type: application/json
Accept: application/json
var result NatGateways = DatacentersNatgatewaysGet(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List NAT Gateways
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysGet(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysGet`: NatGateways
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result NatGateway = DatacentersNatgatewaysPatch(ctx, datacenterId, natGatewayId)
.NatGatewayProperties(natGatewayProperties)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify NAT Gateways
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
natGatewayProperties := *openapiclient.NewNatGatewayProperties("My NAT Gateway", []string{"PublicIps_example"}) // NatGatewayProperties | The properties of the NAT Gateway to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysPatch(context.Background(), datacenterId, natGatewayId).NatGatewayProperties(natGatewayProperties).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysPatch`: NatGateway
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysPatchRequest struct via the builder pattern
natGatewayProperties
The properties of the NAT Gateway to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result NatGateway = DatacentersNatgatewaysPost(ctx, datacenterId)
.NatGateway(natGateway)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a NAT Gateway
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGateway := *openapiclient.NewNatGateway(*openapiclient.NewNatGatewayProperties("My NAT Gateway", []string{"PublicIps_example"})) // NatGateway | The NAT Gateway to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysPost(context.Background(), datacenterId).NatGateway(natGateway).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysPost`: NatGateway
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysPostRequest struct via the builder pattern
natGateway
The NAT Gateway to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result NatGateway = DatacentersNatgatewaysPut(ctx, datacenterId, natGatewayId)
.NatGateway(natGateway)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify NAT Gateways
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
natGateway := *openapiclient.NewNatGatewayPut(*openapiclient.NewNatGatewayProperties("My NAT Gateway", []string{"PublicIps_example"})) // NatGatewayPut | The modified NAT Gateway.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysPut(context.Background(), datacenterId, natGatewayId).NatGateway(natGateway).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysPut`: NatGateway
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysPutRequest struct via the builder pattern
natGateway
The modified NAT Gateway.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = DatacentersNatgatewaysRulesDelete(ctx, datacenterId, natGatewayId, natGatewayRuleId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete NAT Gateway rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
natGatewayRuleId := "natGatewayRuleId_example" // string | The unique ID of the NAT Gateway rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysRulesDelete(context.Background(), datacenterId, natGatewayId, natGatewayRuleId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysRulesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
natGatewayRuleId
string
The unique ID of the NAT Gateway rule.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysRulesDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result NatGatewayRule = DatacentersNatgatewaysRulesFindByNatGatewayRuleId(ctx, datacenterId, natGatewayId, natGatewayRuleId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve NAT Gateway rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
natGatewayRuleId := "natGatewayRuleId_example" // string | The unique ID of the NAT Gateway rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysRulesFindByNatGatewayRuleId(context.Background(), datacenterId, natGatewayId, natGatewayRuleId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysRulesFindByNatGatewayRuleId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysRulesFindByNatGatewayRuleId`: NatGatewayRule
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysRulesFindByNatGatewayRuleId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
natGatewayRuleId
string
The unique ID of the NAT Gateway rule.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysRulesFindByNatGatewayRuleIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result NatGatewayRules = DatacentersNatgatewaysRulesGet(ctx, datacenterId, natGatewayId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List NAT Gateway rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysRulesGet(context.Background(), datacenterId, natGatewayId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysRulesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysRulesGet`: NatGatewayRules
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysRulesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysRulesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result NatGatewayRule = DatacentersNatgatewaysRulesPatch(ctx, datacenterId, natGatewayId, natGatewayRuleId)
.NatGatewayRuleProperties(natGatewayRuleProperties)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially Modify a NAT Gateway Rule by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
natGatewayRuleId := "natGatewayRuleId_example" // string | The unique ID of the NAT Gateway rule.
natGatewayRuleProperties := *openapiclient.NewNatGatewayRuleProperties("My NAT Gateway rule", "10.0.1.0/24", "192.18.7.17") // NatGatewayRuleProperties | The properties of the NAT Gateway rule to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysRulesPatch(context.Background(), datacenterId, natGatewayId, natGatewayRuleId).NatGatewayRuleProperties(natGatewayRuleProperties).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysRulesPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysRulesPatch`: NatGatewayRule
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysRulesPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
natGatewayRuleId
string
The unique ID of the NAT Gateway rule.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysRulesPatchRequest struct via the builder pattern
natGatewayRuleProperties
The properties of the NAT Gateway rule to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result NatGatewayRule = DatacentersNatgatewaysRulesPost(ctx, datacenterId, natGatewayId)
.NatGatewayRule(natGatewayRule)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a NAT Gateway Rule
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
natGatewayRule := *openapiclient.NewNatGatewayRule(*openapiclient.NewNatGatewayRuleProperties("My NAT Gateway rule", "10.0.1.0/24", "192.18.7.17")) // NatGatewayRule | The NAT Gateway rule to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysRulesPost(context.Background(), datacenterId, natGatewayId).NatGatewayRule(natGatewayRule).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysRulesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysRulesPost`: NatGatewayRule
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysRulesPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysRulesPostRequest struct via the builder pattern
natGatewayRule
The NAT Gateway rule to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result NatGatewayRule = DatacentersNatgatewaysRulesPut(ctx, datacenterId, natGatewayId, natGatewayRuleId)
.NatGatewayRule(natGatewayRule)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a NAT Gateway Rule by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
natGatewayId := "natGatewayId_example" // string | The unique ID of the NAT Gateway.
natGatewayRuleId := "natGatewayRuleId_example" // string | The unique ID of the NAT Gateway rule.
natGatewayRule := *openapiclient.NewNatGatewayRulePut(*openapiclient.NewNatGatewayRuleProperties("My NAT Gateway rule", "10.0.1.0/24", "192.18.7.17")) // NatGatewayRulePut | The modified NAT Gateway rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NATGatewaysApi.DatacentersNatgatewaysRulesPut(context.Background(), datacenterId, natGatewayId, natGatewayRuleId).NatGatewayRule(natGatewayRule).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NATGatewaysApi.DatacentersNatgatewaysRulesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNatgatewaysRulesPut`: NatGatewayRule
fmt.Fprintf(os.Stdout, "Response from `NATGatewaysApi.DatacentersNatgatewaysRulesPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
natGatewayId
string
The unique ID of the NAT Gateway.
natGatewayRuleId
string
The unique ID of the NAT Gateway rule.
Other parameters are passed through a pointer to a apiDatacentersNatgatewaysRulesPutRequest struct via the builder pattern
natGatewayRule
The modified NAT Gateway rule.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}
Delete Network Load Balancers
Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}
Retrieve Network Load Balancers
Delete /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId}
Delete NLB Flow Logs
Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId}
Retrieve NLB Flow Logs
Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs
List NLB Flow Logs
Patch /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId}
Partially modify NLB Flow Logs
Post /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs
Create a NLB Flow Log
Put /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId}
Modify NLB Flow Logs
Delete /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId}
Delete NLB forwarding rules
Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId}
Retrieve NLB forwarding rules
Get /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules
List NLB forwarding rules
Patch /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId}
Partially modify NLB forwarding rules
Post /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules
Create a NLB Forwarding Rule
Put /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId}
Modify NLB forwarding rules
Get /datacenters/{datacenterId}/networkloadbalancers
List Network Load Balancers
Patch /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}
Partially modify Network Load Balancers
Post /datacenters/{datacenterId}/networkloadbalancers
Create a Network Load Balancer
Put /datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}
Modify Network Load Balancers
var result = DatacentersNetworkloadbalancersDelete(ctx, datacenterId, networkLoadBalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete Network Load Balancers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersDelete(context.Background(), datacenterId, networkLoadBalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result NetworkLoadBalancer = DatacentersNetworkloadbalancersFindByNetworkLoadBalancerId(ctx, datacenterId, networkLoadBalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve Network Load Balancers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFindByNetworkLoadBalancerId(context.Background(), datacenterId, networkLoadBalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFindByNetworkLoadBalancerId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersFindByNetworkLoadBalancerId`: NetworkLoadBalancer
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFindByNetworkLoadBalancerId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersFindByNetworkLoadBalancerIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = DatacentersNetworkloadbalancersFlowlogsDelete(ctx, datacenterId, networkLoadBalancerId, flowLogId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete NLB Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
flowLogId := "flowLogId_example" // string | The unique ID of the Flow Log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsDelete(context.Background(), datacenterId, networkLoadBalancerId, flowLogId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
flowLogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersFlowlogsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersNetworkloadbalancersFlowlogsFindByFlowLogId(ctx, datacenterId, networkLoadBalancerId, flowLogId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve NLB Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
flowLogId := "flowLogId_example" // string | The unique ID of the Flow Log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsFindByFlowLogId(context.Background(), datacenterId, networkLoadBalancerId, flowLogId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsFindByFlowLogId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersFlowlogsFindByFlowLogId`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsFindByFlowLogId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
flowLogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersFlowlogsFindByFlowLogIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result FlowLogs = DatacentersNetworkloadbalancersFlowlogsGet(ctx, datacenterId, networkLoadBalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List NLB Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsGet(context.Background(), datacenterId, networkLoadBalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersFlowlogsGet`: FlowLogs
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersFlowlogsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersNetworkloadbalancersFlowlogsPatch(ctx, datacenterId, networkLoadBalancerId, flowLogId)
.NetworkLoadBalancerFlowLogProperties(networkLoadBalancerFlowLogProperties)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify NLB Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
flowLogId := "flowLogId_example" // string | The unique ID of the Flow Log.
networkLoadBalancerFlowLogProperties := *openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key") // FlowLogProperties | The properties of the Flow Log to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsPatch(context.Background(), datacenterId, networkLoadBalancerId, flowLogId).NetworkLoadBalancerFlowLogProperties(networkLoadBalancerFlowLogProperties).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersFlowlogsPatch`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
flowLogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersFlowlogsPatchRequest struct via the builder pattern
networkLoadBalancerFlowLogProperties
The properties of the Flow Log to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result FlowLog = DatacentersNetworkloadbalancersFlowlogsPost(ctx, datacenterId, networkLoadBalancerId)
.NetworkLoadBalancerFlowLog(networkLoadBalancerFlowLog)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a NLB Flow Log
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
networkLoadBalancerFlowLog := *openapiclient.NewFlowLog(*openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key")) // FlowLog | The Flow Log to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsPost(context.Background(), datacenterId, networkLoadBalancerId).NetworkLoadBalancerFlowLog(networkLoadBalancerFlowLog).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersFlowlogsPost`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersFlowlogsPostRequest struct via the builder pattern
networkLoadBalancerFlowLog
The Flow Log to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result FlowLog = DatacentersNetworkloadbalancersFlowlogsPut(ctx, datacenterId, networkLoadBalancerId, flowLogId)
.NetworkLoadBalancerFlowLog(networkLoadBalancerFlowLog)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify NLB Flow Logs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
flowLogId := "flowLogId_example" // string | The unique ID of the Flow Log.
networkLoadBalancerFlowLog := *openapiclient.NewFlowLogPut(*openapiclient.NewFlowLogProperties("My resource", "ACCEPTED", "INGRESS", "bucketName/key")) // FlowLogPut | The modified NLB Flow Log.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsPut(context.Background(), datacenterId, networkLoadBalancerId, flowLogId).NetworkLoadBalancerFlowLog(networkLoadBalancerFlowLog).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersFlowlogsPut`: FlowLog
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersFlowlogsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
flowLogId
string
The unique ID of the Flow Log.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersFlowlogsPutRequest struct via the builder pattern
networkLoadBalancerFlowLog
The modified NLB Flow Log.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = DatacentersNetworkloadbalancersForwardingrulesDelete(ctx, datacenterId, networkLoadBalancerId, forwardingRuleId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete NLB forwarding rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
forwardingRuleId := "forwardingRuleId_example" // string | The unique ID of the forwarding rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesDelete(context.Background(), datacenterId, networkLoadBalancerId, forwardingRuleId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
forwardingRuleId
string
The unique ID of the forwarding rule.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersForwardingrulesDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result NetworkLoadBalancerForwardingRule = DatacentersNetworkloadbalancersForwardingrulesFindByForwardingRuleId(ctx, datacenterId, networkLoadBalancerId, forwardingRuleId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve NLB forwarding rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
forwardingRuleId := "forwardingRuleId_example" // string | The unique ID of the forwarding rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesFindByForwardingRuleId(context.Background(), datacenterId, networkLoadBalancerId, forwardingRuleId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesFindByForwardingRuleId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersForwardingrulesFindByForwardingRuleId`: NetworkLoadBalancerForwardingRule
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesFindByForwardingRuleId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
forwardingRuleId
string
The unique ID of the forwarding rule.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersForwardingrulesFindByForwardingRuleIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
NetworkLoadBalancerForwardingRule
Content-Type: Not defined
Accept: application/json
var result NetworkLoadBalancerForwardingRules = DatacentersNetworkloadbalancersForwardingrulesGet(ctx, datacenterId, networkLoadBalancerId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List NLB forwarding rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesGet(context.Background(), datacenterId, networkLoadBalancerId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersForwardingrulesGet`: NetworkLoadBalancerForwardingRules
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersForwardingrulesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
NetworkLoadBalancerForwardingRules
Content-Type: Not defined
Accept: application/json
var result NetworkLoadBalancerForwardingRule = DatacentersNetworkloadbalancersForwardingrulesPatch(ctx, datacenterId, networkLoadBalancerId, forwardingRuleId)
.NetworkLoadBalancerForwardingRuleProperties(networkLoadBalancerForwardingRuleProperties)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify NLB forwarding rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
forwardingRuleId := "forwardingRuleId_example" // string | The unique ID of the forwarding rule.
networkLoadBalancerForwardingRuleProperties := *openapiclient.NewNetworkLoadBalancerForwardingRuleProperties("My Network Load Balancer forwarding rule", "ROUND_ROBIN", "HTTP", "81.173.1.2", int32(8080), []openapiclient.NetworkLoadBalancerForwardingRuleTarget{*openapiclient.NewNetworkLoadBalancerForwardingRuleTarget("22.231.2.2", int32(8080), int32(123))}) // NetworkLoadBalancerForwardingRuleProperties | The properties of the forwarding rule to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesPatch(context.Background(), datacenterId, networkLoadBalancerId, forwardingRuleId).NetworkLoadBalancerForwardingRuleProperties(networkLoadBalancerForwardingRuleProperties).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersForwardingrulesPatch`: NetworkLoadBalancerForwardingRule
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
forwardingRuleId
string
The unique ID of the forwarding rule.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersForwardingrulesPatchRequest struct via the builder pattern
networkLoadBalancerForwardingRuleProperties
The properties of the forwarding rule to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
NetworkLoadBalancerForwardingRule
Content-Type: Not defined
Accept: application/json
var result NetworkLoadBalancerForwardingRule = DatacentersNetworkloadbalancersForwardingrulesPost(ctx, datacenterId, networkLoadBalancerId)
.NetworkLoadBalancerForwardingRule(networkLoadBalancerForwardingRule)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a NLB Forwarding Rule
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
networkLoadBalancerForwardingRule := *openapiclient.NewNetworkLoadBalancerForwardingRule(*openapiclient.NewNetworkLoadBalancerForwardingRuleProperties("My Network Load Balancer forwarding rule", "ROUND_ROBIN", "HTTP", "81.173.1.2", int32(8080), []openapiclient.NetworkLoadBalancerForwardingRuleTarget{*openapiclient.NewNetworkLoadBalancerForwardingRuleTarget("22.231.2.2", int32(8080), int32(123))})) // NetworkLoadBalancerForwardingRule | The forwarding rule to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesPost(context.Background(), datacenterId, networkLoadBalancerId).NetworkLoadBalancerForwardingRule(networkLoadBalancerForwardingRule).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersForwardingrulesPost`: NetworkLoadBalancerForwardingRule
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersForwardingrulesPostRequest struct via the builder pattern
networkLoadBalancerForwardingRule
The forwarding rule to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
NetworkLoadBalancerForwardingRule
Content-Type: application/json
Accept: application/json
var result NetworkLoadBalancerForwardingRule = DatacentersNetworkloadbalancersForwardingrulesPut(ctx, datacenterId, networkLoadBalancerId, forwardingRuleId)
.NetworkLoadBalancerForwardingRule(networkLoadBalancerForwardingRule)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify NLB forwarding rules
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
forwardingRuleId := "forwardingRuleId_example" // string | The unique ID of the forwarding rule.
networkLoadBalancerForwardingRule := *openapiclient.NewNetworkLoadBalancerForwardingRulePut(*openapiclient.NewNetworkLoadBalancerForwardingRuleProperties("My Network Load Balancer forwarding rule", "ROUND_ROBIN", "HTTP", "81.173.1.2", int32(8080), []openapiclient.NetworkLoadBalancerForwardingRuleTarget{*openapiclient.NewNetworkLoadBalancerForwardingRuleTarget("22.231.2.2", int32(8080), int32(123))})) // NetworkLoadBalancerForwardingRulePut | The modified NLB forwarding rule.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesPut(context.Background(), datacenterId, networkLoadBalancerId, forwardingRuleId).NetworkLoadBalancerForwardingRule(networkLoadBalancerForwardingRule).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersForwardingrulesPut`: NetworkLoadBalancerForwardingRule
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersForwardingrulesPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
forwardingRuleId
string
The unique ID of the forwarding rule.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersForwardingrulesPutRequest struct via the builder pattern
networkLoadBalancerForwardingRule
The modified NLB forwarding rule.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
NetworkLoadBalancerForwardingRule
Content-Type: application/json
Accept: application/json
var result NetworkLoadBalancers = DatacentersNetworkloadbalancersGet(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()List Network Load Balancers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersGet(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersGet`: NetworkLoadBalancers
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result NetworkLoadBalancer = DatacentersNetworkloadbalancersPatch(ctx, datacenterId, networkLoadBalancerId)
.NetworkLoadBalancerProperties(networkLoadBalancerProperties)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify Network Load Balancers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
networkLoadBalancerProperties := *openapiclient.NewNetworkLoadBalancerProperties("My Network Load Balancer", int32(1), int32(2)) // NetworkLoadBalancerProperties | The properties of the Network Load Balancer to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersPatch(context.Background(), datacenterId, networkLoadBalancerId).NetworkLoadBalancerProperties(networkLoadBalancerProperties).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersPatch`: NetworkLoadBalancer
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersPatchRequest struct via the builder pattern
networkLoadBalancerProperties
The properties of the Network Load Balancer to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result NetworkLoadBalancer = DatacentersNetworkloadbalancersPost(ctx, datacenterId)
.NetworkLoadBalancer(networkLoadBalancer)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Network Load Balancer
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancer := *openapiclient.NewNetworkLoadBalancer(*openapiclient.NewNetworkLoadBalancerProperties("My Network Load Balancer", int32(1), int32(2))) // NetworkLoadBalancer | The Network Load Balancer to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersPost(context.Background(), datacenterId).NetworkLoadBalancer(networkLoadBalancer).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersPost`: NetworkLoadBalancer
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersPostRequest struct via the builder pattern
networkLoadBalancer
The Network Load Balancer to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result NetworkLoadBalancer = DatacentersNetworkloadbalancersPut(ctx, datacenterId, networkLoadBalancerId)
.NetworkLoadBalancer(networkLoadBalancer)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify Network Load Balancers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
networkLoadBalancerId := "networkLoadBalancerId_example" // string | The unique ID of the Network Load Balancer.
networkLoadBalancer := *openapiclient.NewNetworkLoadBalancerPut(*openapiclient.NewNetworkLoadBalancerProperties("My Network Load Balancer", int32(1), int32(2))) // NetworkLoadBalancerPut | The modified Network Load Balancer.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.NetworkLoadBalancersApi.DatacentersNetworkloadbalancersPut(context.Background(), datacenterId, networkLoadBalancerId).NetworkLoadBalancer(networkLoadBalancer).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersNetworkloadbalancersPut`: NetworkLoadBalancer
fmt.Fprintf(os.Stdout, "Response from `NetworkLoadBalancersApi.DatacentersNetworkloadbalancersPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
networkLoadBalancerId
string
The unique ID of the Network Load Balancer.
Other parameters are passed through a pointer to a apiDatacentersNetworkloadbalancersPutRequest struct via the builder pattern
networkLoadBalancer
The modified Network Load Balancer.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /um/groups/{groupId}
Delete groups
Get /um/groups/{groupId}
Retrieve groups
Get /um/groups
List all groups
Post /um/groups
Create groups
Put /um/groups/{groupId}
Modify groups
Get /um/groups/{groupId}/resources
Retrieve group resources
Delete /um/groups/{groupId}/shares/{resourceId}
Remove group shares
Get /um/groups/{groupId}/shares/{resourceId}
Retrieve group shares
Get /um/groups/{groupId}/shares
List group shares
Post /um/groups/{groupId}/shares/{resourceId}
Add group shares
Put /um/groups/{groupId}/shares/{resourceId}
Modify group share privileges
Delete /um/groups/{groupId}/users/{userId}
Remove users from groups
Get /um/groups/{groupId}/users
List group members
Post /um/groups/{groupId}/users
Add a Group Member
Get /um/resources/{resourceType}
List resources by type
Get /um/resources/{resourceType}/{resourceId}
Retrieve resources by type
Get /um/resources
List all resources
Delete /um/users/{userId}
Delete users
Get /um/users/{userId}
Retrieve users
Get /um/users
List all users
Get /um/users/{userId}/groups
Retrieve group resources by user ID
Get /um/users/{userId}/owns
Retrieve user resources by user ID
Post /um/users
Create users
Put /um/users/{userId}
Modify users
var result = UmGroupsDelete(ctx, groupId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete groups
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.UserManagementApi.UmGroupsDelete(context.Background(), groupId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
Other parameters are passed through a pointer to a apiUmGroupsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result Group = UmGroupsFindById(ctx, groupId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve groups
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsFindById(context.Background(), groupId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsFindById`: Group
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
Other parameters are passed through a pointer to a apiUmGroupsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Groups = UmGroupsGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List all groups
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsGet`: Groups
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUmGroupsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Group = UmGroupsPost(ctx)
.Group(group)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create groups
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
group := *openapiclient.NewGroup(*openapiclient.NewGroupProperties()) // Group | The group to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsPost(context.Background()).Group(group).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsPost`: Group
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUmGroupsPostRequest struct via the builder pattern
group
The group to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Group = UmGroupsPut(ctx, groupId)
.Group(group)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify groups
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
group := *openapiclient.NewGroup(*openapiclient.NewGroupProperties()) // Group | The modified group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsPut(context.Background(), groupId).Group(group).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsPut`: Group
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
Other parameters are passed through a pointer to a apiUmGroupsPutRequest struct via the builder pattern
group
The modified group.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result ResourceGroups = UmGroupsResourcesGet(ctx, groupId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve group resources
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsResourcesGet(context.Background(), groupId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsResourcesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsResourcesGet`: ResourceGroups
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsResourcesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
Other parameters are passed through a pointer to a apiUmGroupsResourcesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = UmGroupsSharesDelete(ctx, groupId, resourceId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Remove group shares
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
resourceId := "resourceId_example" // string | The unique ID of the resource.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.UserManagementApi.UmGroupsSharesDelete(context.Background(), groupId, resourceId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsSharesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
resourceId
string
The unique ID of the resource.
Other parameters are passed through a pointer to a apiUmGroupsSharesDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result GroupShare = UmGroupsSharesFindByResourceId(ctx, groupId, resourceId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve group shares
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
resourceId := "resourceId_example" // string | The unique ID of the resource.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsSharesFindByResourceId(context.Background(), groupId, resourceId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsSharesFindByResourceId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsSharesFindByResourceId`: GroupShare
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsSharesFindByResourceId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
resourceId
string
The unique ID of the resource.
Other parameters are passed through a pointer to a apiUmGroupsSharesFindByResourceIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result GroupShares = UmGroupsSharesGet(ctx, groupId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List group shares
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsSharesGet(context.Background(), groupId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsSharesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsSharesGet`: GroupShares
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsSharesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
Other parameters are passed through a pointer to a apiUmGroupsSharesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result GroupShare = UmGroupsSharesPost(ctx, groupId, resourceId)
.Resource(resource)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Add group shares
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
resourceId := "resourceId_example" // string | The unique ID of the resource.
resource := *openapiclient.NewGroupShare(*openapiclient.NewGroupShareProperties()) // GroupShare | The resource to add.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsSharesPost(context.Background(), groupId, resourceId).Resource(resource).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsSharesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsSharesPost`: GroupShare
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsSharesPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
resourceId
string
The unique ID of the resource.
Other parameters are passed through a pointer to a apiUmGroupsSharesPostRequest struct via the builder pattern
resource
The resource to add.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result GroupShare = UmGroupsSharesPut(ctx, groupId, resourceId)
.Resource(resource)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify group share privileges
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
resourceId := "resourceId_example" // string | The unique ID of the resource.
resource := *openapiclient.NewGroupShare(*openapiclient.NewGroupShareProperties()) // GroupShare | The modified resource
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsSharesPut(context.Background(), groupId, resourceId).Resource(resource).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsSharesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsSharesPut`: GroupShare
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsSharesPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
resourceId
string
The unique ID of the resource.
Other parameters are passed through a pointer to a apiUmGroupsSharesPutRequest struct via the builder pattern
resource
The modified resource
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = UmGroupsUsersDelete(ctx, groupId, userId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Remove users from groups
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
userId := "userId_example" // string | The unique ID of the user.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.UserManagementApi.UmGroupsUsersDelete(context.Background(), groupId, userId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsUsersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
userId
string
The unique ID of the user.
Other parameters are passed through a pointer to a apiUmGroupsUsersDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result GroupMembers = UmGroupsUsersGet(ctx, groupId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List group members
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsUsersGet(context.Background(), groupId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsUsersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsUsersGet`: GroupMembers
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsUsersGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
Other parameters are passed through a pointer to a apiUmGroupsUsersGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result User = UmGroupsUsersPost(ctx, groupId)
.User(user)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Add a Group Member
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
groupId := "groupId_example" // string | The unique ID of the group.
user := *openapiclient.NewUserGroupPost("15f67991-0f51-4efc-a8ad-ef1fb31a480c") // UserGroupPost | The user to add.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmGroupsUsersPost(context.Background(), groupId).User(user).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmGroupsUsersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmGroupsUsersPost`: User
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmGroupsUsersPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
groupId
string
The unique ID of the group.
Other parameters are passed through a pointer to a apiUmGroupsUsersPostRequest struct via the builder pattern
user
The user to add.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Resources = UmResourcesFindByType(ctx, resourceType)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List resources by type
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
resourceType := "resourceType_example" // string | The resource type
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmResourcesFindByType(context.Background(), resourceType).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmResourcesFindByType``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmResourcesFindByType`: Resources
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmResourcesFindByType`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
resourceType
string
The resource type
Other parameters are passed through a pointer to a apiUmResourcesFindByTypeRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Resource = UmResourcesFindByTypeAndId(ctx, resourceType, resourceId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve resources by type
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
resourceType := "resourceType_example" // string | The resource type
resourceId := "resourceId_example" // string | The resource ID
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmResourcesFindByTypeAndId(context.Background(), resourceType, resourceId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmResourcesFindByTypeAndId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmResourcesFindByTypeAndId`: Resource
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmResourcesFindByTypeAndId`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
resourceType
string
The resource type
resourceId
string
The resource ID
Other parameters are passed through a pointer to a apiUmResourcesFindByTypeAndIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Resources = UmResourcesGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List all resources
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmResourcesGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmResourcesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmResourcesGet`: Resources
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmResourcesGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUmResourcesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = UmUsersDelete(ctx, userId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete users
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.UserManagementApi.UmUsersDelete(context.Background(), userId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmUsersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
Other parameters are passed through a pointer to a apiUmUsersDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result User = UmUsersFindById(ctx, userId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve users
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmUsersFindById(context.Background(), userId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmUsersFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersFindById`: User
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmUsersFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
Other parameters are passed through a pointer to a apiUmUsersFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Users = UmUsersGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()List all users
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with <code>offset</code> for pagination). (optional) (default to 100)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmUsersGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmUsersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersGet`: Users
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmUsersGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUmUsersGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with <code>offset</code> for pagination).
[default to 100]
Content-Type: Not defined
Accept: application/json
var result ResourceGroups = UmUsersGroupsGet(ctx, userId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve group resources by user ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmUsersGroupsGet(context.Background(), userId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmUsersGroupsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersGroupsGet`: ResourceGroups
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmUsersGroupsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
Other parameters are passed through a pointer to a apiUmUsersGroupsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result ResourcesUsers = UmUsersOwnsGet(ctx, userId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve user resources by user ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmUsersOwnsGet(context.Background(), userId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmUsersOwnsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersOwnsGet`: ResourcesUsers
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmUsersOwnsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
Other parameters are passed through a pointer to a apiUmUsersOwnsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result User = UmUsersPost(ctx)
.User(user)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create users
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
user := *openapiclient.NewUserPost(*openapiclient.NewUserPropertiesPost()) // UserPost | The user to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmUsersPost(context.Background()).User(user).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmUsersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersPost`: User
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmUsersPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUmUsersPostRequest struct via the builder pattern
user
The user to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result User = UmUsersPut(ctx, userId)
.User(user)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify users
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
userId := "userId_example" // string | The unique ID of the user.
user := *openapiclient.NewUserPut(*openapiclient.NewUserPropertiesPut()) // UserPut | The modified user
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.UserManagementApi.UmUsersPut(context.Background(), userId).User(user).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementApi.UmUsersPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UmUsersPut`: User
fmt.Fprintf(os.Stdout, "Response from `UserManagementApi.UmUsersPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
userId
string
The unique ID of the user.
Other parameters are passed through a pointer to a apiUmUsersPutRequest struct via the builder pattern
user
The modified user
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/servers/{serverId}/cdroms/{cdromId}
Detach a CD-ROM by ID
Get /datacenters/{datacenterId}/servers/{serverId}/cdroms/{cdromId}
Get Attached CD-ROM by ID
Get /datacenters/{datacenterId}/servers/{serverId}/cdroms
Get Attached CD-ROMs
Post /datacenters/{datacenterId}/servers/{serverId}/cdroms
Attach a CD-ROM
Delete /datacenters/{datacenterId}/servers/{serverId}
Delete servers
Get /datacenters/{datacenterId}/servers/{serverId}
Retrieve servers by ID
Get /datacenters/{datacenterId}/servers
List servers
Patch /datacenters/{datacenterId}/servers/{serverId}
Partially modify servers
Post /datacenters/{datacenterId}/servers
Create a Server
Put /datacenters/{datacenterId}/servers/{serverId}
Modify a Server by ID
Post /datacenters/{datacenterId}/servers/{serverId}/reboot
Reboot servers
Get /datacenters/{datacenterId}/servers/{serverId}/remoteconsole
Get Remote Console link
Post /datacenters/{datacenterId}/servers/{serverId}/resume
Resume a Cube Server by ID
Post /datacenters/{datacenterId}/servers/{serverId}/start
Start an Enterprise Server by ID
Post /datacenters/{datacenterId}/servers/{serverId}/stop
Stop an Enterprise Server by ID
Post /datacenters/{datacenterId}/servers/{serverId}/suspend
Suspend a Cube Server by ID
Get /datacenters/{datacenterId}/servers/{serverId}/token
Get JSON Web Token
Post /datacenters/{datacenterId}/servers/{serverId}/upgrade
Upgrade a Server by ID
Delete /datacenters/{datacenterId}/servers/{serverId}/volumes/{volumeId}
Detach a Volume by ID
Get /datacenters/{datacenterId}/servers/{serverId}/volumes/{volumeId}
Get Attached Volume by ID
Get /datacenters/{datacenterId}/servers/{serverId}/volumes
Get Attached Volumes
Post /datacenters/{datacenterId}/servers/{serverId}/volumes
Attach a Volume to a Server
var result = DatacentersServersCdromsDelete(ctx, datacenterId, serverId, cdromId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Detach a CD-ROM by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
cdromId := "cdromId_example" // string | The unique ID of the CD-ROM.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.ServersApi.DatacentersServersCdromsDelete(context.Background(), datacenterId, serverId, cdromId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersCdromsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
cdromId
string
The unique ID of the CD-ROM.
Other parameters are passed through a pointer to a apiDatacentersServersCdromsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result Image = DatacentersServersCdromsFindById(ctx, datacenterId, serverId, cdromId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Attached CD-ROM by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
cdromId := "cdromId_example" // string | The unique ID of the CD-ROM.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersCdromsFindById(context.Background(), datacenterId, serverId, cdromId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersCdromsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersCdromsFindById`: Image
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersCdromsFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
cdromId
string
The unique ID of the CD-ROM.
Other parameters are passed through a pointer to a apiDatacentersServersCdromsFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Cdroms = DatacentersServersCdromsGet(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()Get Attached CD-ROMs
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersCdromsGet(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersCdromsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersCdromsGet`: Cdroms
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersCdromsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersCdromsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result Image = DatacentersServersCdromsPost(ctx, datacenterId, serverId)
.Cdrom(cdrom)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Attach a CD-ROM
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
cdrom := *openapiclient.NewImage(*openapiclient.NewImageProperties("LINUX")) // Image | The CD-ROM to be attached.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersCdromsPost(context.Background(), datacenterId, serverId).Cdrom(cdrom).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersCdromsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersCdromsPost`: Image
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersCdromsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersCdromsPostRequest struct via the builder pattern
cdrom
The CD-ROM to be attached.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = DatacentersServersDelete(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.DeleteVolumes(deleteVolumes)
.Execute()Delete servers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
deleteVolumes := true // bool | If true, all attached storage volumes will also be deleted. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.ServersApi.DatacentersServersDelete(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).DeleteVolumes(deleteVolumes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
deleteVolumes
bool
If true, all attached storage volumes will also be deleted.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result Server = DatacentersServersFindById(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve servers by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersFindById(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersFindById`: Server
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Servers = DatacentersServersGet(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()List servers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersGet(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersGet`: Servers
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersServersGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result Server = DatacentersServersPatch(ctx, datacenterId, serverId)
.Server(server)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Partially modify servers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
server := *openapiclient.NewServerProperties() // ServerProperties | The properties of the server to be updated.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersPatch(context.Background(), datacenterId, serverId).Server(server).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersPatch`: Server
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersPatch`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersPatchRequest struct via the builder pattern
server
The properties of the server to be updated.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Server = DatacentersServersPost(ctx, datacenterId)
.Server(server)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Server
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
server := *openapiclient.NewServer(*openapiclient.NewServerProperties()) // Server | The server to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersPost(context.Background(), datacenterId).Server(server).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersPost`: Server
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersServersPostRequest struct via the builder pattern
server
The server to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Server = DatacentersServersPut(ctx, datacenterId, serverId)
.Server(server)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Server by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
server := *openapiclient.NewServer(*openapiclient.NewServerProperties()) // Server | The modified server
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersPut(context.Background(), datacenterId, serverId).Server(server).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersPut`: Server
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersPutRequest struct via the builder pattern
server
The modified server
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = DatacentersServersRebootPost(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Reboot servers
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersRebootPost(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersRebootPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersRebootPostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result RemoteConsoleUrl = DatacentersServersRemoteConsoleGet(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Remote Console link
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersRemoteConsoleGet(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersRemoteConsoleGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersRemoteConsoleGet`: RemoteConsoleUrl
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersRemoteConsoleGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersRemoteConsoleGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = DatacentersServersResumePost(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Resume a Cube Server by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersResumePost(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersResumePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersResumePostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result = DatacentersServersStartPost(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Start an Enterprise Server by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersStartPost(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersStartPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersStartPostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result = DatacentersServersStopPost(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Stop an Enterprise Server by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersStopPost(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersStopPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersStopPostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result = DatacentersServersSuspendPost(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Suspend a Cube Server by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersSuspendPost(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersSuspendPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersSuspendPostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result Token = DatacentersServersTokenGet(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get JSON Web Token
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersTokenGet(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersTokenGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersTokenGet`: Token
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersTokenGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersTokenGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = DatacentersServersUpgradePost(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Upgrade a Server by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersUpgradePost(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersUpgradePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersUpgradePostRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result = DatacentersServersVolumesDelete(ctx, datacenterId, serverId, volumeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Detach a Volume by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
volumeId := "volumeId_example" // string | The unique ID of the volume.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.ServersApi.DatacentersServersVolumesDelete(context.Background(), datacenterId, serverId, volumeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersVolumesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersServersVolumesDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result Volume = DatacentersServersVolumesFindById(ctx, datacenterId, serverId, volumeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Get Attached Volume by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
volumeId := "volumeId_example" // string | The unique ID of the volume.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersVolumesFindById(context.Background(), datacenterId, serverId, volumeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersVolumesFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersVolumesFindById`: Volume
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersVolumesFindById`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersServersVolumesFindByIdRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result AttachedVolumes = DatacentersServersVolumesGet(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Offset(offset)
.Limit(limit)
.Execute()Get Attached Volumes
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
offset := int32(56) // int32 | The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination). (optional) (default to 0)
limit := int32(56) // int32 | The maximum number of elements to return (use together with offset for pagination). (optional) (default to 1000)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersVolumesGet(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersVolumesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersVolumesGet`: AttachedVolumes
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersVolumesGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersVolumesGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
offset
int32
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[default to 0]
limit
int32
The maximum number of elements to return (use together with offset for pagination).
[default to 1000]
Content-Type: Not defined
Accept: application/json
var result Volume = DatacentersServersVolumesPost(ctx, datacenterId, serverId)
.Volume(volume)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Attach a Volume to a Server
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
volume := *openapiclient.NewVolume() // Volume | The volume to be attached (or created and attached).
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ServersApi.DatacentersServersVolumesPost(context.Background(), datacenterId, serverId).Volume(volume).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ServersApi.DatacentersServersVolumesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersVolumesPost`: Volume
fmt.Fprintf(os.Stdout, "Response from `ServersApi.DatacentersServersVolumesPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersVolumesPostRequest struct via the builder pattern
volume
The volume to be attached (or created and attached).
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
All URIs are relative to https://api.ionos.com/cloudapi/v6
Delete /datacenters/{datacenterId}/labels/{key}
Delete data center labels
Get /datacenters/{datacenterId}/labels/{key}
Retrieve data center labels
Get /datacenters/{datacenterId}/labels
List data center labels
Post /datacenters/{datacenterId}/labels
Create a Data Center Label
Put /datacenters/{datacenterId}/labels/{key}
Modify a Data Center Label by Key
Delete /datacenters/{datacenterId}/servers/{serverId}/labels/{key}
Delete server labels
Get /datacenters/{datacenterId}/servers/{serverId}/labels/{key}
Retrieve server labels
Get /datacenters/{datacenterId}/servers/{serverId}/labels
List server labels
Post /datacenters/{datacenterId}/servers/{serverId}/labels
Create a Server Label
Put /datacenters/{datacenterId}/servers/{serverId}/labels/{key}
Modify a Server Label
Delete /datacenters/{datacenterId}/volumes/{volumeId}/labels/{key}
Delete volume labels
Get /datacenters/{datacenterId}/volumes/{volumeId}/labels/{key}
Retrieve volume labels
Get /datacenters/{datacenterId}/volumes/{volumeId}/labels
List volume labels
Post /datacenters/{datacenterId}/volumes/{volumeId}/labels
Create a Volume Label
Put /datacenters/{datacenterId}/volumes/{volumeId}/labels/{key}
Modify a Volume Label
Delete /images/{imageId}/labels/{key}
Delete image label
Get /images/{imageId}/labels/{key}
Retrieve image labels
Get /images/{imageId}/labels
List image labels
Post /images/{imageId}/labels
Create an Image Label
Put /images/{imageId}/labels/{key}
Modify an Image Label by Key
Delete /ipblocks/{ipblockId}/labels/{key}
Delete IP block labels
Get /ipblocks/{ipblockId}/labels/{key}
Retrieve IP block labels
Get /ipblocks/{ipblockId}/labels
List IP block labels
Post /ipblocks/{ipblockId}/labels
Create IP block labels
Put /ipblocks/{ipblockId}/labels/{key}
Modify a IP Block Label by ID
Get /labels/{labelurn}
Retrieve labels by URN
Get /labels
List labels
Delete /snapshots/{snapshotId}/labels/{key}
Delete snapshot labels
Get /snapshots/{snapshotId}/labels/{key}
Retrieve snapshot labels
Get /snapshots/{snapshotId}/labels
List snapshot labels
Post /snapshots/{snapshotId}/labels
Create a Snapshot Label
Put /snapshots/{snapshotId}/labels/{key}
Modify a Snapshot Label by ID
var result = DatacentersLabelsDelete(ctx, datacenterId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete data center labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.LabelsApi.DatacentersLabelsDelete(context.Background(), datacenterId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersLabelsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
key
string
The label key
Other parameters are passed through a pointer to a apiDatacentersLabelsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result LabelResource = DatacentersLabelsFindByKey(ctx, datacenterId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve data center labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersLabelsFindByKey(context.Background(), datacenterId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersLabelsFindByKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLabelsFindByKey`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersLabelsFindByKey`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
key
string
The label key
Other parameters are passed through a pointer to a apiDatacentersLabelsFindByKeyRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResources = DatacentersLabelsGet(ctx, datacenterId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List data center labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersLabelsGet(context.Background(), datacenterId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersLabelsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLabelsGet`: LabelResources
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersLabelsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersLabelsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResource = DatacentersLabelsPost(ctx, datacenterId)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Data Center Label
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The label to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersLabelsPost(context.Background(), datacenterId).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersLabelsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLabelsPost`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersLabelsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
Other parameters are passed through a pointer to a apiDatacentersLabelsPostRequest struct via the builder pattern
label
The label to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result LabelResource = DatacentersLabelsPut(ctx, datacenterId, key)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Data Center Label by Key
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
key := "key_example" // string | The label key
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The modified label
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersLabelsPut(context.Background(), datacenterId, key).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersLabelsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersLabelsPut`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersLabelsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
key
string
The label key
Other parameters are passed through a pointer to a apiDatacentersLabelsPutRequest struct via the builder pattern
label
The modified label
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = DatacentersServersLabelsDelete(ctx, datacenterId, serverId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete server labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.LabelsApi.DatacentersServersLabelsDelete(context.Background(), datacenterId, serverId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersServersLabelsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
key
string
The label key
Other parameters are passed through a pointer to a apiDatacentersServersLabelsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result LabelResource = DatacentersServersLabelsFindByKey(ctx, datacenterId, serverId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve server labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersServersLabelsFindByKey(context.Background(), datacenterId, serverId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersServersLabelsFindByKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersLabelsFindByKey`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersServersLabelsFindByKey`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
key
string
The label key
Other parameters are passed through a pointer to a apiDatacentersServersLabelsFindByKeyRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResources = DatacentersServersLabelsGet(ctx, datacenterId, serverId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List server labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersServersLabelsGet(context.Background(), datacenterId, serverId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersServersLabelsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersLabelsGet`: LabelResources
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersServersLabelsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersLabelsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResource = DatacentersServersLabelsPost(ctx, datacenterId, serverId)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Server Label
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The label to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersServersLabelsPost(context.Background(), datacenterId, serverId).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersServersLabelsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersLabelsPost`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersServersLabelsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
Other parameters are passed through a pointer to a apiDatacentersServersLabelsPostRequest struct via the builder pattern
label
The label to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result LabelResource = DatacentersServersLabelsPut(ctx, datacenterId, serverId, key)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Server Label
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
serverId := "serverId_example" // string | The unique ID of the server.
key := "key_example" // string | The label key
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The modified label
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersServersLabelsPut(context.Background(), datacenterId, serverId, key).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersServersLabelsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersServersLabelsPut`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersServersLabelsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
serverId
string
The unique ID of the server.
key
string
The label key
Other parameters are passed through a pointer to a apiDatacentersServersLabelsPutRequest struct via the builder pattern
label
The modified label
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = DatacentersVolumesLabelsDelete(ctx, datacenterId, volumeId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete volume labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.LabelsApi.DatacentersVolumesLabelsDelete(context.Background(), datacenterId, volumeId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersVolumesLabelsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
key
string
The label key
Other parameters are passed through a pointer to a apiDatacentersVolumesLabelsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result LabelResource = DatacentersVolumesLabelsFindByKey(ctx, datacenterId, volumeId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve volume labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersVolumesLabelsFindByKey(context.Background(), datacenterId, volumeId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersVolumesLabelsFindByKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesLabelsFindByKey`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersVolumesLabelsFindByKey`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
key
string
The label key
Other parameters are passed through a pointer to a apiDatacentersVolumesLabelsFindByKeyRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResources = DatacentersVolumesLabelsGet(ctx, datacenterId, volumeId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List volume labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersVolumesLabelsGet(context.Background(), datacenterId, volumeId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersVolumesLabelsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesLabelsGet`: LabelResources
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersVolumesLabelsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersVolumesLabelsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResource = DatacentersVolumesLabelsPost(ctx, datacenterId, volumeId)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Volume Label
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The label to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersVolumesLabelsPost(context.Background(), datacenterId, volumeId).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersVolumesLabelsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesLabelsPost`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersVolumesLabelsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
Other parameters are passed through a pointer to a apiDatacentersVolumesLabelsPostRequest struct via the builder pattern
label
The label to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result LabelResource = DatacentersVolumesLabelsPut(ctx, datacenterId, volumeId, key)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Volume Label
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
datacenterId := "datacenterId_example" // string | The unique ID of the data center.
volumeId := "volumeId_example" // string | The unique ID of the volume.
key := "key_example" // string | The label key
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The modified label
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.DatacentersVolumesLabelsPut(context.Background(), datacenterId, volumeId, key).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.DatacentersVolumesLabelsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DatacentersVolumesLabelsPut`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.DatacentersVolumesLabelsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
datacenterId
string
The unique ID of the data center.
volumeId
string
The unique ID of the volume.
key
string
The label key
Other parameters are passed through a pointer to a apiDatacentersVolumesLabelsPutRequest struct via the builder pattern
label
The modified label
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = ImagesLabelsDelete(ctx, imageId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete image label
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
imageId := "imageId_example" // string | The unique ID of the image.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.LabelsApi.ImagesLabelsDelete(context.Background(), imageId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.ImagesLabelsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
imageId
string
The unique ID of the image.
key
string
The label key
Other parameters are passed through a pointer to a apiImagesLabelsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result LabelResource = ImagesLabelsFindByKey(ctx, imageId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve image labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
imageId := "imageId_example" // string | The unique ID of the image.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.ImagesLabelsFindByKey(context.Background(), imageId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.ImagesLabelsFindByKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImagesLabelsFindByKey`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.ImagesLabelsFindByKey`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
imageId
string
The unique ID of the image.
key
string
The label key
Other parameters are passed through a pointer to a apiImagesLabelsFindByKeyRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResources = ImagesLabelsGet(ctx, imageId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List image labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
imageId := "imageId_example" // string | The unique ID of the image.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.ImagesLabelsGet(context.Background(), imageId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.ImagesLabelsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImagesLabelsGet`: LabelResources
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.ImagesLabelsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
imageId
string
The unique ID of the image.
Other parameters are passed through a pointer to a apiImagesLabelsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResource = ImagesLabelsPost(ctx, imageId)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create an Image Label
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
imageId := "imageId_example" // string | The unique ID of the image
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The label to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.ImagesLabelsPost(context.Background(), imageId).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.ImagesLabelsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImagesLabelsPost`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.ImagesLabelsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
imageId
string
The unique ID of the image
Other parameters are passed through a pointer to a apiImagesLabelsPostRequest struct via the builder pattern
label
The label to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result LabelResource = ImagesLabelsPut(ctx, imageId, key)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify an Image Label by Key
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
imageId := "imageId_example" // string | The unique ID of the image.
key := "key_example" // string | The label key
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The modified label
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.ImagesLabelsPut(context.Background(), imageId, key).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.ImagesLabelsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImagesLabelsPut`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.ImagesLabelsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
imageId
string
The unique ID of the image.
key
string
The label key
Other parameters are passed through a pointer to a apiImagesLabelsPutRequest struct via the builder pattern
label
The modified label
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result = IpblocksLabelsDelete(ctx, ipblockId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete IP block labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblockId := "ipblockId_example" // string | The unique ID of the IP block.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.LabelsApi.IpblocksLabelsDelete(context.Background(), ipblockId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.IpblocksLabelsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
ipblockId
string
The unique ID of the IP block.
key
string
The label key
Other parameters are passed through a pointer to a apiIpblocksLabelsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result LabelResource = IpblocksLabelsFindByKey(ctx, ipblockId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve IP block labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblockId := "ipblockId_example" // string | The unique ID of the IP block.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.IpblocksLabelsFindByKey(context.Background(), ipblockId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.IpblocksLabelsFindByKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IpblocksLabelsFindByKey`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.IpblocksLabelsFindByKey`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
ipblockId
string
The unique ID of the IP block.
key
string
The label key
Other parameters are passed through a pointer to a apiIpblocksLabelsFindByKeyRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResources = IpblocksLabelsGet(ctx, ipblockId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List IP block labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblockId := "ipblockId_example" // string | The unique ID of the IP block.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.IpblocksLabelsGet(context.Background(), ipblockId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.IpblocksLabelsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IpblocksLabelsGet`: LabelResources
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.IpblocksLabelsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
ipblockId
string
The unique ID of the IP block.
Other parameters are passed through a pointer to a apiIpblocksLabelsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResource = IpblocksLabelsPost(ctx, ipblockId)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create IP block labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblockId := "ipblockId_example" // string | The unique ID of the IP block.
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The label to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.IpblocksLabelsPost(context.Background(), ipblockId).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.IpblocksLabelsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IpblocksLabelsPost`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.IpblocksLabelsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
ipblockId
string
The unique ID of the IP block.
Other parameters are passed through a pointer to a apiIpblocksLabelsPostRequest struct via the builder pattern
label
The label to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result LabelResource = IpblocksLabelsPut(ctx, ipblockId, key)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a IP Block Label by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
ipblockId := "ipblockId_example" // string | The unique ID of the IP block.
key := "key_example" // string | The label key
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The modified label
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.IpblocksLabelsPut(context.Background(), ipblockId, key).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.IpblocksLabelsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IpblocksLabelsPut`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.IpblocksLabelsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
ipblockId
string
The unique ID of the IP block.
key
string
The label key
Other parameters are passed through a pointer to a apiIpblocksLabelsPutRequest struct via the builder pattern
label
The modified label
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result Label = LabelsFindByUrn(ctx, labelurn)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve labels by URN
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
labelurn := "labelurn_example" // string | The label URN; URN is unique for each label, and consists of: urn:label:<resource_type>:<resource_uuid>:<key><key>
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.LabelsFindByUrn(context.Background(), labelurn).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.LabelsFindByUrn``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LabelsFindByUrn`: Label
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.LabelsFindByUrn`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
labelurn
string
The label URN; URN is unique for each label, and consists of: urn🏷️<resource_type>:<resource_uuid>:<key><key>
Other parameters are passed through a pointer to a apiLabelsFindByUrnRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result Labels = LabelsGet(ctx)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.LabelsGet(context.Background()).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.LabelsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LabelsGet`: Labels
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.LabelsGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiLabelsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result = SnapshotsLabelsDelete(ctx, snapshotId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Delete snapshot labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
snapshotId := "snapshotId_example" // string | The unique ID of the snapshot.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resp, err := apiClient.LabelsApi.SnapshotsLabelsDelete(context.Background(), snapshotId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.SnapshotsLabelsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId
string
The unique ID of the snapshot.
key
string
The label key
Other parameters are passed through a pointer to a apiSnapshotsLabelsDeleteRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
(empty response body)
Content-Type: Not defined
Accept: application/json
var result LabelResource = SnapshotsLabelsFindByKey(ctx, snapshotId, key)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Retrieve snapshot labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
snapshotId := "snapshotId_example" // string | The unique ID of the snapshot.
key := "key_example" // string | The label key
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.SnapshotsLabelsFindByKey(context.Background(), snapshotId, key).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.SnapshotsLabelsFindByKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SnapshotsLabelsFindByKey`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.SnapshotsLabelsFindByKey`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId
string
The unique ID of the snapshot.
key
string
The label key
Other parameters are passed through a pointer to a apiSnapshotsLabelsFindByKeyRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResources = SnapshotsLabelsGet(ctx, snapshotId)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()List snapshot labels
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
snapshotId := "snapshotId_example" // string | The unique ID of the snapshot.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.SnapshotsLabelsGet(context.Background(), snapshotId).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.SnapshotsLabelsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SnapshotsLabelsGet`: LabelResources
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.SnapshotsLabelsGet`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId
string
The unique ID of the snapshot.
Other parameters are passed through a pointer to a apiSnapshotsLabelsGetRequest struct via the builder pattern
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: Not defined
Accept: application/json
var result LabelResource = SnapshotsLabelsPost(ctx, snapshotId)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Create a Snapshot Label
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
snapshotId := "snapshotId_example" // string | The unique ID of the snapshot.
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The label to create.
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.SnapshotsLabelsPost(context.Background(), snapshotId).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.SnapshotsLabelsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SnapshotsLabelsPost`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.SnapshotsLabelsPost`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId
string
The unique ID of the snapshot.
Other parameters are passed through a pointer to a apiSnapshotsLabelsPostRequest struct via the builder pattern
label
The label to create.
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json
var result LabelResource = SnapshotsLabelsPut(ctx, snapshotId, key)
.Label(label)
.Pretty(pretty)
.Depth(depth)
.XContractNumber(xContractNumber)
.Execute()Modify a Snapshot Label by ID
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go/v6"
)
func main() {
snapshotId := "snapshotId_example" // string | The unique ID of the snapshot.
key := "key_example" // string | The label key
label := *openapiclient.NewLabelResource(*openapiclient.NewLabelResourceProperties()) // LabelResource | The modified label
pretty := true // bool | Controls whether the response is pretty-printed (with indentations and new lines). (optional) (default to true)
depth := int32(56) // int32 | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (optional) (default to 0)
xContractNumber := int32(56) // int32 | Users with multiple contracts must provide the contract number, for which all API requests are to be executed. (optional)
configuration := ionoscloud.NewConfiguration()
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.LabelsApi.SnapshotsLabelsPut(context.Background(), snapshotId, key).Label(label).Pretty(pretty).Depth(depth).XContractNumber(xContractNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LabelsApi.SnapshotsLabelsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SnapshotsLabelsPut`: LabelResource
fmt.Fprintf(os.Stdout, "Response from `LabelsApi.SnapshotsLabelsPut`: %v\n", resp)
}ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId
string
The unique ID of the snapshot.
key
string
The label key
Other parameters are passed through a pointer to a apiSnapshotsLabelsPutRequest struct via the builder pattern
label
The modified label
pretty
bool
Controls whether the response is pretty-printed (with indentations and new lines).
[default to true]
depth
int32
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[default to 0]
xContractNumber
int32
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
Content-Type: application/json
Accept: application/json